package com.ss.android.ugc.aweme.editSticker.text.bean;

import X.2HN;
import X.C5099Qxs;
import X.C5105Qxy;
import X.C5106Qxz;
import X.M12;
import android.graphics.Paint;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import java.util.List;
import java.util.Objects;

public final class InnerEffectTextCoverConfig implements Parcelable {
    public static final Parcelable.Creator<InnerEffectTextCoverConfig> CREATOR = new C5099Qxs();
    public final C5106Qxz gradientOrientation;
    public final C5105Qxy gradientType;
    public final float offsetX;
    public final float offsetY;
    public final Paint.Style paintStyle;
    public final InnerEffectTextShadowConfig shadowConfig;
    public final List<InnerEffectTextStrokeConfig> strokeConfigs;
    public final int textColorEnd;
    public final int textColorStart;

    static {
        Covode.recordClassIndex(73676);
    }

    public InnerEffectTextCoverConfig() {
        this(0, 0, (C5105Qxy) null, (C5106Qxz) null, (Paint.Style) null, 0.0f, 0.0f, (List) null, (InnerEffectTextShadowConfig) null, 511, (2HN) null);
    }

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

    public static /* synthetic */ InnerEffectTextCoverConfig copy$default(InnerEffectTextCoverConfig innerEffectTextCoverConfig, int i, int i2, C5105Qxy qxy, C5106Qxz qxz, Paint.Style style, float f, float f2, List<InnerEffectTextStrokeConfig> list, InnerEffectTextShadowConfig innerEffectTextShadowConfig, int i3, Object obj) {
        if ((i3 & 1) != 0) {
            i = innerEffectTextCoverConfig.textColorStart;
        }
        if ((i3 & 2) != 0) {
            i2 = innerEffectTextCoverConfig.textColorEnd;
        }
        if ((i3 & 4) != 0) {
            qxy = innerEffectTextCoverConfig.gradientType;
        }
        if ((i3 & 8) != 0) {
            qxz = innerEffectTextCoverConfig.gradientOrientation;
        }
        if ((i3 & 16) != 0) {
            style = innerEffectTextCoverConfig.paintStyle;
        }
        if ((i3 & 32) != 0) {
            f = innerEffectTextCoverConfig.offsetX;
        }
        if ((i3 & 64) != 0) {
            f2 = innerEffectTextCoverConfig.offsetY;
        }
        if ((i3 & 128) != 0) {
            list = innerEffectTextCoverConfig.strokeConfigs;
        }
        if ((i3 & 256) != 0) {
            innerEffectTextShadowConfig = innerEffectTextCoverConfig.shadowConfig;
        }
        return innerEffectTextCoverConfig.copy(i, i2, qxy, qxz, style, f, f2, list, innerEffectTextShadowConfig);
    }

    private Object[] getObjects() {
        return new Object[]{Integer.valueOf(this.textColorStart), Integer.valueOf(this.textColorEnd), this.gradientType, this.gradientOrientation, this.paintStyle, Float.valueOf(this.offsetX), Float.valueOf(this.offsetY), this.strokeConfigs, this.shadowConfig};
    }

    public final InnerEffectTextCoverConfig copy(int i, int i2, C5105Qxy qxy, C5106Qxz qxz, Paint.Style style, float f, float f2, List<InnerEffectTextStrokeConfig> list, InnerEffectTextShadowConfig innerEffectTextShadowConfig) {
        Paint.Style style2 = style;
        C5106Qxz qxz2 = qxz;
        List<InnerEffectTextStrokeConfig> list2 = list;
        C5105Qxy qxy2 = qxy;
        M12.LIZ(qxy2, qxz2, style2, list2);
        return new InnerEffectTextCoverConfig(i, i2, qxy2, qxz2, style2, f, f2, list2, innerEffectTextShadowConfig);
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        parcel.writeInt(this.textColorStart);
        parcel.writeInt(this.textColorEnd);
        parcel.writeString(this.gradientType.name());
        parcel.writeString(this.gradientOrientation.name());
        parcel.writeString(this.paintStyle.name());
        parcel.writeFloat(this.offsetX);
        parcel.writeFloat(this.offsetY);
        List<InnerEffectTextStrokeConfig> list = this.strokeConfigs;
        parcel.writeInt(list.size());
        for (InnerEffectTextStrokeConfig writeToParcel : list) {
            writeToParcel.writeToParcel(parcel, 0);
        }
        InnerEffectTextShadowConfig innerEffectTextShadowConfig = this.shadowConfig;
        if (innerEffectTextShadowConfig != null) {
            parcel.writeInt(1);
            innerEffectTextShadowConfig.writeToParcel(parcel, 0);
            return;
        }
        parcel.writeInt(0);
    }

    public final C5106Qxz getGradientOrientation() {
        return this.gradientOrientation;
    }

    public final C5105Qxy getGradientType() {
        return this.gradientType;
    }

    public final float getOffsetX() {
        return this.offsetX;
    }

    public final float getOffsetY() {
        return this.offsetY;
    }

    public final Paint.Style getPaintStyle() {
        return this.paintStyle;
    }

    public final InnerEffectTextShadowConfig getShadowConfig() {
        return this.shadowConfig;
    }

    public final List<InnerEffectTextStrokeConfig> getStrokeConfigs() {
        return this.strokeConfigs;
    }

    public final int getTextColorEnd() {
        return this.textColorEnd;
    }

    public final int getTextColorStart() {
        return this.textColorStart;
    }

    public static int INVOKESTATIC_com_ss_android_ugc_aweme_editSticker_text_bean_InnerEffectTextCoverConfig_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(float f) {
        return Float.floatToIntBits(f);
    }

    public InnerEffectTextCoverConfig(int i, int i2, C5105Qxy qxy, C5106Qxz qxz, Paint.Style style, float f, float f2, List<InnerEffectTextStrokeConfig> list, InnerEffectTextShadowConfig innerEffectTextShadowConfig) {
        M12.LIZ(qxy, qxz, style, list);
        this.textColorStart = i;
        this.textColorEnd = i2;
        this.gradientType = qxy;
        this.gradientOrientation = qxz;
        this.paintStyle = style;
        this.offsetX = f;
        this.offsetY = f2;
        this.strokeConfigs = list;
        this.shadowConfig = innerEffectTextShadowConfig;
    }

    /* JADX WARNING: Illegal instructions before constructor call */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public /* synthetic */ InnerEffectTextCoverConfig(int r12, int r13, X.C5105Qxy r14, X.C5106Qxz r15, android.graphics.Paint.Style r16, float r17, float r18, java.util.List r19, com.ss.android.ugc.aweme.editSticker.text.bean.InnerEffectTextShadowConfig r20, int r21, X.2HN r22) {
        /*
            r11 = this;
            r1 = r21
            r10 = r20
            r9 = r19
            r3 = r13
            r2 = r12
            r4 = r14
            r7 = r17
            r5 = r15
            r6 = r16
            r0 = r1 & 1
            if (r0 == 0) goto L_0x0014
            r2 = -65536(0xffffffffffff0000, float:NaN)
        L_0x0014:
            r0 = r1 & 2
            if (r0 == 0) goto L_0x001b
            r3 = -16776961(0xffffffffff0000ff, float:-1.7014636E38)
        L_0x001b:
            r0 = r1 & 4
            if (r0 == 0) goto L_0x0021
            X.Qxy r4 = X.C5105Qxy.NONE
        L_0x0021:
            r0 = r1 & 8
            if (r0 == 0) goto L_0x0027
            X.Qxz r5 = X.C5106Qxz.VERTICAL
        L_0x0027:
            r0 = r1 & 16
            if (r0 == 0) goto L_0x002d
            android.graphics.Paint$Style r6 = android.graphics.Paint.Style.STROKE
        L_0x002d:
            r0 = r1 & 32
            r8 = 0
            if (r0 == 0) goto L_0x0033
            r7 = 0
        L_0x0033:
            r0 = r1 & 64
            if (r0 == 0) goto L_0x004a
        L_0x0037:
            r0 = r1 & 128(0x80, float:1.794E-43)
            if (r0 == 0) goto L_0x0040
            java.util.ArrayList r9 = new java.util.ArrayList
            r9.<init>()
        L_0x0040:
            r0 = r1 & 256(0x100, float:3.59E-43)
            if (r0 == 0) goto L_0x0045
            r10 = 0
        L_0x0045:
            r1 = r11
            r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10)
            return
        L_0x004a:
            r8 = r18
            goto L_0x0037
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.editSticker.text.bean.InnerEffectTextCoverConfig.<init>(int, int, X.Qxy, X.Qxz, android.graphics.Paint$Style, float, float, java.util.List, com.ss.android.ugc.aweme.editSticker.text.bean.InnerEffectTextShadowConfig, int, X.2HN):void");
    }
}
