package o;

import java.util.ArrayList;
import java.util.List;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Ok, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0373Ok {
    public static final XT a = new XT("provider");
    public static final XT b = new XT("provider");
    public static final XT c = new XT("compositionLocalMap");
    public static final XT d = new XT("providers");
    public static final XT e = new XT("reference");
    public static final C0347Nk f = new C0347Nk(0);

    public static final void a(ArrayList arrayList, int i, int i2) {
        int iE = e(i, arrayList);
        if (iE < 0) {
            iE = -(iE + 1);
        }
        while (iE < arrayList.size() && ((GI) arrayList.get(iE)).b < i2) {
        }
    }

    public static final void b(C0982d90 c0982d90, ArrayList arrayList, int i) {
        boolean zL = c0982d90.l(i);
        int[] iArr = c0982d90.b;
        if (zL) {
            arrayList.add(c0982d90.n(i));
            return;
        }
        int i2 = iArr[(i * 5) + 3] + i;
        for (int i3 = i + 1; i3 < i2; i3 += iArr[(i3 * 5) + 3]) {
            b(c0982d90, arrayList, i3);
        }
    }

    public static final void c(String str) {
        throw new C2741vk(AbstractC2462sn.j("Compose Runtime internal error. Unexpected or incorrect use of the Compose internal runtime API (", str, "). Please report to Google or use https://goo.gle/compose-feedback"));
    }

    public static final Void d(String str) {
        throw new C2741vk(AbstractC2462sn.j("Compose Runtime internal error. Unexpected or incorrect use of the Compose internal runtime API (", str, "). Please report to Google or use https://goo.gle/compose-feedback"));
    }

    public static final int e(int i, List list) {
        int size = list.size() - 1;
        int i2 = 0;
        while (i2 <= size) {
            int i3 = (i2 + size) >>> 1;
            int iM = F3.m(((GI) list.get(i3)).b, i);
            if (iM < 0) {
                i2 = i3 + 1;
            } else {
                if (iM <= 0) {
                    return i3;
                }
                size = i3 - 1;
            }
        }
        return -(i2 + 1);
    }

    /* JADX WARN: Code restructure failed: missing block: B:51:0x00f9, code lost:
    
        o.AbstractC2841wm0.J("Index must be between 0 and size");
     */
    /* JADX WARN: Code restructure failed: missing block: B:52:0x00fe, code lost:
    
        throw null;
     */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
        To view partially-correct add '--show-bad-code' argument
    */
    public static final void f(o.C1365h90 r18, o.C0312Mb r19) {
        /*
            Method dump skipped, instructions count: 297
            To view this dump add '--comments-level debug' option
        */
        throw new UnsupportedOperationException("Method not decompiled: o.AbstractC0373Ok.f(o.h90, o.Mb):void");
    }
}
