package p463.p473.p474.p479;

import p025.p026.C1340;
import p138.p139.p143.p144.C2803;
import p138.p176.p177.p242.p246.p251.C4303;
import p402.C6549;
import p402.p405.InterfaceC6575;
import p402.p405.p406.EnumC6586;
import p463.p484.p485.EnumC7175;
import p463.p484.p485.p489.C7273;
import p463.p484.p485.p489.InterfaceC7271;
import p491.C7338;
import p491.RunnableC7337;

/* JADX INFO: renamed from: ޒ.ؠ.֏.ވ.֏, reason: contains not printable characters */
/* JADX INFO: loaded from: classes.dex */
public final class C7158 {
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m10534(int i, int i2) {
        if (i < i2) {
            return -1;
        }
        return i > i2 ? 1 : 0;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m10535(long j) {
        if (j > 2147483647L || j < -2147483648L) {
            throw new ArithmeticException(C2803.m4874("Calculation overflows an int: ", j));
        }
        return (int) j;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m10536(long j, int i) {
        long j2 = i;
        return (int) (((j % j2) + j2) % j2);
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m10537(long j, long j2) {
        if (j < j2) {
            return -1;
        }
        return j > j2 ? 1 : 0;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static int m10538(byte[] bArr, int i) {
        int i2 = bArr[i] << 24;
        int i3 = i + 1;
        int i4 = i2 | ((bArr[i3] & 255) << 16);
        int i5 = i3 + 1;
        return (bArr[i5 + 1] & 255) | i4 | ((bArr[i5] & 255) << 8);
    }

    /* JADX WARN: Removed duplicated region for block: B:7:0x0013  */
    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public static final Object m10539(Exception exc, InterfaceC6575<?> interfaceC6575) {
        C7338 c7338;
        if (interfaceC6575 instanceof C7338) {
            c7338 = (C7338) interfaceC6575;
            int i = c7338.f21247;
            if ((i & Integer.MIN_VALUE) != 0) {
                c7338.f21247 = i - Integer.MIN_VALUE;
            } else {
                c7338 = new C7338(interfaceC6575);
            }
        }
        Object obj = c7338.f21246;
        EnumC6586 enumC6586 = EnumC6586.COROUTINE_SUSPENDED;
        int i2 = c7338.f21247;
        if (i2 == 0) {
            C4303.m7198(obj);
            c7338.f21248 = exc;
            c7338.f21247 = 1;
            C1340.f4487.mo2643(c7338.mo2607(), new RunnableC7337(c7338, exc));
            if (EnumC6586.COROUTINE_SUSPENDED == enumC6586) {
                return enumC6586;
            }
        } else {
            if (i2 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C4303.m7198(obj);
        }
        return C6549.f19328;
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static <T> T m10540(T t, String str) {
        if (t != null) {
            return t;
        }
        throw new NullPointerException(C2803.m4879(str, " must not be null"));
    }

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static InterfaceC7271 m10541(EnumC7175 enumC7175) {
        return new C7273(0, enumC7175, null);
    }

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

    /* JADX INFO: renamed from: ֏, reason: contains not printable characters */
    public static boolean m10543(Object obj, Object obj2) {
        if (obj == null) {
            return obj2 == null;
        }
        if (obj2 == null) {
            return false;
        }
        return obj.equals(obj2);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static int m10544(int i, int i2) {
        return ((i % i2) + i2) % i2;
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static long m10545(long j, int i) {
        if (i == -1) {
            if (j != Long.MIN_VALUE) {
                return -j;
            }
            throw new ArithmeticException("Multiplication overflows a long: " + j + " * " + i);
        }
        if (i == 0) {
            return 0L;
        }
        if (i == 1) {
            return j;
        }
        long j2 = i;
        long j3 = j * j2;
        if (j3 / j2 == j) {
            return j3;
        }
        throw new ArithmeticException("Multiplication overflows a long: " + j + " * " + i);
    }

    /* JADX INFO: renamed from: ؠ, reason: contains not printable characters */
    public static long m10546(long j, long j2) {
        return j >= 0 ? j / j2 : ((j + 1) / j2) - 1;
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static int m10547(int i, int i2) {
        int i3 = i + i2;
        if ((i ^ i3) >= 0 || (i ^ i2) < 0) {
            return i3;
        }
        throw new ArithmeticException(C2803.m4873("Addition overflows an int: ", i, " + ", i2));
    }

    /* JADX INFO: renamed from: ހ, reason: contains not printable characters */
    public static long m10548(long j, long j2) {
        return ((j % j2) + j2) % j2;
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static int m10549(int i, int i2) {
        int i3 = i - i2;
        if ((i ^ i3) >= 0 || (i ^ i2) >= 0) {
            return i3;
        }
        throw new ArithmeticException(C2803.m4873("Subtraction overflows an int: ", i, " - ", i2));
    }

    /* JADX INFO: renamed from: ށ, reason: contains not printable characters */
    public static long m10550(long j, long j2) {
        long j3 = j + j2;
        if ((j ^ j3) >= 0 || (j ^ j2) < 0) {
            return j3;
        }
        throw new ArithmeticException("Addition overflows a long: " + j + " + " + j2);
    }

    /* JADX INFO: renamed from: ނ, reason: contains not printable characters */
    public static long m10551(long j, long j2) {
        if (j2 == 1) {
            return j;
        }
        if (j == 1) {
            return j2;
        }
        if (j == 0 || j2 == 0) {
            return 0L;
        }
        long j3 = j * j2;
        if (j3 / j2 == j && ((j != Long.MIN_VALUE || j2 != -1) && (j2 != Long.MIN_VALUE || j != -1))) {
            return j3;
        }
        throw new ArithmeticException("Multiplication overflows a long: " + j + " * " + j2);
    }

    /* JADX INFO: renamed from: ރ, reason: contains not printable characters */
    public static long m10552(long j, long j2) {
        long j3 = j - j2;
        if ((j ^ j3) >= 0 || (j ^ j2) >= 0) {
            return j3;
        }
        throw new ArithmeticException("Subtraction overflows a long: " + j + " - " + j2);
    }
}
