package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class CU extends HU {
    public static final CU c = new CU(1, 0, 2);

    @Override // o.HU
    public final void a(C2642ui c2642ui, T8 t8, C1365h90 c1365h90, C0312Mb c0312Mb, IU iu) {
        int iF = c2642ui.f(0);
        int i = c1365h90.v;
        int iL = c1365h90.L(c1365h90.b, c1365h90.q(i));
        int iG = c1365h90.g(c1365h90.b, c1365h90.q(i + 1));
        for (int iMax = Math.max(iL, iG - iF); iMax < iG; iMax++) {
            Object obj = c1365h90.c[c1365h90.h(iMax)];
            if (obj instanceof R10) {
                c0312Mb.i((R10) obj);
            } else if (obj instanceof L00) {
                ((L00) obj).c();
            }
        }
        if (iF <= 0) {
            AbstractC0373Ok.c("Check failed");
        }
        int i2 = c1365h90.v;
        int iL2 = c1365h90.L(c1365h90.b, c1365h90.q(i2));
        int iG2 = c1365h90.g(c1365h90.b, c1365h90.q(i2 + 1)) - iF;
        if (iG2 < iL2) {
            AbstractC0373Ok.c("Check failed");
        }
        c1365h90.H(iG2, iF, i2);
        int i3 = c1365h90.i;
        if (i3 >= iL2) {
            c1365h90.i = i3 - iF;
        }
    }
}
