package p463.p473.p474.p475;

import p138.p139.p143.p144.C2803;
import p463.p473.p480.InterfaceC7159;

/* JADX INFO: renamed from: ޒ.ؠ.֏.ބ.ؠ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public class C7150 extends AbstractC7149 {

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public int f20704;

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public int f20705;

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public int f20706;

    /* JADX INFO: renamed from: ބ, reason: contains not printable characters */
    public int f20707;

    /* JADX INFO: renamed from: ޅ, reason: contains not printable characters */
    public int[] f20708;

    /* JADX INFO: renamed from: ކ, reason: contains not printable characters */
    public int f20709;

    public C7150() {
        this.f20708 = new int[16];
        mo10497();
    }

    public C7150(C7150 c7150) {
        super(c7150);
        this.f20708 = new int[16];
        m10516(c7150);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final int m10513(int i, int i2) {
        return (i >>> (32 - i2)) | (i << i2);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final int m10514(int i, int i2, int i3) {
        return ((~i) & i3) | (i2 & i);
    }

    @Override // p463.p473.p474.InterfaceC7146
    /* JADX INFO: renamed from: ֏ */
    public int mo10496(byte[] bArr, int i) {
        m10511();
        m10515(this.f20704, bArr, i);
        m10515(this.f20705, bArr, i + 4);
        m10515(this.f20706, bArr, i + 8);
        m10515(this.f20707, bArr, i + 12);
        mo10497();
        return 16;
    }

    @Override // p463.p473.p474.p475.AbstractC7149, p463.p473.p474.InterfaceC7146
    /* JADX INFO: renamed from: ֏ */
    public void mo10497() {
        super.mo10497();
        this.f20704 = 1732584193;
        this.f20705 = -271733879;
        this.f20706 = -1732584194;
        this.f20707 = 271733878;
        this.f20709 = 0;
        int i = 0;
        while (true) {
            int[] iArr = this.f20708;
            if (i == iArr.length) {
                return;
            }
            iArr[i] = 0;
            i++;
        }
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m10515(int i, byte[] bArr, int i2) {
        bArr[i2] = (byte) i;
        bArr[i2 + 1] = (byte) (i >>> 8);
        bArr[i2 + 2] = (byte) (i >>> 16);
        bArr[i2 + 3] = (byte) (i >>> 24);
    }

    @Override // p463.p473.p474.p475.AbstractC7149
    /* JADX INFO: renamed from: ֏ */
    public void mo10508(long j) {
        if (this.f20709 > 14) {
            mo10512();
        }
        int[] iArr = this.f20708;
        iArr[14] = (int) ((-1) & j);
        iArr[15] = (int) (j >>> 32);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public final void m10516(C7150 c7150) {
        super.m10509((AbstractC7149) c7150);
        this.f20704 = c7150.f20704;
        this.f20705 = c7150.f20705;
        this.f20706 = c7150.f20706;
        this.f20707 = c7150.f20707;
        int[] iArr = c7150.f20708;
        System.arraycopy(iArr, 0, this.f20708, 0, iArr.length);
        this.f20709 = c7150.f20709;
    }

    @Override // p463.p473.p480.InterfaceC7159
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public void mo10517(InterfaceC7159 interfaceC7159) {
        m10516((C7150) interfaceC7159);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public final int m10518(int i, int i2, int i3) {
        return (i & i3) | (i & i2) | (i2 & i3);
    }

    @Override // p463.p473.p480.InterfaceC7159
    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public InterfaceC7159 mo10519() {
        return new C7150(this);
    }

    @Override // p463.p473.p474.p475.AbstractC7149
    /* JADX INFO: renamed from: ؠ */
    public void mo10510(byte[] bArr, int i) {
        int[] iArr = this.f20708;
        int i2 = this.f20709;
        int i3 = i2 + 1;
        this.f20709 = i3;
        iArr[i2] = ((bArr[i + 3] & 255) << 24) | (bArr[i] & 255) | ((bArr[i + 1] & 255) << 8) | ((bArr[i + 2] & 255) << 16);
        if (i3 == 16) {
            mo10512();
        }
    }

    @Override // p463.p473.p474.InterfaceC7146
    /* JADX INFO: renamed from: ހ */
    public String mo10500() {
        return "MD4";
    }

    @Override // p463.p473.p474.InterfaceC7146
    /* JADX INFO: renamed from: ށ */
    public int mo10501() {
        return 16;
    }

    @Override // p463.p473.p474.p475.AbstractC7149
    /* JADX INFO: renamed from: ބ */
    public void mo10512() {
        int i = this.f20704;
        int i2 = this.f20705;
        int i3 = this.f20706;
        int i4 = this.f20707;
        int iM10513 = m10513(m10514(i2, i3, i4) + i + this.f20708[0], 3);
        int iM105132 = m10513(m10514(iM10513, i2, i3) + i4 + this.f20708[1], 7);
        int iM105133 = m10513(m10514(iM105132, iM10513, i2) + i3 + this.f20708[2], 11);
        int iM105134 = m10513(m10514(iM105133, iM105132, iM10513) + i2 + this.f20708[3], 19);
        int iM105135 = m10513(m10514(iM105134, iM105133, iM105132) + iM10513 + this.f20708[4], 3);
        int iM105136 = m10513(m10514(iM105135, iM105134, iM105133) + iM105132 + this.f20708[5], 7);
        int iM105137 = m10513(m10514(iM105136, iM105135, iM105134) + iM105133 + this.f20708[6], 11);
        int iM105138 = m10513(m10514(iM105137, iM105136, iM105135) + iM105134 + this.f20708[7], 19);
        int iM105139 = m10513(m10514(iM105138, iM105137, iM105136) + iM105135 + this.f20708[8], 3);
        int iM1051310 = m10513(m10514(iM105139, iM105138, iM105137) + iM105136 + this.f20708[9], 7);
        int iM1051311 = m10513(m10514(iM1051310, iM105139, iM105138) + iM105137 + this.f20708[10], 11);
        int iM1051312 = m10513(m10514(iM1051311, iM1051310, iM105139) + iM105138 + this.f20708[11], 19);
        int iM1051313 = m10513(m10514(iM1051312, iM1051311, iM1051310) + iM105139 + this.f20708[12], 3);
        int iM1051314 = m10513(m10514(iM1051313, iM1051312, iM1051311) + iM1051310 + this.f20708[13], 7);
        int iM1051315 = m10513(m10514(iM1051314, iM1051313, iM1051312) + iM1051311 + this.f20708[14], 11);
        int iM1051316 = m10513(m10514(iM1051315, iM1051314, iM1051313) + iM1051312 + this.f20708[15], 19);
        int iM4862 = C2803.m4862(m10518(iM1051316, iM1051315, iM1051314) + iM1051313, this.f20708[0], 1518500249, this, 3);
        int iM48622 = C2803.m4862(m10518(iM4862, iM1051316, iM1051315) + iM1051314, this.f20708[4], 1518500249, this, 5);
        int iM48623 = C2803.m4862(m10518(iM48622, iM4862, iM1051316) + iM1051315, this.f20708[8], 1518500249, this, 9);
        int iM48624 = C2803.m4862(m10518(iM48623, iM48622, iM4862) + iM1051316, this.f20708[12], 1518500249, this, 13);
        int iM48625 = C2803.m4862(m10518(iM48624, iM48623, iM48622) + iM4862, this.f20708[1], 1518500249, this, 3);
        int iM48626 = C2803.m4862(m10518(iM48625, iM48624, iM48623) + iM48622, this.f20708[5], 1518500249, this, 5);
        int iM48627 = C2803.m4862(m10518(iM48626, iM48625, iM48624) + iM48623, this.f20708[9], 1518500249, this, 9);
        int iM48628 = C2803.m4862(m10518(iM48627, iM48626, iM48625) + iM48624, this.f20708[13], 1518500249, this, 13);
        int iM48629 = C2803.m4862(m10518(iM48628, iM48627, iM48626) + iM48625, this.f20708[2], 1518500249, this, 3);
        int iM486210 = C2803.m4862(m10518(iM48629, iM48628, iM48627) + iM48626, this.f20708[6], 1518500249, this, 5);
        int iM486211 = C2803.m4862(m10518(iM486210, iM48629, iM48628) + iM48627, this.f20708[10], 1518500249, this, 9);
        int iM486212 = C2803.m4862(m10518(iM486211, iM486210, iM48629) + iM48628, this.f20708[14], 1518500249, this, 13);
        int iM486213 = C2803.m4862(m10518(iM486212, iM486211, iM486210) + iM48629, this.f20708[3], 1518500249, this, 3);
        int iM486214 = C2803.m4862(m10518(iM486213, iM486212, iM486211) + iM486210, this.f20708[7], 1518500249, this, 5);
        int iM486215 = C2803.m4862(m10518(iM486214, iM486213, iM486212) + iM486211, this.f20708[11], 1518500249, this, 9);
        int iM486216 = C2803.m4862(m10518(iM486215, iM486214, iM486213) + iM486212, this.f20708[15], 1518500249, this, 13);
        int iM486217 = C2803.m4862(iM486213 + ((iM486216 ^ iM486215) ^ iM486214), this.f20708[0], 1859775393, this, 3);
        int iM486218 = C2803.m4862(iM486214 + ((iM486217 ^ iM486216) ^ iM486215), this.f20708[8], 1859775393, this, 9);
        int iM486219 = C2803.m4862(iM486215 + ((iM486218 ^ iM486217) ^ iM486216), this.f20708[4], 1859775393, this, 11);
        int iM486220 = C2803.m4862(iM486216 + ((iM486219 ^ iM486218) ^ iM486217), this.f20708[12], 1859775393, this, 15);
        int iM486221 = C2803.m4862(iM486217 + ((iM486220 ^ iM486219) ^ iM486218), this.f20708[2], 1859775393, this, 3);
        int iM486222 = C2803.m4862(iM486218 + ((iM486221 ^ iM486220) ^ iM486219), this.f20708[10], 1859775393, this, 9);
        int iM486223 = C2803.m4862(iM486219 + ((iM486222 ^ iM486221) ^ iM486220), this.f20708[6], 1859775393, this, 11);
        int iM486224 = C2803.m4862(iM486220 + ((iM486223 ^ iM486222) ^ iM486221), this.f20708[14], 1859775393, this, 15);
        int iM486225 = C2803.m4862(iM486221 + ((iM486224 ^ iM486223) ^ iM486222), this.f20708[1], 1859775393, this, 3);
        int iM486226 = C2803.m4862(iM486222 + ((iM486225 ^ iM486224) ^ iM486223), this.f20708[9], 1859775393, this, 9);
        int iM486227 = C2803.m4862(iM486223 + ((iM486226 ^ iM486225) ^ iM486224), this.f20708[5], 1859775393, this, 11);
        int iM486228 = C2803.m4862(iM486224 + ((iM486227 ^ iM486226) ^ iM486225), this.f20708[13], 1859775393, this, 15);
        int iM486229 = C2803.m4862(iM486225 + ((iM486228 ^ iM486227) ^ iM486226), this.f20708[3], 1859775393, this, 3);
        int iM486230 = C2803.m4862(iM486226 + ((iM486229 ^ iM486228) ^ iM486227), this.f20708[11], 1859775393, this, 9);
        int iM486231 = C2803.m4862(iM486227 + ((iM486230 ^ iM486229) ^ iM486228), this.f20708[7], 1859775393, this, 11);
        int iM486232 = C2803.m4862(iM486228 + ((iM486231 ^ iM486230) ^ iM486229), this.f20708[15], 1859775393, this, 15);
        this.f20704 += iM486229;
        this.f20705 += iM486232;
        this.f20706 += iM486231;
        this.f20707 += iM486230;
        this.f20709 = 0;
        int i5 = 0;
        while (true) {
            int[] iArr = this.f20708;
            if (i5 == iArr.length) {
                return;
            }
            iArr[i5] = 0;
            i5++;
        }
    }
}
