package com.ss.android.ugc.aweme.shortvideo.duet;

import X.2HN;
import X.5Ft;
import X.5Fu;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.bytedance.ui_component.UiState;
import kotlin.h.b.n;

public final class DuetLayoutModeState extends UiState {
    public final int changeDirectionMode;
    public final int chosenPosition;
    public final int guideMode;
    public final String toast;
    public final int touchGesture;
    public final 5Ft ui;

    static {
        Covode.recordClassIndex(109181);
    }

    public DuetLayoutModeState() {
        this(0, 0, 0, 0, (String) null, (5Ft) null, 63, (2HN) null);
    }

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

    public static /* synthetic */ DuetLayoutModeState copy$default(DuetLayoutModeState duetLayoutModeState, int i, int i2, int i3, int i4, String str, 5Ft r7, int i5, Object obj) {
        if ((i5 & 1) != 0) {
            i = duetLayoutModeState.changeDirectionMode;
        }
        if ((i5 & 2) != 0) {
            i2 = duetLayoutModeState.guideMode;
        }
        if ((i5 & 4) != 0) {
            i3 = duetLayoutModeState.touchGesture;
        }
        if ((i5 & 8) != 0) {
            i4 = duetLayoutModeState.chosenPosition;
        }
        if ((i5 & 16) != 0) {
            str = duetLayoutModeState.toast;
        }
        if ((i5 & 32) != 0) {
            r7 = duetLayoutModeState.getUi();
        }
        return duetLayoutModeState.copy(i, i2, i3, i4, str, r7);
    }

    public final 5Ft component6() {
        return getUi();
    }

    public final DuetLayoutModeState copy(int i, int i2, int i3, int i4, String str, 5Ft r13) {
        5Ft r6 = r13;
        String str2 = str;
        M12.LIZ(str2, r6);
        return new DuetLayoutModeState(i, i2, i3, i4, str2, r6);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof DuetLayoutModeState)) {
            return false;
        }
        DuetLayoutModeState duetLayoutModeState = (DuetLayoutModeState) obj;
        return this.changeDirectionMode == duetLayoutModeState.changeDirectionMode && this.guideMode == duetLayoutModeState.guideMode && this.touchGesture == duetLayoutModeState.touchGesture && this.chosenPosition == duetLayoutModeState.chosenPosition && n.LIZ(this.toast, duetLayoutModeState.toast) && n.LIZ(getUi(), duetLayoutModeState.getUi());
    }

    public final int hashCode() {
        int i = this.changeDirectionMode;
        INVOKESTATIC_com_ss_android_ugc_aweme_shortvideo_duet_DuetLayoutModeState_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(i);
        int i2 = i * 31;
        int i3 = this.guideMode;
        INVOKESTATIC_com_ss_android_ugc_aweme_shortvideo_duet_DuetLayoutModeState_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(i3);
        int i4 = this.touchGesture;
        INVOKESTATIC_com_ss_android_ugc_aweme_shortvideo_duet_DuetLayoutModeState_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(i4);
        int i5 = this.chosenPosition;
        INVOKESTATIC_com_ss_android_ugc_aweme_shortvideo_duet_DuetLayoutModeState_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(i5);
        int i6 = (((((i2 + i3) * 31) + i4) * 31) + i5) * 31;
        String str = this.toast;
        int i7 = 0;
        int hashCode = (i6 + (str != null ? str.hashCode() : 0)) * 31;
        5Ft ui2 = getUi();
        if (ui2 != null) {
            i7 = ui2.hashCode();
        }
        return hashCode + i7;
    }

    public final String toString() {
        return "DuetLayoutModeState(changeDirectionMode=" + this.changeDirectionMode + ", guideMode=" + this.guideMode + ", touchGesture=" + this.touchGesture + ", chosenPosition=" + this.chosenPosition + ", toast=" + this.toast + ", ui=" + getUi() + ")";
    }

    public final int getChangeDirectionMode() {
        return this.changeDirectionMode;
    }

    public final int getChosenPosition() {
        return this.chosenPosition;
    }

    public final int getGuideMode() {
        return this.guideMode;
    }

    public final String getToast() {
        return this.toast;
    }

    public final int getTouchGesture() {
        return this.touchGesture;
    }

    public final 5Ft getUi() {
        return this.ui;
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public DuetLayoutModeState(int i, int i2, int i3, int i4, String str, 5Ft r6) {
        super(r6);
        M12.LIZ(str, r6);
        this.changeDirectionMode = i;
        this.guideMode = i2;
        this.touchGesture = i3;
        this.chosenPosition = i4;
        this.toast = str;
        this.ui = r6;
    }

    /* JADX INFO: this call moved to the top of the method (can break code semantics) */
    public /* synthetic */ DuetLayoutModeState(int i, int i2, int i3, int i4, String str, 5Ft r13, int i5, 2HN r15) {
        this((i5 & 1) != 0 ? 0 : i, (i5 & 2) != 0 ? 0 : i2, (i5 & 4) != 0 ? 0 : i3, (i5 & 8) == 0 ? i4 : 0, (i5 & 16) != 0 ? "" : str, (i5 & 32) != 0 ? new 5Fu() : r13);
    }
}
