package com.apiguard3;

import X.3GY;
import X.7lW;
import X.8e1;
import X.8e2;
import X.8eG;
import X.8eL;
import android.app.Application;
import android.content.Context;
import android.graphics.Color;
import android.graphics.ImageFormat;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.media.AudioTrack;
import android.os.Process;
import android.os.SystemClock;
import android.telephony.PhoneNumberUtils;
import android.text.AndroidCharacter;
import android.text.TextUtils;
import android.util.Pair;
import android.util.TypedValue;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.widget.ExpandableListView;
import androidx.localbroadcastmanager.content.LocalBroadcastManager;
import com.apiguard3.domain.Config;
import com.apiguard3.internal.APIGuard$InitializationCallback;
import com.apiguard3.internal.FU;
import com.apiguard3.internal.NotReadyException$getMethod;
import com.apiguard3.internal.SConfig;
import com.apiguard3.internal.checkCertificates;
import com.apiguard3.internal.getMethod;
import com.apiguard3.internal.getState;
import com.apiguard3.internal.log;
import com.apiguard3.internal.onInitializationFailure;
import com.apiguard3.internal.parseResponseHeaders;
import com.bytedance.covode.number.Covode;
import com.bytedance.frameworks.apm.trace.MethodCollector;
import java.io.InputStream;
import java.lang.reflect.Method;
import java.security.cert.Certificate;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;

public class APIGuard {
    public static char AGResponse = 6745;
    public static int AGResponse$Builder = 1;
    public static int AGState = 0;
    public static final int INIT_PROCEED = 2;
    public static char build = 46680;
    public static char getStatusCode = 50212;
    public static APIGuard getUrl;
    public static char[] head = {'a', 'g', 'k', 'b', 'l', 'o', 'c', '.', 'j', 's', 'n', 'C', '\'', 't', ' ', 'r', 'i', 'z', 'd', 'u', 'e', 'h', ':', 'S', 'A', 'F', 'E', 'N', 'I', 'G', 'Q', 'y', 'H', 'f', 'M', 'x', 'P', 'm', 'p', 'q', 'v', 'w', '{', '|', '}', '~', 127, 128, 129};
    public static char headers = 7;
    public static char headersMultiMap = 13668;
    public String AGRequest$Builder = getHeaders("\u0001\u0002\u0003\u0004\u0005\u0006\u0000\u0003\b\t\f\u0002Ô", View.resolveSize(0, 0) + 13, (byte) (TextUtils.indexOf("", '0') + 103)).intern();
    public Object AGRequest$efd69f8;
    public volatile Object addHeader$59961fb8;
    public getMethod delete;
    public ExecutorService get = INVOKESTATIC_com_apiguard3_APIGuard_com_ss_android_ugc_aweme_lancet_thread_ThreadPoolLancet_newSingleThreadExecutor();
    public Object getBody$1cf25108;
    public volatile AGState getHeaders = AGState.APIGuardStateNotReady;
    public final Object getMethod = new Object();
    public String method;
    public volatile Object newBuilder$7637ec1a;
    public Object post$1cbd8146;
    public InitializationCallback put;
    public volatile Object url$6071f473;

    public interface AGRequest {
        static {
            Covode.recordClassIndex(2392);
        }
    }

    public interface Callback {
        static {
            Covode.recordClassIndex(2393);
        }

        void checkCertificates(List<Certificate> list, String str);

        void log(String str);
    }

    public interface InitializationCallback extends Callback {
        static {
            Covode.recordClassIndex(2394);
        }

        void onInitializationFailure(String str);

        void onInitializationSuccess();
    }

    static {
        Covode.recordClassIndex(2385);
    }

    public static Object com_apiguard3_APIGuard_java_lang_reflect_Method_invoke(Method method2, Object obj, Object[] objArr) {
        3GY.LIZ(110000);
        Method method3 = method2;
        Pair LIZ = 3GY.LIZ((Object) null, method3, new Object[]{obj, objArr}, 110000, "java.lang.Object", true, -1700780743, 2);
        return ((Boolean) LIZ.first).booleanValue() ? LIZ.second : method3.invoke(obj, objArr);
    }

    public synchronized void initialize(Application application, Callback callback, String str, int i) {
        MethodCollector.i(18476);
        if (!getMethod()) {
            log.getBody getbody = log.getBody.AGRequest;
            StringBuilder sb = new StringBuilder();
            sb.append(getHeaders("\u0007\u0004\u000b\r\u0007\u0014\n\u0007\u0001\u000e\u0007\u0014\u0011\t\u0014\t\u000e\u0002\u0002\u0012\u000e\u0003\t\u0014\u0003\f\u000f\u0013\u0014\u000e\u0014\u0007\u0000\u0013\u0007\u001b\u000e\u000f\u0005\u0014\u0011\r\u0007\u0014\n\u0007\u0006\u0007\u000f\u001b@", Process.getGidForName("") + 54, (byte) (32 - (Process.myTid() >> 22))).intern());
            sb.append(this.getHeaders);
            checkCertificates.AGRequest(getbody, sb.toString());
            MethodCollector.o(18476);
            return;
        }
        SConfig.getUrl.getMethod();
        AGState aGState = AGState.APIGuardStateInProgress;
        synchronized (this.getMethod) {
            try {
                this.getHeaders = aGState;
                APIGuard$InitializationCallback.getBody().AGRequest(this.getHeaders);
            } catch (Throwable th) {
                MethodCollector.o(18476);
                throw th;
            }
        }
        if (application != null) {
            try {
                ((Class) getMethod.AGRequest((char) (ViewConfiguration.getLongPressTimeout() >> 16), (ViewConfiguration.getTouchSlop() >> 8) + 49, 5816 - (SystemClock.elapsedRealtime() > 0 ? 1 : (SystemClock.elapsedRealtime() == 0 ? 0 : -1)))).getMethod("AGRequest", new Class[]{Context.class}).invoke(((Class) getMethod.AGRequest((char) TextUtils.getCapsMode("", 0, 0), (Process.myPid() >> 22) + 49, 5815 - (ViewConfiguration.getLongPressTimeout() >> 16))).getMethod("getHeaders", (Class[]) null).invoke((Object) null, (Object[]) null), new Object[]{application});
                getHeaders(callback);
                APIGuard$InitializationCallback.getBody().getUrl(callback);
                getHeaders(application, callback, INVOKEVIRTUAL_com_apiguard3_APIGuard_com_ss_android_ugc_aweme_lancet_launch_ApplicationContextLancet_getApplicationContext(application).getResources().getAssets().open(str));
                MethodCollector.o(18476);
            } catch (Throwable th2) {
                getHeaders(th2);
                MethodCollector.o(18476);
            }
        } else {
            IllegalArgumentException illegalArgumentException = new IllegalArgumentException(getState.getBody.getBody.AGRequest());
            MethodCollector.o(18476);
            throw illegalArgumentException;
        }
    }

    public synchronized void initialize(Application application, Callback callback, String str, int i, String str2) {
        synchronized (this) {
            MethodCollector.i(18650);
            if (!getMethod()) {
                log.getBody getbody = log.getBody.AGRequest;
                StringBuilder sb = new StringBuilder();
                sb.append(getHeaders("\u0007\u0004\u000b\r\u0007\u0014\n\u0007\u0001\u000e\u0007\u0014\u0011\t\u0014\t\u000e\u0002\u0002\u0012\u000e\u0003\t\u0014\u0003\f\u000f\u0013\u0014\u000e\u0014\u0007\u0000\u0013\u0007\u001b\u000e\u000f\u0005\u0014\u0011\r\u0007\u0014\n\u0007\u0006\u0007\u000f\u001b@", 52 - TextUtils.indexOf("", '0'), (byte) (TextUtils.lastIndexOf("", '0') + 33)).intern());
                sb.append(this.getHeaders);
                checkCertificates.AGRequest(getbody, sb.toString());
                MethodCollector.o(18650);
                return;
            }
            SConfig.getUrl.getMethod();
            AGState aGState = AGState.APIGuardStateInProgress;
            synchronized (this.getMethod) {
                try {
                    this.getHeaders = aGState;
                    APIGuard$InitializationCallback.getBody().AGRequest(this.getHeaders);
                } catch (Throwable th) {
                    MethodCollector.o(18650);
                    throw th;
                }
            }
            if (application != null) {
                try {
                    ((Class) getMethod.AGRequest((char) View.MeasureSpec.getSize(0), 49 - TextUtils.getTrimmedLength(""), 5816 - (SystemClock.elapsedRealtime() > 0 ? 1 : (SystemClock.elapsedRealtime() == 0 ? 0 : -1)))).getMethod("AGRequest", new Class[]{Context.class}).invoke(((Class) getMethod.AGRequest((char) (Process.myPid() >> 22), KeyEvent.getDeadChar(0, 0) + 49, 5815 - TextUtils.getOffsetAfter("", 0))).getMethod("getHeaders", (Class[]) null).invoke((Object) null, (Object[]) null), new Object[]{application});
                    String str3 = str2;
                    if (!TextUtils.isEmpty(str3)) {
                        this.method = str3;
                        getHeaders(callback);
                        APIGuard$InitializationCallback.getBody().getUrl(callback);
                        getHeaders(application, callback, INVOKEVIRTUAL_com_apiguard3_APIGuard_com_ss_android_ugc_aweme_lancet_launch_ApplicationContextLancet_getApplicationContext(application).getResources().getAssets().open(str));
                        MethodCollector.o(18650);
                        return;
                    }
                    IllegalArgumentException illegalArgumentException = new IllegalArgumentException(AGRequest("Ạ虮左칓ۺ㾁둜ࢮ0칓ۺᅀൟ퐫啊潫괏㴄虮左껓?됍ῃﵫ㖼託").intern());
                    MethodCollector.o(18650);
                    throw illegalArgumentException;
                } catch (Throwable th2) {
                    getHeaders(th2);
                    MethodCollector.o(18650);
                }
            } else {
                IllegalArgumentException illegalArgumentException2 = new IllegalArgumentException(getState.getBody.getBody.AGRequest());
                MethodCollector.o(18650);
                throw illegalArgumentException2;
            }
        }
    }

    public synchronized void initialize(Application application, Callback callback, int i, String str) {
        MethodCollector.i(18887);
        if (!getMethod()) {
            log.getBody getbody = log.getBody.AGRequest;
            StringBuilder sb = new StringBuilder();
            sb.append(getHeaders("\u0007\u0004\u000b\r\u0007\u0014\n\u0007\u0001\u000e\u0007\u0014\u0011\t\u0014\t\u000e\u0002\u0002\u0012\u000e\u0003\t\u0014\u0003\f\u000f\u0013\u0014\u000e\u0014\u0007\u0000\u0013\u0007\u001b\u000e\u000f\u0005\u0014\u0011\r\u0007\u0014\n\u0007\u0006\u0007\u000f\u001b@", 53 - TextUtils.indexOf("", "", 0), (byte) (32 - (KeyEvent.getMaxKeyCode() >> 16))).intern());
            sb.append(this.getHeaders);
            checkCertificates.AGRequest(getbody, sb.toString());
            MethodCollector.o(18887);
            return;
        }
        SConfig.getUrl.getMethod();
        AGState aGState = AGState.APIGuardStateInProgress;
        synchronized (this.getMethod) {
            try {
                this.getHeaders = aGState;
                APIGuard$InitializationCallback.getBody().AGRequest(this.getHeaders);
            } catch (Throwable th) {
                MethodCollector.o(18887);
                throw th;
            }
        }
        if (application != null) {
            try {
                ((Class) getMethod.AGRequest((char) (AndroidCharacter.getEastAsianWidth('0') - 4), (ViewConfiguration.getPressedStateDuration() >> 16) + 49, 5814 - TextUtils.lastIndexOf("", '0', 0, 0))).getMethod("AGRequest", new Class[]{Context.class}).invoke(((Class) getMethod.AGRequest((char) (ViewConfiguration.getMaximumFlingVelocity() >> 16), (ExpandableListView.getPackedPositionForGroup(0) > 0 ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0 ? 0 : -1)) + 49, (ViewConfiguration.getMaximumDrawingCacheSize() >> 24) + 5815)).getMethod("getHeaders", (Class[]) null).invoke((Object) null, (Object[]) null), new Object[]{application});
                this.method = str;
                getHeaders(callback);
                APIGuard$InitializationCallback.getBody().getUrl(callback);
                checkCertificates.getHeaders(onInitializationFailure.getBody.getBody, AGRequest("ꙡ?폨剫썰Ḱ잌㋊餠䂦䢵鱺烏׹㮅નꩽ?恫ࠡ嵹뉳쏝?⺤뱫㬻?恫ࠡꃪ㐦붇覮ⴉ쪽폨剫䕈ඐ铼砄?屗칓ۺꩽ?恫祯鐓").intern(), AGRequest("赊릍⿅뚣?⏭").intern());
                getHeaders(application, callback, INVOKEVIRTUAL_com_apiguard3_APIGuard_com_ss_android_ugc_aweme_lancet_launch_ApplicationContextLancet_getApplicationContext(application).getResources().openRawResource(i));
                MethodCollector.o(18887);
            } catch (Throwable th2) {
                getHeaders(th2);
                MethodCollector.o(18887);
            }
        } else {
            IllegalArgumentException illegalArgumentException = new IllegalArgumentException(getState.getBody.getBody.AGRequest());
            MethodCollector.o(18887);
            throw illegalArgumentException;
        }
    }

    public static ExecutorService INVOKESTATIC_com_apiguard3_APIGuard_com_ss_android_ugc_aweme_lancet_thread_ThreadPoolLancet_newSingleThreadExecutor() {
        8e1 LIZ = 8e2.LIZ(8eG.FIXED);
        LIZ.LIZJ = 1;
        return 8eL.LIZ(LIZ.LIZ());
    }

    public AGState getState() {
        int i = AGResponse$Builder + 45;
        AGState = i % 128;
        if (i % 2 == 0) {
            return this.getHeaders;
        }
        AGState aGState = this.getHeaders;
        throw new NullPointerException("hashCode");
    }

    public static /* synthetic */ AGRequest getHeaders() {
        int i = AGResponse$Builder + 123;
        int i2 = i % 128;
        AGState = i2;
        int i3 = i % 2;
        int i4 = i2 + 31;
        AGResponse$Builder = i4 % 128;
        if (i4 % 2 != 0 && 0 == 0) {
            return null;
        }
        throw new NullPointerException("hashCode");
    }

    private boolean getMethod() {
        char c;
        int i = AGState + 43;
        AGResponse$Builder = i % 128;
        int i2 = i % 2;
        if (this.getHeaders == AGState.APIGuardStateNotReady) {
            c = 16;
        } else {
            c = 'W';
        }
        if (c == 'W' && this.getHeaders != AGState.APIGuardStateFailed) {
            return false;
        }
        int i3 = AGResponse$Builder + 29;
        AGState = i3 % 128;
        if (i3 % 2 == 0) {
            return true;
        }
        throw new NullPointerException("hashCode");
    }

    public boolean updateKernel() {
        if (this.newBuilder$7637ec1a == null) {
            int i = AGResponse$Builder + 89;
            AGState = i % 128;
            int i2 = i % 2;
            return false;
        }
        int i3 = AGResponse$Builder + 87;
        AGState = i3 % 128;
        int i4 = i3 % 2;
        try {
            return ((Boolean) ((Class) getMethod.AGRequest((char) (ImageFormat.getBitsPerPixel(0) + 16293), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 36, 2521 - View.resolveSize(0, 0))).getMethod("getUrl", (Class[]) null).invoke(this.newBuilder$7637ec1a, (Object[]) null)).booleanValue();
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    /* renamed from: com.apiguard3.APIGuard$2  reason: invalid class name */
    public static /* synthetic */ class AnonymousClass2 {
        public static int getBody;
        public static int getMethod;
        public static final /* synthetic */ int[] getUrl;

        /* JADX WARNING: Can't wrap try/catch for region: R(13:0|1|2|3|4|5|6|7|8|9|10|11|(1:26)(4:14|15|16|17)) */
        /* JADX WARNING: Code restructure failed: missing block: B:25:?, code lost:
            return;
         */
        /* JADX WARNING: Failed to process nested try/catch */
        /* JADX WARNING: Missing exception handler attribute for start block: B:7:0x007b */
        /* JADX WARNING: Missing exception handler attribute for start block: B:9:0x00ad */
        /* JADX WARNING: Removed duplicated region for block: B:14:0x00ed  */
        /* JADX WARNING: Removed duplicated region for block: B:26:? A[RETURN, SYNTHETIC] */
        static {
            /*
                java.lang.String r5 = ""
                r0 = 2387(0x953, float:3.345E-42)
                com.bytedance.covode.number.Covode.recordClassIndex(r0)
                r10 = 1
                getBody = r10
                r6 = 0
                int r0 = android.graphics.Color.red(r6)     // Catch:{ all -> 0x00f7 }
                r9 = 61354(0xefaa, float:8.5975E-41)
                int r0 = r9 - r0
                char r4 = (char) r0     // Catch:{ all -> 0x00f7 }
                long r1 = android.os.SystemClock.currentThreadTimeMillis()     // Catch:{ all -> 0x00f7 }
                r7 = -1
                int r0 = (r1 > r7 ? 1 : (r1 == r7 ? 0 : -1))
                int r3 = r0 + 59
                long r1 = android.os.SystemClock.currentThreadTimeMillis()     // Catch:{ all -> 0x00f7 }
                int r0 = (r1 > r7 ? 1 : (r1 == r7 ? 0 : -1))
                int r0 = 1523 - r0
                java.lang.Object r1 = com.apiguard3.internal.getMethod.AGRequest(r4, r3, r0)     // Catch:{ all -> 0x00f7 }
                java.lang.Class r1 = (java.lang.Class) r1     // Catch:{ all -> 0x00f7 }
                java.lang.String r0 = "values"
                r4 = 0
                java.lang.reflect.Method r0 = r1.getMethod(r0, r4)     // Catch:{ all -> 0x00f7 }
                java.lang.Object r0 = r0.invoke(r4, r4)     // Catch:{ all -> 0x00f7 }
                java.lang.Object[] r0 = (java.lang.Object[]) r0     // Catch:{ all -> 0x00f7 }
                int r0 = r0.length
                int[] r2 = new int[r0]
                getUrl = r2
                r7 = 2
                int r0 = android.view.ViewConfiguration.getFadingEdgeLength()     // Catch:{ NoSuchFieldError -> 0x007b }
                int r0 = r0 >> 16
                int r0 = r9 - r0
                char r3 = (char) r0     // Catch:{ NoSuchFieldError -> 0x007b }
                float r1 = android.util.TypedValue.complexToFloat(r6)     // Catch:{ NoSuchFieldError -> 0x007b }
                r0 = 0
                int r0 = (r1 > r0 ? 1 : (r1 == r0 ? 0 : -1))
                int r1 = 60 - r0
                int r0 = android.view.ViewConfiguration.getDoubleTapTimeout()     // Catch:{ NoSuchFieldError -> 0x007b }
                int r0 = r0 >> 16
                int r0 = 1522 - r0
                java.lang.Object r1 = com.apiguard3.internal.getMethod.AGRequest(r3, r1, r0)     // Catch:{ NoSuchFieldError -> 0x007b }
                java.lang.Class r1 = (java.lang.Class) r1     // Catch:{ NoSuchFieldError -> 0x007b }
                java.lang.String r0 = "getHeaders"
                java.lang.reflect.Field r0 = r1.getField(r0)     // Catch:{ NoSuchFieldError -> 0x007b }
                java.lang.Object r0 = r0.get(r4)     // Catch:{ NoSuchFieldError -> 0x007b }
                java.lang.Enum r0 = (java.lang.Enum) r0     // Catch:{ NoSuchFieldError -> 0x007b }
                int r0 = r0.ordinal()     // Catch:{ NoSuchFieldError -> 0x007b }
                r2[r0] = r10     // Catch:{ NoSuchFieldError -> 0x007b }
                int r0 = getBody
                int r1 = r0 + 37
                int r0 = r1 % 128
                getMethod = r0
                int r1 = r1 % r7
            L_0x007b:
                int[] r3 = getUrl     // Catch:{ NoSuchFieldError -> 0x00ad }
                int r0 = android.os.Process.getThreadPriority(r6)     // Catch:{ NoSuchFieldError -> 0x00ad }
                int r0 = r0 + 20
                int r0 = r0 >> 6
                int r0 = r0 + r9
                char r2 = (char) r0     // Catch:{ NoSuchFieldError -> 0x00ad }
                int r0 = android.text.TextUtils.getOffsetBefore(r5, r6)     // Catch:{ NoSuchFieldError -> 0x00ad }
                int r1 = r0 + 60
                int r0 = android.view.ViewConfiguration.getMinimumFlingVelocity()     // Catch:{ NoSuchFieldError -> 0x00ad }
                int r0 = r0 >> 16
                int r0 = r0 + 1522
                java.lang.Object r1 = com.apiguard3.internal.getMethod.AGRequest(r2, r1, r0)     // Catch:{ NoSuchFieldError -> 0x00ad }
                java.lang.Class r1 = (java.lang.Class) r1     // Catch:{ NoSuchFieldError -> 0x00ad }
                java.lang.String r0 = "getBody"
                java.lang.reflect.Field r0 = r1.getField(r0)     // Catch:{ NoSuchFieldError -> 0x00ad }
                java.lang.Object r0 = r0.get(r4)     // Catch:{ NoSuchFieldError -> 0x00ad }
                java.lang.Enum r0 = (java.lang.Enum) r0     // Catch:{ NoSuchFieldError -> 0x00ad }
                int r0 = r0.ordinal()     // Catch:{ NoSuchFieldError -> 0x00ad }
                r3[r0] = r7     // Catch:{ NoSuchFieldError -> 0x00ad }
            L_0x00ad:
                int[] r3 = getUrl     // Catch:{ NoSuchFieldError -> 0x00ec }
                r2 = 61355(0xefab, float:8.5977E-41)
                r1 = 48
                int r0 = android.text.TextUtils.lastIndexOf(r5, r1, r6, r6)     // Catch:{ NoSuchFieldError -> 0x00ec }
                int r0 = r0 + r2
                char r2 = (char) r0     // Catch:{ NoSuchFieldError -> 0x00ec }
                char r0 = android.text.AndroidCharacter.getMirror(r1)     // Catch:{ NoSuchFieldError -> 0x00ec }
                int r1 = r0 + 12
                int r0 = android.text.TextUtils.getTrimmedLength(r5)     // Catch:{ NoSuchFieldError -> 0x00ec }
                int r0 = 1522 - r0
                java.lang.Object r1 = com.apiguard3.internal.getMethod.AGRequest(r2, r1, r0)     // Catch:{ NoSuchFieldError -> 0x00ec }
                java.lang.Class r1 = (java.lang.Class) r1     // Catch:{ NoSuchFieldError -> 0x00ec }
                java.lang.String r0 = "AGRequest"
                java.lang.reflect.Field r0 = r1.getField(r0)     // Catch:{ NoSuchFieldError -> 0x00ec }
                java.lang.Object r0 = r0.get(r4)     // Catch:{ NoSuchFieldError -> 0x00ec }
                java.lang.Enum r0 = (java.lang.Enum) r0     // Catch:{ NoSuchFieldError -> 0x00ec }
                int r1 = r0.ordinal()     // Catch:{ NoSuchFieldError -> 0x00ec }
                r0 = 3
                r3[r1] = r0     // Catch:{ NoSuchFieldError -> 0x00ec }
                int r0 = getMethod
                int r1 = r0 + 23
                int r0 = r1 % 128
                getBody = r0
                int r1 = r1 % r7
                r0 = 52
                if (r1 == 0) goto L_0x00ed
            L_0x00ec:
                return
            L_0x00ed:
                java.lang.String r1 = "hashCode"
                java.lang.NullPointerException r0 = new java.lang.NullPointerException     // Catch:{ all -> 0x00f5 }
                r0.<init>(r1)     // Catch:{ all -> 0x00f5 }
                throw r0     // Catch:{ all -> 0x00f5 }
            L_0x00f5:
                r0 = move-exception
                throw r0
            L_0x00f7:
                r1 = move-exception
                java.lang.Throwable r0 = r1.getCause()
                if (r0 == 0) goto L_0x00ff
                throw r0
            L_0x00ff:
                throw r1
            */
            throw new UnsupportedOperationException("Method not decompiled: com.apiguard3.APIGuard.AnonymousClass2.<clinit>():void");
        }
    }

    /* JADX WARNING: Can't wrap try/catch for region: R(11:6|7|8|9|10|11|(8:12|13|14|15|16|17|18|19)|35|36|37|38) */
    /* JADX WARNING: Code restructure failed: missing block: B:39:0x00a6, code lost:
        r1 = AGResponse$Builder + 39;
        AGState = r1 % 128;
        r0 = r1 % 2;
     */
    /* JADX WARNING: Missing exception handler attribute for start block: B:35:0x009b */
    /* JADX WARNING: Missing exception handler attribute for start block: B:37:0x00a3 */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public static synchronized com.apiguard3.APIGuard getSharedInstance() {
        /*
            java.lang.Class<com.apiguard3.APIGuard> r10 = com.apiguard3.APIGuard.class
            monitor-enter(r10)
            r9 = 18252(0x474c, float:2.5576E-41)
            com.bytedance.frameworks.apm.trace.MethodCollector.i(r9)     // Catch:{ all -> 0x00b7 }
            int r0 = AGState     // Catch:{ all -> 0x00b7 }
            int r1 = r0 + 29
            int r0 = r1 % 128
            AGResponse$Builder = r0     // Catch:{ all -> 0x00b7 }
            int r0 = r1 % 2
            com.apiguard3.APIGuard r0 = getUrl     // Catch:{ all -> 0x00b7 }
            if (r0 != 0) goto L_0x00b0
            r3 = 0
            com.apiguard3.APIGuard r2 = new com.apiguard3.APIGuard     // Catch:{ Exception -> 0x00a3 }
            r2.<init>()     // Catch:{ Exception -> 0x00a3 }
            getUrl = r2     // Catch:{ Exception -> 0x00a3 }
            com.apiguard3.internal.parseResponseHeaders.AGRequest()     // Catch:{ Exception -> 0x009b }
            r1 = 33528(0x82f8, float:4.6983E-41)
            java.lang.String r0 = ""
            int r0 = android.text.TextUtils.getTrimmedLength(r0)     // Catch:{ all -> 0x008c }
            int r0 = r0 + r1
            char r8 = (char) r0     // Catch:{ all -> 0x008c }
            java.lang.String r4 = ""
            r1 = 48
            r0 = 0
            int r0 = android.text.TextUtils.lastIndexOf(r4, r1, r0)     // Catch:{ all -> 0x008c }
            int r1 = 35 - r0
            long r6 = android.os.SystemClock.currentThreadTimeMillis()     // Catch:{ all -> 0x008c }
            r4 = -1
            int r0 = (r6 > r4 ? 1 : (r6 == r4 ? 0 : -1))
            int r0 = 2948 - r0
            java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r8, r1, r0)     // Catch:{ all -> 0x008c }
            java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x008c }
            java.lang.reflect.Constructor r0 = r0.getDeclaredConstructor(r3)     // Catch:{ all -> 0x008c }
            java.lang.Object r0 = r0.newInstance(r3)     // Catch:{ all -> 0x008c }
            r2.AGRequest$efd69f8 = r0     // Catch:{ Exception -> 0x009b }
            int r0 = android.view.ViewConfiguration.getPressedStateDuration()     // Catch:{ all -> 0x007d }
            int r0 = r0 >> 16
            int r0 = 8782 - r0
            char r4 = (char) r0     // Catch:{ all -> 0x007d }
            int r0 = android.view.KeyEvent.getMaxKeyCode()     // Catch:{ all -> 0x007d }
            int r0 = r0 >> 16
            int r1 = 29 - r0
            int r0 = android.view.ViewConfiguration.getMaximumDrawingCacheSize()     // Catch:{ all -> 0x007d }
            int r0 = r0 >> 24
            int r0 = r0 + 844
            java.lang.Object r1 = com.apiguard3.internal.getMethod.AGRequest(r4, r1, r0)     // Catch:{ all -> 0x007d }
            java.lang.Class r1 = (java.lang.Class) r1     // Catch:{ all -> 0x007d }
            java.lang.String r0 = "getUrl"
            java.lang.reflect.Method r0 = r1.getMethod(r0, r3)     // Catch:{ all -> 0x007d }
            java.lang.Object r0 = r0.invoke(r3, r3)     // Catch:{ all -> 0x007d }
            r2.getBody$1cf25108 = r0     // Catch:{ Exception -> 0x009b }
            goto L_0x00a6
        L_0x007d:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()     // Catch:{ Exception -> 0x009b }
            if (r0 == 0) goto L_0x0088
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r9)     // Catch:{ Exception -> 0x009b }
            throw r0     // Catch:{ Exception -> 0x009b }
        L_0x0088:
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r9)     // Catch:{ Exception -> 0x009b }
            throw r1     // Catch:{ Exception -> 0x009b }
        L_0x008c:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()     // Catch:{ Exception -> 0x009b }
            if (r0 == 0) goto L_0x0097
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r9)     // Catch:{ Exception -> 0x009b }
            throw r0     // Catch:{ Exception -> 0x009b }
        L_0x0097:
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r9)     // Catch:{ Exception -> 0x009b }
            throw r1     // Catch:{ Exception -> 0x009b }
        L_0x009b:
            com.apiguard3.internal.parseResponseHeaders.getBody()     // Catch:{ Exception -> 0x00a3 }
            r2.AGRequest$efd69f8 = r3     // Catch:{ Exception -> 0x00a3 }
            r2.getBody$1cf25108 = r3     // Catch:{ Exception -> 0x00a3 }
            goto L_0x00b0
        L_0x00a3:
            getUrl = r3     // Catch:{ all -> 0x00b7 }
            goto L_0x00b0
        L_0x00a6:
            int r0 = AGResponse$Builder     // Catch:{ all -> 0x00b7 }
            int r1 = r0 + 39
            int r0 = r1 % 128
            AGState = r0     // Catch:{ all -> 0x00b7 }
            int r0 = r1 % 2
        L_0x00b0:
            com.apiguard3.APIGuard r0 = getUrl     // Catch:{ all -> 0x00b7 }
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r9)     // Catch:{ all -> 0x00b7 }
            monitor-exit(r10)
            return r0
        L_0x00b7:
            r0 = move-exception
            monitor-exit(r10)
            throw r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.apiguard3.APIGuard.getSharedInstance():com.apiguard3.APIGuard");
    }

    public static Context INVOKEVIRTUAL_com_apiguard3_APIGuard_com_ss_android_ugc_aweme_lancet_launch_ApplicationContextLancet_getApplicationContext(Context context) {
        Context applicationContext = context.getApplicationContext();
        if (7lW.LIZJ && applicationContext == null) {
            return 7lW.LIZ;
        }
        return applicationContext;
    }

    public static /* synthetic */ InitializationCallback AGRequest(APIGuard aPIGuard) {
        int i = AGState;
        int i2 = i + 41;
        AGResponse$Builder = i2 % 128;
        int i3 = i2 % 2;
        InitializationCallback initializationCallback = aPIGuard.put;
        int i4 = i + 21;
        AGResponse$Builder = i4 % 128;
        int i5 = i4 % 2;
        return initializationCallback;
    }

    public static /* synthetic */ Object getBody$316da88c(APIGuard aPIGuard) {
        int i = AGResponse$Builder + 5;
        AGState = i % 128;
        int i2 = i % 2;
        Object obj = aPIGuard.newBuilder$7637ec1a;
        int i3 = AGState + 39;
        AGResponse$Builder = i3 % 128;
        int i4 = i3 % 2;
        return obj;
    }

    public static /* synthetic */ Object getHeaders$1b83c9c6(APIGuard aPIGuard) {
        int i = AGResponse$Builder + 75;
        AGState = i % 128;
        int i2 = i % 2;
        Object obj = aPIGuard.addHeader$59961fb8;
        int i3 = AGResponse$Builder + 1;
        AGState = i3 % 128;
        int i4 = i3 % 2;
        return obj;
    }

    public static /* synthetic */ Object getUrl$17cc3eff(APIGuard aPIGuard) {
        int i = AGResponse$Builder + 73;
        AGState = i % 128;
        int i2 = i % 2;
        Object obj = aPIGuard.url$6071f473;
        int i3 = AGState + 123;
        AGResponse$Builder = i3 % 128;
        int i4 = i3 % 2;
        return obj;
    }

    public static /* synthetic */ void getMethod(APIGuard aPIGuard) {
        int i = AGState + 119;
        AGResponse$Builder = i % 128;
        int i2 = i % 2;
        if (aPIGuard.put != null) {
            try {
                aPIGuard.get.submit(new Callable<Void>() {
                    public static int AGRequest = 40;
                    public static short[] addHeader;
                    public static byte[] getBody = {0, 14, 2, 0, -18, 34, -27, -1, 6, -11, 19, -25, 17, -3, 11, -8, -11, 11, -5, 37, -37, -1, 79, -71, -7, 5, -3, 0, 11, 30, 0};
                    public static int getHeaders = -727232802;
                    public static int getMethod = 1516165778;
                    public static int newBuilder = 1;
                    public static int url;

                    static {
                        Covode.recordClassIndex(2389);
                    }

                    public final /* synthetic */ Object call() {
                        int i = newBuilder + 85;
                        url = i % 128;
                        int i2 = i % 2;
                        checkCertificates.AGRequest(log.getBody.AGRequest, getHeaders((short) TextUtils.indexOf("", ""), (byte) TextUtils.indexOf("", ""), (ViewConfiguration.getZoomControlsTimeout() > 0 ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0 ? 0 : -1)) - 1516165712, TextUtils.getTrimmedLength("") + 727232802, -9 - (ViewConfiguration.getScrollDefaultDelay() >> 16)).intern());
                        APIGuard.AGRequest(APIGuard.this).onInitializationSuccess();
                        int i3 = url + 19;
                        newBuilder = i3 % 128;
                        int i4 = i3 % 2;
                        return null;
                    }

                    /* JADX WARNING: Removed duplicated region for block: B:12:0x002c  */
                    /* Code decompiled incorrectly, please refer to instructions dump. */
                    public static java.lang.String getHeaders(short r7, byte r8, int r9, int r10, int r11) {
                        /*
                            java.lang.StringBuilder r2 = new java.lang.StringBuilder
                            r2.<init>()
                            int r5 = AGRequest
                            int r11 = r11 + r5
                            r1 = -1
                            r0 = 0
                            r0 = 1
                            if (r11 == r1) goto L_0x006b
                            r4 = 0
                        L_0x000e:
                            r0 = 67
                            if (r11 > 0) goto L_0x0017
                        L_0x0012:
                            java.lang.String r0 = r2.toString()
                            return r0
                        L_0x0017:
                            int r10 = r10 + r11
                            int r6 = r10 + -2
                            int r0 = getHeaders
                            int r6 = r6 + r0
                            if (r4 != 0) goto L_0x005d
                        L_0x001f:
                            r0 = 0
                        L_0x0020:
                            int r6 = r6 + r0
                            int r0 = getMethod
                            int r9 = r9 + r0
                            char r4 = (char) r9
                            r2.append(r4)
                            r3 = 1
                        L_0x0029:
                            if (r3 < r11) goto L_0x002c
                            goto L_0x0012
                        L_0x002c:
                            byte[] r5 = getBody
                            if (r5 != 0) goto L_0x0042
                            short[] r0 = addHeader
                            int r1 = r6 + -1
                            short r0 = r0[r6]
                            int r0 = r0 + r7
                            short r0 = (short) r0
                        L_0x0038:
                            r0 = r0 ^ r8
                        L_0x0039:
                            int r4 = r4 + r0
                            char r4 = (char) r4
                            r6 = r1
                            r2.append(r4)
                            int r3 = r3 + 1
                            goto L_0x0029
                        L_0x0042:
                            int r0 = newBuilder
                            int r1 = r0 + 49
                            int r0 = r1 % 128
                            url = r0
                            int r0 = r1 % 2
                            if (r0 == 0) goto L_0x0056
                            int r1 = r6 + 95
                            byte r0 = r5[r6]
                            int r0 = r0 + r7
                            byte r0 = (byte) r0
                            r0 = r0 & r8
                            goto L_0x0039
                        L_0x0056:
                            int r1 = r6 + -1
                            byte r0 = r5[r6]
                            int r0 = r0 + r7
                            byte r0 = (byte) r0
                            goto L_0x0038
                        L_0x005d:
                            int r0 = url
                            int r1 = r0 + 79
                            int r0 = r1 % 128
                            newBuilder = r0
                            int r0 = r1 % 2
                            if (r0 == 0) goto L_0x001f
                            r0 = 1
                            goto L_0x0020
                        L_0x006b:
                            int r0 = url
                            int r1 = r0 + 111
                            int r0 = r1 % 128
                            newBuilder = r0
                            int r0 = r1 % 2
                            r4 = 1
                            int r3 = url
                            int r1 = r3 + 79
                            int r0 = r1 % 128
                            newBuilder = r0
                            int r0 = r1 % 2
                            byte[] r1 = getBody
                            if (r1 != 0) goto L_0x008e
                            short[] r1 = addHeader
                            int r0 = getHeaders
                            int r0 = r0 + r10
                            short r0 = r1[r0]
                            int r0 = r0 + r5
                            short r11 = (short) r0
                            goto L_0x000e
                        L_0x008e:
                            int r0 = getHeaders
                            int r0 = r0 + r10
                            byte r0 = r1[r0]
                            int r0 = r0 + r5
                            byte r11 = (byte) r0
                            int r1 = r3 + 21
                            int r0 = r1 % 128
                            newBuilder = r0
                            int r0 = r1 % 2
                            goto L_0x000e
                        */
                        throw new UnsupportedOperationException("Method not decompiled: com.apiguard3.APIGuard.AnonymousClass4.getHeaders(short, byte, int, int, int):java.lang.String");
                    }
                });
                int i3 = AGState + 113;
                AGResponse$Builder = i3 % 128;
                int i4 = i3 % 2;
            } catch (Throwable th) {
                checkCertificates.AGRequest(log.getBody.getMethod, (log.getMethod) getState.getBody.AGState, th.toString());
            }
        }
    }

    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r11v1, resolved type: char[]} */
    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r11v2, resolved type: java.lang.String} */
    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r11v4, resolved type: java.lang.String} */
    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r11v5, resolved type: java.lang.String} */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public static java.lang.String AGRequest(java.lang.String r11) {
        /*
            r10 = 0
            r4 = 1
            if (r11 != 0) goto L_0x0052
            r0 = 1
        L_0x0005:
            r5 = 2
            if (r0 == 0) goto L_0x0042
        L_0x0008:
            char[] r11 = (char[]) r11
            int r0 = r11.length
            char[] r6 = new char[r0]
            char[] r8 = new char[r5]
            r7 = 0
        L_0x0010:
            int r0 = r11.length
            if (r7 < r0) goto L_0x003f
            r0 = 1
        L_0x0014:
            if (r0 == r4) goto L_0x0054
            char r0 = r11[r7]
            r8[r10] = r0
            int r9 = r7 + 1
            char r0 = r11[r9]
            r8[r4] = r0
            char r3 = AGResponse
            char r2 = headersMultiMap
            char r1 = build
            char r0 = getStatusCode
            com.apiguard3.internal.setOnApplyWindowInsetsListener.AGRequest(r8, r3, r2, r1, r0)
            char r0 = r8[r10]
            r6[r7] = r0
            char r0 = r8[r4]
            r6[r9] = r0
            int r7 = r7 + 2
            int r0 = AGState
            int r1 = r0 + 53
            int r0 = r1 % 128
            AGResponse$Builder = r0
            int r1 = r1 % r5
            goto L_0x0010
        L_0x003f:
            r0 = 95
            goto L_0x0014
        L_0x0042:
            int r0 = AGState
            int r1 = r0 + 63
            int r0 = r1 % 128
            AGResponse$Builder = r0
            int r1 = r1 % r5
            if (r1 == 0) goto L_0x005c
            char[] r11 = r11.toCharArray()
            goto L_0x0008
        L_0x0052:
            r0 = 0
            goto L_0x0005
        L_0x0054:
            char r1 = r6[r10]
            java.lang.String r0 = new java.lang.String
            r0.<init>(r6, r4, r1)
            return r0
        L_0x005c:
            char[] r0 = r11.toCharArray()
            r0 = 0
            java.lang.String r1 = "hashCode"
            java.lang.NullPointerException r0 = new java.lang.NullPointerException     // Catch:{ all -> 0x0069 }
            r0.<init>(r1)     // Catch:{ all -> 0x0069 }
            throw r0     // Catch:{ all -> 0x0069 }
        L_0x0069:
            r0 = move-exception
            throw r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.apiguard3.APIGuard.AGRequest(java.lang.String):java.lang.String");
    }

    public synchronized void parseResponse(AGResponse aGResponse) {
        MethodCollector.i(19204);
        if (aGResponse != null) {
            if (this.getHeaders == AGState.APIGuardStateReady) {
                if (this.url$6071f473 != null) {
                    int i = AGResponse$Builder + 39;
                    AGState = i % 128;
                    if (i % 2 == 0) {
                        getUrl(aGResponse.getHeaders());
                        MethodCollector.o(19204);
                        return;
                    }
                    getUrl(aGResponse.getHeaders());
                    MethodCollector.o(19204);
                    return;
                }
            }
            checkCertificates.getMethod(log.getBody.getMethod, getState.getBody.AGResponse$Builder);
            MethodCollector.o(19204);
            return;
        }
        int i2 = AGResponse$Builder + 13;
        AGState = i2 % 128;
        if (i2 % 2 == 0) {
            checkCertificates.getMethod(log.getBody.getMethod, getState.getBody.values);
            MethodCollector.o(19204);
            return;
        }
        checkCertificates.getMethod(log.getBody.getMethod, getState.getBody.values);
        try {
            throw new NullPointerException("hashCode");
        } catch (Throwable th) {
            MethodCollector.o(19204);
            throw th;
        }
    }

    public synchronized void parseResponseHeaders(Map<String, String> map) {
        MethodCollector.i(18568);
        int i = AGResponse$Builder + 113;
        AGState = i % 128;
        int i2 = i % 2;
        if (map != null) {
            if (this.getHeaders == AGState.APIGuardStateReady) {
                if (this.url$6071f473 != null) {
                    int i3 = AGState + 25;
                    AGResponse$Builder = i3 % 128;
                    int i4 = i3 % 2;
                    getUrl(map);
                    MethodCollector.o(18568);
                    return;
                }
            }
            checkCertificates.getMethod(log.getBody.getMethod, getState.getBody.AGResponse$Builder);
            MethodCollector.o(18568);
            return;
        }
        checkCertificates.getMethod(log.getBody.getMethod, getState.getBody.values);
        int i5 = AGResponse$Builder + 57;
        AGState = i5 % 128;
        if (i5 % 2 == 0) {
            MethodCollector.o(18568);
        } else {
            MethodCollector.o(18568);
        }
    }

    public synchronized void transformRequest(AGRequest aGRequest) {
        boolean z;
        getMethod getmethod;
        MethodCollector.i(18963);
        int i = AGResponse$Builder + 25;
        int i2 = i % 128;
        AGState = i2;
        int i3 = i % 2;
        if (aGRequest != null) {
            long currentTimeMillis = System.currentTimeMillis();
            if (!(this.getHeaders == AGState.APIGuardStateReady || this.getHeaders == AGState.APIGuardStateInProgress) || (getmethod = this.delete) == null) {
                checkCertificates.getMethod(log.getBody.getMethod, getState.getBody.statusCode);
                int i4 = AGResponse$Builder + 9;
                AGState = i4 % 128;
                int i5 = i4 % 2;
                z = false;
            } else {
                z = getmethod.getMethod(aGRequest.getHeaders(), aGRequest.getUrl(), aGRequest.getBody());
            }
            if (aGRequest.getHeaders().isEmpty()) {
                checkCertificates.getMethod(log.getBody.getBody, getState.getUrl.getHeaders);
            } else {
                checkCertificates.getMethod(log.getBody.getBody, getState.getUrl.AGRequest);
            }
            if (z) {
                SConfig.getUrl.getMethod(System.currentTimeMillis() - currentTimeMillis);
                MethodCollector.o(18963);
                return;
            }
            SConfig.getUrl.getUrl(System.currentTimeMillis() - currentTimeMillis);
            MethodCollector.o(18963);
            return;
        }
        int i6 = i2 + 117;
        AGResponse$Builder = i6 % 128;
        int i7 = i6 % 2;
        checkCertificates.getMethod(log.getBody.getMethod, getState.getBody.valueOf);
        MethodCollector.o(18963);
    }

    private void getHeaders(Callback callback) {
        int i = AGState;
        int i2 = i + 29;
        AGResponse$Builder = i2 % 128;
        if (i2 % 2 == 0 ? callback == null : callback == null) {
            throw new IllegalArgumentException(getState.getBody.getMethod.AGRequest());
        }
        if (callback instanceof InitializationCallback) {
            int i3 = i + 41;
            AGResponse$Builder = i3 % 128;
            int i4 = i3 % 2;
            this.put = (InitializationCallback) callback;
        }
        int i5 = AGResponse$Builder + 93;
        AGState = i5 % 128;
        int i6 = i5 % 2;
    }

    /* JADX WARNING: Code restructure failed: missing block: B:14:0x0084, code lost:
        r1 = move-exception;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:16:?, code lost:
        r0 = r1.getCause();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:17:0x0089, code lost:
        if (r0 != null) goto L_0x008b;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:18:0x008b, code lost:
        throw r0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:19:0x008c, code lost:
        throw r1;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:20:0x008d, code lost:
        r1 = move-exception;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:21:0x008e, code lost:
        r0 = r1.getCause();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:22:0x0092, code lost:
        if (r0 != null) goto L_0x0094;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:23:0x0094, code lost:
        throw r0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:24:0x0095, code lost:
        throw r1;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:34:0x00fa, code lost:
        if (android.text.TextUtils.isEmpty(r6) == false) goto L_0x00fc;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:37:0x010f, code lost:
        if (android.text.TextUtils.isEmpty(r6) != false) goto L_0x0111;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:38:0x0111, code lost:
        com.apiguard3.internal.checkCertificates.getMethod(com.apiguard3.internal.log.getBody.getBody, com.apiguard3.internal.getState.getUrl.getMethod);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:51:0x0155, code lost:
        r1 = move-exception;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:52:0x0156, code lost:
        r0 = r1.getCause();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:53:0x015a, code lost:
        if (r0 != null) goto L_0x015c;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:54:0x015c, code lost:
        throw r0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:55:0x015d, code lost:
        throw r1;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:61:0x018c, code lost:
        if (((com.apiguard3.domain.Config) ((java.lang.Class) com.apiguard3.internal.getMethod.AGRequest((char) (android.view.ViewConfiguration.getDoubleTapTimeout() >> 16), (android.os.Process.myPid() >> 22) + 40, (android.os.SystemClock.elapsedRealtime() > 0 ? 1 : (android.os.SystemClock.elapsedRealtime() == 0 ? 0 : -1)) + 2201)).getMethod("getBody", (java.lang.Class[]) null).invoke(r4.url$6071f473, (java.lang.Object[]) null)).addHeader(r6) == false) goto L_0x018e;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:66:0x019a, code lost:
        r1 = move-exception;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:67:0x019b, code lost:
        r0 = r1.getCause();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:68:0x019f, code lost:
        if (r0 != null) goto L_0x01a1;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:69:0x01a1, code lost:
        throw r0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:70:0x01a2, code lost:
        throw r1;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:71:0x01a3, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:72:0x01a4, code lost:
        r1 = move-exception;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:73:0x01a5, code lost:
        r0 = r1.getCause();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:74:0x01a9, code lost:
        if (r0 != null) goto L_0x01ab;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:75:0x01ab, code lost:
        throw r0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:76:0x01ac, code lost:
        throw r1;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:77:0x01ad, code lost:
        r1 = move-exception;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:78:0x01ae, code lost:
        r0 = r1.getCause();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:79:0x01b2, code lost:
        if (r0 != null) goto L_0x01b4;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:80:0x01b4, code lost:
        throw r0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:81:0x01b5, code lost:
        throw r1;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:82:0x01b6, code lost:
        r0 = move-exception;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:83:0x01b7, code lost:
        com.apiguard3.internal.checkCertificates.AGRequest(com.apiguard3.internal.log.getBody.getHeaders, (com.apiguard3.internal.log.getMethod) com.apiguard3.internal.getState.getHeaders.headersMultiMap, r0.toString());
     */
    /* JADX WARNING: Code restructure failed: missing block: B:84:0x01c2, code lost:
        return;
     */
    /* JADX WARNING: Exception block dominator not found, dom blocks: [B:6:0x0022, B:8:0x0024, B:12:0x004d, B:26:0x0098, B:30:0x00c1, B:45:0x012b, B:57:0x0160] */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    private void getUrl(java.util.Map<java.lang.String, java.lang.String> r17) {
        /*
            r16 = this;
            r4 = r16
            int r0 = AGResponse$Builder
            int r1 = r0 + 115
            int r0 = r1 % 128
            AGState = r0
            r3 = 2
            int r1 = r1 % r3
            r10 = 1
            r2 = 0
            if (r1 != 0) goto L_0x0020
            r0 = 0
        L_0x0011:
            java.lang.String r9 = "AGRequest"
            r15 = 0
            java.lang.String r8 = "getBody"
            r12 = 48
            r13 = 0
            java.lang.String r11 = ""
            r7 = 0
            if (r0 == r10) goto L_0x0096
            goto L_0x0022
        L_0x0020:
            r0 = 1
            goto L_0x0011
        L_0x0022:
            java.lang.Object r5 = r4.url$6071f473     // Catch:{ all -> 0x01b6 }
            int r0 = android.text.TextUtils.lastIndexOf(r11, r12, r2, r2)     // Catch:{ all -> 0x008d }
            int r0 = -1 - r0
            char r1 = (char) r0     // Catch:{ all -> 0x008d }
            int r0 = android.text.TextUtils.lastIndexOf(r11, r12, r2)     // Catch:{ all -> 0x008d }
            int r6 = 39 - r0
            float r0 = android.media.AudioTrack.getMaxVolume()     // Catch:{ all -> 0x008d }
            int r0 = (r0 > r15 ? 1 : (r0 == r15 ? 0 : -1))
            int r0 = 2203 - r0
            java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r1, r6, r0)     // Catch:{ all -> 0x008d }
            java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x008d }
            java.lang.reflect.Method r0 = r0.getMethod(r8, r7)     // Catch:{ all -> 0x008d }
            java.lang.Object r0 = r0.invoke(r5, r7)     // Catch:{ all -> 0x008d }
            com.apiguard3.domain.Config r0 = (com.apiguard3.domain.Config) r0     // Catch:{ all -> 0x008d }
            java.lang.String r0 = r0.build()     // Catch:{ all -> 0x01b6 }
            java.lang.Object[] r6 = new java.lang.Object[r3]     // Catch:{ all -> 0x0084 }
            r6[r10] = r0     // Catch:{ all -> 0x0084 }
            r6[r2] = r17     // Catch:{ all -> 0x0084 }
            int r0 = android.view.ViewConfiguration.getWindowTouchSlop()     // Catch:{ all -> 0x0084 }
            int r0 = r0 >> 8
            char r5 = (char) r0     // Catch:{ all -> 0x0084 }
            int r0 = android.text.TextUtils.indexOf(r11, r11, r2)     // Catch:{ all -> 0x0084 }
            int r1 = r0 + 40
            long r11 = android.os.Process.getElapsedCpuTime()     // Catch:{ all -> 0x0084 }
            int r0 = (r11 > r13 ? 1 : (r11 == r13 ? 0 : -1))
            int r0 = 5998 - r0
            java.lang.Object r5 = com.apiguard3.internal.getMethod.AGRequest(r5, r1, r0)     // Catch:{ all -> 0x0084 }
            java.lang.Class r5 = (java.lang.Class) r5     // Catch:{ all -> 0x0084 }
            java.lang.Class[] r1 = new java.lang.Class[r3]     // Catch:{ all -> 0x0084 }
            java.lang.Class<java.util.Map> r0 = java.util.Map.class
            r1[r2] = r0     // Catch:{ all -> 0x0084 }
            java.lang.Class<java.lang.String> r0 = java.lang.String.class
            r1[r10] = r0     // Catch:{ all -> 0x0084 }
            java.lang.reflect.Method r0 = r5.getMethod(r9, r1)     // Catch:{ all -> 0x0084 }
            java.lang.Object r6 = r0.invoke(r7, r6)     // Catch:{ all -> 0x0084 }
            java.lang.String r6 = (java.lang.String) r6     // Catch:{ all -> 0x0084 }
            goto L_0x010b
        L_0x0084:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()     // Catch:{ all -> 0x01b6 }
            if (r0 == 0) goto L_0x008c
            throw r0     // Catch:{ all -> 0x01b6 }
        L_0x008c:
            throw r1     // Catch:{ all -> 0x01b6 }
        L_0x008d:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()     // Catch:{ all -> 0x01b6 }
            if (r0 == 0) goto L_0x0095
            throw r0     // Catch:{ all -> 0x01b6 }
        L_0x0095:
            throw r1     // Catch:{ all -> 0x01b6 }
        L_0x0096:
            java.lang.Object r1 = r4.url$6071f473     // Catch:{ all -> 0x01b6 }
            int r0 = android.os.Process.myTid()     // Catch:{ all -> 0x01ad }
            int r0 = r0 >> 22
            char r6 = (char) r0     // Catch:{ all -> 0x01ad }
            int r0 = android.widget.ExpandableListView.getPackedPositionGroup(r13)     // Catch:{ all -> 0x01ad }
            int r5 = 40 - r0
            int r0 = android.view.ViewConfiguration.getScrollBarSize()     // Catch:{ all -> 0x01ad }
            int r0 = r0 >> 8
            int r0 = 2202 - r0
            java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r6, r5, r0)     // Catch:{ all -> 0x01ad }
            java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x01ad }
            java.lang.reflect.Method r0 = r0.getMethod(r8, r7)     // Catch:{ all -> 0x01ad }
            java.lang.Object r0 = r0.invoke(r1, r7)     // Catch:{ all -> 0x01ad }
            com.apiguard3.domain.Config r0 = (com.apiguard3.domain.Config) r0     // Catch:{ all -> 0x01ad }
            java.lang.String r0 = r0.build()     // Catch:{ all -> 0x01b6 }
            java.lang.Object[] r6 = new java.lang.Object[r3]     // Catch:{ all -> 0x01a4 }
            r6[r10] = r0     // Catch:{ all -> 0x01a4 }
            r6[r2] = r17     // Catch:{ all -> 0x01a4 }
            char r0 = android.text.AndroidCharacter.getMirror(r12)     // Catch:{ all -> 0x01a4 }
            int r0 = 48 - r0
            char r5 = (char) r0     // Catch:{ all -> 0x01a4 }
            float r0 = android.media.AudioTrack.getMinVolume()     // Catch:{ all -> 0x01a4 }
            int r0 = (r0 > r15 ? 1 : (r0 == r15 ? 0 : -1))
            int r1 = r0 + 40
            int r0 = android.text.TextUtils.indexOf(r11, r12, r2)     // Catch:{ all -> 0x01a4 }
            int r0 = r0 + 5998
            java.lang.Object r5 = com.apiguard3.internal.getMethod.AGRequest(r5, r1, r0)     // Catch:{ all -> 0x01a4 }
            java.lang.Class r5 = (java.lang.Class) r5     // Catch:{ all -> 0x01a4 }
            java.lang.Class[] r1 = new java.lang.Class[r3]     // Catch:{ all -> 0x01a4 }
            java.lang.Class<java.util.Map> r0 = java.util.Map.class
            r1[r2] = r0     // Catch:{ all -> 0x01a4 }
            java.lang.Class<java.lang.String> r0 = java.lang.String.class
            r1[r10] = r0     // Catch:{ all -> 0x01a4 }
            java.lang.reflect.Method r0 = r5.getMethod(r9, r1)     // Catch:{ all -> 0x01a4 }
            java.lang.Object r6 = r0.invoke(r7, r6)     // Catch:{ all -> 0x01a4 }
            java.lang.String r6 = (java.lang.String) r6     // Catch:{ all -> 0x01a4 }
            boolean r0 = android.text.TextUtils.isEmpty(r6)     // Catch:{ all -> 0x01b6 }
            if (r0 != 0) goto L_0x0111
        L_0x00fc:
            java.lang.String r0 = "鐁圷뷺毙ꞅ✓ꢾ"
            java.lang.String r0 = AGRequest((java.lang.String) r0)     // Catch:{ all -> 0x01b6 }
            java.lang.String r0 = r0.intern()     // Catch:{ all -> 0x01b6 }
            boolean r0 = r6.equals(r0)     // Catch:{ all -> 0x01b6 }
            goto L_0x011a
        L_0x010b:
            boolean r0 = android.text.TextUtils.isEmpty(r6)     // Catch:{ all -> 0x01b6 }
            if (r0 == 0) goto L_0x00fc
        L_0x0111:
            com.apiguard3.internal.log$getBody r1 = com.apiguard3.internal.log.getBody.getBody     // Catch:{ all -> 0x01b6 }
            com.apiguard3.internal.getState$getUrl r0 = com.apiguard3.internal.getState.getUrl.getMethod     // Catch:{ all -> 0x01b6 }
            com.apiguard3.internal.checkCertificates.getMethod(r1, r0)     // Catch:{ all -> 0x01b6 }
            goto L_0x01a3
        L_0x011a:
            if (r0 == 0) goto L_0x011d
            goto L_0x0196
        L_0x011d:
            int r1 = AGState
            r0 = 89
            int r1 = r1 + r0
            int r0 = r1 % 128
            AGResponse$Builder = r0
            int r1 = r1 % r3
            if (r1 != 0) goto L_0x015e
            java.lang.Object r5 = r4.url$6071f473     // Catch:{ all -> 0x01b6 }
            int r0 = android.graphics.Color.argb(r2, r2, r2, r2)     // Catch:{ all -> 0x0155 }
            char r4 = (char) r0     // Catch:{ all -> 0x0155 }
            int r0 = android.widget.ExpandableListView.getPackedPositionGroup(r13)     // Catch:{ all -> 0x0155 }
            int r3 = 40 - r0
            long r1 = android.os.Process.getElapsedCpuTime()     // Catch:{ all -> 0x0155 }
            int r0 = (r1 > r13 ? 1 : (r1 == r13 ? 0 : -1))
            int r0 = 2203 - r0
            java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r4, r3, r0)     // Catch:{ all -> 0x0155 }
            java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x0155 }
            java.lang.reflect.Method r0 = r0.getMethod(r8, r7)     // Catch:{ all -> 0x0155 }
            java.lang.Object r0 = r0.invoke(r5, r7)     // Catch:{ all -> 0x0155 }
            com.apiguard3.domain.Config r0 = (com.apiguard3.domain.Config) r0     // Catch:{ all -> 0x0155 }
            boolean r0 = r0.addHeader((java.lang.String) r6)     // Catch:{ all -> 0x01b6 }
            if (r0 != 0) goto L_0x0196
            goto L_0x018e
        L_0x0155:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()     // Catch:{ all -> 0x01b6 }
            if (r0 == 0) goto L_0x015d
            throw r0     // Catch:{ all -> 0x01b6 }
        L_0x015d:
            throw r1     // Catch:{ all -> 0x01b6 }
        L_0x015e:
            java.lang.Object r5 = r4.url$6071f473     // Catch:{ all -> 0x01b6 }
            int r0 = android.view.ViewConfiguration.getDoubleTapTimeout()     // Catch:{ all -> 0x019a }
            int r0 = r0 >> 16
            char r4 = (char) r0     // Catch:{ all -> 0x019a }
            int r0 = android.os.Process.myPid()     // Catch:{ all -> 0x019a }
            int r0 = r0 >> 22
            int r3 = r0 + 40
            long r1 = android.os.SystemClock.elapsedRealtime()     // Catch:{ all -> 0x019a }
            int r0 = (r1 > r13 ? 1 : (r1 == r13 ? 0 : -1))
            int r0 = r0 + 2201
            java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r4, r3, r0)     // Catch:{ all -> 0x019a }
            java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x019a }
            java.lang.reflect.Method r0 = r0.getMethod(r8, r7)     // Catch:{ all -> 0x019a }
            java.lang.Object r0 = r0.invoke(r5, r7)     // Catch:{ all -> 0x019a }
            com.apiguard3.domain.Config r0 = (com.apiguard3.domain.Config) r0     // Catch:{ all -> 0x019a }
            boolean r1 = r0.addHeader((java.lang.String) r6)     // Catch:{ all -> 0x01b6 }
            r0 = 7
            if (r1 != 0) goto L_0x0196
        L_0x018e:
            com.apiguard3.internal.log$getBody r1 = com.apiguard3.internal.log.getBody.getBody     // Catch:{ all -> 0x01b6 }
            com.apiguard3.internal.getState$getUrl r0 = com.apiguard3.internal.getState.getUrl.addHeader     // Catch:{ all -> 0x01b6 }
            com.apiguard3.internal.checkCertificates.getMethod(r1, r0)     // Catch:{ all -> 0x01b6 }
            return
        L_0x0196:
            r16.updateKernel()     // Catch:{ all -> 0x01b6 }
            return
        L_0x019a:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()     // Catch:{ all -> 0x01b6 }
            if (r0 == 0) goto L_0x01a2
            throw r0     // Catch:{ all -> 0x01b6 }
        L_0x01a2:
            throw r1     // Catch:{ all -> 0x01b6 }
        L_0x01a3:
            return
        L_0x01a4:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()     // Catch:{ all -> 0x01b6 }
            if (r0 == 0) goto L_0x01ac
            throw r0     // Catch:{ all -> 0x01b6 }
        L_0x01ac:
            throw r1     // Catch:{ all -> 0x01b6 }
        L_0x01ad:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()     // Catch:{ all -> 0x01b6 }
            if (r0 == 0) goto L_0x01b5
            throw r0     // Catch:{ all -> 0x01b6 }
        L_0x01b5:
            throw r1     // Catch:{ all -> 0x01b6 }
        L_0x01b6:
            r0 = move-exception
            com.apiguard3.internal.log$getBody r2 = com.apiguard3.internal.log.getBody.getHeaders
            com.apiguard3.internal.getState$getHeaders r1 = com.apiguard3.internal.getState.getHeaders.headersMultiMap
            java.lang.String r0 = r0.toString()
            com.apiguard3.internal.checkCertificates.AGRequest((com.apiguard3.internal.log.getBody) r2, (com.apiguard3.internal.log.getMethod) r1, (java.lang.String) r0)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.apiguard3.APIGuard.getUrl(java.util.Map):void");
    }

    private void getHeaders(Throwable th) {
        MethodCollector.i(18908);
        AGState aGState = AGState.APIGuardStateFailed;
        synchronized (this.getMethod) {
            try {
                this.getHeaders = aGState;
                APIGuard$InitializationCallback.getBody().AGRequest(this.getHeaders);
            } catch (Throwable th2) {
                MethodCollector.o(18908);
                throw th2;
            }
        }
        final String message = th.getMessage();
        if (TextUtils.isEmpty(message)) {
            message = th.toString();
        }
        checkCertificates.AGRequest(log.getBody.getMethod, message);
        if (this.put != null) {
            try {
                this.get.submit(new Callable<Void>() {
                    public static int AGRequest = 1;
                    public static int getBody;

                    static {
                        Covode.recordClassIndex(2386);
                    }

                    public final /* synthetic */ Object call() {
                        int i = AGRequest + 123;
                        getBody = i % 128;
                        if (i % 2 != 0 || 0 == 1) {
                            APIGuard.AGRequest(APIGuard.this).onInitializationFailure(message);
                            throw new NullPointerException("hashCode");
                        }
                        APIGuard.AGRequest(APIGuard.this).onInitializationFailure(message);
                        int i2 = AGRequest + 37;
                        getBody = i2 % 128;
                        if (i2 % 2 == 0) {
                            return null;
                        }
                        throw new NullPointerException("hashCode");
                    }
                });
            } catch (Throwable th3) {
                checkCertificates.AGRequest(log.getBody.getMethod, (log.getMethod) getState.getBody.AGState, th3.toString());
            }
        }
        if (!(th instanceof IllegalArgumentException)) {
            MethodCollector.o(18908);
        } else {
            MethodCollector.o(18908);
            throw th;
        }
    }

    public static /* synthetic */ void getUrl(APIGuard aPIGuard, AGState aGState) {
        MethodCollector.i(14091);
        synchronized (aPIGuard.getMethod) {
            try {
                aPIGuard.getHeaders = aGState;
                APIGuard$InitializationCallback.getBody().AGRequest(aPIGuard.getHeaders);
            } finally {
                MethodCollector.o(14091);
            }
        }
    }

    public static /* synthetic */ void AGRequest(APIGuard aPIGuard, final String str) {
        if (aPIGuard.put != null) {
            try {
                aPIGuard.get.submit(new Callable<Void>() {
                    public static int AGRequest = 1;
                    public static int getBody;

                    static {
                        Covode.recordClassIndex(2386);
                    }

                    public final /* synthetic */ Object call() {
                        int i = AGRequest + 123;
                        getBody = i % 128;
                        if (i % 2 != 0 || 0 == 1) {
                            APIGuard.AGRequest(APIGuard.this).onInitializationFailure(message);
                            throw new NullPointerException("hashCode");
                        }
                        APIGuard.AGRequest(APIGuard.this).onInitializationFailure(message);
                        int i2 = AGRequest + 37;
                        getBody = i2 % 128;
                        if (i2 % 2 == 0) {
                            return null;
                        }
                        throw new NullPointerException("hashCode");
                    }
                });
                int i = AGResponse$Builder + 85;
                AGState = i % 128;
                if (i % 2 != 0) {
                    throw new NullPointerException("hashCode");
                }
                return;
            } catch (Throwable th) {
                checkCertificates.AGRequest(log.getBody.getMethod, (log.getMethod) getState.getBody.AGState, th.toString());
            }
        }
        int i2 = AGResponse$Builder + 69;
        AGState = i2 % 128;
        int i3 = i2 % 2;
    }

    public static /* synthetic */ Object getMethod$66c52472(APIGuard aPIGuard, Object obj) {
        char c;
        int i = AGResponse$Builder + 75;
        AGState = i % 128;
        if (i % 2 == 0) {
            c = 11;
        } else {
            c = 3;
        }
        aPIGuard.newBuilder$7637ec1a = obj;
        if (c != 11) {
            throw new NullPointerException("hashCode");
        }
        int i2 = AGResponse$Builder + 101;
        AGState = i2 % 128;
        int i3 = i2 % 2;
        return obj;
    }

    /* JADX WARNING: Removed duplicated region for block: B:26:0x0058  */
    /* JADX WARNING: Removed duplicated region for block: B:27:0x0059  */
    /* JADX WARNING: Removed duplicated region for block: B:30:0x005e  */
    /* JADX WARNING: Removed duplicated region for block: B:31:0x0066  */
    /* JADX WARNING: Removed duplicated region for block: B:33:0x006f  */
    /* JADX WARNING: Removed duplicated region for block: B:35:0x0072  */
    /* JADX WARNING: Removed duplicated region for block: B:36:0x0073  */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public synchronized java.util.Map<java.lang.String, java.lang.String> getRequestHeaders(java.lang.String r10, byte[] r11) {
        /*
            r9 = this;
            monitor-enter(r9)
            r8 = 18518(0x4856, float:2.5949E-41)
            com.bytedance.frameworks.apm.trace.MethodCollector.i(r8)     // Catch:{ all -> 0x00b6 }
            java.util.HashMap r2 = new java.util.HashMap     // Catch:{ all -> 0x00b6 }
            r2.<init>()     // Catch:{ all -> 0x00b6 }
            if (r10 == 0) goto L_0x0092
            long r6 = java.lang.System.currentTimeMillis()     // Catch:{ all -> 0x00b6 }
            com.apiguard3.AGState r3 = r9.getHeaders     // Catch:{ all -> 0x00b6 }
            com.apiguard3.AGState r0 = com.apiguard3.AGState.APIGuardStateReady     // Catch:{ all -> 0x00b6 }
            r5 = 47
            r1 = 77
            if (r3 != r0) goto L_0x001c
            goto L_0x001f
        L_0x001c:
            r0 = 77
            goto L_0x0021
        L_0x001f:
            r0 = 47
        L_0x0021:
            r4 = 0
            if (r0 == r1) goto L_0x0025
            goto L_0x0036
        L_0x0025:
            com.apiguard3.AGState r3 = r9.getHeaders     // Catch:{ all -> 0x00b6 }
            com.apiguard3.AGState r0 = com.apiguard3.AGState.APIGuardStateInProgress     // Catch:{ all -> 0x00b6 }
            r1 = 52
            if (r3 == r0) goto L_0x002e
            goto L_0x0031
        L_0x002e:
            r0 = 52
            goto L_0x0033
        L_0x0031:
            r0 = 42
        L_0x0033:
            if (r0 == r1) goto L_0x0036
            goto L_0x003a
        L_0x0036:
            com.apiguard3.getMethod r3 = r9.delete     // Catch:{ all -> 0x00b6 }
            if (r3 != 0) goto L_0x0043
        L_0x003a:
            com.apiguard3.internal.log$getBody r1 = com.apiguard3.internal.log.getBody.getMethod     // Catch:{ all -> 0x00b6 }
            com.apiguard3.internal.getState$getBody r0 = com.apiguard3.internal.getState.getBody.statusCode     // Catch:{ all -> 0x00b6 }
            com.apiguard3.internal.checkCertificates.getMethod(r1, r0)     // Catch:{ all -> 0x00b6 }
            r3 = 0
            goto L_0x0051
        L_0x0043:
            int r0 = AGResponse$Builder     // Catch:{ all -> 0x00b6 }
            int r1 = r0 + 53
            int r0 = r1 % 128
            AGState = r0     // Catch:{ all -> 0x00b6 }
            int r0 = r1 % 2
            boolean r3 = r3.getMethod(r2, r10, r11)     // Catch:{ all -> 0x00b6 }
        L_0x0051:
            boolean r0 = r2.isEmpty()     // Catch:{ all -> 0x00b6 }
            r1 = 1
            if (r0 == 0) goto L_0x0059
            goto L_0x005b
        L_0x0059:
            r0 = 1
            goto L_0x005c
        L_0x005b:
            r0 = 0
        L_0x005c:
            if (r0 == r1) goto L_0x0066
            com.apiguard3.internal.log$getBody r1 = com.apiguard3.internal.log.getBody.getBody     // Catch:{ all -> 0x00b6 }
            com.apiguard3.internal.getState$getUrl r0 = com.apiguard3.internal.getState.getUrl.getHeaders     // Catch:{ all -> 0x00b6 }
            com.apiguard3.internal.checkCertificates.getMethod(r1, r0)     // Catch:{ all -> 0x00b6 }
            goto L_0x006d
        L_0x0066:
            com.apiguard3.internal.log$getBody r1 = com.apiguard3.internal.log.getBody.getBody     // Catch:{ all -> 0x00b6 }
            com.apiguard3.internal.getState$getUrl r0 = com.apiguard3.internal.getState.getUrl.AGRequest     // Catch:{ all -> 0x00b6 }
            com.apiguard3.internal.checkCertificates.getMethod(r1, r0)     // Catch:{ all -> 0x00b6 }
        L_0x006d:
            if (r3 != 0) goto L_0x0070
            r4 = 1
        L_0x0070:
            if (r4 == 0) goto L_0x0073
            goto L_0x0085
        L_0x0073:
            int r1 = AGResponse$Builder     // Catch:{ all -> 0x00b6 }
            int r1 = r1 + r5
            int r0 = r1 % 128
            AGState = r0     // Catch:{ all -> 0x00b6 }
            int r0 = r1 % 2
            long r0 = java.lang.System.currentTimeMillis()     // Catch:{ all -> 0x00b6 }
            long r0 = r0 - r6
            com.apiguard3.internal.SConfig.getUrl.getMethod(r0)     // Catch:{ all -> 0x00b6 }
            goto L_0x008d
        L_0x0085:
            long r0 = java.lang.System.currentTimeMillis()     // Catch:{ all -> 0x00b6 }
            long r0 = r0 - r6
            com.apiguard3.internal.SConfig.getUrl.getUrl(r0)     // Catch:{ all -> 0x00b6 }
        L_0x008d:
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r8)     // Catch:{ all -> 0x00b6 }
            monitor-exit(r9)
            return r2
        L_0x0092:
            int r0 = AGState     // Catch:{ all -> 0x00b6 }
            int r1 = r0 + 83
            int r0 = r1 % 128
            AGResponse$Builder = r0     // Catch:{ all -> 0x00b6 }
            int r0 = r1 % 2
            if (r0 != 0) goto L_0x00aa
            com.apiguard3.internal.log$getBody r1 = com.apiguard3.internal.log.getBody.getMethod     // Catch:{ all -> 0x00b6 }
            com.apiguard3.internal.getState$getBody r0 = com.apiguard3.internal.getState.getBody.valueOf     // Catch:{ all -> 0x00b6 }
            com.apiguard3.internal.checkCertificates.getMethod(r1, r0)     // Catch:{ all -> 0x00b6 }
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r8)     // Catch:{ all -> 0x00b6 }
            monitor-exit(r9)
            return r2
        L_0x00aa:
            com.apiguard3.internal.log$getBody r1 = com.apiguard3.internal.log.getBody.getMethod     // Catch:{ all -> 0x00b6 }
            com.apiguard3.internal.getState$getBody r0 = com.apiguard3.internal.getState.getBody.valueOf     // Catch:{ all -> 0x00b6 }
            com.apiguard3.internal.checkCertificates.getMethod(r1, r0)     // Catch:{ all -> 0x00b6 }
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r8)     // Catch:{ all -> 0x00b6 }
            monitor-exit(r9)
            return r2
        L_0x00b6:
            r0 = move-exception
            monitor-exit(r9)
            throw r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.apiguard3.APIGuard.getRequestHeaders(java.lang.String, byte[]):java.util.Map");
    }

    public synchronized void initialize(Application application, int i) {
        MethodCollector.i(18472);
        if (!getMethod()) {
            log.getBody getbody = log.getBody.AGRequest;
            StringBuilder sb = new StringBuilder();
            sb.append(getHeaders("\u0007\u0004\u000b\r\u0007\u0014\n\u0007\u0001\u000e\u0007\u0014\u0011\t\u0014\t\u000e\u0002\u0002\u0012\u000e\u0003\t\u0014\u0003\f\u000f\u0013\u0014\u000e\u0014\u0007\u0000\u0013\u0007\u001b\u000e\u000f\u0005\u0014\u0011\r\u0007\u0014\n\u0007\u0006\u0007\u000f\u001b@", TextUtils.lastIndexOf("", '0', 0) + 54, (byte) (32 - (ViewConfiguration.getPressedStateDuration() >> 16))).intern());
            sb.append(this.getHeaders);
            checkCertificates.AGRequest(getbody, sb.toString());
            MethodCollector.o(18472);
            return;
        }
        SConfig.getUrl.getMethod();
        AGState aGState = AGState.APIGuardStateInProgress;
        synchronized (this.getMethod) {
            try {
                this.getHeaders = aGState;
                APIGuard$InitializationCallback.getBody().AGRequest(this.getHeaders);
            } catch (Throwable th) {
                MethodCollector.o(18472);
                throw th;
            }
        }
        if (application != null) {
            try {
                ((Class) getMethod.AGRequest((char) (ViewConfiguration.getWindowTouchSlop() >> 8), AndroidCharacter.getMirror('0') + 1, (ViewConfiguration.getScrollBarSize() >> 8) + 5815)).getMethod("AGRequest", new Class[]{Context.class}).invoke(((Class) getMethod.AGRequest((char) (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)), 48 - TextUtils.indexOf("", '0', 0, 0), 5816 - (SystemClock.currentThreadTimeMillis() > -1 ? 1 : (SystemClock.currentThreadTimeMillis() == -1 ? 0 : -1)))).getMethod("getHeaders", (Class[]) null).invoke((Object) null, (Object[]) null), new Object[]{application});
                if (application instanceof Callback) {
                    Callback callback = (Callback) application;
                    getHeaders(callback);
                    APIGuard$InitializationCallback.getBody().getUrl(callback);
                    getHeaders(application, callback, INVOKEVIRTUAL_com_apiguard3_APIGuard_com_ss_android_ugc_aweme_lancet_launch_ApplicationContextLancet_getApplicationContext(application).getResources().getAssets().open(this.AGRequest$Builder));
                    MethodCollector.o(18472);
                    return;
                }
                IllegalArgumentException illegalArgumentException = new IllegalArgumentException(getState.getBody.getMethod.AGRequest());
                MethodCollector.o(18472);
                throw illegalArgumentException;
            } catch (Throwable th2) {
                getHeaders(th2);
                MethodCollector.o(18472);
            }
        } else {
            IllegalArgumentException illegalArgumentException2 = new IllegalArgumentException(getState.getBody.getBody.AGRequest());
            MethodCollector.o(18472);
            throw illegalArgumentException2;
        }
    }

    /*  JADX ERROR: JadxRuntimeException in pass: CodeShrinkVisitor
        jadx.core.utils.exceptions.JadxRuntimeException: Don't wrap MOVE or CONST insns: 0x0008: MOVE  (r4v0 java.lang.Object) = (r19v0 java.lang.Object)
        	at jadx.core.dex.instructions.args.InsnArg.wrapArg(InsnArg.java:164)
        	at jadx.core.dex.visitors.shrink.CodeShrinkVisitor.assignInline(CodeShrinkVisitor.java:133)
        	at jadx.core.dex.visitors.shrink.CodeShrinkVisitor.checkInline(CodeShrinkVisitor.java:118)
        	at jadx.core.dex.visitors.shrink.CodeShrinkVisitor.shrinkBlock(CodeShrinkVisitor.java:65)
        	at jadx.core.dex.visitors.shrink.CodeShrinkVisitor.shrinkMethod(CodeShrinkVisitor.java:43)
        	at jadx.core.dex.visitors.shrink.CodeShrinkVisitor.visit(CodeShrinkVisitor.java:35)
        */
    public static /* synthetic */ void AGRequest$2ea0c6bc(com.apiguard3.domain.Config r18, java.lang.Object r19) {
        /*
            java.lang.String r11 = "getBody"
            java.lang.String r8 = ""
            r17 = 2
            if (r18 == 0) goto L_0x02d8
            r4 = r19
            if (r4 == 0) goto L_0x02d8
            r5 = 48
            r7 = 0
            int r0 = android.text.TextUtils.indexOf(r8, r5, r7)     // Catch:{ all -> 0x02cf }
            int r0 = r0 + 1922
            char r3 = (char) r0     // Catch:{ all -> 0x02cf }
            int r0 = android.graphics.ImageFormat.getBitsPerPixel(r7)     // Catch:{ all -> 0x02cf }
            int r2 = r0 + 47
            r1 = 0
            float r0 = android.graphics.PointF.length(r1, r1)     // Catch:{ all -> 0x02cf }
            int r0 = (r0 > r1 ? 1 : (r0 == r1 ? 0 : -1))
            int r0 = r0 + 2368
            java.lang.Object r2 = com.apiguard3.internal.getMethod.AGRequest(r3, r2, r0)     // Catch:{ all -> 0x02cf }
            java.lang.Class r2 = (java.lang.Class) r2     // Catch:{ all -> 0x02cf }
            java.lang.String r0 = "getHeaders"
            r3 = 0
            java.lang.reflect.Method r0 = r2.getMethod(r0, r3)     // Catch:{ all -> 0x02cf }
            java.lang.Object r6 = r0.invoke(r4, r3)     // Catch:{ all -> 0x02cf }
            r9 = 1
            if (r6 != 0) goto L_0x003b
            goto L_0x024a
        L_0x003b:
            int r0 = AGState
            int r2 = r0 + 21
            int r0 = r2 % 128
            AGResponse$Builder = r0
            int r2 = r2 % r17
            java.lang.String r4 = "AGRequest"
            r15 = 0
            if (r2 == 0) goto L_0x0293
            java.lang.String r14 = r18.headers()
            long r12 = android.widget.ExpandableListView.getPackedPositionForGroup(r7)     // Catch:{ all -> 0x028a }
            int r0 = (r12 > r15 ? 1 : (r12 == r15 ? 0 : -1))
            char r10 = (char) r0     // Catch:{ all -> 0x028a }
            int r0 = android.view.ViewConfiguration.getLongPressTimeout()     // Catch:{ all -> 0x028a }
            int r0 = r0 >> 16
            int r2 = 30 - r0
            int r0 = android.text.TextUtils.getOffsetAfter(r8, r7)     // Catch:{ all -> 0x028a }
            int r0 = 1106 - r0
            java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r10, r2, r0)     // Catch:{ all -> 0x028a }
            java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x028a }
            java.lang.reflect.Method r0 = r0.getMethod(r4, r3)     // Catch:{ all -> 0x028a }
            java.lang.Object r0 = r0.invoke(r6, r3)     // Catch:{ all -> 0x028a }
            java.util.Map r0 = (java.util.Map) r0     // Catch:{ all -> 0x028a }
            boolean r0 = r0.isEmpty()
            if (r0 != 0) goto L_0x007b
            return
        L_0x007b:
            int r0 = android.text.TextUtils.getTrimmedLength(r8)     // Catch:{ all -> 0x0281 }
            char r4 = (char) r0     // Catch:{ all -> 0x0281 }
            float r0 = android.view.ViewConfiguration.getScrollFriction()     // Catch:{ all -> 0x0281 }
            int r0 = (r0 > r1 ? 1 : (r0 == r1 ? 0 : -1))
            int r2 = 31 - r0
            int r0 = android.view.View.getDefaultSize(r7, r7)     // Catch:{ all -> 0x0281 }
            int r0 = 1106 - r0
            java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r4, r2, r0)     // Catch:{ all -> 0x0281 }
            java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x0281 }
            java.lang.reflect.Method r0 = r0.getMethod(r11, r3)     // Catch:{ all -> 0x0281 }
            java.lang.Object r0 = r0.invoke(r6, r3)     // Catch:{ all -> 0x0281 }
            java.util.Map r0 = (java.util.Map) r0     // Catch:{ all -> 0x0281 }
            boolean r0 = r0.isEmpty()
            if (r0 != 0) goto L_0x00a5
            return
        L_0x00a5:
            int r0 = android.text.TextUtils.lastIndexOf(r8, r5, r7, r7)     // Catch:{ all -> 0x0278 }
            int r0 = -1 - r0
            char r4 = (char) r0     // Catch:{ all -> 0x0278 }
            int r0 = android.graphics.ImageFormat.getBitsPerPixel(r7)     // Catch:{ all -> 0x0278 }
            int r2 = 25 - r0
            int r0 = android.view.ViewConfiguration.getLongPressTimeout()     // Catch:{ all -> 0x0278 }
            int r0 = r0 >> 16
            int r0 = r0 + 1984
            java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r4, r2, r0)     // Catch:{ all -> 0x0278 }
            java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x0278 }
            java.lang.reflect.Constructor r0 = r0.getDeclaredConstructor(r3)     // Catch:{ all -> 0x0278 }
            java.lang.Object r4 = r0.newInstance(r3)     // Catch:{ all -> 0x0278 }
            long r12 = android.widget.ExpandableListView.getPackedPositionForGroup(r7)     // Catch:{ all -> 0x026f }
            int r0 = (r12 > r15 ? 1 : (r12 == r15 ? 0 : -1))
            char r5 = (char) r0     // Catch:{ all -> 0x026f }
            long r12 = android.view.ViewConfiguration.getZoomControlsTimeout()     // Catch:{ all -> 0x026f }
            int r0 = (r12 > r15 ? 1 : (r12 == r15 ? 0 : -1))
            int r2 = r0 + 25
            int r0 = android.text.TextUtils.indexOf(r8, r8, r7)     // Catch:{ all -> 0x026f }
            int r0 = r0 + 1984
            java.lang.Object r2 = com.apiguard3.internal.getMethod.AGRequest(r5, r2, r0)     // Catch:{ all -> 0x026f }
            java.lang.Class r2 = (java.lang.Class) r2     // Catch:{ all -> 0x026f }
            java.lang.String r0 = "getMethod"
            java.lang.reflect.Method r0 = r2.getMethod(r0, r3)     // Catch:{ all -> 0x026f }
            java.lang.Object r13 = r0.invoke(r4, r3)     // Catch:{ all -> 0x026f }
            java.io.File r13 = (java.io.File) r13     // Catch:{ all -> 0x026f }
            boolean r0 = r13.exists()
            if (r0 != 0) goto L_0x00f6
            return
        L_0x00f6:
            int r0 = AGState
            int r2 = r0 + 55
            int r0 = r2 % 128
            AGResponse$Builder = r0
            int r2 = r2 % r17
            java.lang.String r5 = "getUrl"
            r10 = 3
            if (r2 != 0) goto L_0x019f
            java.lang.Object[] r12 = new java.lang.Object[r9]     // Catch:{ all -> 0x0196 }
            r12[r7] = r13     // Catch:{ all -> 0x0196 }
            int r0 = android.graphics.Color.argb(r7, r7, r7, r7)     // Catch:{ all -> 0x0196 }
            char r4 = (char) r0     // Catch:{ all -> 0x0196 }
            int r0 = android.view.ViewConfiguration.getEdgeSlop()     // Catch:{ all -> 0x0196 }
            int r0 = r0 >> 16
            int r2 = 26 - r0
            int r0 = android.text.TextUtils.indexOf(r8, r8, r7, r7)     // Catch:{ all -> 0x0196 }
            int r0 = r0 + 1958
            java.lang.Object r4 = com.apiguard3.internal.getMethod.AGRequest(r4, r2, r0)     // Catch:{ all -> 0x0196 }
            java.lang.Class r4 = (java.lang.Class) r4     // Catch:{ all -> 0x0196 }
            java.lang.Class[] r2 = new java.lang.Class[r9]     // Catch:{ all -> 0x0196 }
            java.lang.Class<java.io.File> r0 = java.io.File.class
            r2[r7] = r0     // Catch:{ all -> 0x0196 }
            java.lang.reflect.Method r0 = r4.getMethod(r11, r2)     // Catch:{ all -> 0x0196 }
            java.lang.Object r0 = r0.invoke(r3, r12)     // Catch:{ all -> 0x0196 }
            java.lang.Object[] r2 = new java.lang.Object[r10]     // Catch:{ all -> 0x018d }
            r2[r17] = r14     // Catch:{ all -> 0x018d }
            r2[r9] = r0     // Catch:{ all -> 0x018d }
            r2[r7] = r6     // Catch:{ all -> 0x018d }
            float r0 = android.util.TypedValue.complexToFloat(r7)     // Catch:{ all -> 0x018d }
            int r0 = (r0 > r1 ? 1 : (r0 == r1 ? 0 : -1))
            char r4 = (char) r0     // Catch:{ all -> 0x018d }
            r0 = 0
            int r0 = android.widget.ExpandableListView.getPackedPositionType(r0)     // Catch:{ all -> 0x018d }
            int r1 = 40 - r0
            int r0 = android.os.Process.getGidForName(r8)     // Catch:{ all -> 0x018d }
            int r0 = r0 + 5998
            java.lang.Object r4 = com.apiguard3.internal.getMethod.AGRequest(r4, r1, r0)     // Catch:{ all -> 0x018d }
            java.lang.Class r4 = (java.lang.Class) r4     // Catch:{ all -> 0x018d }
            java.lang.Class[] r6 = new java.lang.Class[r10]     // Catch:{ all -> 0x018d }
            r0 = 48
            int r0 = android.text.TextUtils.lastIndexOf(r8, r0, r7)     // Catch:{ all -> 0x018d }
            int r0 = r0 + r9
            char r10 = (char) r0     // Catch:{ all -> 0x018d }
            int r0 = android.graphics.Color.red(r7)     // Catch:{ all -> 0x018d }
            int r1 = 30 - r0
            int r0 = android.view.ViewConfiguration.getScrollBarSize()     // Catch:{ all -> 0x018d }
            int r0 = r0 >> 8
            int r0 = r0 + 1106
            java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r10, r1, r0)     // Catch:{ all -> 0x018d }
            java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x018d }
            r6[r7] = r0     // Catch:{ all -> 0x018d }
            java.lang.Class<byte[]> r0 = byte[].class
            r6[r9] = r0     // Catch:{ all -> 0x018d }
            java.lang.Class<java.lang.String> r0 = java.lang.String.class
            r6[r17] = r0     // Catch:{ all -> 0x018d }
            java.lang.reflect.Method r0 = r4.getMethod(r5, r6)     // Catch:{ all -> 0x018d }
            java.lang.Object r0 = com_apiguard3_APIGuard_java_lang_reflect_Method_invoke(r0, r3, r2)     // Catch:{ all -> 0x018d }
            java.lang.Boolean r0 = (java.lang.Boolean) r0     // Catch:{ all -> 0x018d }
            boolean r0 = r0.booleanValue()     // Catch:{ all -> 0x018d }
            if (r0 != 0) goto L_0x024b
            goto L_0x0228
        L_0x018d:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()
            if (r0 == 0) goto L_0x0195
            throw r0
        L_0x0195:
            throw r1
        L_0x0196:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()
            if (r0 == 0) goto L_0x019e
            throw r0
        L_0x019e:
            throw r1
        L_0x019f:
            java.lang.Object[] r4 = new java.lang.Object[r9]     // Catch:{ all -> 0x0266 }
            r4[r7] = r13     // Catch:{ all -> 0x0266 }
            int r0 = android.view.ViewConfiguration.getMinimumFlingVelocity()     // Catch:{ all -> 0x0266 }
            int r0 = r0 >> 16
            char r2 = (char) r0     // Catch:{ all -> 0x0266 }
            int r0 = android.text.TextUtils.indexOf(r8, r8)     // Catch:{ all -> 0x0266 }
            int r1 = r0 + 26
            int r0 = android.view.ViewConfiguration.getEdgeSlop()     // Catch:{ all -> 0x0266 }
            int r0 = r0 >> 16
            int r0 = 1958 - r0
            java.lang.Object r2 = com.apiguard3.internal.getMethod.AGRequest(r2, r1, r0)     // Catch:{ all -> 0x0266 }
            java.lang.Class r2 = (java.lang.Class) r2     // Catch:{ all -> 0x0266 }
            java.lang.Class[] r1 = new java.lang.Class[r9]     // Catch:{ all -> 0x0266 }
            java.lang.Class<java.io.File> r0 = java.io.File.class
            r1[r7] = r0     // Catch:{ all -> 0x0266 }
            java.lang.reflect.Method r0 = r2.getMethod(r11, r1)     // Catch:{ all -> 0x0266 }
            java.lang.Object r0 = r0.invoke(r3, r4)     // Catch:{ all -> 0x0266 }
            java.lang.Object[] r4 = new java.lang.Object[r10]     // Catch:{ all -> 0x025d }
            r4[r17] = r14     // Catch:{ all -> 0x025d }
            r4[r9] = r0     // Catch:{ all -> 0x025d }
            r4[r7] = r6     // Catch:{ all -> 0x025d }
            int r0 = android.view.KeyEvent.getDeadChar(r7, r7)     // Catch:{ all -> 0x025d }
            char r2 = (char) r0     // Catch:{ all -> 0x025d }
            int r0 = android.graphics.drawable.Drawable.resolveOpacity(r7, r7)     // Catch:{ all -> 0x025d }
            int r1 = 40 - r0
            int r0 = android.view.ViewConfiguration.getEdgeSlop()     // Catch:{ all -> 0x025d }
            int r0 = r0 >> 16
            int r0 = r0 + 5997
            java.lang.Object r6 = com.apiguard3.internal.getMethod.AGRequest(r2, r1, r0)     // Catch:{ all -> 0x025d }
            java.lang.Class r6 = (java.lang.Class) r6     // Catch:{ all -> 0x025d }
            java.lang.Class[] r2 = new java.lang.Class[r10]     // Catch:{ all -> 0x025d }
            int r0 = android.text.TextUtils.getCapsMode(r8, r7, r7)     // Catch:{ all -> 0x025d }
            char r10 = (char) r0     // Catch:{ all -> 0x025d }
            long r13 = android.os.SystemClock.uptimeMillis()     // Catch:{ all -> 0x025d }
            r11 = 0
            int r0 = (r13 > r11 ? 1 : (r13 == r11 ? 0 : -1))
            int r1 = 31 - r0
            int r0 = android.os.Process.getThreadPriority(r7)     // Catch:{ all -> 0x025d }
            int r0 = r0 + 20
            int r0 = r0 >> 6
            int r0 = r0 + 1106
            java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r10, r1, r0)     // Catch:{ all -> 0x025d }
            java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x025d }
            r2[r7] = r0     // Catch:{ all -> 0x025d }
            java.lang.Class<byte[]> r0 = byte[].class
            r2[r9] = r0     // Catch:{ all -> 0x025d }
            java.lang.Class<java.lang.String> r0 = java.lang.String.class
            r2[r17] = r0     // Catch:{ all -> 0x025d }
            java.lang.reflect.Method r0 = r6.getMethod(r5, r2)     // Catch:{ all -> 0x025d }
            java.lang.Object r0 = r0.invoke(r3, r4)     // Catch:{ all -> 0x025d }
            java.lang.Boolean r0 = (java.lang.Boolean) r0     // Catch:{ all -> 0x025d }
            boolean r0 = r0.booleanValue()     // Catch:{ all -> 0x025d }
            if (r0 != 0) goto L_0x024b
        L_0x0228:
            com.apiguard3.internal.log$getBody r9 = com.apiguard3.internal.log.getBody.getHeaders
            com.apiguard3.internal.getState$getHeaders r6 = com.apiguard3.internal.getState.getHeaders.E$CvmPayloadSerializationProxy
            long r4 = android.os.SystemClock.uptimeMillis()
            java.lang.String r3 = "\u001e\u0014\u0007\u0011\u0003\u0007\u0013\u000f\u001c\u0006*\u0015#\u0001 \u0003\u0006\u0001\u0013\u000f\u0015\u0004\u0012\u0002\u000e\u0013"
            r1 = 0
            int r0 = (r4 > r1 ? 1 : (r4 == r1 ? 0 : -1))
            int r1 = r0 + 25
            int r0 = android.text.TextUtils.indexOf(r8, r8, r7)
            int r0 = r0 + 53
            byte r0 = (byte) r0
            java.lang.String r0 = getHeaders((java.lang.String) r3, (int) r1, (byte) r0)
            java.lang.String r0 = r0.intern()
            com.apiguard3.internal.checkCertificates.AGRequest((com.apiguard3.internal.log.getBody) r9, (com.apiguard3.internal.log.getMethod) r6, (java.lang.String) r0)
        L_0x024a:
            return
        L_0x024b:
            com.apiguard3.internal.log$getBody r2 = com.apiguard3.internal.log.getBody.getHeaders
            com.apiguard3.internal.getState$getHeaders r1 = com.apiguard3.internal.getState.getHeaders.E$CvmPayloadSerializationProxy
            java.lang.String r0 = "䷹闝쇧煑綽醶辫谄黩폪⢃凿먆뿡暛?烏׹햁댠蕘诚"
            java.lang.String r0 = AGRequest((java.lang.String) r0)
            java.lang.String r0 = r0.intern()
            com.apiguard3.internal.checkCertificates.AGRequest((com.apiguard3.internal.log.getBody) r2, (com.apiguard3.internal.log.getMethod) r1, (java.lang.String) r0)
            return
        L_0x025d:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()
            if (r0 == 0) goto L_0x0265
            throw r0
        L_0x0265:
            throw r1
        L_0x0266:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()
            if (r0 == 0) goto L_0x026e
            throw r0
        L_0x026e:
            throw r1
        L_0x026f:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()
            if (r0 == 0) goto L_0x0277
            throw r0
        L_0x0277:
            throw r1
        L_0x0278:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()
            if (r0 == 0) goto L_0x0280
            throw r0
        L_0x0280:
            throw r1
        L_0x0281:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()
            if (r0 == 0) goto L_0x0289
            throw r0
        L_0x0289:
            throw r1
        L_0x028a:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()
            if (r0 == 0) goto L_0x0292
            throw r0
        L_0x0292:
            throw r1
        L_0x0293:
            java.lang.String r0 = r18.headers()
            int r0 = android.graphics.Color.green(r7)     // Catch:{ all -> 0x02c6 }
            char r2 = (char) r0     // Catch:{ all -> 0x02c6 }
            int r0 = android.text.TextUtils.indexOf(r8, r5, r7, r7)     // Catch:{ all -> 0x02c6 }
            int r1 = 29 - r0
            int r0 = android.text.TextUtils.lastIndexOf(r8, r5, r7)     // Catch:{ all -> 0x02c6 }
            int r0 = r0 + 1107
            java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r2, r1, r0)     // Catch:{ all -> 0x02c6 }
            java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x02c6 }
            java.lang.reflect.Method r0 = r0.getMethod(r4, r3)     // Catch:{ all -> 0x02c6 }
            java.lang.Object r0 = r0.invoke(r6, r3)     // Catch:{ all -> 0x02c6 }
            java.util.Map r0 = (java.util.Map) r0     // Catch:{ all -> 0x02c6 }
            boolean r0 = r0.isEmpty()
            java.lang.String r1 = "hashCode"
            java.lang.NullPointerException r0 = new java.lang.NullPointerException     // Catch:{ all -> 0x02c4 }
            r0.<init>(r1)     // Catch:{ all -> 0x02c4 }
            throw r0     // Catch:{ all -> 0x02c4 }
        L_0x02c4:
            r0 = move-exception
            throw r0
        L_0x02c6:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()
            if (r0 == 0) goto L_0x02ce
            throw r0
        L_0x02ce:
            throw r1
        L_0x02cf:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()
            if (r0 == 0) goto L_0x02d7
            throw r0
        L_0x02d7:
            throw r1
        L_0x02d8:
            int r0 = AGState
            int r1 = r0 + 45
            int r0 = r1 % 128
            AGResponse$Builder = r0
            int r1 = r1 % r17
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.apiguard3.APIGuard.AGRequest$2ea0c6bc(com.apiguard3.domain.Config, java.lang.Object):void");
    }

    private void getHeaders(final Application application, final Callback callback, final InputStream inputStream) {
        try {
            parseResponseHeaders.AGRequest(AGRequest("曀꺁ଡ櫆焱瓥紀䕈ඐ놿댶").intern(), new Runnable() {
                public static int AGRequest;
                public static int url = 1;

                static {
                    Covode.recordClassIndex(2388);
                }

                public final void run() {
                    int i = url + 53;
                    AGRequest = i % 128;
                    int i2 = i % 2;
                    try {
                        APIGuard.AGRequest(APIGuard.this, application, inputStream, callback);
                        int i3 = AGRequest + 57;
                        url = i3 % 128;
                        int i4 = i3 % 2;
                    } catch (Throwable th) {
                        checkCertificates.getMethod(log.getBody.getMethod, getState.getBody.APIGuard);
                        checkCertificates.AGRequest(log.getBody.getHeaders, Arrays.toString(th.getStackTrace()));
                    }
                }
            });
            int i = AGResponse$Builder + 67;
            AGState = i % 128;
            int i2 = i % 2;
        } catch (Throwable th) {
            checkCertificates.AGRequest(log.getBody.getHeaders, (log.getMethod) getState.getBody.APIGuard, th.toString());
            throw new IllegalThreadStateException(getState.getBody.APIGuard.AGRequest());
        }
    }

    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r11v1, resolved type: char[]} */
    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r11v2, resolved type: java.lang.String} */
    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r11v4, resolved type: java.lang.String} */
    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r11v5, resolved type: java.lang.String} */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public static java.lang.String getHeaders(java.lang.String r11, int r12, byte r13) {
        /*
            r0 = 75
            if (r11 != 0) goto L_0x00a8
        L_0x0004:
            char[] r11 = (char[]) r11
            char[] r10 = head
            char r4 = headers
            char[] r3 = new char[r12]
            int r0 = r12 % 2
            r2 = 0
            if (r0 != 0) goto L_0x0094
        L_0x0011:
            r0 = 1
            if (r12 <= r0) goto L_0x0018
        L_0x0014:
            r0 = 24
            if (r2 < r12) goto L_0x001e
        L_0x0018:
            java.lang.String r0 = new java.lang.String
            r0.<init>(r3)
            return r0
        L_0x001e:
            int r0 = AGState
            int r1 = r0 + 117
            int r0 = r1 % 128
            AGResponse$Builder = r0
            int r0 = r1 % 2
            char r5 = r11[r2]
            int r9 = r2 + 1
            char r1 = r11[r9]
            r0 = 99
            if (r5 == r1) goto L_0x008b
            int r8 = com.apiguard3.internal.setNextClusterForwardId.AGRequest(r5, r4)
            int r7 = com.apiguard3.internal.setNextClusterForwardId.getBody(r5, r4)
            int r6 = com.apiguard3.internal.setNextClusterForwardId.AGRequest(r1, r4)
            int r5 = com.apiguard3.internal.setNextClusterForwardId.getBody(r1, r4)
            if (r7 != r5) goto L_0x005f
            int r0 = com.apiguard3.internal.setNextClusterForwardId.getHeaders(r8, r4)
            int r1 = com.apiguard3.internal.setNextClusterForwardId.getHeaders(r6, r4)
            int r0 = com.apiguard3.internal.setNextClusterForwardId.getBody(r0, r7, r4)
            int r1 = com.apiguard3.internal.setNextClusterForwardId.getBody(r1, r5, r4)
            char r0 = r10[r0]
            r3[r2] = r0
            char r0 = r10[r1]
            r3[r9] = r0
        L_0x005c:
            int r2 = r2 + 2
            goto L_0x0014
        L_0x005f:
            if (r8 != r6) goto L_0x007a
            int r0 = com.apiguard3.internal.setNextClusterForwardId.getHeaders(r7, r4)
            int r1 = com.apiguard3.internal.setNextClusterForwardId.getHeaders(r5, r4)
            int r0 = com.apiguard3.internal.setNextClusterForwardId.getBody(r8, r0, r4)
            int r1 = com.apiguard3.internal.setNextClusterForwardId.getBody(r6, r1, r4)
            char r0 = r10[r0]
            r3[r2] = r0
            char r0 = r10[r1]
            r3[r9] = r0
            goto L_0x005c
        L_0x007a:
            int r0 = com.apiguard3.internal.setNextClusterForwardId.getBody(r8, r5, r4)
            int r1 = com.apiguard3.internal.setNextClusterForwardId.getBody(r6, r7, r4)
            char r0 = r10[r0]
            r3[r2] = r0
            char r0 = r10[r1]
            r3[r9] = r0
            goto L_0x005c
        L_0x008b:
            int r5 = r5 - r13
            char r0 = (char) r5
            r3[r2] = r0
            int r1 = r1 - r13
            char r0 = (char) r1
            r3[r9] = r0
            goto L_0x005c
        L_0x0094:
            int r0 = AGState
            int r1 = r0 + 93
            int r0 = r1 % 128
            AGResponse$Builder = r0
            int r0 = r1 % 2
            int r12 = r12 + -1
            char r0 = r11[r12]
            int r0 = r0 - r13
            char r0 = (char) r0
            r3[r12] = r0
            goto L_0x0011
        L_0x00a8:
            char[] r11 = r11.toCharArray()
            goto L_0x0004
        */
        throw new UnsupportedOperationException("Method not decompiled: com.apiguard3.APIGuard.getHeaders(java.lang.String, int, byte):java.lang.String");
    }

    public synchronized void analyzeResponse(String str, Map<String, List<String>> map, byte[] bArr, int i) {
        MethodCollector.i(18648);
        int i2 = AGState + 17;
        AGResponse$Builder = i2 % 128;
        int i3 = i2 % 2;
        Object obj = this.AGRequest$efd69f8;
        try {
            Object[] objArr = new Object[4];
            objArr[3] = Integer.valueOf(i);
            objArr[2] = bArr;
            objArr[1] = map;
            objArr[0] = str;
            ((Class) getMethod.AGRequest((char) (ViewConfiguration.getScrollBarSize() >> 8), 34 - (AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1)), (KeyEvent.getMaxKeyCode() >> 16) + 2914)).getMethod("getBody", new Class[]{String.class, Map.class, byte[].class, Integer.TYPE}).invoke(obj, objArr);
            parseResponseHeaders((Map) ((Class) getMethod.AGRequest((char) (Process.getGidForName("") + 1), 'e' - AndroidCharacter.getMirror('0'), 5943 - ExpandableListView.getPackedPositionChild(0))).getMethod("AGRequest", new Class[]{Map.class}).invoke((Object) null, new Object[]{map}));
            int i4 = AGResponse$Builder + 97;
            AGState = i4 % 128;
            if (i4 % 2 == 0) {
                MethodCollector.o(18648);
            } else {
                throw new NullPointerException("hashCode");
            }
        } catch (Throwable th) {
            MethodCollector.o(18648);
            throw th;
        }
    }

    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r6v0, resolved type: java.lang.Object[]} */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public synchronized java.util.Map<java.lang.String, java.lang.String> generateHeaders(java.lang.String r14, java.lang.String r15, java.util.Map<java.lang.String, java.util.List<java.lang.String>> r16, byte[] r17) {
        /*
            r13 = this;
            monitor-enter(r13)
            r12 = 18616(0x48b8, float:2.6087E-41)
            com.bytedance.frameworks.apm.trace.MethodCollector.i(r12)     // Catch:{ all -> 0x016f }
            com.apiguard3.internal.onInitializationFailure$getBody r3 = com.apiguard3.internal.onInitializationFailure.getBody.getBody     // Catch:{ all -> 0x016f }
            java.lang.String r0 = "罁?鉶谙灾铼砄?屗칓ۺꩽ?恫祯鐓"
            java.lang.String r0 = AGRequest((java.lang.String) r0)     // Catch:{ all -> 0x016f }
            java.lang.String r2 = r0.intern()     // Catch:{ all -> 0x016f }
            java.lang.String r5 = "\u0018\u0019\u001a\u001b\u0015\"\t\u0019\u000f\u0002\u0007\u0003\u0002\u000b\u000f\u001c\u0011\r\u000e\u0010\u0006\u0007\u0013\u0002"
            r4 = 0
            int r0 = android.graphics.Color.green(r4)     // Catch:{ all -> 0x016f }
            int r1 = 25 - r0
            r8 = 0
            float r0 = android.util.TypedValue.complexToFraction(r4, r8, r8)     // Catch:{ all -> 0x016f }
            int r0 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1))
            int r0 = 39 - r0
            byte r0 = (byte) r0     // Catch:{ all -> 0x016f }
            java.lang.String r0 = getHeaders((java.lang.String) r5, (int) r1, (byte) r0)     // Catch:{ all -> 0x016f }
            java.lang.String r0 = r0.intern()     // Catch:{ all -> 0x016f }
            com.apiguard3.internal.checkCertificates.getHeaders(r3, r2, r0)     // Catch:{ all -> 0x016f }
            java.lang.Object r7 = r13.AGRequest$efd69f8     // Catch:{ all -> 0x016f }
            r9 = 4
            java.lang.Object[] r6 = new java.lang.Object[r9]     // Catch:{ all -> 0x0160 }
            r10 = 3
            r3 = r17
            r6[r10] = r3     // Catch:{ all -> 0x0160 }
            r11 = 2
            r6[r11] = r16     // Catch:{ all -> 0x0160 }
            r5 = 1
            r6[r5] = r15     // Catch:{ all -> 0x0160 }
            r6[r4] = r14     // Catch:{ all -> 0x0160 }
            int r0 = android.view.ViewConfiguration.getLongPressTimeout()     // Catch:{ all -> 0x0160 }
            int r0 = r0 >> 16
            char r2 = (char) r0     // Catch:{ all -> 0x0160 }
            java.lang.String r1 = ""
            r0 = 48
            int r0 = android.text.TextUtils.indexOf(r1, r0, r4, r4)     // Catch:{ all -> 0x0160 }
            int r1 = 32 - r0
            float r0 = android.media.AudioTrack.getMaxVolume()     // Catch:{ all -> 0x0160 }
            int r0 = (r0 > r8 ? 1 : (r0 == r8 ? 0 : -1))
            int r0 = r0 + 2913
            java.lang.Object r8 = com.apiguard3.internal.getMethod.AGRequest(r2, r1, r0)     // Catch:{ all -> 0x0160 }
            java.lang.Class r8 = (java.lang.Class) r8     // Catch:{ all -> 0x0160 }
            java.lang.String r2 = "getHeaders"
            java.lang.Class[] r1 = new java.lang.Class[r9]     // Catch:{ all -> 0x0160 }
            java.lang.Class<java.lang.String> r0 = java.lang.String.class
            r1[r4] = r0     // Catch:{ all -> 0x0160 }
            java.lang.Class<java.lang.String> r0 = java.lang.String.class
            r1[r5] = r0     // Catch:{ all -> 0x0160 }
            java.lang.Class<java.util.Map> r0 = java.util.Map.class
            r1[r11] = r0     // Catch:{ all -> 0x0160 }
            java.lang.Class<byte[]> r0 = byte[].class
            r1[r10] = r0     // Catch:{ all -> 0x0160 }
            java.lang.reflect.Method r0 = r8.getMethod(r2, r1)     // Catch:{ all -> 0x0160 }
            r0.invoke(r7, r6)     // Catch:{ all -> 0x0160 }
            com.apiguard3.internal.onInitializationFailure$getBody r2 = com.apiguard3.internal.onInitializationFailure.getBody.getBody     // Catch:{ all -> 0x016f }
            java.lang.String r0 = "ぽ쌷ힼ?튁ᩄ㮅ન筃દꂰ鎳夏餭玾?恫祯鐓"
            java.lang.String r0 = AGRequest((java.lang.String) r0)     // Catch:{ all -> 0x016f }
            java.lang.String r1 = r0.intern()     // Catch:{ all -> 0x016f }
            java.lang.String r0 = "﫶쌷ힼ?튁ᩄ㮅ન筃દꂰ鎳夏餭맣る"
            java.lang.String r0 = AGRequest((java.lang.String) r0)     // Catch:{ all -> 0x016f }
            java.lang.String r0 = r0.intern()     // Catch:{ all -> 0x016f }
            com.apiguard3.internal.checkCertificates.getHeaders(r2, r1, r0)     // Catch:{ all -> 0x016f }
            java.lang.Object r8 = r13.getBody$1cf25108     // Catch:{ all -> 0x016f }
            java.lang.Object[] r7 = new java.lang.Object[r5]     // Catch:{ all -> 0x0151 }
            r7[r4] = r14     // Catch:{ all -> 0x0151 }
            long r9 = android.os.SystemClock.elapsedRealtime()     // Catch:{ all -> 0x0151 }
            r1 = 0
            int r0 = (r9 > r1 ? 1 : (r9 == r1 ? 0 : -1))
            int r0 = 8783 - r0
            char r2 = (char) r0     // Catch:{ all -> 0x0151 }
            int r0 = android.view.ViewConfiguration.getDoubleTapTimeout()     // Catch:{ all -> 0x0151 }
            int r0 = r0 >> 16
            int r1 = 29 - r0
            int r0 = android.view.KeyEvent.getDeadChar(r4, r4)     // Catch:{ all -> 0x0151 }
            int r0 = 844 - r0
            java.lang.Object r6 = com.apiguard3.internal.getMethod.AGRequest(r2, r1, r0)     // Catch:{ all -> 0x0151 }
            java.lang.Class r6 = (java.lang.Class) r6     // Catch:{ all -> 0x0151 }
            java.lang.String r2 = "getBody"
            java.lang.Class[] r1 = new java.lang.Class[r5]     // Catch:{ all -> 0x0151 }
            java.lang.Class<java.lang.String> r0 = java.lang.String.class
            r1[r4] = r0     // Catch:{ all -> 0x0151 }
            java.lang.reflect.Method r0 = r6.getMethod(r2, r1)     // Catch:{ all -> 0x0151 }
            java.lang.Object r2 = r0.invoke(r8, r7)     // Catch:{ all -> 0x0151 }
            android.util.Pair r2 = (android.util.Pair) r2     // Catch:{ all -> 0x0151 }
            com.apiguard3.internal.onInitializationFailure$getBody r7 = com.apiguard3.internal.onInitializationFailure.getBody.AGRequest     // Catch:{ all -> 0x016f }
            java.lang.String r0 = "ぽ쌷ힼ?튁ᩄ㮅ન筃દꂰ鎳夏餭玾?恫祯鐓"
            java.lang.String r0 = AGRequest((java.lang.String) r0)     // Catch:{ all -> 0x016f }
            java.lang.String r6 = r0.intern()     // Catch:{ all -> 0x016f }
            java.lang.String r8 = "\"\u000f\u000b\u001b\u000e\u0001\u0014\u0013!\u0010\u000e\u0010 !\u000e\u0006\u0013\u000e\u0010\u000f\u001a\u0010\u0010\r\f\u001e\u0012\u0005"
            int r0 = android.view.ViewConfiguration.getEdgeSlop()     // Catch:{ all -> 0x016f }
            int r0 = r0 >> 16
            int r1 = r0 + 30
            int r0 = android.view.View.MeasureSpec.getMode(r4)     // Catch:{ all -> 0x016f }
            int r0 = 56 - r0
            byte r0 = (byte) r0     // Catch:{ all -> 0x016f }
            java.lang.String r0 = getHeaders((java.lang.String) r8, (int) r1, (byte) r0)     // Catch:{ all -> 0x016f }
            java.lang.String r0 = r0.intern()     // Catch:{ all -> 0x016f }
            com.apiguard3.internal.checkCertificates.getHeaders(r7, r6, r0)     // Catch:{ all -> 0x016f }
            java.util.Map r3 = r13.getRequestHeaders(r14, r3)     // Catch:{ all -> 0x016f }
            if (r2 != 0) goto L_0x00fc
            r0 = 1
            goto L_0x00fd
        L_0x00fc:
            r0 = 0
        L_0x00fd:
            if (r0 == r5) goto L_0x0133
            int r0 = AGState     // Catch:{ all -> 0x016f }
            int r1 = r0 + 59
            int r0 = r1 % 128
            AGResponse$Builder = r0     // Catch:{ all -> 0x016f }
            int r1 = r1 % r11
            if (r1 == 0) goto L_0x010b
            goto L_0x010c
        L_0x010b:
            r4 = 1
        L_0x010c:
            if (r4 == 0) goto L_0x0123
            java.lang.Object r1 = r2.first     // Catch:{ all -> 0x016f }
            java.lang.Object r0 = r2.second     // Catch:{ all -> 0x016f }
            r3.put(r1, r0)     // Catch:{ all -> 0x016f }
            r0 = 0
            java.lang.String r1 = "hashCode"
            java.lang.NullPointerException r0 = new java.lang.NullPointerException     // Catch:{ all -> 0x011e }
            r0.<init>(r1)     // Catch:{ all -> 0x011e }
            throw r0     // Catch:{ all -> 0x011e }
        L_0x011e:
            r0 = move-exception
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r12)     // Catch:{ all -> 0x016f }
            throw r0     // Catch:{ all -> 0x016f }
        L_0x0123:
            java.lang.Object r1 = r2.first     // Catch:{ all -> 0x016f }
            java.lang.Object r0 = r2.second     // Catch:{ all -> 0x016f }
            r3.put(r1, r0)     // Catch:{ all -> 0x016f }
            int r0 = AGState     // Catch:{ all -> 0x016f }
            int r1 = r0 + 39
            int r0 = r1 % 128
            AGResponse$Builder = r0     // Catch:{ all -> 0x016f }
            int r1 = r1 % r11
        L_0x0133:
            int r0 = AGState     // Catch:{ all -> 0x016f }
            int r2 = r0 + 119
            int r0 = r2 % 128
            AGResponse$Builder = r0     // Catch:{ all -> 0x016f }
            int r2 = r2 % r11
            r1 = 22
            if (r2 == 0) goto L_0x0143
            r0 = 54
            goto L_0x0145
        L_0x0143:
            r0 = 22
        L_0x0145:
            if (r0 == r1) goto L_0x014c
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r12)     // Catch:{ all -> 0x016f }
            monitor-exit(r13)
            return r3
        L_0x014c:
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r12)     // Catch:{ all -> 0x016f }
            monitor-exit(r13)
            return r3
        L_0x0151:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()     // Catch:{ all -> 0x016f }
            if (r0 == 0) goto L_0x015c
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r12)     // Catch:{ all -> 0x016f }
            throw r0     // Catch:{ all -> 0x016f }
        L_0x015c:
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r12)     // Catch:{ all -> 0x016f }
            throw r1     // Catch:{ all -> 0x016f }
        L_0x0160:
            r1 = move-exception
            java.lang.Throwable r0 = r1.getCause()     // Catch:{ all -> 0x016f }
            if (r0 == 0) goto L_0x016b
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r12)     // Catch:{ all -> 0x016f }
            throw r0     // Catch:{ all -> 0x016f }
        L_0x016b:
            com.bytedance.frameworks.apm.trace.MethodCollector.o(r12)     // Catch:{ all -> 0x016f }
            throw r1     // Catch:{ all -> 0x016f }
        L_0x016f:
            r0 = move-exception
            monitor-exit(r13)
            throw r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.apiguard3.APIGuard.generateHeaders(java.lang.String, java.lang.String, java.util.Map, byte[]):java.util.Map");
    }

    public static /* synthetic */ void AGRequest(APIGuard aPIGuard, Application application, InputStream inputStream, Callback callback) {
        char c;
        Throwable cause;
        if (inputStream != null) {
            c = '6';
        } else {
            c = 'T';
        }
        if (c != '6') {
            int i = AGResponse$Builder + 75;
            AGState = i % 128;
            int i2 = i % 2;
            checkCertificates.AGRequest(log.getBody.getHeaders, getState.getHeaders.AGRequest.AGRequest());
        }
        try {
            final Context context = (Context) ((Class) getMethod.AGRequest((char) TextUtils.indexOf("", ""), 49 - TextUtils.indexOf("", "", 0), 5815 - View.getDefaultSize(0, 0))).getMethod("getBody", (Class[]) null).invoke((Object) null, (Object[]) null);
            if (context != null) {
                APIGuard aPIGuard2 = aPIGuard;
                try {
                    ((Class) getMethod.AGRequest((char) (8783 - (AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1))), 29 - View.resolveSize(0, 0), 845 - (ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)))).getMethod("getHeaders", (Class[]) null).invoke(aPIGuard2.getBody$1cf25108, (Object[]) null);
                    Object obj = aPIGuard2.getBody$1cf25108;
                    try {
                        com_apiguard3_APIGuard_java_lang_reflect_Method_invoke(((Class) getMethod.AGRequest((char) (TextUtils.indexOf("", "") + 8782), (Process.myTid() >> 22) + 29, TextUtils.indexOf("", '0') + 845)).getMethod("getMethod", new Class[]{(Class) getMethod.AGRequest((char) (TextUtils.indexOf("", '0', 0, 0) + 1), (ViewConfiguration.getEdgeSlop() >> 16) + 39, 997 - (ViewConfiguration.getDoubleTapTimeout() >> 16))}), obj, new Object[]{aPIGuard2.AGRequest$efd69f8});
                        try {
                            Object[] objArr = new Object[2];
                            objArr[1] = aPIGuard2.method;
                            objArr[0] = context;
                            aPIGuard2.url$6071f473 = ((Class) getMethod.AGRequest((char) KeyEvent.getDeadChar(0, 0), 40 - Color.argb(0, 0, 0, 0), ImageFormat.getBitsPerPixel(0) + 2203)).getDeclaredConstructor(new Class[]{Context.class, String.class}).newInstance(objArr);
                            Object obj2 = aPIGuard2.url$6071f473;
                            try {
                                Object[] objArr2 = new Object[2];
                                objArr2[1] = context;
                                objArr2[0] = obj2;
                                aPIGuard2.addHeader$59961fb8 = ((Class) getMethod.AGRequest((char) (ViewConfiguration.getPressedStateDuration() >> 16), ExpandableListView.getPackedPositionGroup(0) + 37, 2484 - (ViewConfiguration.getMaximumDrawingCacheSize() >> 24))).getDeclaredConstructor(new Class[]{(Class) getMethod.AGRequest((char) (AndroidCharacter.getMirror('0') - '0'), (ViewConfiguration.getFadingEdgeLength() >> 16) + 40, 2202 - ExpandableListView.getPackedPositionType(0)), Context.class}).newInstance(objArr2);
                                Object obj3 = aPIGuard2.addHeader$59961fb8;
                                try {
                                    Object[] objArr3 = new Object[2];
                                    objArr3[1] = aPIGuard2.url$6071f473;
                                    objArr3[0] = obj3;
                                    aPIGuard2.post$1cbd8146 = ((Class) getMethod.AGRequest((char) (-1 - TextUtils.indexOf("", '0', 0, 0)), 44 - (Process.myPid() >> 22), (Process.myTid() >> 22) + 4152)).getDeclaredConstructor(new Class[]{(Class) getMethod.AGRequest((char) (1921 - (ViewConfiguration.getScrollDefaultDelay() >> 16)), (Process.myTid() >> 22) + 46, Color.rgb(0, 0, 0) + 16779584), (Class) getMethod.AGRequest((char) (-1 - TextUtils.lastIndexOf("", '0', 0, 0)), (AudioTrack.getMinVolume() > 0.0f ? 1 : (AudioTrack.getMinVolume() == 0.0f ? 0 : -1)) + 40, ImageFormat.getBitsPerPixel(0) + 2203)}).newInstance(objArr3);
                                    aPIGuard2.delete = new getMethod(aPIGuard2.addHeader$59961fb8, aPIGuard2.url$6071f473, aPIGuard2.post$1cbd8146);
                                    try {
                                        Object invoke = ((Class) getMethod.AGRequest((char) ((ViewConfiguration.getScrollBarSize() >> 8) + 15137), (ViewConfiguration.getWindowTouchSlop() >> 8) + 58, ImageFormat.getBitsPerPixel(0) + 5077)).getMethod("getUrl", (Class[]) null).invoke((Object) null, (Object[]) null);
                                        try {
                                            ((Class) getMethod.AGRequest((char) (15137 - TextUtils.indexOf("", "")), 58 - ExpandableListView.getPackedPositionType(0), (ExpandableListView.getPackedPositionForChild(0, 0) > 0 ? 1 : (ExpandableListView.getPackedPositionForChild(0, 0) == 0 ? 0 : -1)) + 5077)).getMethod("getUrl", new Class[]{(Class) getMethod.AGRequest((char) ((ViewConfiguration.getScrollFriction() > 0.0f ? 1 : (ViewConfiguration.getScrollFriction() == 0.0f ? 0 : -1)) - 1), (ViewConfiguration.getScrollDefaultDelay() >> 16) + 40, (ViewConfiguration.getPressedStateDuration() >> 16) + 2202)}).invoke(invoke, new Object[]{aPIGuard2.url$6071f473});
                                            checkCertificates.getHeaders(onInitializationFailure.getBody.getBody, AGRequest("⤀㠒됍ῃ仢㍻退쾱뚣?⏭").intern(), getHeaders("\f\u0004\f\u001f\u000f\u0002\u0015#\t\u0011Á", 11 - KeyEvent.getDeadChar(0, 0), (byte) (-16777139 - Color.rgb(0, 0, 0))).intern());
                                            Object obj4 = aPIGuard2.url$6071f473;
                                            final Application application2 = application;
                                            final Callback callback2 = callback;
                                            try {
                                                Object[] objArr4 = new Object[2];
                                                objArr4[1] = new NotReadyException$getMethod() {
                                                    public static int AGRequest$Builder = 222;
                                                    public static boolean addHeader = true;
                                                    public static char[] getHeaders = {289, 333, 332, 324, 327, 325, 295, 338, 254, 305, 339, 321, 323, 337, 330, 287, 293, 267, 298, 301, 280, 319, 322, 343, 300, 340, 294, 336, 302, 342, 292};
                                                    public static int method;
                                                    public static boolean newBuilder = true;
                                                    public static int url = 1;

                                                    static {
                                                        Covode.recordClassIndex(2390);
                                                    }

                                                    public final void AGRequest() {
                                                        Throwable cause;
                                                        Throwable cause2;
                                                        checkCertificates.getHeaders(onInitializationFailure.getBody.AGRequest, AGRequest((int[]) null, (String) null, 127 - (ViewConfiguration.getJumpTapTimeout() >> 16), "").intern(), AGRequest((int[]) null, (String) null, 127 - (ViewConfiguration.getDoubleTapTimeout() >> 16), "").intern());
                                                        Callback callback = callback2;
                                                        StringBuilder sb = new StringBuilder();
                                                        sb.append(AGRequest((int[]) null, (String) null, (ViewConfiguration.getFadingEdgeLength() >> 16) + 127, "").intern());
                                                        sb.append(getState.getMethod.getMethod.AGRequest());
                                                        callback.log(sb.toString());
                                                        try {
                                                            Config config = (Config) ((Class) getMethod.AGRequest((char) TextUtils.getCapsMode("", 0, 0), 40 - (ViewConfiguration.getLongPressTimeout() >> 16), (Process.myPid() >> 22) + 2202)).getMethod("getBody", (Class[]) null).invoke(APIGuard.getUrl$17cc3eff(APIGuard.this), (Object[]) null);
                                                            log.getBody getbody = log.getBody.AGRequest;
                                                            StringBuilder sb2 = new StringBuilder();
                                                            sb2.append(AGRequest((int[]) null, (String) null, PhoneNumberUtils.toaFromString("") - 2, "").intern());
                                                            sb2.append(config.AGRequest$Builder());
                                                            checkCertificates.AGRequest(getbody, sb2.toString());
                                                            log.getBody getbody2 = log.getBody.AGRequest;
                                                            StringBuilder sb3 = new StringBuilder();
                                                            sb3.append(AGRequest((int[]) null, (String) null, TextUtils.indexOf("", "", 0, 0) + 127, "").intern());
                                                            sb3.append(config.headers());
                                                            checkCertificates.AGRequest(getbody2, sb3.toString());
                                                            APIGuard.AGRequest$2ea0c6bc(config, APIGuard.getHeaders$1b83c9c6(APIGuard.this));
                                                            APIGuard.getUrl(APIGuard.this, AGState.APIGuardStateReady);
                                                            APIGuard.getMethod(APIGuard.this);
                                                            try {
                                                                try {
                                                                    ((Class) getMethod.AGRequest((char) (Process.getGidForName("") + 41089), 31 - TextUtils.getOffsetBefore("", 0), TextUtils.getOffsetAfter("", 0) + 1582)).getMethod("getBody", new Class[]{Config.class}).invoke(((Class) getMethod.AGRequest((char) (41088 - (ViewConfiguration.getPressedStateDuration() >> 16)), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 31, 1581 - TextUtils.indexOf("", '0', 0, 0))).getMethod("AGRequest", (Class[]) null).invoke((Object) null, (Object[]) null), new Object[]{config});
                                                                    Context context = context;
                                                                    Callback callback2 = callback2;
                                                                    long longValue = config.head().longValue();
                                                                    try {
                                                                        Object[] objArr = new Object[4];
                                                                        objArr[3] = TimeUnit.MILLISECONDS;
                                                                        objArr[2] = Long.valueOf(longValue);
                                                                        objArr[1] = callback2;
                                                                        objArr[0] = context;
                                                                        Object newInstance = ((Class) getMethod.AGRequest((char) (ViewConfiguration.getLongPressTimeout() >> 16), 31 - (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)), -16774361 - Color.rgb(0, 0, 0))).getDeclaredConstructor(new Class[]{Context.class, Callback.class, Long.TYPE, TimeUnit.class}).newInstance(objArr);
                                                                        if (APIGuard.getBody$316da88c(APIGuard.this) == null) {
                                                                            APIGuard aPIGuard = APIGuard.this;
                                                                            Object url$17cc3eff = APIGuard.getUrl$17cc3eff(aPIGuard);
                                                                            Object headers$1b83c9c6 = APIGuard.getHeaders$1b83c9c6(APIGuard.this);
                                                                            Callback callback3 = callback2;
                                                                            try {
                                                                                try {
                                                                                    Object[] objArr2 = new Object[5];
                                                                                    objArr2[4] = ((Class) getMethod.AGRequest((char) (ViewConfiguration.getTapTimeout() >> 16), 39 - TextUtils.indexOf("", '0', 0, 0), 5997 - (PointF.length(0.0f, 0.0f) > 0.0f ? 1 : (PointF.length(0.0f, 0.0f) == 0.0f ? 0 : -1)))).getMethod("getBody", (Class[]) null).invoke((Object) null, (Object[]) null);
                                                                                    objArr2[3] = callback3;
                                                                                    objArr2[2] = newInstance;
                                                                                    objArr2[1] = headers$1b83c9c6;
                                                                                    objArr2[0] = url$17cc3eff;
                                                                                    APIGuard.getMethod$66c52472(aPIGuard, ((Class) getMethod.AGRequest((char) (ExpandableListView.getPackedPositionChild(0) + 16293), AndroidCharacter.getEastAsianWidth('0') + 32, 2521 - (ViewConfiguration.getScrollBarFadeDuration() >> 16))).getDeclaredConstructor(new Class[]{(Class) getMethod.AGRequest((char) (TypedValue.complexToFloat(0) > 0.0f ? 1 : (TypedValue.complexToFloat(0) == 0.0f ? 0 : -1)), View.MeasureSpec.getMode(0) + 40, (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 2202), (Class) getMethod.AGRequest((char) (1921 - Drawable.resolveOpacity(0, 0)), 46 - View.MeasureSpec.makeMeasureSpec(0, 0), 2368 - (ViewConfiguration.getScrollDefaultDelay() >> 16)), (Class) getMethod.AGRequest((char) (1 - (AudioTrack.getMaxVolume() > 0.0f ? 1 : (AudioTrack.getMaxVolume() == 0.0f ? 0 : -1))), 30 - TextUtils.indexOf("", '0'), View.resolveSize(0, 0) + 2855), Callback.class, LocalBroadcastManager.class}).newInstance(objArr2));
                                                                                    int i = url + 71;
                                                                                    method = i % 128;
                                                                                    int i2 = i % 2;
                                                                                } catch (Throwable th) {
                                                                                    if (cause2 != null) {
                                                                                        throw cause2;
                                                                                    }
                                                                                    throw th;
                                                                                }
                                                                            } finally {
                                                                                cause2 = th.getCause();
                                                                                if (cause2 != null) {
                                                                                    throw cause2;
                                                                                }
                                                                            }
                                                                        }
                                                                        try {
                                                                            application2.registerActivityLifecycleCallbacks((Application.ActivityLifecycleCallbacks) ((Class) getMethod.AGRequest((char) ((ViewConfiguration.getScrollBarSize() >> 8) + 17874), 40 - (ViewConfiguration.getTapTimeout() >> 16), Color.alpha(0) + 2084)).getDeclaredConstructor(new Class[]{(Class) getMethod.AGRequest((char) (16292 - (Process.myPid() >> 22)), 35 - ImageFormat.getBitsPerPixel(0), TextUtils.indexOf("", "", 0) + 2521)}).newInstance(new Object[]{APIGuard.getBody$316da88c(APIGuard.this)}));
                                                                            Object url$17cc3eff2 = APIGuard.getUrl$17cc3eff(APIGuard.this);
                                                                            try {
                                                                                ((Class) getMethod.AGRequest((char) (ViewConfiguration.getTouchSlop() >> 8), 41 - (SystemClock.uptimeMillis() > 0 ? 1 : (SystemClock.uptimeMillis() == 0 ? 0 : -1)), 2202 - ((Process.getThreadPriority(0) + 20) >> 6))).getMethod("getUrl", new Class[]{Callable.class}).invoke(url$17cc3eff2, new Object[]{APIGuard.getHeaders$1b83c9c6(APIGuard.this)});
                                                                                try {
                                                                                    FU.AGRequest((Future) ((Class) getMethod.AGRequest((char) ((Process.myTid() >> 22) + 1921), TextUtils.indexOf("", "") + 46, Color.red(0) + 2368)).getMethod("getBody", (Class[]) null).invoke(APIGuard.getHeaders$1b83c9c6(APIGuard.this), (Object[]) null), new FU.getHeaders<Object>() {
                                                                                        public static int AGRequest;
                                                                                        public static int getBody = 1;

                                                                                        static {
                                                                                            Covode.recordClassIndex(2391);
                                                                                        }

                                                                                        public final void getMethod() {
                                                                                            int i = AGRequest + 113;
                                                                                            getBody = i % 128;
                                                                                            int i2 = i % 2;
                                                                                            checkCertificates.getMethod(log.getBody.getMethod, getState.getBody.delete);
                                                                                            APIGuard.getHeaders();
                                                                                            int i3 = AGRequest + 125;
                                                                                            getBody = i3 % 128;
                                                                                            int i4 = i3 % 2;
                                                                                        }

                                                                                        private boolean getHeaders() {
                                                                                            int i = AGRequest + 29;
                                                                                            getBody = i % 128;
                                                                                            int i2 = i % 2;
                                                                                            try {
                                                                                                boolean booleanValue = ((Boolean) ((Class) getMethod.AGRequest((char) (1 - (ViewConfiguration.getZoomControlsTimeout() > 0 ? 1 : (ViewConfiguration.getZoomControlsTimeout() == 0 ? 0 : -1))), (ExpandableListView.getPackedPositionForGroup(0) > 0 ? 1 : (ExpandableListView.getPackedPositionForGroup(0) == 0 ? 0 : -1)) + 40, (ViewConfiguration.getLongPressTimeout() >> 16) + 2202)).getMethod("getHeaders", (Class[]) null).invoke(APIGuard.getUrl$17cc3eff(APIGuard.this), (Object[]) null)).booleanValue();
                                                                                                int i3 = AGRequest + 85;
                                                                                                getBody = i3 % 128;
                                                                                                int i4 = i3 % 2;
                                                                                                return booleanValue;
                                                                                            } catch (Throwable th) {
                                                                                                Throwable cause = th.getCause();
                                                                                                if (cause != null) {
                                                                                                    throw cause;
                                                                                                }
                                                                                                throw th;
                                                                                            }
                                                                                        }

                                                                                        /* JADX WARNING: Code restructure failed: missing block: B:3:0x004b, code lost:
                                                                                            if (r1 != 3) goto L_0x004d;
                                                                                         */
                                                                                        /* Code decompiled incorrectly, please refer to instructions dump. */
                                                                                        public final /* synthetic */ void getHeaders(java.lang.Object r12) {
                                                                                            /*
                                                                                                r11 = this;
                                                                                                int r0 = getBody
                                                                                                int r1 = r0 + 35
                                                                                                int r0 = r1 % 128
                                                                                                AGRequest = r0
                                                                                                r3 = 2
                                                                                                int r1 = r1 % r3
                                                                                                int[] r10 = com.apiguard3.APIGuard.AnonymousClass2.getUrl
                                                                                                r2 = 33808(0x8410, float:4.7375E-41)
                                                                                                r1 = 48
                                                                                                java.lang.String r0 = ""
                                                                                                r6 = 0
                                                                                                int r0 = android.text.TextUtils.indexOf(r0, r1, r6, r6)
                                                                                                int r0 = r0 + r2
                                                                                                char r9 = (char) r0
                                                                                                long r4 = android.os.Process.getElapsedCpuTime()
                                                                                                r7 = 0
                                                                                                java.lang.String r2 = "getUrl"
                                                                                                int r0 = (r4 > r7 ? 1 : (r4 == r7 ? 0 : -1))
                                                                                                int r1 = 51 - r0
                                                                                                int r0 = android.widget.ExpandableListView.getPackedPositionGroup(r7)
                                                                                                int r0 = 1472 - r0
                                                                                                java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r9, r1, r0)
                                                                                                java.lang.Class r0 = (java.lang.Class) r0
                                                                                                java.lang.reflect.Field r0 = r0.getField(r2)
                                                                                                java.lang.Object r0 = r0.get(r12)
                                                                                                java.lang.Enum r0 = (java.lang.Enum) r0
                                                                                                int r0 = r0.ordinal()
                                                                                                r1 = r10[r0]
                                                                                                java.lang.String r5 = "getMethod"
                                                                                                r2 = 3
                                                                                                r4 = 0
                                                                                                r0 = 1
                                                                                                if (r1 == r0) goto L_0x0094
                                                                                                if (r1 == r3) goto L_0x0051
                                                                                                if (r1 == r2) goto L_0x005e
                                                                                            L_0x004d:
                                                                                                com.apiguard3.APIGuard.getHeaders()
                                                                                                return
                                                                                            L_0x0051:
                                                                                                boolean r0 = r11.getHeaders()
                                                                                                if (r0 != 0) goto L_0x008c
                                                                                                com.apiguard3.internal.log$getBody r1 = com.apiguard3.internal.log.getBody.getMethod
                                                                                                com.apiguard3.internal.getState$getBody r0 = com.apiguard3.internal.getState.getBody.head
                                                                                                com.apiguard3.internal.checkCertificates.getMethod(r1, r0)
                                                                                            L_0x005e:
                                                                                                com.apiguard3.APIGuard$5 r0 = com.apiguard3.APIGuard.AnonymousClass5.this
                                                                                                com.apiguard3.APIGuard r0 = com.apiguard3.APIGuard.this
                                                                                                java.lang.Object r3 = com.apiguard3.APIGuard.getBody$316da88c(r0)
                                                                                                int r0 = android.graphics.Color.argb(r6, r6, r6, r6)     // Catch:{ all -> 0x00e2 }
                                                                                                int r0 = 16292 - r0
                                                                                                char r2 = (char) r0     // Catch:{ all -> 0x00e2 }
                                                                                                float r1 = android.media.AudioTrack.getMaxVolume()     // Catch:{ all -> 0x00e2 }
                                                                                                r0 = 0
                                                                                                int r0 = (r1 > r0 ? 1 : (r1 == r0 ? 0 : -1))
                                                                                                int r1 = 37 - r0
                                                                                                int r0 = android.view.ViewConfiguration.getScrollDefaultDelay()     // Catch:{ all -> 0x00e2 }
                                                                                                int r0 = r0 >> 16
                                                                                                int r0 = r0 + 2521
                                                                                                java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r2, r1, r0)     // Catch:{ all -> 0x00e2 }
                                                                                                java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x00e2 }
                                                                                                java.lang.reflect.Method r0 = r0.getMethod(r5, r4)     // Catch:{ all -> 0x00e2 }
                                                                                                r0.invoke(r3, r4)     // Catch:{ all -> 0x00e2 }
                                                                                                goto L_0x004d
                                                                                            L_0x008c:
                                                                                                com.apiguard3.internal.log$getBody r1 = com.apiguard3.internal.log.getBody.getMethod
                                                                                                com.apiguard3.internal.getState$getBody r0 = com.apiguard3.internal.getState.getBody.delete
                                                                                                com.apiguard3.internal.checkCertificates.getMethod(r1, r0)
                                                                                                goto L_0x004d
                                                                                            L_0x0094:
                                                                                                boolean r0 = r11.getHeaders()
                                                                                                if (r0 != 0) goto L_0x00aa
                                                                                                com.apiguard3.internal.log$getBody r1 = com.apiguard3.internal.log.getBody.getBody
                                                                                                com.apiguard3.internal.getState$getUrl r0 = com.apiguard3.internal.getState.getUrl.newBuilder
                                                                                                com.apiguard3.internal.checkCertificates.getMethod(r1, r0)
                                                                                            L_0x00a1:
                                                                                                com.apiguard3.APIGuard$5 r0 = com.apiguard3.APIGuard.AnonymousClass5.this
                                                                                                com.apiguard3.APIGuard r0 = com.apiguard3.APIGuard.this
                                                                                                java.lang.Object r3 = com.apiguard3.APIGuard.getBody$316da88c(r0)
                                                                                                goto L_0x00ba
                                                                                            L_0x00aa:
                                                                                                int r1 = AGRequest
                                                                                                int r1 = r1 + r2
                                                                                                int r0 = r1 % 128
                                                                                                getBody = r0
                                                                                                int r1 = r1 % r3
                                                                                                com.apiguard3.internal.log$getBody r1 = com.apiguard3.internal.log.getBody.getBody
                                                                                                com.apiguard3.internal.getState$getUrl r0 = com.apiguard3.internal.getState.getUrl.method
                                                                                                com.apiguard3.internal.checkCertificates.getMethod(r1, r0)
                                                                                                goto L_0x00a1
                                                                                            L_0x00ba:
                                                                                                long r1 = android.view.ViewConfiguration.getGlobalActionKeyTimeout()     // Catch:{ all -> 0x00eb }
                                                                                                int r0 = (r1 > r7 ? 1 : (r1 == r7 ? 0 : -1))
                                                                                                int r0 = r0 + 16291
                                                                                                char r2 = (char) r0     // Catch:{ all -> 0x00eb }
                                                                                                int r0 = android.view.ViewConfiguration.getJumpTapTimeout()     // Catch:{ all -> 0x00eb }
                                                                                                int r0 = r0 >> 16
                                                                                                int r1 = r0 + 36
                                                                                                int r0 = android.view.ViewConfiguration.getDoubleTapTimeout()     // Catch:{ all -> 0x00eb }
                                                                                                int r0 = r0 >> 16
                                                                                                int r0 = r0 + 2521
                                                                                                java.lang.Object r0 = com.apiguard3.internal.getMethod.AGRequest(r2, r1, r0)     // Catch:{ all -> 0x00eb }
                                                                                                java.lang.Class r0 = (java.lang.Class) r0     // Catch:{ all -> 0x00eb }
                                                                                                java.lang.reflect.Method r0 = r0.getMethod(r5, r4)     // Catch:{ all -> 0x00eb }
                                                                                                r0.invoke(r3, r4)     // Catch:{ all -> 0x00eb }
                                                                                                goto L_0x004d
                                                                                            L_0x00e2:
                                                                                                r1 = move-exception
                                                                                                java.lang.Throwable r0 = r1.getCause()
                                                                                                if (r0 == 0) goto L_0x00ea
                                                                                                throw r0
                                                                                            L_0x00ea:
                                                                                                throw r1
                                                                                            L_0x00eb:
                                                                                                r1 = move-exception
                                                                                                java.lang.Throwable r0 = r1.getCause()
                                                                                                if (r0 == 0) goto L_0x00f3
                                                                                                throw r0
                                                                                            L_0x00f3:
                                                                                                throw r1
                                                                                            */
                                                                                            throw new UnsupportedOperationException("Method not decompiled: com.apiguard3.APIGuard.AnonymousClass5.AnonymousClass2.getHeaders(java.lang.Object):void");
                                                                                        }
                                                                                    });
                                                                                    int i3 = method + 45;
                                                                                    url = i3 % 128;
                                                                                    int i4 = i3 % 2;
                                                                                } catch (Throwable th2) {
                                                                                    if (cause != null) {
                                                                                        throw cause;
                                                                                    }
                                                                                    throw th2;
                                                                                }
                                                                            } finally {
                                                                                cause = th2.getCause();
                                                                                if (cause != null) {
                                                                                    throw cause;
                                                                                }
                                                                            }
                                                                        } finally {
                                                                            Throwable cause3 = th.getCause();
                                                                            if (cause3 != null) {
                                                                                throw cause3;
                                                                            }
                                                                        }
                                                                    } finally {
                                                                        Throwable cause4 = th.getCause();
                                                                        if (cause4 != null) {
                                                                            throw cause4;
                                                                        }
                                                                    }
                                                                } finally {
                                                                    Throwable cause5 = th.getCause();
                                                                    if (cause5 != null) {
                                                                        throw cause5;
                                                                    }
                                                                }
                                                            } finally {
                                                                Throwable cause6 = th.getCause();
                                                                if (cause6 != null) {
                                                                    throw cause6;
                                                                }
                                                            }
                                                        } finally {
                                                            Throwable cause7 = th.getCause();
                                                            if (cause7 != null) {
                                                                throw cause7;
                                                            }
                                                        }
                                                    }

                                                    public final void getUrl(String str) {
                                                        int i = method + 13;
                                                        url = i % 128;
                                                        int i2 = i % 2;
                                                        checkCertificates.getHeaders(onInitializationFailure.getBody.AGRequest, AGRequest((int[]) null, (String) null, (ViewConfiguration.getScrollDefaultDelay() >> 16) + 127, "").intern(), AGRequest((int[]) null, (String) null, KeyEvent.getDeadChar(0, 0) + 127, "").intern());
                                                        APIGuard.getUrl(APIGuard.this, AGState.APIGuardStateFailed);
                                                        APIGuard.AGRequest(APIGuard.this, str);
                                                        checkCertificates.AGRequest(log.getBody.getHeaders, str);
                                                        int i3 = method + 53;
                                                        url = i3 % 128;
                                                        int i4 = i3 % 2;
                                                    }

                                                    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r10v1, resolved type: java.lang.String} */
                                                    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r8v1, resolved type: char[]} */
                                                    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r8v2, resolved type: java.lang.String} */
                                                    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r10v3, resolved type: byte[]} */
                                                    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r8v4, resolved type: java.lang.String} */
                                                    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r8v5, resolved type: java.lang.String} */
                                                    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r10v4, resolved type: java.lang.String} */
                                                    /* JADX WARNING: Failed to insert additional move for type inference */
                                                    /* JADX WARNING: Multi-variable type inference failed */
                                                    /* Code decompiled incorrectly, please refer to instructions dump. */
                                                    public static java.lang.String AGRequest(int[] r7, java.lang.String r8, int r9, java.lang.String r10) {
                                                        /*
                                                            if (r10 == 0) goto L_0x0008
                                                            java.lang.String r0 = "ISO-8859-1"
                                                            byte[] r10 = r10.getBytes(r0)
                                                        L_0x0008:
                                                            byte[] r10 = (byte[]) r10
                                                            if (r8 != 0) goto L_0x0030
                                                        L_0x000c:
                                                            char[] r8 = (char[]) r8
                                                            char[] r6 = getHeaders
                                                            int r5 = AGRequest$Builder
                                                            boolean r1 = addHeader
                                                            r3 = 0
                                                            r0 = 1
                                                            if (r1 != 0) goto L_0x0078
                                                            boolean r0 = newBuilder
                                                            if (r0 != 0) goto L_0x0045
                                                            int r2 = r7.length
                                                            char[] r1 = new char[r2]
                                                        L_0x001f:
                                                            if (r3 >= r2) goto L_0x003f
                                                            int r0 = r2 + -1
                                                            int r0 = r0 - r3
                                                            r0 = r7[r0]
                                                            int r0 = r0 - r9
                                                            char r0 = r6[r0]
                                                            int r0 = r0 - r5
                                                            char r0 = (char) r0
                                                            r1[r3] = r0
                                                            int r3 = r3 + 1
                                                            goto L_0x001f
                                                        L_0x0030:
                                                            int r0 = url
                                                            int r1 = r0 + 77
                                                            int r0 = r1 % 128
                                                            method = r0
                                                            int r0 = r1 % 2
                                                            char[] r8 = r8.toCharArray()
                                                            goto L_0x000c
                                                        L_0x003f:
                                                            java.lang.String r0 = new java.lang.String
                                                            r0.<init>(r1)
                                                            return r0
                                                        L_0x0045:
                                                            int r0 = method
                                                            int r0 = r0 + 25
                                                            int r1 = r0 % 128
                                                            url = r1
                                                            int r0 = r0 % 2
                                                            if (r0 != 0) goto L_0x006e
                                                            int r4 = r8.length
                                                            char[] r2 = new char[r4]
                                                            r3 = 1
                                                        L_0x0055:
                                                            int r1 = r1 + 125
                                                            int r0 = r1 % 128
                                                            method = r0
                                                            int r0 = r1 % 2
                                                        L_0x005d:
                                                            if (r3 >= r4) goto L_0x0072
                                                            int r0 = r4 + -1
                                                            int r0 = r0 - r3
                                                            char r0 = r8[r0]
                                                            int r0 = r0 - r9
                                                            char r0 = r6[r0]
                                                            int r0 = r0 - r5
                                                            char r0 = (char) r0
                                                            r2[r3] = r0
                                                            int r3 = r3 + 1
                                                            goto L_0x005d
                                                        L_0x006e:
                                                            int r4 = r8.length
                                                            char[] r2 = new char[r4]
                                                            goto L_0x0055
                                                        L_0x0072:
                                                            java.lang.String r0 = new java.lang.String
                                                            r0.<init>(r2)
                                                            return r0
                                                        L_0x0078:
                                                            int r2 = r10.length
                                                            char[] r1 = new char[r2]
                                                        L_0x007b:
                                                            if (r3 >= r2) goto L_0x008c
                                                            int r0 = r2 + -1
                                                            int r0 = r0 - r3
                                                            byte r0 = r10[r0]
                                                            int r0 = r0 + r9
                                                            char r0 = r6[r0]
                                                            int r0 = r0 - r5
                                                            char r0 = (char) r0
                                                            r1[r3] = r0
                                                            int r3 = r3 + 1
                                                            goto L_0x007b
                                                        L_0x008c:
                                                            java.lang.String r2 = new java.lang.String
                                                            r2.<init>(r1)
                                                            int r0 = method
                                                            int r1 = r0 + 11
                                                            int r0 = r1 % 128
                                                            url = r0
                                                            int r0 = r1 % 2
                                                            return r2
                                                        */
                                                        throw new UnsupportedOperationException("Method not decompiled: com.apiguard3.APIGuard.AnonymousClass5.AGRequest(int[], java.lang.String, int, java.lang.String):java.lang.String");
                                                    }
                                                };
                                                objArr4[0] = inputStream;
                                                ((Class) getMethod.AGRequest((char) Color.green(0), (ViewConfiguration.getPressedStateDuration() >> 16) + 40, ((Process.getThreadPriority(0) + 20) >> 6) + 2202)).getMethod("getHeaders", new Class[]{InputStream.class, NotReadyException$getMethod.class}).invoke(obj4, objArr4);
                                            } catch (Throwable th) {
                                                if (cause != null) {
                                                    throw cause;
                                                }
                                                throw th;
                                            }
                                        } finally {
                                            cause = th.getCause();
                                            if (cause != null) {
                                                throw cause;
                                            }
                                        }
                                    } finally {
                                        Throwable cause2 = th.getCause();
                                        if (cause2 != null) {
                                            throw cause2;
                                        }
                                    }
                                } finally {
                                    Throwable cause3 = th.getCause();
                                    if (cause3 != null) {
                                        throw cause3;
                                    }
                                }
                            } finally {
                                Throwable cause4 = th.getCause();
                                if (cause4 != null) {
                                    throw cause4;
                                }
                            }
                        } finally {
                            Throwable cause5 = th.getCause();
                            if (cause5 != null) {
                                throw cause5;
                            }
                        }
                    } finally {
                        Throwable cause6 = th.getCause();
                        if (cause6 != null) {
                            throw cause6;
                        }
                    }
                } finally {
                    Throwable cause7 = th.getCause();
                    if (cause7 != null) {
                        throw cause7;
                    }
                }
            } else {
                checkCertificates.getMethod(log.getBody.getMethod, getState.getBody.getBody);
                int i3 = AGState + 77;
                AGResponse$Builder = i3 % 128;
                int i4 = i3 % 2;
            }
        } finally {
            Throwable cause8 = th.getCause();
            if (cause8 != null) {
                throw cause8;
            }
        }
    }

    public synchronized void initialize(Application application, Callback callback, int i, int i2) {
        MethodCollector.i(18691);
        if (!getMethod()) {
            log.getBody getbody = log.getBody.AGRequest;
            StringBuilder sb = new StringBuilder();
            sb.append(getHeaders("\u0007\u0004\u000b\r\u0007\u0014\n\u0007\u0001\u000e\u0007\u0014\u0011\t\u0014\t\u000e\u0002\u0002\u0012\u000e\u0003\t\u0014\u0003\f\u000f\u0013\u0014\u000e\u0014\u0007\u0000\u0013\u0007\u001b\u000e\u000f\u0005\u0014\u0011\r\u0007\u0014\n\u0007\u0006\u0007\u000f\u001b@", View.getDefaultSize(0, 0) + 53, (byte) (31 - TextUtils.indexOf("", '0'))).intern());
            sb.append(this.getHeaders);
            checkCertificates.AGRequest(getbody, sb.toString());
            MethodCollector.o(18691);
            return;
        }
        SConfig.getUrl.getMethod();
        AGState aGState = AGState.APIGuardStateInProgress;
        synchronized (this.getMethod) {
            try {
                this.getHeaders = aGState;
                APIGuard$InitializationCallback.getBody().AGRequest(this.getHeaders);
            } catch (Throwable th) {
                MethodCollector.o(18691);
                throw th;
            }
        }
        if (application != null) {
            try {
                ((Class) getMethod.AGRequest((char) (-1 - Process.getGidForName("")), 53 - AndroidCharacter.getEastAsianWidth('0'), 5815 - (ViewConfiguration.getScrollBarFadeDuration() >> 16))).getMethod("AGRequest", new Class[]{Context.class}).invoke(((Class) getMethod.AGRequest((char) TextUtils.getOffsetAfter("", 0), 50 - (Process.getElapsedCpuTime() > 0 ? 1 : (Process.getElapsedCpuTime() == 0 ? 0 : -1)), (SystemClock.uptimeMillis() > 0 ? 1 : (SystemClock.uptimeMillis() == 0 ? 0 : -1)) + 5814)).getMethod("getHeaders", (Class[]) null).invoke((Object) null, (Object[]) null), new Object[]{application});
                getHeaders(callback);
                APIGuard$InitializationCallback.getBody().getUrl(callback);
                getHeaders(application, callback, INVOKEVIRTUAL_com_apiguard3_APIGuard_com_ss_android_ugc_aweme_lancet_launch_ApplicationContextLancet_getApplicationContext(application).getResources().openRawResource(i));
                MethodCollector.o(18691);
            } catch (Throwable th2) {
                getHeaders(th2);
                MethodCollector.o(18691);
            }
        } else {
            IllegalArgumentException illegalArgumentException = new IllegalArgumentException(getState.getBody.getBody.AGRequest());
            MethodCollector.o(18691);
            throw illegalArgumentException;
        }
    }

    public synchronized void initialize(Application application, Callback callback, int i, int i2, String str) {
        MethodCollector.i(18800);
        if (!getMethod()) {
            log.getBody getbody = log.getBody.AGRequest;
            StringBuilder sb = new StringBuilder();
            sb.append(getHeaders("\u0007\u0004\u000b\r\u0007\u0014\n\u0007\u0001\u000e\u0007\u0014\u0011\t\u0014\t\u000e\u0002\u0002\u0012\u000e\u0003\t\u0014\u0003\f\u000f\u0013\u0014\u000e\u0014\u0007\u0000\u0013\u0007\u001b\u000e\u000f\u0005\u0014\u0011\r\u0007\u0014\n\u0007\u0006\u0007\u000f\u001b@", 52 - ExpandableListView.getPackedPositionChild(0), (byte) (32 - TextUtils.getOffsetAfter("", 0))).intern());
            sb.append(this.getHeaders);
            checkCertificates.AGRequest(getbody, sb.toString());
            MethodCollector.o(18800);
            return;
        }
        SConfig.getUrl.getMethod();
        AGState aGState = AGState.APIGuardStateInProgress;
        synchronized (this.getMethod) {
            try {
                this.getHeaders = aGState;
                APIGuard$InitializationCallback.getBody().AGRequest(this.getHeaders);
            } catch (Throwable th) {
                MethodCollector.o(18800);
                throw th;
            }
        }
        if (application != null) {
            try {
                ((Class) getMethod.AGRequest((char) ExpandableListView.getPackedPositionGroup(0), 49 - TextUtils.getOffsetAfter("", 0), 5815 - TextUtils.getCapsMode("", 0, 0))).getMethod("AGRequest", new Class[]{Context.class}).invoke(((Class) getMethod.AGRequest((char) (AndroidCharacter.getMirror('0') - '0'), (ViewConfiguration.getEdgeSlop() >> 16) + 49, 5815 - (ViewConfiguration.getFadingEdgeLength() >> 16))).getMethod("getHeaders", (Class[]) null).invoke((Object) null, (Object[]) null), new Object[]{application});
                String str2 = str;
                if (!TextUtils.isEmpty(str2)) {
                    this.method = str2;
                    getHeaders(callback);
                    APIGuard$InitializationCallback.getBody().getUrl(callback);
                    getHeaders(application, callback, INVOKEVIRTUAL_com_apiguard3_APIGuard_com_ss_android_ugc_aweme_lancet_launch_ApplicationContextLancet_getApplicationContext(application).getResources().openRawResource(i));
                    MethodCollector.o(18800);
                    return;
                }
                IllegalArgumentException illegalArgumentException = new IllegalArgumentException(AGRequest("Ạ虮左칓ۺ㾁둜ࢮ0칓ۺᅀൟ퐫啊潫괏㴄虮左껓?됍ῃﵫ㖼託").intern());
                MethodCollector.o(18800);
                throw illegalArgumentException;
            } catch (Throwable th2) {
                getHeaders(th2);
                MethodCollector.o(18800);
            }
        } else {
            IllegalArgumentException illegalArgumentException2 = new IllegalArgumentException(getState.getBody.getBody.AGRequest());
            MethodCollector.o(18800);
            throw illegalArgumentException2;
        }
    }
}
