package B;

import G0.InterfaceC0249c0;
import i0.C2246j;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class O0 implements J4.c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f164a = 1;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ int f165b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ int f166c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final /* synthetic */ Object f167d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ Object f168e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ Object f169f;

    public /* synthetic */ O0(k1 k1Var, int i6, G0.q0 q0Var, int i7, InterfaceC0249c0 interfaceC0249c0) {
        this.f167d = k1Var;
        this.f165b = i6;
        this.f168e = q0Var;
        this.f166c = i7;
        this.f169f = interfaceC0249c0;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        G0.p0 p0Var = (G0.p0) obj;
        switch (this.f164a) {
            case 0:
                G0.q0[] q0VarArr = (G0.q0[]) this.f167d;
                int length = q0VarArr.length;
                int i6 = 0;
                int i7 = 0;
                while (i6 < length) {
                    G0.q0 q0Var = q0VarArr[i6];
                    int i8 = i7 + 1;
                    kotlin.jvm.internal.o.e(q0Var);
                    Object objS = q0Var.S();
                    M0 m02 = objS instanceof M0 ? (M0) objS : null;
                    P0 p02 = (P0) this.f168e;
                    p02.getClass();
                    AbstractC0057e abstractC0057e = m02 != null ? m02.f156c : null;
                    int i9 = this.f165b;
                    p0Var.l(q0Var, ((int[]) this.f169f)[i7], abstractC0057e != null ? abstractC0057e.h(i9, q0Var.f1999b, h1.m.f16628a, q0Var, this.f166c) : ((C2246j) p02.f174b).a(q0Var.f1999b, i9), 0.0f);
                    i6++;
                    i7 = i8;
                }
                break;
            default:
                J4.e eVar = ((k1) this.f167d).f334c;
                G0.q0 q0Var2 = (G0.q0) this.f168e;
                G0.p0.q(p0Var, q0Var2, ((h1.j) eVar.invoke(new h1.l((((long) (this.f165b - q0Var2.f1998a)) << 32) | (((long) (this.f166c - q0Var2.f1999b)) & 4294967295L)), ((InterfaceC0249c0) this.f169f).getLayoutDirection())).f16621a);
                break;
        }
        return C3137A.f25453a;
    }

    public /* synthetic */ O0(G0.q0[] q0VarArr, P0 p02, int i6, int i7, int[] iArr) {
        this.f167d = q0VarArr;
        this.f168e = p02;
        this.f165b = i6;
        this.f166c = i7;
        this.f169f = iArr;
    }
}
