package q2;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import s1.g0;
import s1.p1;
import s1.q1;

/* loaded from: classes.dex */
public abstract class c0 {

    /* renamed from: a, reason: collision with root package name */
    private static final long f33260a = c3.w.g(14);

    /* renamed from: b, reason: collision with root package name */
    private static final long f33261b = c3.w.g(0);

    /* renamed from: c, reason: collision with root package name */
    private static final long f33262c;

    /* renamed from: d, reason: collision with root package name */
    private static final long f33263d;

    /* renamed from: e, reason: collision with root package name */
    private static final b3.n f33264e;

    /* loaded from: classes.dex */
    static final class a extends kotlin.jvm.internal.v implements dn.a {

        /* renamed from: p, reason: collision with root package name */
        public static final a f33265p = new a();

        a() {
            super(0);
        }

        @Override // dn.a
        /* renamed from: a, reason: merged with bridge method [inline-methods] */
        public final b3.n invoke() {
            return c0.f33264e;
        }
    }

    static {
        g0.a aVar = s1.g0.f35254b;
        f33262c = aVar.e();
        long a10 = aVar.a();
        f33263d = a10;
        f33264e = b3.n.f6713a.b(a10);
    }

    /* JADX WARN: Code restructure failed: missing block: B:4:0x0036, code lost:
    
        if (c3.v.e(r28, r23.k()) == false) goto L7;
     */
    /* JADX WARN: Code restructure failed: missing block: B:67:0x005e, code lost:
    
        if (s1.g0.n(r24, r23.t().c()) == false) goto L7;
     */
    /* JADX WARN: Code restructure failed: missing block: B:71:0x006a, code lost:
    
        if (kotlin.jvm.internal.t.b(r6, r23.l()) == false) goto L7;
     */
    /* JADX WARN: Code restructure failed: missing block: B:74:0x0076, code lost:
    
        if (kotlin.jvm.internal.t.b(r5, r23.n()) == false) goto L7;
     */
    /* JADX WARN: Code restructure failed: missing block: B:77:0x007e, code lost:
    
        if (r33 != r23.i()) goto L7;
     */
    /* JADX WARN: Code restructure failed: missing block: B:81:0x0092, code lost:
    
        if (c3.v.e(r35, r23.o()) == false) goto L7;
     */
    /* JADX WARN: Code restructure failed: missing block: B:91:0x00c4, code lost:
    
        if ((r27 == r23.t().b()) != false) goto L46;
     */
    /* JADX WARN: Removed duplicated region for block: B:11:0x014d  */
    /* JADX WARN: Removed duplicated region for block: B:14:0x0150  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final b0 b(b0 b0Var, long j10, s1.y yVar, float f10, long j11, v2.r rVar, v2.p pVar, v2.q qVar, v2.i iVar, String str, long j12, b3.a aVar, b3.o oVar, x2.e eVar, long j13, b3.k kVar, p1 p1Var, y yVar2, u1.g gVar) {
        b3.o oVar2;
        long j14;
        y yVar3;
        u1.g gVar2;
        boolean z10;
        v2.r rVar2 = rVar;
        v2.p pVar2 = pVar;
        v2.q qVar2 = qVar;
        String str2 = str;
        b3.a aVar2 = aVar;
        if (!(!c3.w.h(j11))) {
        }
        if (yVar == null) {
            if (j10 != 16) {
            }
        }
        if (pVar2 != null) {
        }
        if (rVar2 != null) {
        }
        if (iVar != null) {
        }
        if (!(!c3.w.h(j12))) {
        }
        if ((kVar == null || kotlin.jvm.internal.t.b(kVar, b0Var.s())) && kotlin.jvm.internal.t.b(yVar, b0Var.t().f())) {
            if (yVar != null) {
            }
            if ((qVar2 == null || kotlin.jvm.internal.t.b(qVar2, b0Var.m())) && ((str2 == null || kotlin.jvm.internal.t.b(str2, b0Var.j())) && (aVar2 == null || kotlin.jvm.internal.t.b(aVar2, b0Var.e())))) {
                oVar2 = oVar;
                if ((oVar2 == null || kotlin.jvm.internal.t.b(oVar2, b0Var.u())) && (eVar == null || kotlin.jvm.internal.t.b(eVar, b0Var.p()))) {
                    j14 = j13;
                    if ((!(j14 != 16) || s1.g0.n(j14, b0Var.d())) && (p1Var == null || kotlin.jvm.internal.t.b(p1Var, b0Var.r()))) {
                        yVar3 = yVar2;
                        if (yVar3 == null || kotlin.jvm.internal.t.b(yVar3, b0Var.q())) {
                            gVar2 = gVar;
                            if (gVar2 == null || kotlin.jvm.internal.t.b(gVar2, b0Var.h())) {
                                z10 = false;
                                if (z10) {
                                    return b0Var;
                                }
                                b3.n d10 = b0Var.t().d(yVar != null ? b3.n.f6713a.a(yVar, f10) : b3.n.f6713a.b(j10));
                                v2.i i10 = iVar == null ? b0Var.i() : iVar;
                                long k10 = !c3.w.h(j11) ? j11 : b0Var.k();
                                if (rVar2 == null) {
                                    rVar2 = b0Var.n();
                                }
                                if (pVar2 == null) {
                                    pVar2 = b0Var.l();
                                }
                                if (qVar2 == null) {
                                    qVar2 = b0Var.m();
                                }
                                if (str2 == null) {
                                    str2 = b0Var.j();
                                }
                                long o10 = !c3.w.h(j12) ? j12 : b0Var.o();
                                if (aVar2 == null) {
                                    aVar2 = b0Var.e();
                                }
                                if (oVar2 == null) {
                                    oVar2 = b0Var.u();
                                }
                                x2.e p10 = eVar == null ? b0Var.p() : eVar;
                                if (!(j14 != 16)) {
                                    j14 = b0Var.d();
                                }
                                b3.k s10 = kVar == null ? b0Var.s() : kVar;
                                p1 r10 = p1Var == null ? b0Var.r() : p1Var;
                                y g10 = g(b0Var, yVar3);
                                if (gVar2 == null) {
                                    gVar2 = b0Var.h();
                                }
                                return new b0(d10, k10, rVar2, pVar2, qVar2, i10, str2, o10, aVar2, oVar2, p10, j14, s10, r10, g10, gVar2, (kotlin.jvm.internal.k) null);
                            }
                            z10 = true;
                            if (z10) {
                            }
                        }
                        gVar2 = gVar;
                        z10 = true;
                        if (z10) {
                        }
                    }
                    yVar3 = yVar2;
                    gVar2 = gVar;
                    z10 = true;
                    if (z10) {
                    }
                }
                j14 = j13;
                yVar3 = yVar2;
                gVar2 = gVar;
                z10 = true;
                if (z10) {
                }
            }
        }
        oVar2 = oVar;
        j14 = j13;
        yVar3 = yVar2;
        gVar2 = gVar;
        z10 = true;
        if (z10) {
        }
    }

    public static final b0 c(b0 b0Var, b0 b0Var2, float f10) {
        b3.n b10 = b3.m.b(b0Var.t(), b0Var2.t(), f10);
        v2.i iVar = (v2.i) d(b0Var.i(), b0Var2.i(), f10);
        long f11 = f(b0Var.k(), b0Var2.k(), f10);
        v2.r n10 = b0Var.n();
        if (n10 == null) {
            n10 = v2.r.f38997q.c();
        }
        v2.r n11 = b0Var2.n();
        if (n11 == null) {
            n11 = v2.r.f38997q.c();
        }
        v2.r a10 = v2.u.a(n10, n11, f10);
        v2.p pVar = (v2.p) d(b0Var.l(), b0Var2.l(), f10);
        v2.q qVar = (v2.q) d(b0Var.m(), b0Var2.m(), f10);
        String str = (String) d(b0Var.j(), b0Var2.j(), f10);
        long f12 = f(b0Var.o(), b0Var2.o(), f10);
        b3.a e10 = b0Var.e();
        float i10 = e10 != null ? e10.i() : b3.a.d(BitmapDescriptorFactory.HUE_RED);
        b3.a e11 = b0Var2.e();
        float a11 = b3.b.a(i10, e11 != null ? e11.i() : b3.a.d(BitmapDescriptorFactory.HUE_RED), f10);
        b3.o u10 = b0Var.u();
        if (u10 == null) {
            u10 = b3.o.f6718c.a();
        }
        b3.o u11 = b0Var2.u();
        if (u11 == null) {
            u11 = b3.o.f6718c.a();
        }
        b3.o a12 = b3.p.a(u10, u11, f10);
        x2.e eVar = (x2.e) d(b0Var.p(), b0Var2.p(), f10);
        long h10 = s1.i0.h(b0Var.d(), b0Var2.d(), f10);
        b3.k kVar = (b3.k) d(b0Var.s(), b0Var2.s(), f10);
        p1 r10 = b0Var.r();
        if (r10 == null) {
            r10 = new p1(0L, 0L, BitmapDescriptorFactory.HUE_RED, 7, null);
        }
        p1 r11 = b0Var2.r();
        if (r11 == null) {
            r11 = new p1(0L, 0L, BitmapDescriptorFactory.HUE_RED, 7, null);
        }
        return new b0(b10, f11, a10, pVar, qVar, iVar, str, f12, b3.a.c(a11), a12, eVar, h10, kVar, q1.a(r10, r11, f10), e(b0Var.q(), b0Var2.q(), f10), (u1.g) d(b0Var.h(), b0Var2.h(), f10), (kotlin.jvm.internal.k) null);
    }

    public static final Object d(Object obj, Object obj2, float f10) {
        return ((double) f10) < 0.5d ? obj : obj2;
    }

    private static final y e(y yVar, y yVar2, float f10) {
        if (yVar == null && yVar2 == null) {
            return null;
        }
        if (yVar == null) {
            yVar = y.f33383a.a();
        }
        if (yVar2 == null) {
            yVar2 = y.f33383a.a();
        }
        return c.c(yVar, yVar2, f10);
    }

    public static final long f(long j10, long j11, float f10) {
        return (c3.w.h(j10) || c3.w.h(j11)) ? ((c3.v) d(c3.v.b(j10), c3.v.b(j11), f10)).k() : c3.w.i(j10, j11, f10);
    }

    private static final y g(b0 b0Var, y yVar) {
        return b0Var.q() == null ? yVar : yVar == null ? b0Var.q() : b0Var.q().b(yVar);
    }

    public static final b0 h(b0 b0Var) {
        b3.n e10 = b0Var.t().e(a.f33265p);
        long k10 = c3.w.h(b0Var.k()) ? f33260a : b0Var.k();
        v2.r n10 = b0Var.n();
        if (n10 == null) {
            n10 = v2.r.f38997q.c();
        }
        v2.r rVar = n10;
        v2.p l10 = b0Var.l();
        v2.p c10 = v2.p.c(l10 != null ? l10.i() : v2.p.f38987b.b());
        v2.q m10 = b0Var.m();
        v2.q e11 = v2.q.e(m10 != null ? m10.k() : v2.q.f38991b.a());
        v2.i i10 = b0Var.i();
        if (i10 == null) {
            i10 = v2.i.f38963b.a();
        }
        v2.i iVar = i10;
        String j10 = b0Var.j();
        if (j10 == null) {
            j10 = "";
        }
        String str = j10;
        long o10 = c3.w.h(b0Var.o()) ? f33261b : b0Var.o();
        b3.a e12 = b0Var.e();
        b3.a c11 = b3.a.c(e12 != null ? e12.i() : b3.a.f6643b.a());
        b3.o u10 = b0Var.u();
        if (u10 == null) {
            u10 = b3.o.f6718c.a();
        }
        b3.o oVar = u10;
        x2.e p10 = b0Var.p();
        if (p10 == null) {
            p10 = x2.e.f50449r.a();
        }
        x2.e eVar = p10;
        long d10 = b0Var.d();
        if (!(d10 != 16)) {
            d10 = f33262c;
        }
        long j11 = d10;
        b3.k s10 = b0Var.s();
        if (s10 == null) {
            s10 = b3.k.f6700b.c();
        }
        b3.k kVar = s10;
        p1 r10 = b0Var.r();
        if (r10 == null) {
            r10 = p1.f35307d.a();
        }
        p1 p1Var = r10;
        y q10 = b0Var.q();
        u1.g h10 = b0Var.h();
        if (h10 == null) {
            h10 = u1.j.f36769a;
        }
        return new b0(e10, k10, rVar, c10, e11, iVar, str, o10, c11, oVar, eVar, j11, kVar, p1Var, q10, h10, (kotlin.jvm.internal.k) null);
    }
}
