package com.ss.android.ugc.aweme.ecommerce.review.gallery;

import X.C6409CaD;
import X.C6430CaY;
import X.Dov;
import X.M12;
import com.bytedance.covode.number.Covode;
import com.bytedance.jedi.arch.NestedState;
import com.bytedance.jedi.arch.ext.list.IListState;
import com.bytedance.jedi.arch.ext.list.ListState;
import kotlin.h.b.n;

public final class ReviewGalleryState implements IListState<C6430CaY, Dov> {
    public final int clickedIndex;
    public final String clickedReviewId;
    public final C6409CaD curReviewItem;
    public final int cursor;
    public final boolean hasMore;
    public final int index;
    public final String productId;
    public final String respKey;
    public final String selectFilterId;
    public final boolean showOtherInfo;
    public final Integer sortType;
    public final ListState<C6430CaY, Dov> substate;

    static {
        Covode.recordClassIndex(72133);
    }

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

    public static /* synthetic */ ReviewGalleryState copy$default(ReviewGalleryState reviewGalleryState, String str, String str2, Integer num, boolean z, int i, int i2, int i3, String str3, String str4, boolean z2, C6409CaD caD, ListState listState, int i4, Object obj) {
        if ((i4 & 1) != 0) {
            str = reviewGalleryState.productId;
        }
        if ((i4 & 2) != 0) {
            str2 = reviewGalleryState.selectFilterId;
        }
        if ((i4 & 4) != 0) {
            num = reviewGalleryState.sortType;
        }
        if ((i4 & 8) != 0) {
            z = reviewGalleryState.hasMore;
        }
        if ((i4 & 16) != 0) {
            i = reviewGalleryState.cursor;
        }
        if ((i4 & 32) != 0) {
            i2 = reviewGalleryState.clickedIndex;
        }
        if ((i4 & 64) != 0) {
            i3 = reviewGalleryState.index;
        }
        if ((i4 & 128) != 0) {
            str3 = reviewGalleryState.clickedReviewId;
        }
        if ((i4 & 256) != 0) {
            str4 = reviewGalleryState.respKey;
        }
        if ((i4 & 512) != 0) {
            z2 = reviewGalleryState.showOtherInfo;
        }
        if ((i4 & 1024) != 0) {
            caD = reviewGalleryState.curReviewItem;
        }
        if ((i4 & 2048) != 0) {
            listState = reviewGalleryState.getSubstate();
        }
        return reviewGalleryState.copy(str, str2, num, z, i, i2, i3, str3, str4, z2, caD, listState);
    }

    public final ListState<C6430CaY, Dov> component12() {
        return getSubstate();
    }

    public final ReviewGalleryState copy(String str, String str2, Integer num, boolean z, int i, int i2, int i3, String str3, String str4, boolean z2, C6409CaD caD, ListState<C6430CaY, Dov> listState) {
        String str5 = str;
        ListState<C6430CaY, Dov> listState2 = listState;
        M12.LIZ(str5, listState2);
        return new ReviewGalleryState(str5, str2, num, z, i, i2, i3, str3, str4, z2, caD, listState2);
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof ReviewGalleryState)) {
            return false;
        }
        ReviewGalleryState reviewGalleryState = (ReviewGalleryState) obj;
        return n.LIZ(this.productId, reviewGalleryState.productId) && n.LIZ(this.selectFilterId, reviewGalleryState.selectFilterId) && n.LIZ(this.sortType, reviewGalleryState.sortType) && this.hasMore == reviewGalleryState.hasMore && this.cursor == reviewGalleryState.cursor && this.clickedIndex == reviewGalleryState.clickedIndex && this.index == reviewGalleryState.index && n.LIZ(this.clickedReviewId, reviewGalleryState.clickedReviewId) && n.LIZ(this.respKey, reviewGalleryState.respKey) && this.showOtherInfo == reviewGalleryState.showOtherInfo && n.LIZ(this.curReviewItem, reviewGalleryState.curReviewItem) && n.LIZ(getSubstate(), reviewGalleryState.getSubstate());
    }

    public final int hashCode() {
        String str = this.productId;
        int i = 0;
        int hashCode = (str != null ? str.hashCode() : 0) * 31;
        String str2 = this.selectFilterId;
        int hashCode2 = (hashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
        Integer num = this.sortType;
        int hashCode3 = (hashCode2 + (num != null ? num.hashCode() : 0)) * 31;
        boolean z = this.hasMore;
        int i2 = 1;
        if (z) {
            z = true;
        }
        int i3 = this.cursor;
        INVOKESTATIC_com_ss_android_ugc_aweme_ecommerce_review_gallery_ReviewGalleryState_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(i3);
        int i4 = this.clickedIndex;
        INVOKESTATIC_com_ss_android_ugc_aweme_ecommerce_review_gallery_ReviewGalleryState_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(i4);
        int i5 = this.index;
        INVOKESTATIC_com_ss_android_ugc_aweme_ecommerce_review_gallery_ReviewGalleryState_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(i5);
        int i6 = (((((((hashCode3 + (z ? 1 : 0)) * 31) + i3) * 31) + i4) * 31) + i5) * 31;
        String str3 = this.clickedReviewId;
        int hashCode4 = (i6 + (str3 != null ? str3.hashCode() : 0)) * 31;
        String str4 = this.respKey;
        int hashCode5 = (hashCode4 + (str4 != null ? str4.hashCode() : 0)) * 31;
        if (!this.showOtherInfo) {
            i2 = 0;
        }
        int i7 = (hashCode5 + i2) * 31;
        C6409CaD caD = this.curReviewItem;
        int hashCode6 = (i7 + (caD != null ? caD.hashCode() : 0)) * 31;
        ListState substate2 = getSubstate();
        if (substate2 != null) {
            i = substate2.hashCode();
        }
        return hashCode6 + i;
    }

    public final String toString() {
        return "ReviewGalleryState(productId=" + this.productId + ", selectFilterId=" + this.selectFilterId + ", sortType=" + this.sortType + ", hasMore=" + this.hasMore + ", cursor=" + this.cursor + ", clickedIndex=" + this.clickedIndex + ", index=" + this.index + ", clickedReviewId=" + this.clickedReviewId + ", respKey=" + this.respKey + ", showOtherInfo=" + this.showOtherInfo + ", curReviewItem=" + this.curReviewItem + ", substate=" + getSubstate() + ")";
    }

    public final int getClickedIndex() {
        return this.clickedIndex;
    }

    public final String getClickedReviewId() {
        return this.clickedReviewId;
    }

    public final C6409CaD getCurReviewItem() {
        return this.curReviewItem;
    }

    public final int getCursor() {
        return this.cursor;
    }

    public final boolean getHasMore() {
        return this.hasMore;
    }

    public final int getIndex() {
        return this.index;
    }

    public final String getProductId() {
        return this.productId;
    }

    public final String getRespKey() {
        return this.respKey;
    }

    public final String getSelectFilterId() {
        return this.selectFilterId;
    }

    public final boolean getShowOtherInfo() {
        return this.showOtherInfo;
    }

    public final Integer getSortType() {
        return this.sortType;
    }

    public final ListState<C6430CaY, Dov> getSubstate() {
        return this.substate;
    }

    public final NestedState<ListState<C6430CaY, Dov>> newSubstate(ListState<C6430CaY, Dov> listState) {
        ListState<C6430CaY, Dov> listState2 = listState;
        M12.LIZ(listState2);
        return copy$default(this, (String) null, (String) null, (Integer) null, false, 0, 0, 0, (String) null, (String) null, false, (C6409CaD) null, listState2, 2047, (Object) null);
    }

    public ReviewGalleryState(String str, String str2, Integer num, boolean z, int i, int i2, int i3, String str3, String str4, boolean z2, C6409CaD caD, ListState<C6430CaY, Dov> listState) {
        M12.LIZ(str, listState);
        this.productId = str;
        this.selectFilterId = str2;
        this.sortType = num;
        this.hasMore = z;
        this.cursor = i;
        this.clickedIndex = i2;
        this.index = i3;
        this.clickedReviewId = str3;
        this.respKey = str4;
        this.showOtherInfo = z2;
        this.curReviewItem = caD;
        this.substate = listState;
    }

    /* JADX WARNING: Illegal instructions before constructor call */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public /* synthetic */ ReviewGalleryState(java.lang.String r14, java.lang.String r15, java.lang.Integer r16, boolean r17, int r18, int r19, int r20, java.lang.String r21, java.lang.String r22, boolean r23, X.C6409CaD r24, com.bytedance.jedi.arch.ext.list.ListState r25, int r26, X.2HN r27) {
        /*
            r13 = this;
            r2 = r26
            r10 = r23
            r9 = r22
            r4 = r17
            r3 = r16
            r5 = r18
            r6 = r19
            r7 = r20
            r8 = r21
            r0 = r2 & 4
            r11 = 0
            if (r0 == 0) goto L_0x0018
            r3 = r11
        L_0x0018:
            r1 = r2 & 8
            r0 = 0
            if (r1 == 0) goto L_0x001e
            r4 = 0
        L_0x001e:
            r1 = r2 & 16
            r0 = 1
            if (r1 == 0) goto L_0x0024
            r5 = 1
        L_0x0024:
            r0 = r2 & 32
            if (r0 == 0) goto L_0x0029
            r6 = 0
        L_0x0029:
            r0 = r2 & 64
            if (r0 == 0) goto L_0x002e
            r7 = 0
        L_0x002e:
            r0 = r2 & 128(0x80, float:1.794E-43)
            if (r0 == 0) goto L_0x0033
            r8 = r11
        L_0x0033:
            r0 = r2 & 256(0x100, float:3.59E-43)
            if (r0 == 0) goto L_0x0038
            r9 = r11
        L_0x0038:
            r0 = r2 & 512(0x200, float:7.175E-43)
            if (r0 == 0) goto L_0x003d
            r10 = 1
        L_0x003d:
            r0 = r2 & 1024(0x400, float:1.435E-42)
            if (r0 == 0) goto L_0x004a
        L_0x0041:
            r0 = r13
            r1 = r14
            r2 = r15
            r12 = r25
            r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12)
            return
        L_0x004a:
            r11 = r24
            goto L_0x0041
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.ecommerce.review.gallery.ReviewGalleryState.<init>(java.lang.String, java.lang.String, java.lang.Integer, boolean, int, int, int, java.lang.String, java.lang.String, boolean, X.CaD, com.bytedance.jedi.arch.ext.list.ListState, int, X.2HN):void");
    }
}
