package com.google.android.material.bottomsheet;

import android.os.Parcel;
import android.os.Parcelable;
import android.view.AbsSavedState;

/* JADX INFO: loaded from: classes2.dex */
public final class g extends x0.b {
    public static final Parcelable.Creator<g> CREATOR = new f();

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

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

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final boolean f22312e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final boolean f22313f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    public final boolean f22314g;

    public g(Parcel parcel, ClassLoader classLoader) {
        super(parcel, classLoader);
        this.f22310c = parcel.readInt();
        this.f22311d = parcel.readInt();
        this.f22312e = parcel.readInt() == 1;
        this.f22313f = parcel.readInt() == 1;
        this.f22314g = parcel.readInt() == 1;
    }

    @Override // x0.b, android.os.Parcelable
    public final void writeToParcel(Parcel parcel, int i10) {
        parcel.writeParcelable(this.f34321a, i10);
        parcel.writeInt(this.f22310c);
        parcel.writeInt(this.f22311d);
        parcel.writeInt(this.f22312e ? 1 : 0);
        parcel.writeInt(this.f22313f ? 1 : 0);
        parcel.writeInt(this.f22314g ? 1 : 0);
    }

    public g(AbsSavedState absSavedState, BottomSheetBehavior bottomSheetBehavior) {
        super(absSavedState);
        this.f22310c = bottomSheetBehavior.f22286o0;
        this.f22311d = bottomSheetBehavior.f22267e;
        this.f22312e = bottomSheetBehavior.f22261b;
        this.f22313f = bottomSheetBehavior.f22278j0;
        this.f22314g = bottomSheetBehavior.f22280k0;
    }
}
