package com.ss.android.ugc.aweme.miniapp.media;

import X.2HN;
import X.C0990Iar;
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 MiniAppMediaChooseEmptyArg implements IRouteArg {
    public static final Parcelable.Creator<MiniAppMediaChooseEmptyArg> CREATOR = new C0990Iar();
    public final int chooseNum;
    public final int currentType;

    static {
        Covode.recordClassIndex(92182);
    }

    public MiniAppMediaChooseEmptyArg() {
        this(0, 0, 3, (2HN) null);
    }

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

    /* JADX WARNING: Code restructure failed: missing block: B:11:0x0034, code lost:
        if (r2 == null) goto L_0x0036;
     */
    /* JADX WARNING: Removed duplicated region for block: B:10:0x0026  */
    /* JADX WARNING: Removed duplicated region for block: B:15:0x003c  */
    /* JADX WARNING: Removed duplicated region for block: B:17:0x0042  */
    /* JADX WARNING: Removed duplicated region for block: B:20:0x004a  */
    /* JADX WARNING: Removed duplicated region for block: B:21:0x004c  */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public static com.ss.android.ugc.aweme.miniapp.media.MiniAppMediaChooseEmptyArg __fromBundle(android.os.Bundle r8) {
        /*
            r6 = 0
            if (r8 != 0) goto L_0x0004
            return r6
        L_0x0004:
            java.lang.String r1 = "key_choose_type"
            java.lang.String r7 = "key_choose_num"
            boolean r0 = r8.containsKey(r1)
            r5 = 0
            if (r0 == 0) goto L_0x0050
            com.bytedance.router.arg.RouteParser r2 = com.bytedance.router.arg.RouteParser.INSTANCE
            java.lang.Object r1 = r8.get(r1)
            java.lang.Class<java.lang.Integer> r0 = java.lang.Integer.class
            java.lang.Object r4 = r2.parse(r1, r0)
            java.lang.Integer r4 = (java.lang.Integer) r4
            if (r4 != 0) goto L_0x004e
        L_0x001f:
            r3 = 1
        L_0x0020:
            boolean r0 = r8.containsKey(r7)
            if (r0 == 0) goto L_0x004c
            com.bytedance.router.arg.RouteParser r2 = com.bytedance.router.arg.RouteParser.INSTANCE
            java.lang.Object r1 = r8.get(r7)
            java.lang.Class<java.lang.Integer> r0 = java.lang.Integer.class
            java.lang.Object r2 = r2.parse(r1, r0)
            java.lang.Integer r2 = (java.lang.Integer) r2
            if (r2 != 0) goto L_0x0038
        L_0x0036:
            int r3 = r3 + 2
        L_0x0038:
            com.ss.android.ugc.aweme.miniapp.media.MiniAppMediaChooseEmptyArg r1 = new com.ss.android.ugc.aweme.miniapp.media.MiniAppMediaChooseEmptyArg
            if (r4 == 0) goto L_0x004a
            int r0 = r4.intValue()
        L_0x0040:
            if (r2 == 0) goto L_0x0046
            int r5 = r2.intValue()
        L_0x0046:
            r1.<init>(r0, r5, r3, r6)
            return r1
        L_0x004a:
            r0 = 0
            goto L_0x0040
        L_0x004c:
            r2 = r6
            goto L_0x0036
        L_0x004e:
            r3 = 0
            goto L_0x0020
        L_0x0050:
            r4 = r6
            goto L_0x001f
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.miniapp.media.MiniAppMediaChooseEmptyArg.__fromBundle(android.os.Bundle):com.ss.android.ugc.aweme.miniapp.media.MiniAppMediaChooseEmptyArg");
    }

    public static /* synthetic */ MiniAppMediaChooseEmptyArg copy$default(MiniAppMediaChooseEmptyArg miniAppMediaChooseEmptyArg, int i, int i2, int i3, Object obj) {
        if ((i3 & 1) != 0) {
            i = miniAppMediaChooseEmptyArg.currentType;
        }
        if ((i3 & 2) != 0) {
            i2 = miniAppMediaChooseEmptyArg.chooseNum;
        }
        return miniAppMediaChooseEmptyArg.copy(i, i2);
    }

    private Object[] getObjects() {
        return new Object[]{Integer.valueOf(this.currentType), Integer.valueOf(this.chooseNum)};
    }

    public final MiniAppMediaChooseEmptyArg copy(int i, int i2) {
        return new MiniAppMediaChooseEmptyArg(i, i2);
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeInt(this.currentType);
        parcel.writeInt(this.chooseNum);
    }

    public final int getChooseNum() {
        return this.chooseNum;
    }

    public final int getCurrentType() {
        return this.currentType;
    }

    public MiniAppMediaChooseEmptyArg(int i, int i2) {
        this.currentType = i;
        this.chooseNum = i2;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ MiniAppMediaChooseEmptyArg(int i, int i2, int i3, 2HN r6) {
        this((i3 & 1) != 0 ? 1 : i, (i3 & 2) != 0 ? 1 : i2);
    }
}
