package com.apiguard3.domain;

import android.content.res.Configuration;
import android.os.Process;
import android.text.TextUtils;
import android.view.ViewConfiguration;
import com.apiguard3.internal.getMethod;
import com.apiguard3.internal.getState;
import com.apiguard3.internal.log;
import com.bytedance.covode.number.Covode;

public class getUrl extends Exception {
    public static int AGRequest = 1;
    public static int getBody;
    public static int getHeaders = 40;
    public final log.getMethod code;

    static {
        Covode.recordClassIndex(2402);
    }

    public getUrl(String str) {
        super(str);
        this.code = getState.getBody.post;
    }

    public getUrl(log.getMethod getmethod) {
        super(getmethod.AGRequest());
        try {
            Object[] objArr = new Object[2];
            objArr[1] = getUrl(!Configuration.needNewResources(0, 0), "\u0005\u0010\u0004￁\u0013\u0006\b\b\u0010￭\u0006", (Process.myPid() >> 22) + 135, (ViewConfiguration.getPressedStateDuration() >> 16) + 11, 10 - (ViewConfiguration.getScrollDefaultDelay() >> 16)).intern();
            objArr[0] = getmethod;
            ((Class) getMethod.AGRequest((char) (TextUtils.lastIndexOf("", '0') + 1), (ViewConfiguration.getScrollBarFadeDuration() >> 16) + 41, (ViewConfiguration.getPressedStateDuration() >> 16) + 6037)).getMethod("getMethod", new Class[]{Object.class, String.class}).invoke((Object) null, objArr);
            this.code = getmethod;
        } catch (Throwable th) {
            Throwable cause = th.getCause();
            if (cause != null) {
                throw cause;
            }
            throw th;
        }
    }

    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r6v1, resolved type: char[]} */
    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r6v2, resolved type: java.lang.String} */
    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r6v4, 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 getUrl(boolean r5, java.lang.String r6, int r7, int r8, int r9) {
        /*
            if (r6 != 0) goto L_0x0064
        L_0x0002:
            char[] r6 = (char[]) r6
            char[] r4 = new char[r8]
            r3 = 0
            r2 = 0
        L_0x0008:
            r0 = 7
            if (r2 < r8) goto L_0x0049
            if (r9 > 0) goto L_0x0031
        L_0x000d:
            if (r5 == 0) goto L_0x0020
            char[] r2 = new char[r8]
            int r0 = AGRequest
            int r1 = r0 + 65
            int r0 = r1 % 128
            getBody = r0
            int r0 = r1 % 2
        L_0x001b:
            r0 = 57
            if (r3 < r8) goto L_0x0026
            r4 = r2
        L_0x0020:
            java.lang.String r0 = new java.lang.String
            r0.<init>(r4)
            return r0
        L_0x0026:
            int r0 = r8 - r3
            int r0 = r0 + -1
            char r0 = r4[r0]
            r2[r3] = r0
            int r3 = r3 + 1
            goto L_0x001b
        L_0x0031:
            int r0 = AGRequest
            int r1 = r0 + 5
            int r0 = r1 % 128
            getBody = r0
            int r0 = r1 % 2
            char[] r1 = new char[r8]
            java.lang.System.arraycopy(r4, r3, r1, r3, r8)
            int r0 = r8 - r9
            java.lang.System.arraycopy(r1, r3, r4, r0, r9)
            java.lang.System.arraycopy(r1, r9, r4, r3, r0)
            goto L_0x000d
        L_0x0049:
            char r0 = r6[r2]
            int r0 = r0 + r7
            char r0 = (char) r0
            r4[r2] = r0
            char r1 = r4[r2]
            int r0 = getHeaders
            int r1 = r1 - r0
            char r0 = (char) r1
            r4[r2] = r0
            int r2 = r2 + 1
            int r0 = AGRequest
            int r1 = r0 + 81
            int r0 = r1 % 128
            getBody = r0
            int r0 = r1 % 2
            goto L_0x0008
        L_0x0064:
            int r0 = AGRequest
            int r1 = r0 + 47
            int r0 = r1 % 128
            getBody = r0
            int r0 = r1 % 2
            char[] r6 = r6.toCharArray()
            goto L_0x0002
        */
        throw new UnsupportedOperationException("Method not decompiled: com.apiguard3.domain.getUrl.getUrl(boolean, java.lang.String, int, int, int):java.lang.String");
    }
}
