package androidx.compose.foundation.selection;

import androidx.compose.foundation.c;
import o.C0140Fk;
import o.C0321Mk;
import o.C1065e30;
import o.InterfaceC0894cH;
import o.KQ;
import o.Kf0;
import o.MP;
import o.NC;
import o.TC;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class a implements TC {
    public final /* synthetic */ InterfaceC0894cH l;
    public final /* synthetic */ Kf0 m;
    public final /* synthetic */ boolean n;

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ C1065e30 f9o;
    public final /* synthetic */ NC p;

    public a(InterfaceC0894cH interfaceC0894cH, Kf0 kf0, boolean z, C1065e30 c1065e30, NC nc) {
        this.l = interfaceC0894cH;
        this.m = kf0;
        this.n = z;
        this.f9o = c1065e30;
        this.p = nc;
    }

    @Override // o.TC
    public final Object d(Object obj, Object obj2, Object obj3) {
        C0321Mk c0321Mk = (C0321Mk) obj2;
        ((Number) obj3).intValue();
        c0321Mk.V(-1525724089);
        Object objK = c0321Mk.K();
        if (objK == C0140Fk.a) {
            objK = new KQ();
            c0321Mk.f0(objK);
        }
        KQ kq = (KQ) objK;
        MP mpG = c.a(kq, this.l).g(new TriStateToggleableElement(this.m, kq, null, this.n, this.f9o, this.p));
        c0321Mk.q(false);
        return mpG;
    }
}
