package com.ss.android.ugc.aweme.beauty;

import X.M12;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.tools.beauty.BeautyCategoryExtra;
import com.ss.android.ugc.effectmanager.effect.model.Effect;
import java.util.List;
import kotlin.h.b.n;

public final class ComposerBeauty {
    public boolean add2Nodes;
    public final ComposerBeautyExtraBeautify beautifyExtra;
    public final boolean categoryExclusive;
    public final BeautyCategoryExtra categoryExtra;
    public final String categoryId;
    public final List<ComposerBeauty> childList;
    public int defaultProgress;
    public int downloadState;
    public final Effect effect;
    public boolean enable;
    public final ComposerBeautyExtra extra;
    public final boolean isBeautyMode;
    public final boolean isCollectionType;
    public boolean isLocalItem;
    public int localIconResId;
    public final String parentId;
    public final String parentName;
    public final String parentResId;
    public int progressValue;
    public int secondProgressValue;
    public boolean selected;
    public boolean showDot;
    public boolean showRedDot;

    static {
        Covode.recordClassIndex(54556);
    }

    public final boolean getAdd2Nodes() {
        return this.add2Nodes;
    }

    public final ComposerBeautyExtraBeautify getBeautifyExtra() {
        return this.beautifyExtra;
    }

    public final boolean getCategoryExclusive() {
        return this.categoryExclusive;
    }

    public final BeautyCategoryExtra getCategoryExtra() {
        return this.categoryExtra;
    }

    public final String getCategoryId() {
        return this.categoryId;
    }

    public final List<ComposerBeauty> getChildList() {
        return this.childList;
    }

    public final int getDefaultProgress() {
        return this.defaultProgress;
    }

    public final int getDownloadState() {
        return this.downloadState;
    }

    public final Effect getEffect() {
        return this.effect;
    }

    public final boolean getEnable() {
        return this.enable;
    }

    public final ComposerBeautyExtra getExtra() {
        return this.extra;
    }

    public final int getLocalIconResId() {
        return this.localIconResId;
    }

    public final String getParentId() {
        return this.parentId;
    }

    public final String getParentName() {
        return this.parentName;
    }

    public final String getParentResId() {
        return this.parentResId;
    }

    public final int getProgressValue() {
        return this.progressValue;
    }

    public final int getSecondProgressValue() {
        return this.secondProgressValue;
    }

    public final boolean getSelected() {
        return this.selected;
    }

    public final boolean getShowDot() {
        return this.showDot;
    }

    public final boolean getShowRedDot() {
        return this.showRedDot;
    }

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

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

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

    public final int hashCode() {
        return this.effect.getEffectId().hashCode();
    }

    public final boolean needFaceDetect() {
        for (Object next : this.effect.getRequirements()) {
            if (n.LIZ(next, "faceDetect")) {
                if (next != null) {
                    return true;
                }
                return false;
            }
        }
        return false;
    }

    public final void setAdd2Nodes(boolean z) {
        this.add2Nodes = z;
    }

    public final void setDefaultProgress(int i) {
        this.defaultProgress = i;
    }

    public final void setDownloadState(int i) {
        this.downloadState = i;
    }

    public final void setEnable(boolean z) {
        this.enable = z;
    }

    public final void setLocalIconResId(int i) {
        this.localIconResId = i;
    }

    public final void setLocalItem(boolean z) {
        this.isLocalItem = z;
    }

    public final void setProgressValue(int i) {
        this.progressValue = i;
    }

    public final void setSecondProgressValue(int i) {
        this.secondProgressValue = i;
    }

    public final void setSelected(boolean z) {
        this.selected = z;
    }

    public final void setShowDot(boolean z) {
        this.showDot = z;
    }

    public final void setShowRedDot(boolean z) {
        this.showRedDot = z;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof ComposerBeauty) {
            boolean z = this.isBeautyMode;
            if (z) {
                ComposerBeauty composerBeauty = (ComposerBeauty) obj;
                if (z != composerBeauty.isBeautyMode) {
                    return false;
                }
                return n.LIZ(composerBeauty.categoryExtra.getCategoryId(), this.categoryExtra.getCategoryId());
            }
            ComposerBeauty composerBeauty2 = (ComposerBeauty) obj;
            if (!n.LIZ(composerBeauty2.effect.getEffectId(), this.effect.getEffectId()) || !n.LIZ(this.categoryId, composerBeauty2.categoryId) || !n.LIZ(this.parentId, composerBeauty2.parentId)) {
                return false;
            }
            return true;
        }
        return false;
    }

    public ComposerBeauty(Effect effect2, ComposerBeautyExtra composerBeautyExtra, ComposerBeautyExtraBeautify composerBeautyExtraBeautify, String str, boolean z, boolean z2, String str2, String str3, String str4, List<ComposerBeauty> list, boolean z3, boolean z4, boolean z5, int i, int i2, boolean z6, boolean z7, boolean z8, int i3, int i4, int i5, BeautyCategoryExtra beautyCategoryExtra, boolean z9) {
        BeautyCategoryExtra beautyCategoryExtra2 = beautyCategoryExtra;
        M12.LIZ(effect2, composerBeautyExtra, composerBeautyExtraBeautify, str, beautyCategoryExtra2);
        this.effect = effect2;
        this.extra = composerBeautyExtra;
        this.beautifyExtra = composerBeautyExtraBeautify;
        this.categoryId = str;
        this.categoryExclusive = z;
        this.isCollectionType = z2;
        this.parentId = str2;
        this.parentName = str3;
        this.parentResId = str4;
        this.childList = list;
        this.selected = z3;
        this.showRedDot = z4;
        this.showDot = z5;
        this.progressValue = i;
        this.secondProgressValue = i2;
        this.enable = z6;
        this.add2Nodes = z7;
        this.isLocalItem = z8;
        this.localIconResId = i3;
        this.defaultProgress = i4;
        this.downloadState = i5;
        this.categoryExtra = beautyCategoryExtra2;
        this.isBeautyMode = z9;
    }

    /* JADX WARNING: Illegal instructions before constructor call */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public /* synthetic */ ComposerBeauty(com.ss.android.ugc.effectmanager.effect.model.Effect r42, com.ss.android.ugc.aweme.beauty.ComposerBeautyExtra r43, com.ss.android.ugc.aweme.beauty.ComposerBeautyExtraBeautify r44, java.lang.String r45, boolean r46, boolean r47, java.lang.String r48, java.lang.String r49, java.lang.String r50, java.util.List r51, boolean r52, boolean r53, boolean r54, int r55, int r56, boolean r57, boolean r58, boolean r59, int r60, int r61, int r62, com.ss.android.ugc.aweme.tools.beauty.BeautyCategoryExtra r63, boolean r64, int r65, X.2HN r66) {
        /*
            r41 = this;
            r23 = r64
            r0 = r65
            r22 = r63
            r21 = r62
            r9 = r50
            r8 = r49
            r6 = r47
            r7 = r48
            r4 = r45
            r11 = r52
            r5 = r46
            r12 = r53
            r13 = r54
            r14 = r55
            r15 = r56
            r16 = r57
            r17 = r58
            r18 = r59
            r19 = r60
            r20 = r61
            r1 = r0 & 8
            if (r1 == 0) goto L_0x002e
            java.lang.String r4 = ""
        L_0x002e:
            r2 = r0 & 16
            r1 = 0
            if (r2 == 0) goto L_0x0034
            r5 = 0
        L_0x0034:
            r1 = r0 & 32
            if (r1 == 0) goto L_0x0039
            r6 = 0
        L_0x0039:
            r1 = r0 & 64
            r10 = 0
            if (r1 == 0) goto L_0x003f
            r7 = r10
        L_0x003f:
            r1 = r0 & 128(0x80, float:1.794E-43)
            if (r1 == 0) goto L_0x0044
            r8 = r10
        L_0x0044:
            r1 = r0 & 256(0x100, float:3.59E-43)
            if (r1 == 0) goto L_0x0049
            r9 = r10
        L_0x0049:
            r1 = r0 & 512(0x200, float:7.175E-43)
            if (r1 == 0) goto L_0x00d7
        L_0x004d:
            r1 = r0 & 1024(0x400, float:1.435E-42)
            if (r1 == 0) goto L_0x0052
            r11 = 0
        L_0x0052:
            r1 = r0 & 2048(0x800, float:2.87E-42)
            if (r1 == 0) goto L_0x0057
            r12 = 0
        L_0x0057:
            r1 = r0 & 4096(0x1000, float:5.74E-42)
            if (r1 == 0) goto L_0x005c
            r13 = 0
        L_0x005c:
            r1 = r0 & 8192(0x2000, float:1.14794E-41)
            if (r1 == 0) goto L_0x0061
            r14 = 0
        L_0x0061:
            r1 = r0 & 16384(0x4000, float:2.2959E-41)
            if (r1 == 0) goto L_0x0066
            r15 = r14
        L_0x0066:
            r2 = 32768(0x8000, float:4.5918E-41)
            r2 = r2 & r0
            r1 = 1
            if (r2 == 0) goto L_0x006f
            r16 = 1
        L_0x006f:
            r1 = 65536(0x10000, float:9.18355E-41)
            r1 = r1 & r0
            if (r1 == 0) goto L_0x0076
            r17 = 0
        L_0x0076:
            r1 = 131072(0x20000, float:1.83671E-40)
            r1 = r1 & r0
            if (r1 == 0) goto L_0x007d
            r18 = 0
        L_0x007d:
            r1 = 262144(0x40000, float:3.67342E-40)
            r1 = r1 & r0
            if (r1 == 0) goto L_0x0085
            r1 = -1
            r19 = -1
        L_0x0085:
            r1 = 524288(0x80000, float:7.34684E-40)
            r1 = r1 & r0
            if (r1 == 0) goto L_0x008c
            r20 = 0
        L_0x008c:
            r1 = 1048576(0x100000, float:1.469368E-39)
            r1 = r1 & r0
            if (r1 == 0) goto L_0x0093
            r21 = 1
        L_0x0093:
            r1 = 2097152(0x200000, float:2.938736E-39)
            r1 = r1 & r0
            if (r1 == 0) goto L_0x00c4
            com.ss.android.ugc.aweme.tools.beauty.BeautyCategoryExtra r22 = new com.ss.android.ugc.aweme.tools.beauty.BeautyCategoryExtra
            r25 = 0
            r1 = 0
            r26 = 0
            r27 = 0
            r28 = 0
            r29 = 0
            r1 = 0
            r30 = 0
            r31 = 0
            r32 = 0
            r33 = 0
            r34 = r33
            r35 = r33
            r36 = r33
            r37 = r33
            r1 = 0
            r38 = 0
            r1 = 16383(0x3fff, float:2.2957E-41)
            r39 = 16383(0x3fff, float:2.2957E-41)
            r40 = 0
            r24 = r22
            r24.<init>(r25, r26, r27, r28, r29, r30, r31, r32, r33, r34, r35, r36, r37, r38, r39, r40)
        L_0x00c4:
            r1 = 4194304(0x400000, float:5.877472E-39)
            r0 = r0 & r1
            if (r0 == 0) goto L_0x00cb
            r23 = 0
        L_0x00cb:
            r0 = r41
            r1 = r42
            r3 = r44
            r2 = r43
            r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23)
            return
        L_0x00d7:
            r10 = r51
            goto L_0x004d
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.beauty.ComposerBeauty.<init>(com.ss.android.ugc.effectmanager.effect.model.Effect, com.ss.android.ugc.aweme.beauty.ComposerBeautyExtra, com.ss.android.ugc.aweme.beauty.ComposerBeautyExtraBeautify, java.lang.String, boolean, boolean, java.lang.String, java.lang.String, java.lang.String, java.util.List, boolean, boolean, boolean, int, int, boolean, boolean, boolean, int, int, int, com.ss.android.ugc.aweme.tools.beauty.BeautyCategoryExtra, boolean, int, X.2HN):void");
    }
}
