package p138.p176.p177.p190.p198;

import p138.p176.p177.p190.p239.C4128;
import p138.p176.p177.p190.p239.C4140;
import p138.p176.p177.p190.p239.C4150;

/* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ೲ.ވ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C3564 {

    /* JADX INFO: renamed from: ދ.ހ.֏.ؠ.ೲ.ވ$֏, reason: contains not printable characters */
    public static final class C3565 {

        /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
        public long f10570;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m5894(C4140 c4140, int i) {
        switch (i) {
            case 1:
                return 192;
            case 2:
            case 3:
            case 4:
            case 5:
                return 576 << (i - 2);
            case 6:
                return c4140.m6702() + 1;
            case 7:
                return c4140.m6707() + 1;
            case 8:
            case 9:
            case 10:
            case 11:
            case 12:
            case 13:
            case 14:
            case 15:
                return 256 << (i - 8);
            default:
                return -1;
        }
    }

    /* JADX WARN: Removed duplicated region for block: B:49:0x0091  */
    /* JADX WARN: Removed duplicated region for block: B:50:0x0093  */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static boolean m5895(C4140 c4140, C4128 c4128, int i, C3565 c3565) {
        boolean z;
        int i2 = c4140.f13228;
        long jM6703 = c4140.m6703();
        long j = jM6703 >>> 16;
        if (j != i) {
            return false;
        }
        boolean z2 = (j & 1) == 1;
        int i3 = (int) ((jM6703 >> 12) & 15);
        int i4 = (int) ((jM6703 >> 8) & 15);
        int i5 = (int) (15 & (jM6703 >> 4));
        int i6 = (int) ((jM6703 >> 1) & 7);
        boolean z3 = (jM6703 & 1) == 1;
        if (!(i5 > 7 ? !(i5 > 10 || c4128.f13186 != 2) : i5 == c4128.f13186 - 1)) {
            return false;
        }
        if (!(i6 == 0 || i6 == c4128.f13188) || z3 || !m5896(c4140, c4128, z2, c3565)) {
            return false;
        }
        int iM5894 = m5894(c4140, i3);
        if (!(iM5894 != -1 && iM5894 <= c4128.f13181)) {
            return false;
        }
        int i7 = c4128.f13184;
        if (i4 != 0) {
            if (i4 <= 11) {
                z = i4 == c4128.f13185;
            } else if (i4 != 12) {
                if (i4 <= 14) {
                    int iM6707 = c4140.m6707();
                    if (i4 == 14) {
                        iM6707 *= 10;
                    }
                    if (iM6707 == i7) {
                    }
                }
            } else if (c4140.m6702() * 1000 == i7) {
            }
        }
        if (z) {
            return c4140.m6702() == C4150.m6786(c4140.f13227, i2, c4140.f13228 - 1, 0);
        }
        return false;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static boolean m5896(C4140 c4140, C4128 c4128, boolean z, C3565 c3565) {
        try {
            long jM6708 = c4140.m6708();
            if (!z) {
                jM6708 *= (long) c4128.f13181;
            }
            c3565.f10570 = jM6708;
            return true;
        } catch (NumberFormatException unused) {
            return false;
        }
    }
}
