package y0;

/* loaded from: classes.dex */
public abstract class h2 extends v {
    public h2(dn.a aVar) {
        super(aVar, null);
    }

    private final e4 f(i2 i2Var) {
        if (!i2Var.i()) {
            return i2Var.c() != null ? new e0(i2Var.c()) : i2Var.f() != null ? new o0(i2Var.f()) : new a4(i2Var.d());
        }
        q1 f10 = i2Var.f();
        if (f10 == null) {
            Object g10 = i2Var.g();
            m3 e10 = i2Var.e();
            if (e10 == null) {
                e10 = n3.q();
            }
            f10 = n3.h(g10, e10);
        }
        return new o0(f10);
    }

    /* JADX WARN: Code restructure failed: missing block: B:16:0x0032, code lost:
    
        if (r0 != false) goto L13;
     */
    /* JADX WARN: Code restructure failed: missing block: B:17:0x0034, code lost:
    
        r1 = r5;
     */
    /* JADX WARN: Code restructure failed: missing block: B:21:0x0044, code lost:
    
        if (r0 == r2) goto L13;
     */
    /* JADX WARN: Multi-variable type inference failed */
    @Override // y0.v
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public e4 b(i2 i2Var, e4 e4Var) {
        o0 o0Var;
        o0 o0Var2 = null;
        if (e4Var instanceof o0) {
            if (i2Var.i()) {
                o0Var2 = (o0) e4Var;
                o0Var2.b().setValue(i2Var.d());
            }
        } else if (e4Var instanceof a4) {
            if (i2Var.j()) {
                a4 a4Var = (a4) e4Var;
                boolean b10 = kotlin.jvm.internal.t.b(i2Var.d(), a4Var.b());
                o0Var = a4Var;
            }
        } else if (e4Var instanceof e0) {
            dn.l c10 = i2Var.c();
            e0 e0Var = (e0) e4Var;
            dn.l b11 = e0Var.b();
            o0Var = e0Var;
        }
        return o0Var2 == null ? f(i2Var) : o0Var2;
    }

    public abstract i2 c(Object obj);

    public final i2 d(Object obj) {
        return c(obj);
    }

    public final i2 e(Object obj) {
        return c(obj).h();
    }
}
