package androidx.navigation;

import android.content.Context;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import androidx.lifecycle.EnumC1108q;

/* JADX INFO: renamed from: androidx.navigation.m, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C1138m implements Parcelable {
    public static final Parcelable.Creator<C1138m> CREATOR = new android.support.v4.media.a(5);

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final String f12767a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final int f12768b;

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

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final Bundle f12770d;

    public C1138m(C1137l entry) {
        kotlin.jvm.internal.o.h(entry, "entry");
        this.f12767a = entry.f12761f;
        this.f12768b = entry.f12757b.f12644f;
        this.f12769c = entry.a();
        Bundle bundle = new Bundle();
        this.f12770d = bundle;
        entry.l.c(bundle);
    }

    public final C1137l a(Context context, B b5, EnumC1108q hostLifecycleState, NavControllerViewModel navControllerViewModel) {
        kotlin.jvm.internal.o.h(context, "context");
        kotlin.jvm.internal.o.h(hostLifecycleState, "hostLifecycleState");
        Bundle bundle = this.f12769c;
        if (bundle != null) {
            bundle.setClassLoader(context.getClassLoader());
        } else {
            bundle = null;
        }
        Bundle bundle2 = bundle;
        String id = this.f12767a;
        kotlin.jvm.internal.o.h(id, "id");
        return new C1137l(context, b5, bundle2, hostLifecycleState, navControllerViewModel, id, this.f12770d);
    }

    @Override // android.os.Parcelable
    public final int describeContents() {
        return 0;
    }

    @Override // android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i6) {
        kotlin.jvm.internal.o.h(parcel, "parcel");
        parcel.writeString(this.f12767a);
        parcel.writeInt(this.f12768b);
        parcel.writeBundle(this.f12769c);
        parcel.writeBundle(this.f12770d);
    }

    public C1138m(Parcel parcel) {
        String string = parcel.readString();
        kotlin.jvm.internal.o.e(string);
        this.f12767a = string;
        this.f12768b = parcel.readInt();
        this.f12769c = parcel.readBundle(C1138m.class.getClassLoader());
        Bundle bundle = parcel.readBundle(C1138m.class.getClassLoader());
        kotlin.jvm.internal.o.e(bundle);
        this.f12770d = bundle;
    }
}
