package a.i.b.a.c.e;

import a.i.b.a.c.e.a.k;
import a.i.b.a.c.e.a.l;
import a.i.b.a.c.g.e;
import a.i.b.a.c.g.g;
import a.i.b.a.c.g.i;
import a.i.b.a.c.g.i.a;
import a.i.b.a.c.g.i.b;
import a.i.b.a.c.g.q;
import a.i.b.a.c.g.w;
import com.tencent.matrix.trace.core.AppMethodBeat;

public final class a$k$a extends b<k, a$k$a> implements l {
    private int BsD;
    private int Buf;

    public final /* synthetic */ a a(i iVar) {
        AppMethodBeat.i(120586);
        a$k$a b = b((k) iVar);
        AppMethodBeat.o(120586);
        return b;
    }

    public final /* synthetic */ a.i.b.a.c.g.a.a c(e eVar, g gVar) {
        AppMethodBeat.i(120588);
        a$k$a k = k(eVar, gVar);
        AppMethodBeat.o(120588);
        return k;
    }

    public final /* synthetic */ Object clone() {
        AppMethodBeat.i(120592);
        a$k$a edX = edX();
        AppMethodBeat.o(120592);
        return edX;
    }

    public final /* synthetic */ q.a d(e eVar, g gVar) {
        AppMethodBeat.i(120590);
        a$k$a k = k(eVar, gVar);
        AppMethodBeat.o(120590);
        return k;
    }

    public final /* synthetic */ a ecK() {
        AppMethodBeat.i(120587);
        a$k$a edX = edX();
        AppMethodBeat.o(120587);
        return edX;
    }

    public final /* synthetic */ a.i.b.a.c.g.a.a ecL() {
        AppMethodBeat.i(120589);
        a$k$a edX = edX();
        AppMethodBeat.o(120589);
        return edX;
    }

    public final /* synthetic */ b edA() {
        AppMethodBeat.i(120583);
        a$k$a edX = edX();
        AppMethodBeat.o(120583);
        return edX;
    }

    private a$k$a() {
    }

    private k edY() {
        int i = 1;
        AppMethodBeat.i(120579);
        k kVar = new k(this, (byte) 0);
        if ((this.BsD & 1) != 1) {
            i = 0;
        }
        k.a(kVar, this.Buf);
        k.b(kVar, i);
        AppMethodBeat.o(120579);
        return kVar;
    }

    public final a$k$a b(k kVar) {
        AppMethodBeat.i(120580);
        if (kVar == k.edV()) {
            AppMethodBeat.o(120580);
        } else {
            if (kVar.edW()) {
                Tf(kVar.Buf);
            }
            a(kVar);
            this.BsB = this.BsB.a(k.a(kVar));
            AppMethodBeat.o(120580);
        }
        return this;
    }

    /* JADX WARNING: Removed duplicated region for block: B:16:0x0027  */
    private a.i.b.a.c.e.a$k$a k(a.i.b.a.c.g.e r5, a.i.b.a.c.g.g r6) {
        /*
        r4 = this;
        r3 = 120582; // 0x1d706 float:1.68971E-40 double:5.95754E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.i(r3);
        r2 = 0;
        r0 = a.i.b.a.c.e.a.k.BsC;	 Catch:{ k -> 0x0016 }
        r0 = r0.a(r5, r6);	 Catch:{ k -> 0x0016 }
        r0 = (a.i.b.a.c.e.a.k) r0;	 Catch:{ k -> 0x0016 }
        r4.b(r0);
        com.tencent.matrix.trace.core.AppMethodBeat.o(r3);
        return r4;
    L_0x0016:
        r0 = move-exception;
        r1 = r0;
        r0 = r1.BzY;	 Catch:{ all -> 0x002e }
        r0 = (a.i.b.a.c.e.a.k) r0;	 Catch:{ all -> 0x002e }
        r2 = 120582; // 0x1d706 float:1.68971E-40 double:5.95754E-319;
        com.tencent.matrix.trace.core.AppMethodBeat.o(r2);	 Catch:{ all -> 0x0023 }
        throw r1;	 Catch:{ all -> 0x0023 }
    L_0x0023:
        r1 = move-exception;
        r2 = r0;
    L_0x0025:
        if (r2 == 0) goto L_0x002a;
    L_0x0027:
        r4.b(r2);
    L_0x002a:
        com.tencent.matrix.trace.core.AppMethodBeat.o(r3);
        throw r1;
    L_0x002e:
        r0 = move-exception;
        r1 = r0;
        goto L_0x0025;
        */
        throw new UnsupportedOperationException("Method not decompiled: a.i.b.a.c.e.a$k$a.k(a.i.b.a.c.g.e, a.i.b.a.c.g.g):a.i.b.a.c.e.a$k$a");
    }

    private a$k$a Tf(int i) {
        this.BsD |= 1;
        this.Buf = i;
        return this;
    }

    private a$k$a edX() {
        AppMethodBeat.i(120578);
        a$k$a b = new a$k$a().b(edY());
        AppMethodBeat.o(120578);
        return b;
    }

    public final boolean isInitialized() {
        AppMethodBeat.i(120581);
        if (this.BzI.isInitialized()) {
            AppMethodBeat.o(120581);
            return true;
        }
        AppMethodBeat.o(120581);
        return false;
    }

    public final /* synthetic */ q ecE() {
        AppMethodBeat.i(120584);
        k edV = k.edV();
        AppMethodBeat.o(120584);
        return edV;
    }

    public final /* synthetic */ i ecJ() {
        AppMethodBeat.i(120585);
        k edV = k.edV();
        AppMethodBeat.o(120585);
        return edV;
    }

    public final /* synthetic */ q ecM() {
        AppMethodBeat.i(120591);
        k edY = edY();
        if (edY.isInitialized()) {
            AppMethodBeat.o(120591);
            return edY;
        }
        w wVar = new w();
        AppMethodBeat.o(120591);
        throw wVar;
    }

    static /* synthetic */ a$k$a edZ() {
        AppMethodBeat.i(120593);
        a$k$a a_k_a = new a$k$a();
        AppMethodBeat.o(120593);
        return a_k_a;
    }
}
