package j0; import com.tencent.youtu.sdkkitframework.common.StateEvent; import java.util.List; import kh4.q; import lh4.m; import lh4.o; import wg4.b0; public final class p { /* renamed from: a reason: collision with root package name */ public static final q<d<?>, b2, t1, b0> f235989a = b.f236001d; /* renamed from: b reason: collision with root package name */ public static final q<d<?>, b2, t1, b0> f235990b = d.f236003d; /* renamed from: c reason: collision with root package name */ public static final q<d<?>, b2, t1, b0> f235991c = a.f236000d; /* renamed from: d reason: collision with root package name */ public static final q<d<?>, b2, t1, b0> f235992d = e.f236004d; /* renamed from: e reason: collision with root package name */ public static final q<d<?>, b2, t1, b0> f235993e = c.f236002d; /* renamed from: f reason: collision with root package name */ public static final Object f235994f = new b1("provider"); /* renamed from: g reason: collision with root package name */ public static final Object f235995g = new b1("provider"); /* renamed from: h reason: collision with root package name */ public static final Object f235996h = new b1("compositionLocalMap"); /* renamed from: i reason: collision with root package name */ public static final Object f235997i = new b1("providerValues"); /* renamed from: j reason: collision with root package name */ public static final Object f235998j = new b1("providers"); /* renamed from: k reason: collision with root package name */ public static final Object f235999k = new b1("reference"); public static final class a extends o implements q<d<?>, b2, t1, b0> { /* renamed from: d reason: collision with root package name */ public static final a f236000d = new a(); public a() { super(3); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object] */ @Override // kh4.q public b0 invoke(d<?> dVar, b2 b2Var, t1 t1Var) { b2 b2Var2 = b2Var; m.g(dVar, "<anonymous parameter 0>"); m.g(b2Var2, "slots"); m.g(t1Var, "<anonymous parameter 2>"); b2Var2.i(); return b0.f332794a; } } public static final class b extends o implements q<d<?>, b2, t1, b0> { /* renamed from: d reason: collision with root package name */ public static final b f236001d = new b(); public b() { super(3); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object] */ @Override // kh4.q public b0 invoke(d<?> dVar, b2 b2Var, t1 t1Var) { b2 b2Var2 = b2Var; t1 t1Var2 = t1Var; m.g(dVar, "<anonymous parameter 0>"); m.g(b2Var2, "slots"); m.g(t1Var2, "rememberManager"); p.e(b2Var2, t1Var2); return b0.f332794a; } } public static final class c extends o implements q<d<?>, b2, t1, b0> { /* renamed from: d reason: collision with root package name */ public static final c f236002d = new c(); public c() { super(3); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object] */ @Override // kh4.q public b0 invoke(d<?> dVar, b2 b2Var, t1 t1Var) { boolean z15; b2 b2Var2 = b2Var; m.g(dVar, "<anonymous parameter 0>"); m.g(b2Var2, "slots"); m.g(t1Var, "<anonymous parameter 2>"); if (b2Var2.f235753m == 0) { z15 = true; } else { z15 = false; } if (z15) { b2Var2.A(); b2Var2.f235758r = 0; b2Var2.f235747g = (b2Var2.f235742b.length / 5) - b2Var2.f235746f; b2Var2.f235748h = 0; b2Var2.f235749i = 0; b2Var2.f235754n = 0; return b0.f332794a; } p.c("Cannot reset when inserting".toString()); throw null; } } public static final class d extends o implements q<d<?>, b2, t1, b0> { /* renamed from: d reason: collision with root package name */ public static final d f236003d = new d(); public d() { super(3); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object] */ @Override // kh4.q public b0 invoke(d<?> dVar, b2 b2Var, t1 t1Var) { b2 b2Var2 = b2Var; m.g(dVar, "<anonymous parameter 0>"); m.g(b2Var2, "slots"); m.g(t1Var, "<anonymous parameter 2>"); b2Var2.G(); return b0.f332794a; } } public static final class e extends o implements q<d<?>, b2, t1, b0> { /* renamed from: d reason: collision with root package name */ public static final e f236004d = new e(); public e() { super(3); } /* Return type fixed from 'java.lang.Object' to match base method */ /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object, java.lang.Object] */ @Override // kh4.q public b0 invoke(d<?> dVar, b2 b2Var, t1 t1Var) { b2 b2Var2 = b2Var; m.g(dVar, "<anonymous parameter 0>"); m.g(b2Var2, "slots"); m.g(t1Var, "<anonymous parameter 2>"); b2Var2.k(0); return b0.f332794a; } } public static final void a(List list, int i15, int i16) { int d15 = d(list, i15); if (d15 < 0) { d15 = -(d15 + 1); } while (d15 < list.size() && ((l0) list.get(d15)).f235962b < i16) { list.remove(d15); } } public static final void b(y1 y1Var, List<Object> list, int i15) { if (y1Var.i(i15)) { list.add(y1Var.j(i15)); return; } int i16 = i15 + 1; int h15 = i15 + y1Var.h(i15); while (i16 < h15) { b(y1Var, list, i16); i16 += y1Var.h(i16); } } public static final Void c(String str) { m.g(str, StateEvent.Name.MESSAGE); throw new IllegalStateException(("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").toString()); } public static final int d(List<l0> list, int i15) { int size = list.size() - 1; int i16 = 0; while (i16 <= size) { int i17 = (i16 + size) >>> 1; int i18 = m.i(list.get(i17).f235962b, i15); if (i18 < 0) { i16 = i17 + 1; } else if (i18 <= 0) { return i17; } else { size = i17 - 1; } } return -(i16 + 1); } public static final void e(b2 b2Var, t1 t1Var) { j1 j1Var; t tVar; m.g(b2Var, "<this>"); m.g(t1Var, "rememberManager"); int g15 = b2Var.g(b2Var.f235742b, b2Var.n(b2Var.f235758r)); int[] iArr = b2Var.f235742b; int i15 = b2Var.f235758r; c2 c2Var = new c2(g15, b2Var.g(iArr, b2Var.n(i15 + b2Var.o(i15))), b2Var); while (c2Var.hasNext()) { Object next = c2Var.next(); if (next instanceof u1) { t1Var.b((u1) next); } else if ((next instanceof j1) && (tVar = (j1Var = (j1) next).f235920a) != null) { tVar.f236057t = true; j1Var.f235920a = null; } } b2Var.B(); } public static final void f(boolean z15) { if (!z15) { c("Check failed".toString()); throw null; } } }