package h2;

/* loaded from: classes.dex */
public final class z0 {

    /* renamed from: f, reason: collision with root package name */
    public static final int f20787f = 8;

    /* renamed from: a, reason: collision with root package name */
    private final b1 f20788a;

    /* renamed from: b, reason: collision with root package name */
    private z f20789b;

    /* renamed from: c, reason: collision with root package name */
    private final dn.p f20790c;

    /* renamed from: d, reason: collision with root package name */
    private final dn.p f20791d;

    /* renamed from: e, reason: collision with root package name */
    private final dn.p f20792e;

    /* loaded from: classes.dex */
    public interface a {
        void a();

        default void b(Object obj, dn.l lVar) {
        }

        default int c() {
            return 0;
        }

        default void d(int i10, long j10) {
        }
    }

    /* loaded from: classes.dex */
    static final class b extends kotlin.jvm.internal.v implements dn.p {
        b() {
            super(2);
        }

        public final void a(j2.g0 g0Var, y0.r rVar) {
            z0.this.h().I(rVar);
        }

        @Override // dn.p
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            a((j2.g0) obj, (y0.r) obj2);
            return rm.n0.f34904a;
        }
    }

    /* loaded from: classes.dex */
    static final class c extends kotlin.jvm.internal.v implements dn.p {
        c() {
            super(2);
        }

        public final void a(j2.g0 g0Var, dn.p pVar) {
            g0Var.d(z0.this.h().u(pVar));
        }

        @Override // dn.p
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            a((j2.g0) obj, (dn.p) obj2);
            return rm.n0.f34904a;
        }
    }

    /* loaded from: classes.dex */
    static final class d extends kotlin.jvm.internal.v implements dn.p {
        d() {
            super(2);
        }

        public final void a(j2.g0 g0Var, z0 z0Var) {
            z0 z0Var2 = z0.this;
            z r02 = g0Var.r0();
            if (r02 == null) {
                r02 = new z(g0Var, z0.this.f20788a);
                g0Var.J1(r02);
            }
            z0Var2.f20789b = r02;
            z0.this.h().B();
            z0.this.h().J(z0.this.f20788a);
        }

        @Override // dn.p
        public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
            a((j2.g0) obj, (z0) obj2);
            return rm.n0.f34904a;
        }
    }

    public z0(b1 b1Var) {
        this.f20788a = b1Var;
        this.f20790c = new d();
        this.f20791d = new b();
        this.f20792e = new c();
    }

    /* JADX INFO: Access modifiers changed from: private */
    public final z h() {
        z zVar = this.f20789b;
        if (zVar != null) {
            return zVar;
        }
        throw new IllegalArgumentException("SubcomposeLayoutState is not attached to SubcomposeLayout".toString());
    }

    public final void d() {
        h().z();
    }

    public final dn.p e() {
        return this.f20791d;
    }

    public final dn.p f() {
        return this.f20792e;
    }

    public final dn.p g() {
        return this.f20790c;
    }

    public final a i(Object obj, dn.p pVar) {
        return h().G(obj, pVar);
    }

    public z0() {
        this(j0.f20705a);
    }
}
