package o;

import android.content.Context;
import android.graphics.Rect;
import android.os.Bundle;
import android.view.View;
import android.view.ViewParent;
import androidx.compose.foundation.layout.FillElement;
import com.google.android.gms.common.R;
import com.google.android.gms.common.api.Api;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.nio.MappedByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.ServiceConfigurationError;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.nt0, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC2001nt0 {
    public static C1883mi c;
    public static CG e;
    public static CG f;
    public static final C1778ld a = new C1778ld();
    public static final C1883mi b = new C1883mi(null, null, null);
    public static final BP d = new BP(14);

    /* JADX WARN: Removed duplicated region for block: B:15:0x0044  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static o.C0239Jf A(o.LE r26) {
        /*
            Method dump skipped, instructions count: 454
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC2001nt0.A(o.LE):o.Jf");
    }

    public static C3090zP B(MappedByteBuffer mappedByteBuffer) throws IOException {
        long j;
        ByteBuffer byteBufferDuplicate = mappedByteBuffer.duplicate();
        byteBufferDuplicate.order(ByteOrder.BIG_ENDIAN);
        byteBufferDuplicate.position(byteBufferDuplicate.position() + 4);
        int i = byteBufferDuplicate.getShort() & 65535;
        if (i > 100) {
            throw new IOException("Cannot read metadata.");
        }
        byteBufferDuplicate.position(byteBufferDuplicate.position() + 6);
        int i2 = 0;
        while (true) {
            if (i2 >= i) {
                j = -1;
                break;
            }
            int i3 = byteBufferDuplicate.getInt();
            byteBufferDuplicate.position(byteBufferDuplicate.position() + 4);
            j = byteBufferDuplicate.getInt() & 4294967295L;
            byteBufferDuplicate.position(byteBufferDuplicate.position() + 4);
            if (1835365473 == i3) {
                break;
            }
            i2++;
        }
        if (j != -1) {
            byteBufferDuplicate.position(byteBufferDuplicate.position() + ((int) (j - byteBufferDuplicate.position())));
            byteBufferDuplicate.position(byteBufferDuplicate.position() + 12);
            long j2 = byteBufferDuplicate.getInt() & 4294967295L;
            for (int i4 = 0; i4 < j2; i4++) {
                int i5 = byteBufferDuplicate.getInt();
                long j3 = byteBufferDuplicate.getInt() & 4294967295L;
                byteBufferDuplicate.getInt();
                if (1164798569 == i5 || 1701669481 == i5) {
                    byteBufferDuplicate.position((int) (j3 + j));
                    C3090zP c3090zP = new C3090zP();
                    byteBufferDuplicate.order(ByteOrder.LITTLE_ENDIAN);
                    int iPosition = byteBufferDuplicate.position() + byteBufferDuplicate.getInt(byteBufferDuplicate.position());
                    c3090zP.f756o = byteBufferDuplicate;
                    c3090zP.l = iPosition;
                    int i6 = iPosition - byteBufferDuplicate.getInt(iPosition);
                    c3090zP.m = i6;
                    c3090zP.n = ((ByteBuffer) c3090zP.f756o).getShort(i6);
                    return c3090zP;
                }
            }
        }
        throw new IOException("Cannot read metadata.");
    }

    public static final boolean C(ZQ zq, Object obj, Object obj2) {
        Object objG = zq.g(obj);
        if (objG == null) {
            return false;
        }
        if (!(objG instanceof C0713aR)) {
            if (!objG.equals(obj2)) {
                return false;
            }
            zq.k(obj);
            return true;
        }
        C0713aR c0713aR = (C0713aR) objG;
        boolean zK = c0713aR.k(obj2);
        if (zK && c0713aR.g()) {
            zq.k(obj);
        }
        return zK;
    }

    public static final void D(ZQ zq, Object obj) {
        boolean zG;
        long[] jArr = zq.a;
        int length = jArr.length - 2;
        if (length < 0) {
            return;
        }
        int i = 0;
        while (true) {
            long j = jArr[i];
            if ((((~j) << 7) & j & (-9187201950435737472L)) != -9187201950435737472L) {
                int i2 = 8 - ((~(i - length)) >>> 31);
                for (int i3 = 0; i3 < i2; i3++) {
                    if ((255 & j) < 128) {
                        int i4 = (i << 3) + i3;
                        Object obj2 = zq.b[i4];
                        Object obj3 = zq.c[i4];
                        if (obj3 instanceof C0713aR) {
                            C0713aR c0713aR = (C0713aR) obj3;
                            c0713aR.k(obj);
                            zG = c0713aR.g();
                        } else {
                            zG = obj3 == obj;
                        }
                        if (zG) {
                            zq.l(i4);
                        }
                    }
                    j >>= 8;
                }
                if (i2 != 8) {
                    return;
                }
            }
            if (i == length) {
                return;
            } else {
                i++;
            }
        }
    }

    public static final C0733af0 E(C0733af0 c0733af0, EnumC1280gK enumC1280gK) {
        Y90 y90 = c0733af0.a;
        InterfaceC2920xe0 interfaceC2920xe0 = Z90.d;
        InterfaceC2920xe0 interfaceC2920xe02 = y90.a;
        if (interfaceC2920xe02.equals(C2825we0.a)) {
            interfaceC2920xe02 = Z90.d;
        }
        InterfaceC2920xe0 interfaceC2920xe03 = interfaceC2920xe02;
        long j = y90.b;
        C1115ef0[] c1115ef0Arr = C1020df0.b;
        if ((j & 1095216660480L) == 0) {
            j = Z90.a;
        }
        long j2 = j;
        OA oa = y90.c;
        if (oa == null) {
            oa = OA.n;
        }
        OA oa2 = oa;
        MA ma = y90.d;
        MA ma2 = new MA(ma != null ? ma.a : 0);
        NA na = y90.e;
        NA na2 = new NA(na != null ? na.a : 65535);
        AbstractC1397hc0 abstractC1397hc0 = y90.f;
        if (abstractC1397hc0 == null) {
            abstractC1397hc0 = AbstractC1397hc0.a;
        }
        AbstractC1397hc0 abstractC1397hc02 = abstractC1397hc0;
        String str = y90.g;
        if (str == null) {
            str = "";
        }
        String str2 = str;
        long j3 = y90.h;
        if ((j3 & 1095216660480L) == 0) {
            j3 = Z90.b;
        }
        long j4 = j3;
        C1494id c1494id = y90.i;
        C1494id c1494id2 = new C1494id(c1494id != null ? c1494id.a : 0.0f);
        C3015ye0 c3015ye0 = y90.j;
        if (c3015ye0 == null) {
            c3015ye0 = C3015ye0.c;
        }
        C3015ye0 c3015ye02 = c3015ye0;
        C2138pM c2138pMA = y90.k;
        if (c2138pMA == null) {
            C2138pM c2138pM = C2138pM.n;
            c2138pMA = AbstractC0910cX.a.A();
        }
        C2138pM c2138pM2 = c2138pMA;
        long j5 = y90.l;
        if (j5 == 16) {
            j5 = Z90.c;
        }
        long j6 = j5;
        C2823wd0 c2823wd0 = y90.m;
        if (c2823wd0 == null) {
            c2823wd0 = C2823wd0.b;
        }
        C2823wd0 c2823wd02 = c2823wd0;
        I70 i70 = y90.n;
        if (i70 == null) {
            i70 = I70.d;
        }
        I70 i702 = i70;
        C2433sX c2433sX = y90.f421o;
        AbstractC2190pt abstractC2190pt = y90.p;
        if (abstractC2190pt == null) {
            abstractC2190pt = C2103oy.a;
        }
        Y90 y902 = new Y90(interfaceC2920xe03, j2, oa2, ma2, na2, abstractC1397hc02, str2, j4, c1494id2, c3015ye02, c2138pM2, j6, c2823wd02, i702, c2433sX, abstractC2190pt);
        FV fv = c0733af0.b;
        int i = GV.b;
        int i2 = fv.a;
        int i3 = 5;
        if (i2 == Integer.MIN_VALUE) {
            i2 = 5;
        }
        int i4 = fv.b;
        if (i4 == 3) {
            int iOrdinal = enumC1280gK.ordinal();
            if (iOrdinal == 0) {
                i3 = 4;
            } else if (iOrdinal != 1) {
                throw new C2170pj();
            }
        } else if (i4 == Integer.MIN_VALUE) {
            int iOrdinal2 = enumC1280gK.ordinal();
            if (iOrdinal2 == 0) {
                i3 = 1;
            } else {
                if (iOrdinal2 != 1) {
                    throw new C2170pj();
                }
                i3 = 2;
            }
        } else {
            i3 = i4;
        }
        long j7 = fv.c;
        if ((j7 & 1095216660480L) == 0) {
            j7 = GV.a;
        }
        C3110ze0 c3110ze0 = fv.d;
        if (c3110ze0 == null) {
            c3110ze0 = C3110ze0.c;
        }
        C1579jX c1579jX = fv.e;
        C3110ze0 c3110ze02 = c3110ze0;
        C1947nL c1947nL = fv.f;
        int i5 = fv.g;
        if (i5 == 0) {
            i5 = C1473iL.b;
        }
        int i6 = fv.h;
        if (i6 == Integer.MIN_VALUE) {
            i6 = 1;
        }
        Se0 se0 = fv.i;
        if (se0 == null) {
            se0 = Se0.c;
        }
        return new C0733af0(y902, new FV(i2, i3, j7, c3110ze02, c1579jX, c1947nL, i5, i6, se0), c0733af0.c);
    }

    public static final C1086eI F(T00 t00) {
        return new C1086eI(Math.round(t00.a), Math.round(t00.b), Math.round(t00.c), Math.round(t00.d));
    }

    public static void G(int i, C0167Gl c0167Gl, C0530Ul c0530Ul, boolean z) {
        float f2 = c0530Ul.d0;
        C3123zl c3123zl = c0530Ul.I;
        int iD = c3123zl.f.d();
        C3123zl c3123zl2 = c0530Ul.K;
        int iD2 = c3123zl2.f.d();
        int iE = c3123zl.e() + iD;
        int iE2 = iD2 - c3123zl2.e();
        if (iD == iD2) {
            f2 = 0.5f;
        } else {
            iD = iE;
            iD2 = iE2;
        }
        int iQ = c0530Ul.q();
        int i2 = (iD2 - iD) - iQ;
        if (iD > iD2) {
            i2 = (iD - iD2) - iQ;
        }
        int i3 = ((int) (i2 > 0 ? (f2 * i2) + 0.5f : f2 * i2)) + iD;
        int i4 = i3 + iQ;
        if (iD > iD2) {
            i4 = i3 - iQ;
        }
        c0530Ul.J(i3, i4);
        w(i + 1, c0167Gl, c0530Ul, z);
    }

    public static void H(int i, C0530Ul c0530Ul, C0167Gl c0167Gl, C0530Ul c0530Ul2, boolean z) {
        float f2 = c0530Ul2.d0;
        C3123zl c3123zl = c0530Ul2.I;
        int iE = c3123zl.e() + c3123zl.f.d();
        C3123zl c3123zl2 = c0530Ul2.K;
        int iD = c3123zl2.f.d() - c3123zl2.e();
        if (iD >= iE) {
            int iQ = c0530Ul2.q();
            if (c0530Ul2.g0 != 8) {
                int i2 = c0530Ul2.r;
                if (i2 == 2) {
                    iQ = (int) (c0530Ul2.d0 * 0.5f * (c0530Ul instanceof C0556Vl ? c0530Ul.q() : c0530Ul.T.q()));
                } else if (i2 == 0) {
                    iQ = iD - iE;
                }
                iQ = Math.max(c0530Ul2.u, iQ);
                int i3 = c0530Ul2.v;
                if (i3 > 0) {
                    iQ = Math.min(i3, iQ);
                }
            }
            int i4 = iE + ((int) ((f2 * ((iD - iE) - iQ)) + 0.5f));
            c0530Ul2.J(i4, iQ + i4);
            w(i + 1, c0167Gl, c0530Ul2, z);
        }
    }

    public static void I(int i, C0167Gl c0167Gl, C0530Ul c0530Ul) {
        float f2 = c0530Ul.e0;
        C3123zl c3123zl = c0530Ul.J;
        int iD = c3123zl.f.d();
        C3123zl c3123zl2 = c0530Ul.L;
        int iD2 = c3123zl2.f.d();
        int iE = c3123zl.e() + iD;
        int iE2 = iD2 - c3123zl2.e();
        if (iD == iD2) {
            f2 = 0.5f;
        } else {
            iD = iE;
            iD2 = iE2;
        }
        int iK = c0530Ul.k();
        int i2 = (iD2 - iD) - iK;
        if (iD > iD2) {
            i2 = (iD - iD2) - iK;
        }
        int i3 = (int) (i2 > 0 ? (f2 * i2) + 0.5f : f2 * i2);
        int i4 = iD + i3;
        int i5 = i4 + iK;
        if (iD > iD2) {
            i4 = iD - i3;
            i5 = i4 - iK;
        }
        c0530Ul.K(i4, i5);
        M(i + 1, c0167Gl, c0530Ul);
    }

    public static void J(int i, C0530Ul c0530Ul, C0167Gl c0167Gl, C0530Ul c0530Ul2) {
        float f2 = c0530Ul2.e0;
        C3123zl c3123zl = c0530Ul2.J;
        int iE = c3123zl.e() + c3123zl.f.d();
        C3123zl c3123zl2 = c0530Ul2.L;
        int iD = c3123zl2.f.d() - c3123zl2.e();
        if (iD >= iE) {
            int iK = c0530Ul2.k();
            if (c0530Ul2.g0 != 8) {
                int i2 = c0530Ul2.s;
                if (i2 == 2) {
                    iK = (int) (f2 * 0.5f * (c0530Ul instanceof C0556Vl ? c0530Ul.k() : c0530Ul.T.k()));
                } else if (i2 == 0) {
                    iK = iD - iE;
                }
                iK = Math.max(c0530Ul2.x, iK);
                int i3 = c0530Ul2.y;
                if (i3 > 0) {
                    iK = Math.min(i3, iK);
                }
            }
            int i4 = iE + ((int) ((f2 * ((iD - iE) - iK)) + 0.5f));
            c0530Ul2.K(i4, iK + i4);
            M(i + 1, c0167Gl, c0530Ul2);
        }
    }

    public static final long K(long j, long j2, long j3, String str) {
        String property;
        int i = AbstractC2631uc0.a;
        try {
            property = System.getProperty(str);
        } catch (SecurityException unused) {
            property = null;
        }
        if (property == null) {
            return j;
        }
        Long lO = AbstractC1299gb0.O(property);
        if (lO == null) {
            throw new IllegalStateException(("System property '" + str + "' has unrecognized value '" + property + '\'').toString());
        }
        long jLongValue = lO.longValue();
        if (j2 <= jLongValue && jLongValue <= j3) {
            return jLongValue;
        }
        throw new IllegalStateException(("System property '" + str + "' should be in range " + j2 + ".." + j3 + ", but is '" + jLongValue + '\'').toString());
    }

    public static int L(int i, String str, int i2) {
        return (int) K(i, 1, (i2 & 8) != 0 ? Api.BaseClientBuilder.API_PRIORITY_OTHER : 2097150, str);
    }

    public static void M(int i, C0167Gl c0167Gl, C0530Ul c0530Ul) {
        boolean z;
        C3123zl c3123zl;
        C3123zl c3123zl2;
        C3123zl c3123zl3;
        C3123zl c3123zl4;
        if (c0530Ul.n) {
            return;
        }
        if (!(c0530Ul instanceof C0556Vl) && c0530Ul.z() && o(c0530Ul)) {
            C0556Vl.V(c0530Ul, c0167Gl, new C1778ld());
        }
        C3123zl c3123zlI = c0530Ul.i(3);
        C3123zl c3123zlI2 = c0530Ul.i(5);
        int iD = c3123zlI.d();
        int iD2 = c3123zlI2.d();
        HashSet hashSet = c3123zlI.a;
        if (hashSet != null && c3123zlI.c) {
            Iterator it = hashSet.iterator();
            while (it.hasNext()) {
                C3123zl c3123zl5 = (C3123zl) it.next();
                C0530Ul c0530Ul2 = c3123zl5.d;
                int i2 = i + 1;
                boolean zO = o(c0530Ul2);
                C3123zl c3123zl6 = c0530Ul2.J;
                C3123zl c3123zl7 = c0530Ul2.L;
                if (c0530Ul2.z() && zO) {
                    C0556Vl.V(c0530Ul2, c0167Gl, new C1778ld());
                }
                boolean z2 = (c3123zl5 == c3123zl6 && (c3123zl4 = c3123zl7.f) != null && c3123zl4.c) || (c3123zl5 == c3123zl7 && (c3123zl3 = c3123zl6.f) != null && c3123zl3.c);
                int i3 = c0530Ul2.p0[1];
                if (i3 != 3 || zO) {
                    if (!c0530Ul2.z()) {
                        if (c3123zl5 == c3123zl6 && c3123zl7.f == null) {
                            int iE = c3123zl6.e() + iD;
                            c0530Ul2.K(iE, c0530Ul2.k() + iE);
                            M(i2, c0167Gl, c0530Ul2);
                        } else if (c3123zl5 == c3123zl7 && c3123zl6.f == null) {
                            int iE2 = iD - c3123zl7.e();
                            c0530Ul2.K(iE2 - c0530Ul2.k(), iE2);
                            M(i2, c0167Gl, c0530Ul2);
                        } else if (z2 && !c0530Ul2.y()) {
                            I(i2, c0167Gl, c0530Ul2);
                        }
                    }
                } else if (i3 == 3 && c0530Ul2.y >= 0 && c0530Ul2.x >= 0 && (c0530Ul2.g0 == 8 || (c0530Ul2.s == 0 && c0530Ul2.W == 0.0f))) {
                    if (!c0530Ul2.y() && !c0530Ul2.F && z2 && !c0530Ul2.y()) {
                        J(i2, c0530Ul, c0167Gl, c0530Ul2);
                    }
                }
            }
        }
        boolean z3 = true;
        z3 = true;
        z3 = true;
        if (c0530Ul instanceof C2604uE) {
            return;
        }
        HashSet hashSet2 = c3123zlI2.a;
        if (hashSet2 != null && c3123zlI2.c) {
            Iterator it2 = hashSet2.iterator();
            while (it2.hasNext()) {
                C3123zl c3123zl8 = (C3123zl) it2.next();
                C0530Ul c0530Ul3 = c3123zl8.d;
                int i4 = i + 1;
                boolean zO2 = o(c0530Ul3);
                C3123zl c3123zl9 = c0530Ul3.J;
                C3123zl c3123zl10 = c0530Ul3.L;
                if (c0530Ul3.z() && zO2) {
                    C0556Vl.V(c0530Ul3, c0167Gl, new C1778ld());
                }
                boolean z4 = (c3123zl8 == c3123zl9 && (c3123zl2 = c3123zl10.f) != null && c3123zl2.c) || (c3123zl8 == c3123zl10 && (c3123zl = c3123zl9.f) != null && c3123zl.c);
                int i5 = c0530Ul3.p0[1];
                if (i5 != 3 || zO2) {
                    if (!c0530Ul3.z()) {
                        if (c3123zl8 == c3123zl9 && c3123zl10.f == null) {
                            int iE3 = c3123zl9.e() + iD2;
                            c0530Ul3.K(iE3, c0530Ul3.k() + iE3);
                            M(i4, c0167Gl, c0530Ul3);
                        } else if (c3123zl8 == c3123zl10 && c3123zl9.f == null) {
                            int iE4 = iD2 - c3123zl10.e();
                            c0530Ul3.K(iE4 - c0530Ul3.k(), iE4);
                            M(i4, c0167Gl, c0530Ul3);
                        } else if (z4 && !c0530Ul3.y()) {
                            I(i4, c0167Gl, c0530Ul3);
                        }
                    }
                } else if (i5 == 3 && c0530Ul3.y >= 0 && c0530Ul3.x >= 0 && (c0530Ul3.g0 == 8 || (c0530Ul3.s == 0 && c0530Ul3.W == 0.0f))) {
                    if (!c0530Ul3.y() && !c0530Ul3.F && z4 && !c0530Ul3.y()) {
                        J(i4, c0530Ul, c0167Gl, c0530Ul3);
                    }
                }
            }
        }
        C3123zl c3123zlI3 = c0530Ul.i(6);
        if (c3123zlI3.a != null && c3123zlI3.c) {
            int iD3 = c3123zlI3.d();
            Iterator it3 = c3123zlI3.a.iterator();
            while (it3.hasNext()) {
                C3123zl c3123zl11 = (C3123zl) it3.next();
                C0530Ul c0530Ul4 = c3123zl11.d;
                int i6 = i + 1;
                boolean zO3 = o(c0530Ul4);
                C3123zl c3123zl12 = c0530Ul4.M;
                if (c0530Ul4.z() && zO3) {
                    C0556Vl.V(c0530Ul4, c0167Gl, new C1778ld());
                }
                if (c0530Ul4.p0[z3 ? 1 : 0] != 3 || zO3) {
                    if (!c0530Ul4.z()) {
                        if (c3123zl11 == c3123zl12) {
                            int iE5 = c3123zl11.e() + iD3;
                            if (c0530Ul4.E) {
                                int i7 = iE5 - c0530Ul4.a0;
                                int i8 = c0530Ul4.V + i7;
                                c0530Ul4.Z = i7;
                                c0530Ul4.J.l(i7);
                                c0530Ul4.L.l(i8);
                                c3123zl12.l(iE5);
                                z = z3 ? 1 : 0;
                                c0530Ul4.l = z;
                            } else {
                                z = z3 ? 1 : 0;
                            }
                            M(i6, c0167Gl, c0530Ul4);
                        }
                        z3 = z;
                    }
                }
                z = z3 ? 1 : 0;
                z3 = z;
            }
        }
        c0530Ul.n = z3;
    }

    public static void N(Bundle bundle, Object obj) {
        if (obj instanceof Double) {
            bundle.putDouble("value", ((Double) obj).doubleValue());
        } else if (obj instanceof Long) {
            bundle.putLong("value", ((Long) obj).longValue());
        } else {
            bundle.putString("value", obj.toString());
        }
    }

    public static Object O(Bundle bundle, String str, Class cls, Object obj) {
        Object obj2 = bundle.get(str);
        if (obj2 == null) {
            return obj;
        }
        if (cls.isAssignableFrom(obj2.getClass())) {
            return obj2;
        }
        String canonicalName = cls.getCanonicalName();
        String canonicalName2 = obj2.getClass().getCanonicalName();
        StringBuilder sb = new StringBuilder("Invalid conditional user property field type. '");
        sb.append(str);
        sb.append("' expected [");
        sb.append(canonicalName);
        sb.append("] but was [");
        throw new IllegalStateException(AbstractC2462sn.n(sb, canonicalName2, "]"));
    }

    public static C1239ft0 P() {
        String str;
        ClassLoader classLoader = AbstractC2001nt0.class.getClassLoader();
        if (C1239ft0.class.equals(C1239ft0.class)) {
            str = "com.google.protobuf.BlazeGeneratedExtensionRegistryLiteLoader";
        } else {
            if (!C1239ft0.class.getPackage().equals(AbstractC2001nt0.class.getPackage())) {
                throw new IllegalArgumentException(C1239ft0.class.getName());
            }
            str = C1239ft0.class.getPackage().getName() + ".BlazeGenerated" + C1239ft0.class.getSimpleName() + "Loader";
        }
        try {
            try {
                try {
                    AbstractC2462sn.s(Class.forName(str, true, classLoader).getConstructor(null).newInstance(null));
                    throw null;
                } catch (IllegalAccessException e2) {
                    throw new IllegalStateException(e2);
                } catch (InvocationTargetException e3) {
                    throw new IllegalStateException(e3);
                }
            } catch (InstantiationException e4) {
                throw new IllegalStateException(e4);
            } catch (NoSuchMethodException e5) {
                throw new IllegalStateException(e5);
            }
        } catch (ClassNotFoundException unused) {
            try {
                Iterator it = Arrays.asList(new AbstractC2001nt0[0]).iterator();
                ArrayList arrayList = new ArrayList();
                while (it.hasNext()) {
                    try {
                        if (it.next() == null) {
                            throw null;
                        }
                        throw new ClassCastException();
                    } catch (ServiceConfigurationError e6) {
                        Logger.getLogger(Zs0.class.getName()).logp(Level.SEVERE, "com.google.protobuf.GeneratedExtensionRegistryLoader", "load", "Unable to load ".concat(C1239ft0.class.getSimpleName()), (Throwable) e6);
                    }
                }
                if (arrayList.size() == 1) {
                    return (C1239ft0) arrayList.get(0);
                }
                if (arrayList.size() == 0) {
                    return null;
                }
                try {
                    return (C1239ft0) C1239ft0.class.getMethod("combine", Collection.class).invoke(null, arrayList);
                } catch (IllegalAccessException e7) {
                    throw new IllegalStateException(e7);
                } catch (NoSuchMethodException e8) {
                    throw new IllegalStateException(e8);
                } catch (InvocationTargetException e9) {
                    throw new IllegalStateException(e9);
                }
            } catch (Throwable th) {
                throw new ServiceConfigurationError(th.getMessage(), th);
            }
        }
    }

    public static final void a(int i, int i2, C0321Mk c0321Mk, NC nc) {
        int i3;
        NC nc2;
        NC nc3;
        C0321Mk c0321Mk2 = c0321Mk;
        c0321Mk2.X(-1053524995);
        int i4 = i2 & 1;
        if (i4 != 0) {
            i3 = i | 6;
        } else {
            i3 = i | (c0321Mk.h(nc) ? 4 : 2);
        }
        if ((i3 & 3) == 2 && c0321Mk2.z()) {
            c0321Mk2.Q();
            nc3 = nc;
        } else {
            J7 j7 = C0140Fk.a;
            if (i4 != 0) {
                c0321Mk2.V(-250178170);
                Object objK = c0321Mk2.K();
                if (objK == j7) {
                    objK = new C0781b40(3);
                    c0321Mk2.f0(objK);
                }
                c0321Mk2.q(false);
                nc2 = (NC) objK;
            } else {
                nc2 = nc;
            }
            Context context = (Context) c0321Mk2.j(N3.b);
            c0321Mk2.V(-250175898);
            Object objK2 = c0321Mk2.K();
            if (objK2 == j7) {
                objK2 = AbstractC0752ap.X(Boolean.FALSE);
                c0321Mk2.f0(objK2);
            }
            InterfaceC1191fR interfaceC1191fR = (InterfaceC1191fR) objK2;
            c0321Mk2.q(false);
            C2867x1 c2867x1 = new C2867x1(2);
            c0321Mk2.V(-250167816);
            boolean z = (i3 & 14) == 4;
            Object objK3 = c0321Mk2.K();
            if (z || objK3 == j7) {
                objK3 = new C0487Su(nc2, interfaceC1191fR, 0);
                c0321Mk2.f0(objK3);
            }
            c0321Mk2.q(false);
            C2328rN c2328rNZ = C2887xC.z(c2867x1, (OC) objK3, c0321Mk2, 0);
            Z40 z40G = androidx.compose.foundation.a.g(c0321Mk2);
            FillElement fillElement = androidx.compose.foundation.layout.c.b;
            MP mpA = androidx.compose.foundation.a.a(fillElement, new C2232qL(AbstractC0008Ai.S(new C0190Hi(AbstractC1048du.a), new C0190Hi(AbstractC1048du.b), new C0190Hi(AbstractC1048du.c)), 0L, (Float.floatToRawIntBits(1000.0f) << 32) | (Float.floatToRawIntBits(1400.0f) & 4294967295L)));
            C0159Gd c0159Gd = C0669Zu.m;
            InterfaceC2235qO interfaceC2235qOD = AbstractC3109ze.d(c0159Gd, false);
            int iHashCode = Long.hashCode(c0321Mk2.R);
            AW awL = c0321Mk2.l();
            MP mpF = AbstractC1692kh0.F(c0321Mk2, mpA);
            InterfaceC0062Ck.b.getClass();
            C0744al c0744al = C0036Bk.b;
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al);
            } else {
                c0321Mk2.i0();
            }
            C0975d6 c0975d6 = C0036Bk.f;
            AbstractC2378rs0.f0(interfaceC2235qOD, c0321Mk2, c0975d6);
            C0975d6 c0975d62 = C0036Bk.e;
            AbstractC2378rs0.f0(awL, c0321Mk2, c0975d62);
            C0975d6 c0975d63 = C0036Bk.i;
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode))) {
                AbstractC2462sn.r(iHashCode, c0321Mk2, iHashCode, c0975d63);
            }
            C0975d6 c0975d64 = C0036Bk.c;
            AbstractC2378rs0.f0(mpF, c0321Mk2, c0975d64);
            MP mpH = androidx.compose.foundation.a.h(fillElement, z40G);
            C0790b9 c0790b9 = AbstractC0981d9.c;
            C0579Wi c0579WiA = AbstractC0527Ui.a(c0790b9, C0669Zu.y, c0321Mk2, 0);
            NC nc4 = nc2;
            int iHashCode2 = Long.hashCode(c0321Mk2.R);
            AW awL2 = c0321Mk2.l();
            MP mpF2 = AbstractC1692kh0.F(c0321Mk2, mpH);
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al);
            } else {
                c0321Mk2.i0();
            }
            AbstractC2378rs0.f0(c0579WiA, c0321Mk2, c0975d6);
            AbstractC2378rs0.f0(awL2, c0321Mk2, c0975d62);
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode2))) {
                AbstractC2462sn.r(iHashCode2, c0321Mk2, iHashCode2, c0975d63);
            }
            AbstractC2378rs0.f0(mpF2, c0321Mk2, c0975d64);
            JP jp = JP.a;
            MP mpC = androidx.compose.foundation.layout.c.c(androidx.compose.foundation.layout.c.b(jp, 1.0f), 190);
            InterfaceC2235qO interfaceC2235qOD2 = AbstractC3109ze.d(c0159Gd, false);
            int iHashCode3 = Long.hashCode(c0321Mk2.R);
            AW awL3 = c0321Mk2.l();
            MP mpF3 = AbstractC1692kh0.F(c0321Mk2, mpC);
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al);
            } else {
                c0321Mk2.i0();
            }
            AbstractC2378rs0.f0(interfaceC2235qOD2, c0321Mk2, c0975d6);
            AbstractC2378rs0.f0(awL3, c0321Mk2, c0975d62);
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode3))) {
                AbstractC2462sn.r(iHashCode3, c0321Mk2, iHashCode3, c0975d63);
            }
            AbstractC2378rs0.f0(mpF3, c0321Mk2, c0975d64);
            YT.c(AbstractC0752ap.Y(R.drawable.vam_asan_header, c0321Mk2), "هدر سامانه ابلاغ", fillElement, null, C2460sm.a, 0.0f, c0321Mk2, 25008, 104);
            AbstractC3109ze.a(androidx.compose.foundation.a.b(fillElement, C0190Hi.b(0.78f, AbstractC0752ap.c(4278849300L)), AbstractC2841wm0.j), c0321Mk2, 6);
            C0159Gd c0159Gd2 = C0669Zu.q;
            androidx.compose.foundation.layout.a aVar = androidx.compose.foundation.layout.a.a;
            MP mpG = androidx.compose.foundation.layout.b.g(androidx.compose.foundation.layout.b.c(aVar.a(jp, c0159Gd2), -28), 24, 0.0f, 2);
            C0579Wi c0579WiA2 = AbstractC0527Ui.a(c0790b9, C0669Zu.z, c0321Mk2, 48);
            int iHashCode4 = Long.hashCode(c0321Mk2.R);
            AW awL4 = c0321Mk2.l();
            MP mpF4 = AbstractC1692kh0.F(c0321Mk2, mpG);
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al);
            } else {
                c0321Mk2.i0();
            }
            AbstractC2378rs0.f0(c0579WiA2, c0321Mk2, c0975d6);
            AbstractC2378rs0.f0(awL4, c0321Mk2, c0975d62);
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode4))) {
                AbstractC2462sn.r(iHashCode4, c0321Mk2, iHashCode4, c0975d63);
            }
            AbstractC2378rs0.f0(mpF4, c0321Mk2, c0975d64);
            long j = C0190Hi.c;
            Ke0.b("سامانه ابلاغ الکترونیک", null, j, C1884mi0.C(22), OA.r, 0L, null, 0L, 0, false, 0, 0, new C0733af0(0L, 0L, null, 0L, new I70(14.0f, C0190Hi.b(0.55f, C0190Hi.b), (Float.floatToRawIntBits(0.0f) << 32) | (Float.floatToRawIntBits(3.0f) & 4294967295L)), 0, 0L, 16769023), c0321Mk, 1597830, 12582912, 130986);
            C2887xC.e(c0321Mk, androidx.compose.foundation.layout.c.c(jp, 6));
            Ke0.b("پرداخت هزینه بررسی شکوائیه و ثبت نهایی درخواست", null, C0190Hi.b(0.85f, j), C1884mi0.C(13), OA.f264o, 0L, new Yc0(3), C1884mi0.C(20), 0, false, 0, 0, null, c0321Mk, 1597830, 48, 258986);
            c0321Mk.q(true);
            c0321Mk.q(true);
            MP mpC2 = androidx.compose.foundation.layout.b.c(androidx.compose.foundation.layout.b.g(androidx.compose.foundation.layout.c.b(jp, 1.0f), 20, 0.0f, 2), -38);
            C0159Gd c0159Gd3 = C0669Zu.n;
            InterfaceC2235qO interfaceC2235qOD3 = AbstractC3109ze.d(c0159Gd3, false);
            int iHashCode5 = Long.hashCode(c0321Mk.R);
            AW awL5 = c0321Mk.l();
            MP mpF5 = AbstractC1692kh0.F(c0321Mk, mpC2);
            c0321Mk.Y();
            if (c0321Mk.Q) {
                c0321Mk.k(c0744al);
            } else {
                c0321Mk.i0();
            }
            AbstractC2378rs0.f0(interfaceC2235qOD3, c0321Mk, c0975d6);
            AbstractC2378rs0.f0(awL5, c0321Mk, c0975d62);
            if (c0321Mk.Q || !F3.c(c0321Mk.K(), Integer.valueOf(iHashCode5))) {
                AbstractC2462sn.r(iHashCode5, c0321Mk, iHashCode5, c0975d63);
            }
            AbstractC2378rs0.f0(mpF5, c0321Mk, c0975d64);
            float f2 = 22;
            MP mpN = Co0.N(androidx.compose.foundation.layout.c.b(jp, 1.0f), 10, AbstractC2397s30.a(f2));
            C2302r30 c2302r30A = AbstractC2397s30.a(f2);
            C0058Cg c0058CgI = C2887xC.i(AbstractC1048du.f, c0321Mk, 6);
            float f3 = 1;
            long j2 = AbstractC1048du.g;
            YT.a(mpN, c2302r30A, c0058CgI, C2887xC.j(62, 0), AbstractC1155f00.a(f3, j2), C2887xC.y(1152689906, new C0539Uu(context, c2328rNZ, nc4, interfaceC1191fR, 0), c0321Mk), c0321Mk, 221184, 0);
            Nb0.a(androidx.compose.foundation.layout.b.c(aVar.a(androidx.compose.foundation.layout.c.h(jp, 84), c0159Gd3), -42), AbstractC2397s30.a, j, 0L, 0.0f, 16, AbstractC1155f00.a(f3, j2), AbstractC1316gk.b, c0321Mk, 14352768, 24);
            c0321Mk.q(true);
            C2887xC.e(c0321Mk, androidx.compose.foundation.layout.c.c(jp, 8));
            float f4 = 28;
            Ke0.b("پرداخت شما صرفاً جهت هزینه استعلام و بررسی ابلاغیه بوده و اطلاعات پرداخت به\u200cصورت امن و محرمانه نگهداری می\u200cشود.", androidx.compose.foundation.layout.b.g(androidx.compose.foundation.layout.c.b(jp, 1.0f), f4, 0.0f, 2), AbstractC1048du.e, C1884mi0.C(11), null, 0L, new Yc0(3), C1884mi0.C(16), 0, false, 0, 0, null, c0321Mk, 25014, 48, 259048);
            c0321Mk2 = c0321Mk;
            C2887xC.e(c0321Mk2, androidx.compose.foundation.layout.c.c(jp, f4));
            c0321Mk2.q(true);
            c0321Mk2.q(true);
            nc3 = nc4;
        }
        L00 l00S = c0321Mk2.s();
        if (l00S != null) {
            l00S.d = new C1432hu(nc3, i, i2, 2);
        }
    }

    public static final void b(int i, C0321Mk c0321Mk) {
        c0321Mk.X(1838743751);
        if ((i & 3) == 2 && c0321Mk.z()) {
            c0321Mk.Q();
        } else {
            AbstractC3109ze.a(androidx.compose.foundation.a.a(androidx.compose.foundation.layout.c.c(JP.a, 2), J7.r(AbstractC0008Ai.S(new C0190Hi(AbstractC1048du.h), new C0190Hi(AbstractC1048du.i)))), c0321Mk, 0);
        }
        L00 l00S = c0321Mk.s();
        if (l00S != null) {
            l00S.d = new X8(i, 9);
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:30:0x00a4  */
    /* JADX WARN: Removed duplicated region for block: B:37:0x00d9  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final void c(int r21, java.lang.String r22, boolean r23, boolean r24, o.C0321Mk r25, int r26) {
        /*
            Method dump skipped, instructions count: 290
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC2001nt0.c(int, java.lang.String, boolean, boolean, o.Mk, int):void");
    }

    public static final void d(int i, C0321Mk c0321Mk) {
        C0321Mk c0321Mk2 = c0321Mk;
        c0321Mk2.X(1588434356);
        if (i == 0 && c0321Mk2.z()) {
            c0321Mk2.Q();
        } else {
            C0579Wi c0579WiA = AbstractC0527Ui.a(AbstractC0981d9.c, C0669Zu.z, c0321Mk2, 48);
            int iHashCode = Long.hashCode(c0321Mk2.R);
            AW awL = c0321Mk2.l();
            JP jp = JP.a;
            MP mpF = AbstractC1692kh0.F(c0321Mk2, jp);
            InterfaceC0062Ck.b.getClass();
            C0744al c0744al = C0036Bk.b;
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al);
            } else {
                c0321Mk2.i0();
            }
            C0975d6 c0975d6 = C0036Bk.f;
            AbstractC2378rs0.f0(c0579WiA, c0321Mk2, c0975d6);
            C0975d6 c0975d62 = C0036Bk.e;
            AbstractC2378rs0.f0(awL, c0321Mk2, c0975d62);
            C0975d6 c0975d63 = C0036Bk.i;
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode))) {
                AbstractC2462sn.r(iHashCode, c0321Mk2, iHashCode, c0975d63);
            }
            C0975d6 c0975d64 = C0036Bk.c;
            AbstractC2378rs0.f0(mpF, c0321Mk2, c0975d64);
            Ke0.b("مرحله ۳ از ۳", null, AbstractC1048du.h, C1884mi0.C(12), OA.f264o, 0L, null, 0L, 0, false, 0, 0, null, c0321Mk, 1597830, 0, 262058);
            c0321Mk2 = c0321Mk;
            C2887xC.e(c0321Mk2, androidx.compose.foundation.layout.c.c(jp, 8));
            MP mpB = androidx.compose.foundation.layout.c.b(jp, 1.0f);
            C3062z30 c3062z30A = AbstractC2967y30.a(AbstractC0981d9.e, C0669Zu.w, c0321Mk2, 54);
            int iHashCode2 = Long.hashCode(c0321Mk2.R);
            AW awL2 = c0321Mk2.l();
            MP mpF2 = AbstractC1692kh0.F(c0321Mk2, mpB);
            c0321Mk2.Y();
            if (c0321Mk2.Q) {
                c0321Mk2.k(c0744al);
            } else {
                c0321Mk2.i0();
            }
            AbstractC2378rs0.f0(c3062z30A, c0321Mk2, c0975d6);
            AbstractC2378rs0.f0(awL2, c0321Mk2, c0975d62);
            if (c0321Mk2.Q || !F3.c(c0321Mk2.K(), Integer.valueOf(iHashCode2))) {
                AbstractC2462sn.r(iHashCode2, c0321Mk2, iHashCode2, c0975d63);
            }
            AbstractC2378rs0.f0(mpF2, c0321Mk2, c0975d64);
            c(1, "اطلاعات هویتی", false, true, c0321Mk2, 3510);
            b(6, c0321Mk2);
            c(2, "آپلود مدارک", false, true, c0321Mk2, 3510);
            b(6, c0321Mk2);
            c(3, "پرداخت مبلغ", true, false, c0321Mk2, 3510);
            c0321Mk2.q(true);
            c0321Mk2.q(true);
        }
        L00 l00S = c0321Mk2.s();
        if (l00S != null) {
            l00S.d = new X8(i, 8);
        }
    }

    public static final C1086eI e(long j, long j2) {
        int i = (int) (j >> 32);
        int i2 = (int) (j & 4294967295L);
        return new C1086eI(i, i2, ((int) (j2 >> 32)) + i, ((int) (j2 & 4294967295L)) + i2);
    }

    public static final T00 f(long j, long j2) {
        int i = (int) (j >> 32);
        int i2 = (int) (j & 4294967295L);
        return new T00(Float.intBitsToFloat(i), Float.intBitsToFloat(i2), Float.intBitsToFloat((int) (j2 >> 32)) + Float.intBitsToFloat(i), Float.intBitsToFloat((int) (j2 & 4294967295L)) + Float.intBitsToFloat(i2));
    }

    public static final boolean g(View view, View view2) {
        for (ViewParent parent = view2.getParent(); parent != null; parent = parent.getParent()) {
            if (parent == view.getParent()) {
                return true;
            }
        }
        return false;
    }

    public static final Rect h(InterfaceC0622Xz interfaceC0622Xz, View view, View view2) {
        int[] iArr = new int[2];
        view.getLocationOnScreen(iArr);
        int[] iArr2 = new int[2];
        view2.getLocationOnScreen(iArr2);
        C1556jA c1556jAG = AbstractC0752ap.G(((C0674Zz) interfaceC0622Xz).c);
        T00 t00H = c1556jAG != null ? AbstractC0752ap.H(c1556jAG) : null;
        if (t00H == null) {
            return null;
        }
        int i = (int) t00H.a;
        int i2 = iArr[0];
        int i3 = iArr2[0];
        int i4 = (int) t00H.b;
        int i5 = iArr[1];
        int i6 = iArr2[1];
        return new Rect((i + i2) - i3, (i4 + i5) - i6, (((int) t00H.c) + i2) - i3, (((int) t00H.d) + i5) - i6);
    }

    public static final View i(LP lp) {
        Tj0 tj0 = AbstractC2539te.S(lp.l).y;
        View interopView = tj0 != null ? tj0.getInteropView() : null;
        if (interopView != null) {
            return interopView;
        }
        throw new IllegalStateException("Could not fetch interop view");
    }

    public static final void j(ZQ zq, Object obj, Object obj2) {
        int iF = zq.f(obj);
        boolean z = iF < 0;
        Object obj3 = z ? null : zq.c[iF];
        if (obj3 != null) {
            if (obj3 instanceof C0713aR) {
                ((C0713aR) obj3).a(obj2);
            } else if (obj3 != obj2) {
                C0713aR c0713aR = new C0713aR();
                c0713aR.a(obj3);
                c0713aR.a(obj2);
                obj2 = c0713aR;
            }
            obj2 = obj3;
        }
        if (!z) {
            zq.c[iF] = obj2;
            return;
        }
        int i = ~iF;
        zq.b[i] = obj;
        zq.c[i] = obj2;
    }

    /* JADX WARN: Code restructure failed: missing block: B:13:0x0011, code lost:
    
        if (r5 == false) goto L15;
     */
    /* JADX WARN: Code restructure failed: missing block: B:16:0x0015, code lost:
    
        return r2 - r3;
     */
    /* JADX WARN: Removed duplicated region for block: B:27:0x0026 A[RETURN] */
    /* JADX WARN: Removed duplicated region for block: B:28:0x0027  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final int k(int r2, int r3, int r4, boolean r5) {
        /*
            r0 = 0
            if (r3 < r4) goto L8
            if (r5 == 0) goto L6
            return r0
        L6:
            int r4 = r4 - r3
            return r4
        L8:
            if (r5 != 0) goto Ld
            if (r3 > r2) goto L16
            goto L11
        Ld:
            int r1 = r4 - r3
            if (r1 <= r2) goto L16
        L11:
            if (r5 == 0) goto L14
            goto L21
        L14:
            int r2 = r2 - r3
            return r2
        L16:
            if (r5 == 0) goto L1b
            if (r3 > r2) goto L24
            goto L1f
        L1b:
            int r1 = r4 - r3
            if (r1 <= r2) goto L24
        L1f:
            if (r5 != 0) goto L22
        L21:
            return r2
        L22:
            int r2 = r2 - r3
            return r2
        L24:
            if (r5 != 0) goto L27
            return r0
        L27:
            int r4 = r4 - r3
            return r4
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC2001nt0.k(int, int, int, boolean):int");
    }

    /* JADX WARN: Removed duplicated region for block: B:29:0x0077  */
    /* JADX WARN: Removed duplicated region for block: B:35:0x0086  */
    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final java.lang.Object l(o.WK r5, o.AbstractC0298Lm r6) throws java.lang.Throwable {
        /*
            boolean r0 = r6 instanceof o.C0962d
            if (r0 == 0) goto L13
            r0 = r6
            o.d r0 = (o.C0962d) r0
            int r1 = r0.r
            r2 = -2147483648(0xffffffff80000000, float:-0.0)
            r3 = r1 & r2
            if (r3 == 0) goto L13
            int r1 = r1 - r2
            r0.r = r1
            goto L18
        L13:
            o.d r0 = new o.d
            r0.<init>(r6)
        L18:
            java.lang.Object r6 = r0.q
            int r1 = r0.r
            o.Oh0 r2 = o.Oh0.a
            r3 = 1
            if (r1 == 0) goto L35
            if (r1 != r3) goto L2d
            o.B10 r5 = r0.p
            o.WK r0 = r0.f483o
            o.IJ.H(r6)     // Catch: java.lang.Throwable -> L2b
            goto L71
        L2b:
            r6 = move-exception
            goto L80
        L2d:
            java.lang.IllegalStateException r5 = new java.lang.IllegalStateException
            java.lang.String r6 = "call to 'resume' before 'invoke' with coroutine"
            r5.<init>(r6)
            throw r5
        L35:
            o.IJ.H(r6)
            o.VK r6 = r5.b()
            o.VK r1 = o.VK.f372o
            boolean r6 = r6.a(r1)
            if (r6 == 0) goto L45
            goto L7a
        L45:
            o.B10 r6 = new o.B10
            r6.<init>()
            r0.f483o = r5     // Catch: java.lang.Throwable -> L7b
            r0.p = r6     // Catch: java.lang.Throwable -> L7b
            r0.r = r3     // Catch: java.lang.Throwable -> L7b
            o.sg r1 = new o.sg     // Catch: java.lang.Throwable -> L7b
            o.Im r0 = o.AbstractC2539te.G(r0)     // Catch: java.lang.Throwable -> L7b
            r1.<init>(r3, r0)     // Catch: java.lang.Throwable -> L7b
            r1.r()     // Catch: java.lang.Throwable -> L7b
            o.e r0 = new o.e     // Catch: java.lang.Throwable -> L7b
            r0.<init>(r1)     // Catch: java.lang.Throwable -> L7b
            r6.l = r0     // Catch: java.lang.Throwable -> L7b
            r5.a(r0)     // Catch: java.lang.Throwable -> L7b
            java.lang.Object r0 = r1.q()     // Catch: java.lang.Throwable -> L7b
            o.Dn r1 = o.EnumC0091Dn.l
            if (r0 != r1) goto L6f
            return r1
        L6f:
            r0 = r5
            r5 = r6
        L71:
            java.lang.Object r5 = r5.l
            o.bL r5 = (o.InterfaceC0803bL) r5
            if (r5 == 0) goto L7a
            r0.c(r5)
        L7a:
            return r2
        L7b:
            r0 = move-exception
            r4 = r0
            r0 = r5
            r5 = r6
            r6 = r4
        L80:
            java.lang.Object r5 = r5.l
            o.bL r5 = (o.InterfaceC0803bL) r5
            if (r5 == 0) goto L89
            r0.c(r5)
        L89:
            throw r6
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC2001nt0.l(o.WK, o.Lm):java.lang.Object");
    }

    public static N9 m() throws InterruptedException {
        N9 n9 = N9.l.f;
        if (n9 == null) {
            long jNanoTime = System.nanoTime();
            N9.i.await(N9.j, TimeUnit.MILLISECONDS);
            if (N9.l.f != null || System.nanoTime() - jNanoTime < N9.k) {
                return null;
            }
            return N9.l;
        }
        long jNanoTime2 = n9.g - System.nanoTime();
        if (jNanoTime2 > 0) {
            N9.i.await(jNanoTime2, TimeUnit.NANOSECONDS);
            return null;
        }
        N9.l.f = n9.f;
        n9.f = null;
        return n9;
    }

    public static void n(Ib0 ib0, Object[] objArr) {
        if (objArr == null) {
            return;
        }
        int length = objArr.length;
        int i = 0;
        while (i < length) {
            Object obj = objArr[i];
            i++;
            if (obj == null) {
                ib0.r(i);
            } else if (obj instanceof byte[]) {
                ib0.E(i, (byte[]) obj);
            } else if (obj instanceof Float) {
                ib0.p(((Number) obj).floatValue(), i);
            } else if (obj instanceof Double) {
                ib0.p(((Number) obj).doubleValue(), i);
            } else if (obj instanceof Long) {
                ib0.B(i, ((Number) obj).longValue());
            } else if (obj instanceof Integer) {
                ib0.B(i, ((Number) obj).intValue());
            } else if (obj instanceof Short) {
                ib0.B(i, ((Number) obj).shortValue());
            } else if (obj instanceof Byte) {
                ib0.B(i, ((Number) obj).byteValue());
            } else if (obj instanceof String) {
                ib0.k(i, (String) obj);
            } else {
                if (!(obj instanceof Boolean)) {
                    throw new IllegalArgumentException("Cannot bind " + obj + " at index " + i + " Supported types: Null, ByteArray, Float, Double, Long, Int, Short, Byte, String");
                }
                ib0.B(i, ((Boolean) obj).booleanValue() ? 1L : 0L);
            }
        }
    }

    public static boolean o(C0530Ul c0530Ul) {
        int[] iArr = c0530Ul.p0;
        int i = iArr[0];
        int i2 = iArr[1];
        C0530Ul c0530Ul2 = c0530Ul.T;
        C0556Vl c0556Vl = c0530Ul2 != null ? (C0556Vl) c0530Ul2 : null;
        if (c0556Vl != null) {
            int i3 = c0556Vl.p0[0];
        }
        if (c0556Vl != null) {
            int i4 = c0556Vl.p0[1];
        }
        boolean z = i == 1 || c0530Ul.A() || i == 2 || (i == 3 && c0530Ul.r == 0 && c0530Ul.W == 0.0f && c0530Ul.t(0)) || (i == 3 && c0530Ul.r == 1 && c0530Ul.u(0, c0530Ul.q()));
        boolean z2 = i2 == 1 || c0530Ul.B() || i2 == 2 || (i2 == 3 && c0530Ul.s == 0 && c0530Ul.W == 0.0f && c0530Ul.t(1)) || (i2 == 3 && c0530Ul.s == 1 && c0530Ul.u(1, c0530Ul.k()));
        return (c0530Ul.W > 0.0f && (z || z2)) || (z && z2);
    }

    public static void p(String str) {
        if (str.length() <= 0) {
            throw new IllegalArgumentException("name is empty");
        }
        int length = str.length();
        for (int i = 0; i < length; i++) {
            char cCharAt = str.charAt(i);
            if ('!' > cCharAt || cCharAt >= 127) {
                throw new IllegalArgumentException(AbstractC2264qi0.h("Unexpected char %#04x at %d in header name: %s", Integer.valueOf(cCharAt), Integer.valueOf(i), str).toString());
            }
        }
    }

    public static void q(String str, String str2) {
        int length = str.length();
        for (int i = 0; i < length; i++) {
            char cCharAt = str.charAt(i);
            if (cCharAt != '\t' && (' ' > cCharAt || cCharAt >= 127)) {
                StringBuilder sb = new StringBuilder();
                sb.append(AbstractC2264qi0.h("Unexpected char %#04x at %d in %s value", Integer.valueOf(cCharAt), Integer.valueOf(i), str2));
                sb.append(AbstractC2264qi0.p(str2) ? "" : ": ".concat(str));
                throw new IllegalArgumentException(sb.toString().toString());
            }
        }
    }

    public static final double r(int i, int i2, int i3, int i4, int i5) {
        double d2 = i3 / i;
        double d3 = i4 / i2;
        int iW = AbstractC2462sn.w(i5);
        if (iW == 0) {
            return Math.max(d2, d3);
        }
        if (iW == 1) {
            return Math.min(d2, d3);
        }
        throw new C2170pj();
    }

    public static ZQ s() {
        long[] jArr = AbstractC3064z40.a;
        return new ZQ();
    }

    public static final boolean t(long j, long j2) {
        return j == j2;
    }

    public static final int u(OA oa, int i) {
        boolean z = F3.m(oa.l, OA.m.l) >= 0;
        boolean z2 = i == 1;
        if (z2 && z) {
            return 3;
        }
        if (z) {
            return 1;
        }
        return z2 ? 2 : 0;
    }

    public static final CG v() {
        CG cg = e;
        if (cg != null) {
            return cg;
        }
        BG bg = new BG("Filled.Close", 24.0f, 24.0f, 24.0f, 24.0f, 0L, 0, false, 96);
        int i = Zi0.a;
        Q90 q90 = new Q90(C0190Hi.b);
        KE ke = new KE(1);
        ke.l(19.0f, 6.41f);
        ke.j(17.59f, 5.0f);
        ke.j(12.0f, 10.59f);
        ke.j(6.41f, 5.0f);
        ke.j(5.0f, 6.41f);
        ke.j(10.59f, 12.0f);
        ke.j(5.0f, 17.59f);
        ke.j(6.41f, 19.0f);
        ke.j(12.0f, 13.41f);
        ke.j(17.59f, 19.0f);
        ke.j(19.0f, 17.59f);
        ke.j(13.41f, 12.0f);
        ke.e();
        BG.a(bg, ke.a, q90);
        CG cgB = bg.b();
        e = cgB;
        return cgB;
    }

    public static void w(int i, C0167Gl c0167Gl, C0530Ul c0530Ul, boolean z) {
        C3123zl c3123zl;
        C3123zl c3123zl2;
        boolean z2;
        C3123zl c3123zl3;
        C3123zl c3123zl4;
        if (c0530Ul.m) {
            return;
        }
        if (!(c0530Ul instanceof C0556Vl) && c0530Ul.z() && o(c0530Ul)) {
            C0556Vl.V(c0530Ul, c0167Gl, new C1778ld());
        }
        C3123zl c3123zlI = c0530Ul.i(2);
        C3123zl c3123zlI2 = c0530Ul.i(4);
        int iD = c3123zlI.d();
        int iD2 = c3123zlI2.d();
        HashSet hashSet = c3123zlI.a;
        if (hashSet != null && c3123zlI.c) {
            Iterator it = hashSet.iterator();
            while (it.hasNext()) {
                C3123zl c3123zl5 = (C3123zl) it.next();
                C0530Ul c0530Ul2 = c3123zl5.d;
                int i2 = i + 1;
                boolean zO = o(c0530Ul2);
                C3123zl c3123zl6 = c0530Ul2.I;
                C3123zl c3123zl7 = c0530Ul2.K;
                if (c0530Ul2.z() && zO) {
                    z2 = true;
                    C0556Vl.V(c0530Ul2, c0167Gl, new C1778ld());
                } else {
                    z2 = true;
                }
                boolean z3 = ((c3123zl5 == c3123zl6 && (c3123zl4 = c3123zl7.f) != null && c3123zl4.c) || (c3123zl5 == c3123zl7 && (c3123zl3 = c3123zl6.f) != null && c3123zl3.c)) ? z2 : false;
                int i3 = c0530Ul2.p0[0];
                if (i3 != 3 || zO) {
                    if (!c0530Ul2.z()) {
                        if (c3123zl5 == c3123zl6 && c3123zl7.f == null) {
                            int iE = c3123zl6.e() + iD;
                            c0530Ul2.J(iE, c0530Ul2.q() + iE);
                            w(i2, c0167Gl, c0530Ul2, z);
                        } else if (c3123zl5 == c3123zl7 && c3123zl6.f == null) {
                            int iE2 = iD - c3123zl7.e();
                            c0530Ul2.J(iE2 - c0530Ul2.q(), iE2);
                            w(i2, c0167Gl, c0530Ul2, z);
                        } else if (z3 && !c0530Ul2.x()) {
                            G(i2, c0167Gl, c0530Ul2, z);
                        }
                    }
                } else if (i3 == 3 && c0530Ul2.v >= 0 && c0530Ul2.u >= 0 && (c0530Ul2.g0 == 8 || (c0530Ul2.r == 0 && c0530Ul2.W == 0.0f))) {
                    if (!c0530Ul2.x() && !c0530Ul2.F && z3 && !c0530Ul2.x()) {
                        H(i2, c0530Ul, c0167Gl, c0530Ul2, z);
                    }
                }
            }
        }
        if (c0530Ul instanceof C2604uE) {
            return;
        }
        HashSet hashSet2 = c3123zlI2.a;
        if (hashSet2 != null && c3123zlI2.c) {
            Iterator it2 = hashSet2.iterator();
            while (it2.hasNext()) {
                C3123zl c3123zl8 = (C3123zl) it2.next();
                C0530Ul c0530Ul3 = c3123zl8.d;
                int i4 = i + 1;
                boolean zO2 = o(c0530Ul3);
                C3123zl c3123zl9 = c0530Ul3.I;
                C3123zl c3123zl10 = c0530Ul3.K;
                if (c0530Ul3.z() && zO2) {
                    C0556Vl.V(c0530Ul3, c0167Gl, new C1778ld());
                }
                boolean z4 = (c3123zl8 == c3123zl9 && (c3123zl2 = c3123zl10.f) != null && c3123zl2.c) || (c3123zl8 == c3123zl10 && (c3123zl = c3123zl9.f) != null && c3123zl.c);
                int i5 = c0530Ul3.p0[0];
                if (i5 != 3 || zO2) {
                    if (!c0530Ul3.z()) {
                        if (c3123zl8 == c3123zl9 && c3123zl10.f == null) {
                            int iE3 = c3123zl9.e() + iD2;
                            c0530Ul3.J(iE3, c0530Ul3.q() + iE3);
                            w(i4, c0167Gl, c0530Ul3, z);
                        } else if (c3123zl8 == c3123zl10 && c3123zl9.f == null) {
                            int iE4 = iD2 - c3123zl10.e();
                            c0530Ul3.J(iE4 - c0530Ul3.q(), iE4);
                            w(i4, c0167Gl, c0530Ul3, z);
                        } else if (z4 && !c0530Ul3.x()) {
                            G(i4, c0167Gl, c0530Ul3, z);
                        }
                    }
                } else if (i5 == 3 && c0530Ul3.v >= 0 && c0530Ul3.u >= 0) {
                    if (c0530Ul3.g0 == 8 || (c0530Ul3.r == 0 && c0530Ul3.W == 0.0f)) {
                        if (!c0530Ul3.x() && !c0530Ul3.F && z4 && !c0530Ul3.x()) {
                            H(i4, c0530Ul, c0167Gl, c0530Ul3, z);
                        }
                    }
                }
            }
        }
        c0530Ul.m = true;
    }

    public static boolean x(byte b2) {
        return b2 > -65;
    }

    public static InterfaceC3085zK y(int i, NC nc) {
        C0669Zu c0669Zu = C0669Zu.b0;
        int iW = AbstractC2462sn.w(i);
        if (iW == 0) {
            return new C1014dc0(nc);
        }
        if (iW == 1) {
            W30 w30 = new W30();
            w30.l = nc;
            w30.m = c0669Zu;
            return w30;
        }
        if (iW != 2) {
            throw new C2170pj();
        }
        Wh0 wh0 = new Wh0();
        wh0.l = nc;
        wh0.m = c0669Zu;
        return wh0;
    }

    public static LE z(String... strArr) {
        if (strArr.length % 2 != 0) {
            throw new IllegalArgumentException("Expected alternating header names and values");
        }
        String[] strArr2 = (String[]) strArr.clone();
        int length = strArr2.length;
        int i = 0;
        for (int i2 = 0; i2 < length; i2++) {
            String str = strArr2[i2];
            if (str == null) {
                throw new IllegalArgumentException("Headers cannot be null");
            }
            strArr2[i2] = Za0.o0(str).toString();
        }
        int iR = AbstractC1155f00.r(0, strArr2.length - 1, 2);
        if (iR >= 0) {
            while (true) {
                String str2 = strArr2[i];
                String str3 = strArr2[i + 1];
                p(str2);
                q(str3, str2);
                if (i == iR) {
                    break;
                }
                i += 2;
            }
        }
        return new LE(strArr2);
    }
}
