package E1;

import android.os.Bundle;
import com.google.android.gms.internal.measurement.C1;
import java.util.Iterator;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
@Q("navigation")
public class E extends S {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final T f1993c;

    public E(T t6) {
        this.f1993c = t6;
    }

    @Override // E1.S
    public final A a() {
        return new D(this);
    }

    @Override // E1.S
    public final void d(List list, H h8) {
        String strValueOf;
        Iterator it = list.iterator();
        while (it.hasNext()) {
            C0103j c0103j = (C0103j) it.next();
            D d8 = (D) c0103j.f2087r;
            int i = d8.f1991B;
            if (i == 0) {
                StringBuilder sb = new StringBuilder("no start destination defined via app:startDestination for ");
                int i5 = d8.f1985x;
                if (i5 != 0) {
                    strValueOf = d8.f1980s;
                    if (strValueOf == null) {
                        strValueOf = String.valueOf(i5);
                    }
                } else {
                    strValueOf = "the root navigation";
                }
                sb.append(strValueOf);
                throw new IllegalStateException(sb.toString().toString());
            }
            A aI = d8.i(i, false);
            if (aI == null) {
                if (d8.f1992C == null) {
                    d8.f1992C = String.valueOf(d8.f1991B);
                }
                String str = d8.f1992C;
                P6.g.b(str);
                throw new IllegalArgumentException(I1.a.p("navigation destination ", str, " is not a direct child of this NavGraph"));
            }
            S sB = this.f1993c.b(aI.f1978q);
            C0107n c0107nB = b();
            Bundle bundleB = aI.b(c0103j.f2088s);
            F f3 = c0107nB.f2110h;
            sB.d(C1.C(x3.e.o(f3.f1997a, aI, bundleB, f3.f(), f3.f2010o)), h8);
        }
    }
}
