package com.ss.android.ugc.aweme.music.assem;

import X.2HN;
import X.4OS;
import X.C4090Bdu;
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 OriginMusicArg implements 4OS, IRouteArg {
    public static final Parcelable.Creator<OriginMusicArg> CREATOR = new C4090Bdu();
    public final int bottomBarHeight;
    public final boolean isMe;
    public final String previousPage;
    public final String secUserID;
    public final String userId;

    static {
        Covode.recordClassIndex(93502);
    }

    public OriginMusicArg() {
        this(false, (String) null, (String) null, 0, (String) null, 31, (2HN) null);
    }

    public OriginMusicArg(boolean z) {
        this(z, (String) null, (String) null, 0, (String) null, 30, (2HN) null);
    }

    public OriginMusicArg(boolean z, String str) {
        this(z, str, (String) null, 0, (String) null, 28, (2HN) null);
    }

    public OriginMusicArg(boolean z, String str, String str2) {
        this(z, str, str2, 0, (String) null, 24, (2HN) null);
    }

    public OriginMusicArg(boolean z, String str, String str2, int i) {
        this(z, str, str2, i, (String) null, 16, (2HN) null);
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_music_assem_OriginMusicArg_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
        return i;
    }

    /* JADX WARNING: Code restructure failed: missing block: B:17:0x0062, code lost:
        if (r3 == null) goto L_0x0064;
     */
    /* JADX WARNING: Removed duplicated region for block: B:10:0x002c  */
    /* JADX WARNING: Removed duplicated region for block: B:13:0x0040  */
    /* JADX WARNING: Removed duplicated region for block: B:16:0x0054  */
    /* JADX WARNING: Removed duplicated region for block: B:21:0x006c  */
    /* JADX WARNING: Removed duplicated region for block: B:24:0x007e  */
    /* JADX WARNING: Removed duplicated region for block: B:26:0x0084  */
    /* JADX WARNING: Removed duplicated region for block: B:29:0x008d  */
    /* JADX WARNING: Removed duplicated region for block: B:30:0x008f  */
    /* JADX WARNING: Removed duplicated region for block: B:31:0x0091  */
    /* JADX WARNING: Removed duplicated region for block: B:32:0x0094  */
    /* JADX WARNING: Removed duplicated region for block: B:33:0x0096  */
    /* JADX WARNING: Removed duplicated region for block: B:34:0x009a  */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public static com.ss.android.ugc.aweme.music.assem.OriginMusicArg __fromBundle(android.os.Bundle r12) {
        /*
            r10 = 0
            if (r12 != 0) goto L_0x0004
            return r10
        L_0x0004:
            java.lang.String r4 = "is_me"
            java.lang.String r7 = "user_id"
            java.lang.String r6 = "sec_user_id"
            java.lang.String r3 = "bottom_bar_height"
            java.lang.String r5 = "previous_page"
            boolean r1 = r12.containsKey(r4)
            r0 = 0
            if (r1 == 0) goto L_0x00a0
            com.bytedance.router.arg.RouteParser r2 = com.bytedance.router.arg.RouteParser.INSTANCE
            java.lang.Object r1 = r12.get(r4)
            java.lang.Class<java.lang.Boolean> r0 = java.lang.Boolean.class
            java.lang.Object r4 = r2.parse(r1, r0)
            java.lang.Boolean r4 = (java.lang.Boolean) r4
            if (r4 != 0) goto L_0x009e
        L_0x0025:
            r11 = 1
        L_0x0026:
            boolean r0 = r12.containsKey(r7)
            if (r0 == 0) goto L_0x009a
            com.bytedance.router.arg.RouteParser r2 = com.bytedance.router.arg.RouteParser.INSTANCE
            java.lang.Object r1 = r12.get(r7)
            java.lang.Class<java.lang.String> r0 = java.lang.String.class
            java.lang.Object r7 = r2.parse(r1, r0)
            java.lang.String r7 = (java.lang.String) r7
        L_0x003a:
            boolean r0 = r12.containsKey(r6)
            if (r0 == 0) goto L_0x0096
            com.bytedance.router.arg.RouteParser r2 = com.bytedance.router.arg.RouteParser.INSTANCE
            java.lang.Object r1 = r12.get(r6)
            java.lang.Class<java.lang.String> r0 = java.lang.String.class
            java.lang.Object r8 = r2.parse(r1, r0)
            java.lang.String r8 = (java.lang.String) r8
        L_0x004e:
            boolean r0 = r12.containsKey(r3)
            if (r0 == 0) goto L_0x0094
            com.bytedance.router.arg.RouteParser r2 = com.bytedance.router.arg.RouteParser.INSTANCE
            java.lang.Object r1 = r12.get(r3)
            java.lang.Class<java.lang.Integer> r0 = java.lang.Integer.class
            java.lang.Object r3 = r2.parse(r1, r0)
            java.lang.Integer r3 = (java.lang.Integer) r3
            if (r3 != 0) goto L_0x0066
        L_0x0064:
            int r11 = r11 + 8
        L_0x0066:
            boolean r0 = r12.containsKey(r5)
            if (r0 == 0) goto L_0x0091
            com.bytedance.router.arg.RouteParser r2 = com.bytedance.router.arg.RouteParser.INSTANCE
            java.lang.Object r1 = r12.get(r5)
            java.lang.Class<java.lang.String> r0 = java.lang.String.class
            java.lang.Object r10 = r2.parse(r1, r0)
            java.lang.String r10 = (java.lang.String) r10
        L_0x007a:
            com.ss.android.ugc.aweme.music.assem.OriginMusicArg r5 = new com.ss.android.ugc.aweme.music.assem.OriginMusicArg
            if (r4 == 0) goto L_0x008f
            boolean r6 = r4.booleanValue()
        L_0x0082:
            if (r3 == 0) goto L_0x008d
            int r9 = r3.intValue()
        L_0x0088:
            r12 = 0
            r5.<init>(r6, r7, r8, r9, r10, r11, r12)
            return r5
        L_0x008d:
            r9 = 0
            goto L_0x0088
        L_0x008f:
            r6 = 0
            goto L_0x0082
        L_0x0091:
            int r11 = r11 + 16
            goto L_0x007a
        L_0x0094:
            r3 = r10
            goto L_0x0064
        L_0x0096:
            int r11 = r11 + 4
            r8 = r10
            goto L_0x004e
        L_0x009a:
            int r11 = r11 + 2
            r7 = r10
            goto L_0x003a
        L_0x009e:
            r11 = 0
            goto L_0x0026
        L_0x00a0:
            r4 = r10
            goto L_0x0025
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.music.assem.OriginMusicArg.__fromBundle(android.os.Bundle):com.ss.android.ugc.aweme.music.assem.OriginMusicArg");
    }

    public static /* synthetic */ OriginMusicArg copy$default(OriginMusicArg originMusicArg, boolean z, String str, String str2, int i, String str3, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            z = originMusicArg.isMe;
        }
        if ((i2 & 2) != 0) {
            str = originMusicArg.userId;
        }
        if ((i2 & 4) != 0) {
            str2 = originMusicArg.secUserID;
        }
        if ((i2 & 8) != 0) {
            i = originMusicArg.bottomBarHeight;
        }
        if ((i2 & 16) != 0) {
            str3 = originMusicArg.previousPage;
        }
        return originMusicArg.copy(z, str, str2, i, str3);
    }

    private Object[] getObjects() {
        return new Object[]{Boolean.valueOf(this.isMe), this.userId, this.secUserID, Integer.valueOf(this.bottomBarHeight), this.previousPage};
    }

    public final OriginMusicArg copy(boolean z, String str, String str2, int i, String str3) {
        return new OriginMusicArg(z, str, str2, i, str3);
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeInt(this.isMe ? 1 : 0);
        parcel.writeString(this.userId);
        parcel.writeString(this.secUserID);
        parcel.writeInt(this.bottomBarHeight);
        parcel.writeString(this.previousPage);
    }

    public final int getBottomBarHeight() {
        return this.bottomBarHeight;
    }

    public final String getPreviousPage() {
        return this.previousPage;
    }

    public final String getSecUserID() {
        return this.secUserID;
    }

    public final String getUserId() {
        return this.userId;
    }

    public final boolean isMe() {
        return this.isMe;
    }

    public OriginMusicArg(boolean z, String str, String str2, int i, String str3) {
        this.isMe = z;
        this.userId = str;
        this.secUserID = str2;
        this.bottomBarHeight = i;
        this.previousPage = str3;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ OriginMusicArg(boolean z, String str, String str2, int i, String str3, int i2, 2HN r13) {
        this((i2 & 1) != 0 ? false : z, (i2 & 2) != 0 ? null : str, (i2 & 4) != 0 ? null : str2, (i2 & 8) != 0 ? -1 : i, (i2 & 16) == 0 ? str3 : null);
    }
}
