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

import X.2HN;
import X.M12;
import X.MVC;
import X.MVD;
import X.MVE;
import X.MVG;
import X.MVI;
import android.os.Parcel;
import android.os.Parcelable;
import com.bytedance.covode.number.Covode;
import java.io.Serializable;
import java.util.Objects;
import kotlin.h.b.n;

public final class CompileProbeResult implements Parcelable, Serializable {
    public static final Parcelable.Creator<CompileProbeResult> CREATOR = new MVD();
    public static final MVC Companion = new MVC((byte) 0);
    public final ResultData data;
    public final ResultStatus status;
    public final int version;

    public enum State implements Parcelable, Serializable {
        SUCCESS,
        ERROR,
        CANCEL;
        
        public static final Parcelable.Creator<State> CREATOR = null;

        /* access modifiers changed from: public */
        static {
            CREATOR = new MVI();
        }

        public final int describeContents() {
            return 0;
        }

        public final void writeToParcel(Parcel parcel, int i) {
            n.LIZLLL(parcel, "");
            parcel.writeString(name());
        }
    }

    static {
        Covode.recordClassIndex(109330);
    }

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

    private Object[] LIZ() {
        return new Object[]{this.status, this.data, Integer.valueOf(this.version)};
    }

    public static /* synthetic */ CompileProbeResult copy$default(CompileProbeResult compileProbeResult, ResultStatus resultStatus, ResultData resultData, int i, int i2, Object obj) {
        if ((i2 & 1) != 0) {
            resultStatus = compileProbeResult.status;
        }
        if ((i2 & 2) != 0) {
            resultData = compileProbeResult.data;
        }
        if ((i2 & 4) != 0) {
            i = compileProbeResult.version;
        }
        return compileProbeResult.copy(resultStatus, resultData, i);
    }

    public final CompileProbeResult copy(ResultStatus resultStatus, ResultData resultData, int i) {
        M12.LIZ(resultStatus);
        return new CompileProbeResult(resultStatus, resultData, i);
    }

    public final int describeContents() {
        return 0;
    }

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

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

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

    public final void writeToParcel(Parcel parcel, int i) {
        M12.LIZ(parcel);
        this.status.writeToParcel(parcel, 0);
        ResultData resultData = this.data;
        if (resultData != null) {
            parcel.writeInt(1);
            resultData.writeToParcel(parcel, 0);
        } else {
            parcel.writeInt(0);
        }
        parcel.writeInt(this.version);
    }

    public static final class ResultData implements Parcelable, Serializable {
        public static final Parcelable.Creator<ResultData> CREATOR = new MVG();
        public final int crf;
        public final int durationMs;
        public final int encodeHeight;
        public final int encodeWidth;
        public final int encoderType;
        public final int gop;
        public final int maxBitrate;
        public final float optBitrate;
        public final OptBitrateFromVE optBitrateFromVE;
        public final int optimizeCrf;
        public final int preset;
        public final float psnr;
        public final double qpoffset;
        public final float videoBitrate;

        static {
            Covode.recordClassIndex(109331);
        }

        public static int INVOKESTATIC_com_ss_android_ugc_aweme_shortvideo_edit_CompileProbeResult$ResultData_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
            return i;
        }

        private Object[] LIZ() {
            return new Object[]{Integer.valueOf(this.optimizeCrf), Float.valueOf(this.videoBitrate), Integer.valueOf(this.encoderType), Integer.valueOf(this.preset), Integer.valueOf(this.maxBitrate), Integer.valueOf(this.encodeWidth), Integer.valueOf(this.encodeHeight), Float.valueOf(this.psnr), Integer.valueOf(this.crf), Integer.valueOf(this.gop), Double.valueOf(this.qpoffset), Integer.valueOf(this.durationMs), Float.valueOf(this.optBitrate), this.optBitrateFromVE};
        }

        public static /* synthetic */ ResultData copy$default(ResultData resultData, int i, float f, int i2, int i3, int i4, int i5, int i6, float f2, int i7, int i8, double d, int i9, float f3, OptBitrateFromVE optBitrateFromVE2, int i10, Object obj) {
            float f4 = f;
            int i11 = i;
            int i12 = i3;
            int i13 = i2;
            int i14 = i5;
            int i15 = i4;
            float f5 = f2;
            int i16 = i6;
            int i17 = i8;
            int i18 = i7;
            double d2 = d;
            float f6 = f3;
            int i19 = i9;
            int i20 = i10;
            OptBitrateFromVE optBitrateFromVE3 = optBitrateFromVE2;
            ResultData resultData2 = resultData;
            if ((i20 & 1) != 0) {
                i11 = resultData2.optimizeCrf;
            }
            if ((i20 & 2) != 0) {
                f4 = resultData2.videoBitrate;
            }
            if ((i20 & 4) != 0) {
                i13 = resultData2.encoderType;
            }
            if ((i20 & 8) != 0) {
                i12 = resultData2.preset;
            }
            if ((i20 & 16) != 0) {
                i15 = resultData2.maxBitrate;
            }
            if ((i20 & 32) != 0) {
                i14 = resultData2.encodeWidth;
            }
            if ((i20 & 64) != 0) {
                i16 = resultData2.encodeHeight;
            }
            if ((i20 & 128) != 0) {
                f5 = resultData2.psnr;
            }
            if ((i20 & 256) != 0) {
                i18 = resultData2.crf;
            }
            if ((i20 & 512) != 0) {
                i17 = resultData2.gop;
            }
            if ((i20 & 1024) != 0) {
                d2 = resultData2.qpoffset;
            }
            if ((i20 & 2048) != 0) {
                i19 = resultData2.durationMs;
            }
            if ((i20 & 4096) != 0) {
                f6 = resultData2.optBitrate;
            }
            if ((i20 & 8192) != 0) {
                optBitrateFromVE3 = resultData2.optBitrateFromVE;
            }
            return resultData2.copy(i11, f4, i13, i12, i15, i14, i16, f5, i18, i17, d2, i19, f6, optBitrateFromVE3);
        }

        public final ResultData copy(int i, float f, int i2, int i3, int i4, int i5, int i6, float f2, int i7, int i8, double d, int i9, float f3, OptBitrateFromVE optBitrateFromVE2) {
            OptBitrateFromVE optBitrateFromVE3 = optBitrateFromVE2;
            M12.LIZ(optBitrateFromVE3);
            return new ResultData(i, f, i2, i3, i4, i5, i6, f2, i7, i8, d, i9, f3, optBitrateFromVE3);
        }

        public final int describeContents() {
            return 0;
        }

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

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

        public final String toString() {
            return M12.LIZ("CompileProbeResult$ResultData:%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s", LIZ());
        }

        public final void writeToParcel(Parcel parcel, int i) {
            M12.LIZ(parcel);
            parcel.writeInt(this.optimizeCrf);
            parcel.writeFloat(this.videoBitrate);
            parcel.writeInt(this.encoderType);
            parcel.writeInt(this.preset);
            parcel.writeInt(this.maxBitrate);
            parcel.writeInt(this.encodeWidth);
            parcel.writeInt(this.encodeHeight);
            parcel.writeFloat(this.psnr);
            parcel.writeInt(this.crf);
            parcel.writeInt(this.gop);
            parcel.writeDouble(this.qpoffset);
            parcel.writeInt(this.durationMs);
            parcel.writeFloat(this.optBitrate);
            this.optBitrateFromVE.writeToParcel(parcel, 0);
        }

        public final int getCrf() {
            return this.crf;
        }

        public final int getDurationMs() {
            return this.durationMs;
        }

        public final int getEncodeHeight() {
            return this.encodeHeight;
        }

        public final int getEncodeWidth() {
            return this.encodeWidth;
        }

        public final int getEncoderType() {
            return this.encoderType;
        }

        public final int getGop() {
            return this.gop;
        }

        public final int getMaxBitrate() {
            return this.maxBitrate;
        }

        public final float getOptBitrate() {
            return this.optBitrate;
        }

        public final OptBitrateFromVE getOptBitrateFromVE() {
            return this.optBitrateFromVE;
        }

        public final int getOptimizeCrf() {
            return this.optimizeCrf;
        }

        public final int getPreset() {
            return this.preset;
        }

        public final float getPsnr() {
            return this.psnr;
        }

        public final double getQpoffset() {
            return this.qpoffset;
        }

        public final float getVideoBitrate() {
            return this.videoBitrate;
        }

        public static int INVOKESTATIC_com_ss_android_ugc_aweme_shortvideo_edit_CompileProbeResult$ResultData_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(float f) {
            return Float.floatToIntBits(f);
        }

        public static int INVOKESTATIC_com_ss_android_ugc_aweme_shortvideo_edit_CompileProbeResult$ResultData_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(double d) {
            long doubleToLongBits = Double.doubleToLongBits(d);
            return (int) (doubleToLongBits ^ (doubleToLongBits >>> 32));
        }

        public ResultData(int i, float f, int i2, int i3, int i4, int i5, int i6, float f2, int i7, int i8, double d, int i9, float f3, OptBitrateFromVE optBitrateFromVE2) {
            M12.LIZ(optBitrateFromVE2);
            this.optimizeCrf = i;
            this.videoBitrate = f;
            this.encoderType = i2;
            this.preset = i3;
            this.maxBitrate = i4;
            this.encodeWidth = i5;
            this.encodeHeight = i6;
            this.psnr = f2;
            this.crf = i7;
            this.gop = i8;
            this.qpoffset = d;
            this.durationMs = i9;
            this.optBitrate = f3;
            this.optBitrateFromVE = optBitrateFromVE2;
        }

        /* JADX WARNING: Illegal instructions before constructor call */
        /* Code decompiled incorrectly, please refer to instructions dump. */
        public /* synthetic */ ResultData(int r23, float r24, int r25, int r26, int r27, int r28, int r29, float r30, int r31, int r32, double r33, int r35, float r36, com.ss.android.ugc.aweme.shortvideo.edit.OptBitrateFromVE r37, int r38, X.2HN r39) {
            /*
                r22 = this;
                r15 = r37
                r1 = r38
                r14 = r36
                r0 = r1 & 4096(0x1000, float:5.74E-42)
                if (r0 == 0) goto L_0x000c
                r0 = 0
                r14 = 0
            L_0x000c:
                r0 = r1 & 8192(0x2000, float:1.14794E-41)
                if (r0 == 0) goto L_0x0021
                com.ss.android.ugc.aweme.shortvideo.edit.OptBitrateFromVE r15 = new com.ss.android.ugc.aweme.shortvideo.edit.OptBitrateFromVE
                r16 = 0
                r17 = 0
                r18 = 0
                r19 = 0
                r20 = 15
                r21 = 0
                r15.<init>(r16, r17, r18, r19, r20, r21)
            L_0x0021:
                r0 = r22
                r5 = r27
                r4 = r26
                r3 = r25
                r1 = r23
                r2 = r24
                r7 = r29
                r8 = r30
                r9 = r31
                r6 = r28
                r13 = r35
                r11 = r33
                r10 = r32
                r0.<init>(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r13, r14, r15)
                return
            */
            throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.shortvideo.edit.CompileProbeResult.ResultData.<init>(int, float, int, int, int, int, int, float, int, int, double, int, float, com.ss.android.ugc.aweme.shortvideo.edit.OptBitrateFromVE, int, X.2HN):void");
        }
    }

    public static final class ResultStatus implements Parcelable, Serializable {
        public static final Parcelable.Creator<ResultStatus> CREATOR = new MVE();
        public final String msg;
        public final State state;
        public final int toolsCode;
        public final int veCode;

        static {
            Covode.recordClassIndex(109333);
        }

        public static int INVOKESTATIC_com_ss_android_ugc_aweme_shortvideo_edit_CompileProbeResult$ResultStatus_com_ss_android_ugc_aweme_lancet_HashCodeLancet_hashCode(int i) {
            return i;
        }

        private Object[] LIZ() {
            return new Object[]{this.state, Integer.valueOf(this.veCode), Integer.valueOf(this.toolsCode), this.msg};
        }

        public static /* synthetic */ ResultStatus copy$default(ResultStatus resultStatus, State state2, int i, int i2, String str, int i3, Object obj) {
            if ((i3 & 1) != 0) {
                state2 = resultStatus.state;
            }
            if ((i3 & 2) != 0) {
                i = resultStatus.veCode;
            }
            if ((i3 & 4) != 0) {
                i2 = resultStatus.toolsCode;
            }
            if ((i3 & 8) != 0) {
                str = resultStatus.msg;
            }
            return resultStatus.copy(state2, i, i2, str);
        }

        public final ResultStatus copy(State state2, int i, int i2, String str) {
            M12.LIZ(state2, str);
            return new ResultStatus(state2, i, i2, str);
        }

        public final int describeContents() {
            return 0;
        }

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

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

        public final String toString() {
            return M12.LIZ("CompileProbeResult$ResultStatus:%s,%s,%s,%s", LIZ());
        }

        public final void writeToParcel(Parcel parcel, int i) {
            M12.LIZ(parcel);
            parcel.writeString(this.state.name());
            parcel.writeInt(this.veCode);
            parcel.writeInt(this.toolsCode);
            parcel.writeString(this.msg);
        }

        public final String getMsg() {
            return this.msg;
        }

        public final State getState() {
            return this.state;
        }

        public final int getToolsCode() {
            return this.toolsCode;
        }

        public final int getVeCode() {
            return this.veCode;
        }

        public ResultStatus(State state2, int i, int i2, String str) {
            M12.LIZ(state2, str);
            this.state = state2;
            this.veCode = i;
            this.toolsCode = i2;
            this.msg = str;
        }

        /* JADX INFO: this call moved to the top of the method (can break code semantics) */
        public /* synthetic */ ResultStatus(State state2, int i, int i2, String str, int i3, 2HN r7) {
            this(state2, i, (i3 & 4) != 0 ? 0 : i2, (i3 & 8) != 0 ? "" : str);
        }
    }

    public final ResultData getData() {
        return this.data;
    }

    public final ResultStatus getStatus() {
        return this.status;
    }

    public final int getVersion() {
        return this.version;
    }

    public final boolean isSw() {
        if (this.version == 1) {
            return true;
        }
        return false;
    }

    public final boolean isHw() {
        if (this.version == 2) {
            return true;
        }
        return false;
    }

    public CompileProbeResult(ResultStatus resultStatus, ResultData resultData, int i) {
        M12.LIZ(resultStatus);
        this.status = resultStatus;
        this.data = resultData;
        this.version = i;
    }

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