package com.ss.android.ugc.aweme.friends.ui;

import X.2HN;
import X.C5480Exo;
import X.M12;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import com.bytedance.router.annotation.IRouteArg;
import java.util.Objects;

public final class ContactsActivityArgs implements IRouteArg {
    public static final Parcelable.Creator<ContactsActivityArgs> CREATOR = new C5480Exo();

    /* renamed from: boolean  reason: not valid java name */
    public final boolean f0boolean;
    public final String enterFrom;

    static {
        Covode.recordClassIndex(81325);
    }

    public ContactsActivityArgs() {
        this((String) null, false, 3, (2HN) null);
    }

    /* JADX WARNING: Code restructure failed: missing block: B:9:0x0032, code lost:
        if (r1 == null) goto L_0x0034;
     */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public static com.ss.android.ugc.aweme.friends.ui.ContactsActivityArgs __fromBundle(android.os.Bundle r8) {
        /*
            r6 = 0
            if (r8 != 0) goto L_0x0004
            return r6
        L_0x0004:
            java.lang.String r1 = "enter_from"
            java.lang.String r7 = "just_granted_read_contacts"
            boolean r0 = r8.containsKey(r1)
            r5 = 0
            if (r0 == 0) goto L_0x0044
            com.bytedance.router.arg.RouteParser r2 = com.bytedance.router.arg.RouteParser.INSTANCE
            java.lang.Object r1 = r8.get(r1)
            java.lang.Class<java.lang.String> r0 = java.lang.String.class
            java.lang.Object r4 = r2.parse(r1, r0)
            java.lang.String r4 = (java.lang.String) r4
            r3 = 0
        L_0x001e:
            boolean r0 = r8.containsKey(r7)
            if (r0 == 0) goto L_0x0042
            com.bytedance.router.arg.RouteParser r2 = com.bytedance.router.arg.RouteParser.INSTANCE
            java.lang.Object r1 = r8.get(r7)
            java.lang.Class<java.lang.Boolean> r0 = java.lang.Boolean.class
            java.lang.Object r1 = r2.parse(r1, r0)
            java.lang.Boolean r1 = (java.lang.Boolean) r1
            if (r1 != 0) goto L_0x0036
        L_0x0034:
            int r3 = r3 + 2
        L_0x0036:
            com.ss.android.ugc.aweme.friends.ui.ContactsActivityArgs r0 = new com.ss.android.ugc.aweme.friends.ui.ContactsActivityArgs
            if (r1 == 0) goto L_0x003e
            boolean r5 = r1.booleanValue()
        L_0x003e:
            r0.<init>(r4, r5, r3, r6)
            return r0
        L_0x0042:
            r1 = r6
            goto L_0x0034
        L_0x0044:
            r0 = 1
            r4 = r6
            r3 = 1
            goto L_0x001e
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.friends.ui.ContactsActivityArgs.__fromBundle(android.os.Bundle):com.ss.android.ugc.aweme.friends.ui.ContactsActivityArgs");
    }

    public static /* synthetic */ ContactsActivityArgs copy$default(ContactsActivityArgs contactsActivityArgs, String str, boolean z, int i, Object obj) {
        if ((i & 1) != 0) {
            str = contactsActivityArgs.enterFrom;
        }
        if ((i & 2) != 0) {
            z = contactsActivityArgs.f0boolean;
        }
        return contactsActivityArgs.copy(str, z);
    }

    private Object[] getObjects() {
        return new Object[]{this.enterFrom, Boolean.valueOf(this.f0boolean)};
    }

    public final ContactsActivityArgs copy(String str, boolean z) {
        return new ContactsActivityArgs(str, z);
    }

    public final int describeContents() {
        return 0;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ContactsActivityArgs)) {
            return false;
        }
        return M12.LIZ(((ContactsActivityArgs) obj).getObjects(), getObjects());
    }

    public final int hashCode() {
        return Objects.hash(getObjects());
    }

    public final String toString() {
        return M12.LIZ("ContactsActivityArgs:%s,%s", getObjects());
    }

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeString(this.enterFrom);
        parcel.writeInt(this.f0boolean ? 1 : 0);
    }

    public final boolean getBoolean() {
        return this.f0boolean;
    }

    public final String getEnterFrom() {
        return this.enterFrom;
    }

    public ContactsActivityArgs(String str, boolean z) {
        this.enterFrom = str;
        this.f0boolean = z;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ ContactsActivityArgs(String str, boolean z, int i, 2HN r5) {
        this((i & 1) != 0 ? "" : str, (i & 2) != 0 ? false : z);
    }
}
