package androidx.compose.foundation.text.modifiers;

import com.google.firebase.crashlytics.internal.metadata.UserMetadata;
import dn.l;
import h2.d0;
import h2.f0;
import h2.g0;
import h2.n;
import h2.o;
import h2.s;
import j2.b0;
import j2.e0;
import j2.m;
import j2.r;
import j2.t;
import java.util.List;
import kotlin.jvm.internal.k;
import q0.g;
import q2.d;
import q2.o0;
import s1.j0;
import u1.c;
import v2.i;

/* loaded from: classes.dex */
public final class a extends m implements b0, r, t {
    private g E;
    private l F;
    private final b G;

    public /* synthetic */ a(d dVar, o0 o0Var, i.b bVar, l lVar, int i10, boolean z10, int i11, int i12, List list, l lVar2, g gVar, j0 j0Var, l lVar3, k kVar) {
        this(dVar, o0Var, bVar, lVar, i10, z10, i11, i12, list, lVar2, gVar, j0Var, lVar3);
    }

    @Override // j2.t
    public void B(s sVar) {
        g gVar = this.E;
        if (gVar != null) {
            gVar.f(sVar);
        }
    }

    @Override // j2.b0
    public int I(o oVar, n nVar, int i10) {
        return this.G.y2(oVar, nVar, i10);
    }

    @Override // j2.b0
    public f0 h(g0 g0Var, d0 d0Var, long j10) {
        return this.G.w2(g0Var, d0Var, j10);
    }

    public final void n2(d dVar, o0 o0Var, List list, int i10, int i11, boolean z10, i.b bVar, int i12, l lVar, l lVar2, g gVar, j0 j0Var) {
        b bVar2 = this.G;
        bVar2.o2(bVar2.B2(j0Var, o0Var), this.G.D2(dVar), this.G.C2(o0Var, list, i10, i11, z10, bVar, i12), this.G.A2(lVar, lVar2, gVar, this.F));
        this.E = gVar;
        e0.b(this);
    }

    @Override // j2.b0
    public int p(o oVar, n nVar, int i10) {
        return this.G.u2(oVar, nVar, i10);
    }

    @Override // j2.r
    public void r(c cVar) {
        this.G.p2(cVar);
    }

    @Override // j2.b0
    public int s(o oVar, n nVar, int i10) {
        return this.G.x2(oVar, nVar, i10);
    }

    @Override // j2.b0
    public int x(o oVar, n nVar, int i10) {
        return this.G.v2(oVar, nVar, i10);
    }

    public /* synthetic */ a(d dVar, o0 o0Var, i.b bVar, l lVar, int i10, boolean z10, int i11, int i12, List list, l lVar2, g gVar, j0 j0Var, l lVar3, int i13, k kVar) {
        this(dVar, o0Var, bVar, (i13 & 8) != 0 ? null : lVar, (i13 & 16) != 0 ? b3.t.f6735a.a() : i10, (i13 & 32) != 0 ? true : z10, (i13 & 64) != 0 ? Integer.MAX_VALUE : i11, (i13 & 128) != 0 ? 1 : i12, (i13 & 256) != 0 ? null : list, (i13 & 512) != 0 ? null : lVar2, (i13 & UserMetadata.MAX_ATTRIBUTE_SIZE) != 0 ? null : gVar, (i13 & 2048) != 0 ? null : j0Var, (i13 & 4096) != 0 ? null : lVar3, null);
    }

    private a(d dVar, o0 o0Var, i.b bVar, l lVar, int i10, boolean z10, int i11, int i12, List list, l lVar2, g gVar, j0 j0Var, l lVar3) {
        this.E = gVar;
        this.F = lVar3;
        this.G = (b) h2(new b(dVar, o0Var, bVar, lVar, i10, z10, i11, i12, list, lVar2, this.E, j0Var, this.F, null));
        if (this.E == null) {
            throw new IllegalArgumentException("Do not use SelectionCapableStaticTextModifier unless selectionController != null".toString());
        }
    }
}
