package com.bytedance.android.livesdk.broadcast.video.layer;

import X.0CB;
import X.0CH;
import X.6Is;
import com.bytedance.android.live.layer.broadcast.BroadcastLayeredElementManager;
import com.bytedance.covode.number.Covode;

public final class VideoLayeredElementManager extends BroadcastLayeredElementManager implements 6Is {
    static {
        Covode.recordClassIndex(12779);
    }

    public final void onStateChanged(0CH r1, 0CB r2) {
        VideoLayeredElementManager.super.onStateChanged(r1, r2);
    }

    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r9v0, resolved type: com.bytedance.ies.sdk.widgets.LayeredElementManager} */
    /* JADX WARNING: type inference failed for: r1v1, types: [X.H46, com.bytedance.ies.sdk.widgets.MultiElementSpec] */
    /* JADX WARNING: Illegal instructions before constructor call */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public VideoLayeredElementManager(android.content.Context r16, X.0CH r17, X.C4049H5e r18, com.bytedance.ies.sdk.datachannel.DataChannel r19) {
        /*
            r15 = this;
            r3 = r18
            r0 = r19
            r1 = r17
            r2 = r16
            r15.<init>(r2, r1, r3, r0)
            X.H46 r1 = new X.H46
            com.bytedance.ies.sdk.widgets.LayeredElementContext r0 = r15.getLayeredElementContext()
            X.1kf r0 = (X.1kf) r0
            java.lang.String r2 = ""
            kotlin.h.b.n.LIZIZ(r0, r2)
            r1.<init>(r0)
            r15.registerGroups(r1)
            java.lang.Class<com.bytedance.android.live.layer.ILayerService> r0 = com.bytedance.android.live.layer.ILayerService.class
            X.0UT r1 = X.0cm.LIZ(r0)
            com.bytedance.android.live.layer.ILayerService r1 = (com.bytedance.android.live.layer.ILayerService) r1
            com.bytedance.ies.sdk.widgets.LayeredElementContext r0 = r15.getLayeredElementContext()
            X.1kf r0 = (X.1kf) r0
            kotlin.h.b.n.LIZIZ(r0, r2)
            com.bytedance.ies.sdk.widgets.LayerSpecImpl r0 = r1.getCommonSkeletons(r0)
            if (r0 == 0) goto L_0x0038
            r15.registerLayer(r0)
        L_0x0038:
            X.H8T r1 = new X.H8T
            com.bytedance.ies.sdk.widgets.LayeredElementContext r0 = r15.getLayeredElementContext()
            X.1kf r0 = (X.1kf) r0
            kotlin.h.b.n.LIZIZ(r0, r2)
            r1.<init>(r0)
            r15.registerLayer(r1)
            X.H8b r1 = new X.H8b
            com.bytedance.ies.sdk.widgets.LayeredElementContext r0 = r15.getLayeredElementContext()
            X.1kf r0 = (X.1kf) r0
            kotlin.h.b.n.LIZIZ(r0, r2)
            r1.<init>(r0)
            r15.registerLayer(r1)
            X.H8Z r1 = new X.H8Z
            com.bytedance.ies.sdk.widgets.LayeredElementContext r0 = r15.getLayeredElementContext()
            X.1kf r0 = (X.1kf) r0
            kotlin.h.b.n.LIZIZ(r0, r2)
            r1.<init>(r0)
            r15.registerLayer(r1)
            X.H8c r1 = new X.H8c
            com.bytedance.ies.sdk.widgets.LayeredElementContext r0 = r15.getLayeredElementContext()
            X.1kf r0 = (X.1kf) r0
            kotlin.h.b.n.LIZIZ(r0, r2)
            r1.<init>(r0)
            r15.registerLayer(r1)
            X.1th r1 = new X.1th
            com.bytedance.ies.sdk.widgets.LayeredElementContext r0 = r15.getLayeredElementContext()
            X.1kf r0 = (X.1kf) r0
            kotlin.h.b.n.LIZIZ(r0, r2)
            r1.<init>(r0)
            r15.registerLayer(r1)
            int r10 = X.0hf.LJ
            int r11 = X.0hf.LJIILIIL
            r12 = 2
            com.bytedance.ies.sdk.widgets.LayeredElementContext r0 = r15.getLayeredElementContext()
            X.H4r r0 = (X.C4036H4r) r0
            int r13 = r0.LIZJ
            r6 = 3
            int[] r14 = new int[r6]
            int r0 = X.0hq.LJIIJJI
            r8 = 0
            r14[r8] = r0
            int r0 = X.0hq.LJIIL
            r4 = 1
            r14[r4] = r0
            int r0 = X.0hq.LJIILIIL
            r5 = 2
            r14[r5] = r0
            r9 = r15
            r9.registerHorizontalChain(r10, r11, r12, r13, r14)
            int r7 = X.0hf.LJ
            int r2 = X.0hf.LJFF
            int[] r1 = new int[r6]
            int r0 = X.0hq.LJII
            r1[r8] = r0
            int r0 = X.0hq.LJIIZILJ
            r1[r4] = r0
            int r0 = X.0hq.LJIILLIIL
            r1[r5] = r0
            r15.registerSpacingResolver(r7, r2, r1)
            r2 = 2131367896(0x7f0a17d8, float:1.8355727E38)
            int[] r1 = new int[r5]
            int r0 = X.0hf.LJIIL
            r1[r8] = r0
            int r0 = X.0hq.LJJI
            r1[r4] = r0
            X.C4051H5g.fixReferencedIds(r3, r2, r1)
            int r2 = X.0hf.LJIILIIL
            int[] r1 = new int[r5]
            int r0 = X.0hf.LJFF
            r1[r8] = r0
            r0 = 2131367964(0x7f0a181c, float:1.8355865E38)
            r1[r4] = r0
            X.C4051H5g.fixReferencedIds(r3, r2, r1)
            r2 = 2131367963(0x7f0a181b, float:1.8355863E38)
            int[] r1 = new int[r5]
            r0 = 2131367965(0x7f0a181d, float:1.8355867E38)
            r1[r8] = r0
            int r0 = X.C4158H9j.LIZJ
            r1[r4] = r0
            X.C4051H5g.fixReferencedIds(r3, r2, r1)
            r7 = 2131364678(0x7f0a0b46, float:1.83492E38)
            r0 = 5
            int[] r2 = new int[r0]
            int r0 = X.0hq.LJIIJJI
            r2[r8] = r0
            int r0 = X.0hq.LJIIL
            r2[r4] = r0
            int r0 = X.0hq.LJIILIIL
            r2[r5] = r0
            int r0 = X.0hq.LJIILJJIL
            r2[r6] = r0
            r1 = 4
            int r0 = X.C4158H9j.LIZJ
            r2[r1] = r0
            X.C4051H5g.fixReferencedIds(r3, r7, r2)
            r2 = 2131364645(0x7f0a0b25, float:1.8349133E38)
            int[] r1 = new int[r6]
            int r0 = X.0hq.LJIILLIIL
            r1[r8] = r0
            int r0 = X.0hq.LJIIZILJ
            r1[r4] = r0
            int r0 = X.0hq.LJII
            r1[r5] = r0
            X.C4051H5g.fixReferencedIds(r3, r2, r1)
            int r2 = X.0hf.LJIIJ
            int[] r1 = new int[r5]
            int r0 = X.C4158H9j.LIZLLL
            r1[r8] = r0
            int r0 = X.0hg.LIZLLL
            r1[r4] = r0
            X.C4051H5g.fixReferencedIds(r3, r2, r1)
            r2 = 2131368654(0x7f0a1ace, float:1.8357264E38)
            int[] r1 = new int[r6]
            int r0 = X.C4158H9j.LJ
            r1[r8] = r0
            int r0 = X.C4158H9j.LJFF
            r1[r4] = r0
            int r0 = X.0hg.LIZIZ
            r1[r5] = r0
            X.C4051H5g.fixReferencedIds(r3, r2, r1)
            int r2 = X.0hf.LJIIIZ
            int[] r1 = new int[r4]
            r0 = 2131368059(0x7f0a187b, float:1.8356057E38)
            r1[r8] = r0
            X.C4051H5g.fixReferencedIds(r3, r2, r1)
            r15.finishRegistration()
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.bytedance.android.livesdk.broadcast.video.layer.VideoLayeredElementManager.<init>(android.content.Context, X.0CH, X.H5e, com.bytedance.ies.sdk.datachannel.DataChannel):void");
    }
}
