package g0;

import g0.d;

/* loaded from: classes.dex */
public abstract class e {
    /* JADX INFO: Access modifiers changed from: private */
    public static final int b(a1.b bVar, int i10) {
        int q10 = bVar.q() - 1;
        int i11 = 0;
        while (i11 < q10) {
            int i12 = ((q10 - i11) / 2) + i11;
            int b10 = ((d.a) bVar.p()[i12]).b();
            if (b10 == i10) {
                return i12;
            }
            if (b10 < i10) {
                i11 = i12 + 1;
                if (i10 < ((d.a) bVar.p()[i11]).b()) {
                    return i12;
                }
            } else {
                q10 = i12 - 1;
            }
        }
        return i11;
    }
}
