package p056s0;

import androidx.lifecycle.AbstractC0405c0;
import androidx.lifecycle.C0407d0;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import p033k1.C1350a;
import p036l1.InterfaceC1432l;
import p039m1.C1470g;
import p051q1.InterfaceC1566b;

/* renamed from: s0.c */
/* loaded from: classes.dex */
public final class C1615c {

    /* renamed from: a */
    public final List<C1618f<?>> f3737a = new ArrayList();

    /* renamed from: a */
    public final <T extends AbstractC0405c0> void m793a(InterfaceC1566b<T> interfaceC1566b, InterfaceC1432l<? super AbstractC1611a, ? extends T> interfaceC1432l) {
        C1470g.m1292e(interfaceC1566b, "clazz");
        C1470g.m1292e(interfaceC1432l, "initializer");
        this.f3737a.add(new C1618f<>(C1350a.m1577a(interfaceC1566b), interfaceC1432l));
    }

    /* renamed from: b */
    public final C0407d0.InterfaceC0411b m792b() {
        Object[] array = this.f3737a.toArray(new C1618f[0]);
        if (array != null) {
            C1618f[] c1618fArr = (C1618f[]) array;
            return new C1614b((C1618f[]) Arrays.copyOf(c1618fArr, c1618fArr.length));
        }
        throw new NullPointerException("null cannot be cast to non-null type kotlin.Array<T of kotlin.collections.ArraysKt__ArraysJVMKt.toTypedArray>");
    }
}