You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
755 B

package p021g1;
/* renamed from: g1.c */
/* loaded from: classes.dex */
public final class C0741c {
/* renamed from: a */
public static final int m3030a(int i, int i2, int i3) {
return m3028c(m3028c(i, i3) - m3028c(i2, i3), i3);
}
/* renamed from: b */
public static final int m3029b(int i, int i2, int i3) {
if (i3 > 0) {
return i >= i2 ? i2 : i2 - m3030a(i2, i, i3);
} else if (i3 < 0) {
return i <= i2 ? i2 : i2 + m3030a(i, i2, -i3);
} else {
throw new IllegalArgumentException("Step is zero.");
}
}
/* renamed from: c */
public static final int m3028c(int i, int i2) {
int i3 = i % i2;
return i3 >= 0 ? i3 : i3 + i2;
}
}