package com.apiguard3.internal;

import com.bytedance.covode.number.Covode;

public final class sc extends rm {
    public static int getHeaders = 1;
    public static int getMethod;

    static {
        Covode.recordClassIndex(2469);
    }

    public final void getUrl(int[] iArr) {
        int i = getHeaders;
        int i2 = i + 113;
        getMethod = i2 % 128;
        int i3 = i2 % 2;
        iArr[15] = iArr[15] + 68;
        int i4 = i + 121;
        getMethod = i4 % 128;
        int i5 = i4 % 2;
    }

    public final int[] getBody(byte[] bArr) {
        int i = getMethod + 75;
        getHeaders = i % 128;
        int i2 = i % 2;
        boolean z = false;
        int[] iArr = {788219237, 1289391221, -1140365098, -263010167, 724521378, getBody(bArr, 12), getBody(bArr, 16), getBody(bArr, 0), getBody(bArr, 24), -2044206312, getBody(bArr, 20), -1368185624, getBody(bArr, 8), 885228236, getBody(bArr, 28), getBody(bArr, 4)};
        int i3 = getHeaders + 65;
        getMethod = i3 % 128;
        if (i3 % 2 == 0) {
            z = true;
        }
        if (z) {
            return iArr;
        }
        throw new NullPointerException("hashCode");
    }

    public final int AGRequest(int i, int i2) {
        int i3 = getMethod;
        int i4 = i3 + 29;
        getHeaders = i4 % 128;
        int i5 = i4 % 2;
        int i6 = (i >>> (32 - i2)) | (i << i2);
        int i7 = i3 + 89;
        getHeaders = i7 % 128;
        int i8 = i7 % 2;
        return i6;
    }

    public final int getBody(byte[] bArr, int i) {
        int i2 = getMethod;
        int i3 = i2 + 31;
        getHeaders = i3 % 128;
        int i4 = i3 % 2;
        byte b = ((bArr[i + 3] & 255) << 24) | (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16);
        int i5 = i2 + 57;
        getHeaders = i5 % 128;
        int i6 = i5 % 2;
        return b;
    }

    public final void getBody(int[] iArr, int[] iArr2) {
        boolean z;
        int i = 16;
        int[] iArr3 = new int[16];
        int i2 = 16;
        while (true) {
            int i3 = i2 - 1;
            if (i2 <= 0) {
                z = false;
            } else {
                z = true;
            }
            if (!z) {
                break;
            }
            int i4 = getMethod + 13;
            getHeaders = i4 % 128;
            int i5 = i4 % 2;
            iArr3[i3] = iArr[i3];
            i2 = i3;
        }
        int i6 = 22;
        do {
            getBody(iArr3, 3, 1, 0, 2);
            getBody(iArr3, 4, 5, 7, 6);
            getBody(iArr3, 10, 11, 9, 8);
            getBody(iArr3, 12, 15, 14, 13);
            getBody(iArr3, 0, 7, 11, 12);
            getBody(iArr3, 2, 6, 10, 14);
            getBody(iArr3, 3, 5, 9, 13);
            getBody(iArr3, 1, 4, 8, 15);
            i6 -= 2;
        } while (i6 > 0);
        int i7 = getHeaders + 11;
        getMethod = i7 % 128;
        int i8 = i7 % 2;
        int i9 = 16;
        while (true) {
            int i10 = i9 - 1;
            if (i9 <= 0) {
                break;
            }
            iArr3[i10] = iArr3[i10] + iArr[i10];
            i9 = i10;
        }
        while (true) {
            int i11 = i - 1;
            if (i > 0) {
                getUrl(iArr2, i11 * 4, iArr3[i11]);
                i = i11;
            } else {
                return;
            }
        }
    }

    public final void getUrl(int[] iArr, int i, int i2) {
        int i3 = getMethod + 51;
        int i4 = i3 % 128;
        getHeaders = i4;
        int i5 = i3 % 2;
        iArr[i] = i2;
        int i6 = i2 >>> 8;
        iArr[i + 1] = i6;
        int i7 = i6 >>> 8;
        iArr[i + 2] = i7;
        iArr[i + 3] = i7 >>> 8;
        int i8 = i4 + 47;
        getMethod = i8 % 128;
        int i9 = i8 % 2;
    }

    public final void getBody(int[] iArr, int i, int i2, int i3, int i4) {
        int i5 = getHeaders + 77;
        int i6 = i5 % 128;
        getMethod = i6;
        int i7 = i5 % 2;
        iArr[i] = iArr[i] + iArr[i2];
        int i8 = iArr[i4] ^ iArr[i];
        iArr[i4] = (i8 >>> 14) | (i8 << 18);
        iArr[i3] = iArr[i3] + iArr[i4];
        int i9 = iArr[i2] ^ iArr[i3];
        iArr[i2] = (i9 >>> 19) | (i9 << 13);
        iArr[i] = iArr[i] + iArr[i2];
        int i10 = iArr[i] ^ iArr[i4];
        iArr[i4] = (i10 >>> 21) | (i10 << 11);
        iArr[i3] = iArr[i3] + iArr[i4];
        int i11 = iArr[i2] ^ iArr[i3];
        iArr[i2] = (i11 >>> 28) | (i11 << 4);
        int i12 = i6 + 59;
        getHeaders = i12 % 128;
        int i13 = i12 % 2;
    }
}
