package fc;

import fe.h;

/* JADX INFO: loaded from: classes.dex */
public final class a {

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public static final a f26038e = new a();

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final int[] f26039a = new int[929];

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int[] f26040b = new int[929];

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final h f26041c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final h f26042d;

    public a() {
        int i10 = 1;
        for (int i11 = 0; i11 < 929; i11++) {
            this.f26039a[i11] = i10;
            i10 = (i10 * 3) % 929;
        }
        for (int i12 = 0; i12 < 928; i12++) {
            this.f26040b[this.f26039a[i12]] = i12;
        }
        this.f26041c = new h(this, new int[]{0});
        this.f26042d = new h(this, new int[]{1});
    }

    public final int a(int i10) {
        if (i10 == 0) {
            throw new ArithmeticException();
        }
        return this.f26039a[928 - this.f26040b[i10]];
    }

    public final int b(int i10, int i11) {
        if (i10 == 0 || i11 == 0) {
            return 0;
        }
        int[] iArr = this.f26040b;
        return this.f26039a[(iArr[i10] + iArr[i11]) % 928];
    }
}
