package com.ss.android.ugc.aweme.ftc.pages;

import X.8gF;
import X.C42436kz;
import X.C539678o;
import X.Ltg;
import android.content.Context;
import android.content.Intent;
import android.view.View;
import androidx.fragment.app.Fragment;
import com.bytedance.apm.agent.v2.instrumentation.ActivityAgent;
import com.bytedance.covode.number.Covode;
import com.bytedance.sysoptimizer.EnterTransitionCrashOptimizer;
import com.ss.android.ugc.aweme.shortvideo.edit.VideoPublishEditModel;
import java.util.HashMap;

public final class FTCVideoPublishActivity extends Ltg {
    public static final C42436kz LJ = new C42436kz((byte) 0);
    public VideoPublishEditModel LIZLLL;
    public boolean LJFF;
    public int LJI;
    public boolean LJII;
    public boolean LJIIIIZZ;
    public HashMap LJIIIZ;

    static {
        Covode.recordClassIndex(82699);
    }

    public final View g_(int i) {
        if (this.LJIIIZ == null) {
            this.LJIIIZ = new HashMap();
        }
        View view = (View) this.LJIIIZ.get(Integer.valueOf(i));
        if (view != null) {
            return view;
        }
        View findViewById = findViewById(i);
        this.LJIIIZ.put(Integer.valueOf(i), findViewById);
        return findViewById;
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity, X.Ltg, android.app.Activity] */
    public final void onPause() {
        8gF.LIZJ(this);
        FTCVideoPublishActivity.super.onPause();
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity, X.Ltg, android.app.Activity] */
    public final void onResume() {
        8gF.LIZIZ(this);
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity", "onResume", true);
        FTCVideoPublishActivity.super.onResume();
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity", "onResume", false);
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity, X.1oX, android.app.Activity] */
    public final void onStart() {
        8gF.LIZ(this);
        FTCVideoPublishActivity.super.onStart();
    }

    public final void onWindowFocusChanged(boolean z) {
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity", "onWindowFocusChanged", true);
        FTCVideoPublishActivity.super.onWindowFocusChanged(z);
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity, X.Ltg, android.app.Activity] */
    public final void onDestroy() {
        8gF.LJ(this);
        FTCVideoPublishActivity.super.onDestroy();
        C539678o.LJ.LIZ((Context) this);
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [android.app.Activity] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void finish() {
        /*
            r2 = this;
            com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity.super.finish()
            r1 = r2
            boolean r0 = X.Fnr.LIZ()
            if (r0 == 0) goto L_0x0012
            int r0 = X.Fnq.LIZ()
        L_0x000e:
            X.Fnq.LIZIZ(r1, r0)
            return
        L_0x0012:
            r0 = 9
            goto L_0x000e
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity.finish():void");
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity, X.Ltg, android.app.Activity] */
    public final void onStop() {
        8gF.LIZLLL(this);
        FTCVideoPublishActivity.super.onStop();
        if (EnterTransitionCrashOptimizer.getContext() != null) {
            try {
                getWindow().getDecorView().getViewTreeObserver().dispatchOnPreDraw();
            } catch (Throwable unused) {
            }
        }
        try {
            getWindow().getDecorView().getViewTreeObserver().dispatchOnPreDraw();
        } catch (Throwable unused2) {
        }
    }

    /* JADX WARNING: type inference failed for: r1v88, types: [android.content.Context] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void onBackPressed() {
        /*
            r9 = this;
            android.content.Intent r2 = r9.getIntent()
            java.lang.String r1 = "fromDraft"
            r0 = 0
            int r0 = r2.getIntExtra(r1, r0)
            r6 = 1
            if (r0 != r6) goto L_0x036a
            X.0AA r1 = r9.getSupportFragmentManager()
            r0 = 2131365158(0x7f0a0d26, float:1.8350173E38)
            androidx.fragment.app.Fragment r1 = r1.LIZ(r0)
            boolean r0 = r1 instanceof com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishFragment
            r5 = 0
            if (r0 != 0) goto L_0x001f
            r1 = r5
        L_0x001f:
            com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishFragment r1 = (com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishFragment) r1
            if (r1 == 0) goto L_0x002c
            com.ss.android.ugc.aweme.shortvideo.edit.VideoPublishEditModel r4 = r1.LIZ
            java.lang.String r3 = ""
            if (r4 != 0) goto L_0x0034
            kotlin.h.b.n.LIZ(r3)
        L_0x002c:
            java.lang.IllegalStateException r1 = new java.lang.IllegalStateException
            java.lang.String r0 = "Empty VideoPublishEditModel in FTC Publish Page."
            r1.<init>(r0)
            throw r1
        L_0x0034:
            android.content.Intent r2 = new android.content.Intent
            r2.<init>()
            int r1 = r9.LJI
            java.lang.String r0 = "draft_to_edit_from"
            r2.putExtra(r0, r1)
            X.5hC r0 = X.C14605hC.LIZ
            com.ss.android.ugc.aweme.shortvideo.WorkSpace.Workspace r1 = r0.LIZ(r4)
            java.lang.String r0 = "workspace"
            r2.putExtra(r0, r1)
            com.ss.android.ugc.aweme.infosticker.StickerChallenge r1 = r4.stickerChallenge
            boolean r0 = r1 instanceof android.os.Parcelable
            if (r0 != 0) goto L_0x0052
            r1 = r5
        L_0x0052:
            java.lang.String r0 = "sticker_challenge"
            r2.putExtra(r0, r1)
            com.ss.android.ugc.aweme.creative.CreativeInfo r0 = r4.creativeInfo
            kotlin.h.b.n.LIZIZ(r0, r3)
            X.C50266xc.LIZ((android.content.Intent) r2, (com.ss.android.ugc.aweme.creative.CreativeInfo) r0)
            com.ss.android.ugc.aweme.creative.model.CreativeModel r0 = r4.creativeModel
            kotlin.h.b.n.LIZIZ(r0, r3)
            X.AnonymousClass6JB.LIZ(r2, r0)
            int r1 = r4.mFaceBeauty
            java.lang.String r0 = "face_beauty"
            r2.putExtra(r0, r1)
            boolean r1 = r4.faceBeautyOpen
            java.lang.String r0 = "face_beauty_open"
            r2.putExtra(r0, r1)
            java.util.ArrayList<com.ss.android.ugc.aweme.shortvideo.beauty.BeautyMetadata> r0 = r4.mBeautyMetadatas
            if (r0 == 0) goto L_0x008c
            java.util.ArrayList<com.ss.android.ugc.aweme.shortvideo.beauty.BeautyMetadata> r0 = r4.mBeautyMetadatas
            kotlin.h.b.n.LIZIZ(r0, r3)
            boolean r0 = r0.isEmpty()
            r0 = r0 ^ r6
            if (r0 == 0) goto L_0x008c
            java.util.ArrayList<com.ss.android.ugc.aweme.shortvideo.beauty.BeautyMetadata> r1 = r4.mBeautyMetadatas
            java.lang.String r0 = "extra_beauty_data"
            r2.putParcelableArrayListExtra(r0, r1)
        L_0x008c:
            int r1 = r4.mSelectedId
            java.lang.String r0 = "filter_id"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.mSelectedFilterId
            java.lang.String r0 = "selected_filter_id"
            r2.putExtra(r0, r1)
            float r1 = r4.mSelectedFilterIntensity
            java.lang.String r0 = "extra_selected_filter_intensity"
            r2.putExtra(r0, r1)
            int r1 = r4.mCameraPosition
            java.lang.String r0 = "camera"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.mCurFilterLabels
            java.lang.String r0 = "filter_lables"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.mCurFilterIds
            java.lang.String r0 = "filter_ids"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.mSmoothSkinLabels
            java.lang.String r0 = "smooth_skin_labels"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.mReshapeLabels
            java.lang.String r0 = "smooth_reshape_labels"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.mEyesLabels
            java.lang.String r0 = "smooth_eyes_labels"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.mTanningLabels
            java.lang.String r0 = "smooth_tanning_labels"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.videoSpeed
            java.lang.String r0 = "extra_aweme_speed"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.cameraIds
            java.lang.String r0 = "extra_av_camera_ids"
            r2.putExtra(r0, r1)
            int r1 = r4.beautyType
            java.lang.String r0 = "extra_beauty_type"
            r2.putExtra(r0, r1)
            java.util.Map<java.lang.String, java.lang.Object> r0 = r4.metadataMap
            java.lang.String r1 = X.2P9.LIZ(r0)
            java.lang.String r0 = "extra_video_record_metadata"
            r2.putExtra(r0, r1)
            int r1 = r4.mMusicStart
            java.lang.String r0 = "music_start"
            r2.putExtra(r0, r1)
            int r1 = r4.mMusicEnd
            java.lang.String r0 = "extra_music_end"
            r2.putExtra(r0, r1)
            long r0 = r4.maxDuration
            java.lang.String r7 = "max_duration"
            r2.putExtra(r7, r0)
            com.ss.android.ugc.aweme.base.model.UrlModel r1 = r4.audioTrack
            java.lang.String r0 = "wav_form"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.mVideoSegmentsDesc
            java.lang.String r0 = "video_segment"
            r2.putExtra(r0, r1)
            java.lang.String r1 = X.C30456Gd.LIZJ(r4)
            java.lang.String r0 = "content_type"
            r2.putExtra(r0, r1)
            boolean r0 = r4.mFromCut
            if (r0 != 0) goto L_0x012c
            boolean r0 = r4.mFromMultiCut
            if (r0 != 0) goto L_0x012c
            boolean r0 = r4.isMvThemeVideoType()
            if (r0 == 0) goto L_0x0366
        L_0x012c:
            java.lang.String r1 = "upload"
        L_0x012e:
            java.lang.String r0 = "content_source"
            r2.putExtra(r0, r1)
            int r1 = r4.mHardEncode
            java.lang.String r0 = "hard_encode"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.mStickerPath
            java.lang.String r0 = "sticker_path"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.mStickerID
            java.lang.String r0 = "sticker_id"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.mFirstStickerMusicIdsJson
            java.lang.String r0 = "first_sticker_music_ids"
            r2.putExtra(r0, r1)
            int r1 = r4.draftId
            java.lang.String r0 = "draft_id"
            r2.putExtra(r0, r1)
            java.lang.String r0 = "isFromDraft"
            r2.putExtra(r0, r6)
            float r1 = r4.mVideoCoverStartTm
            java.lang.String r0 = "videoCoverStartTm"
            r2.putExtra(r0, r1)
            com.ss.android.ugc.aweme.editSticker.model.CoverPublishModel r1 = r4.getCoverPublishModel()
            boolean r0 = r1 instanceof android.os.Parcelable
            if (r0 != 0) goto L_0x016b
            r1 = r5
        L_0x016b:
            java.lang.String r0 = "cover_publish_model"
            r2.putExtra(r0, r1)
            int r1 = r4.mVideoCanvasWidth
            java.lang.String r0 = "extra_video_canvas_width"
            r2.putExtra(r0, r1)
            int r1 = r4.mVideoCanvasHeight
            java.lang.String r0 = "extra_video_canvas_height"
            r2.putExtra(r0, r1)
            int r1 = r4.mOrigin
            java.lang.String r0 = "origin"
            r2.putExtra(r0, r1)
            java.util.ArrayList<com.ss.android.ugc.aweme.shortvideo.ImportVideoInfo> r1 = r4.importInfoList
            java.lang.String r0 = "extra_import_video_info_list"
            r2.putExtra(r0, r1)
            int r1 = r4.videoCount
            java.lang.String r0 = "extra_video_count"
            r2.putExtra(r0, r1)
            int r1 = r4.photoCount
            java.lang.String r0 = "extra_photo_count"
            r2.putExtra(r0, r1)
            java.util.List<com.ss.android.ugc.aweme.shortvideo.AVChallenge> r1 = r4.challenges
            boolean r0 = r1 instanceof java.io.Serializable
            if (r0 != 0) goto L_0x01a1
            r1 = r5
        L_0x01a1:
            java.io.Serializable r1 = (java.io.Serializable) r1
            java.lang.String r0 = "challenge"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.mShootWay
            java.lang.String r0 = "shoot_way"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.title
            java.lang.String r0 = "video_title"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.getChain()
            java.lang.String r0 = "video_title_chain"
            r2.putExtra(r0, r1)
            boolean r1 = r4.disableDeleteChain
            java.lang.String r0 = "disable_delete_title_chain"
            r2.putExtra(r0, r1)
            java.util.List<com.ss.android.ugc.aweme.creative.model.publish.AVTextExtraStruct> r1 = r4.structList
            boolean r0 = r1 instanceof java.io.Serializable
            if (r0 != 0) goto L_0x01cd
            r1 = r5
        L_0x01cd:
            java.io.Serializable r1 = (java.io.Serializable) r1
            java.lang.String r0 = "struct_list"
            r2.putExtra(r0, r1)
            int r1 = r4.isPrivate
            java.lang.String r0 = "is_rivate"
            r2.putExtra(r0, r1)
            java.util.List<com.ss.android.ugc.aweme.profile.model.User> r1 = r4.excludeUserList
            boolean r0 = r1 instanceof java.io.Serializable
            if (r0 != 0) goto L_0x01e2
            r1 = r5
        L_0x01e2:
            java.io.Serializable r1 = (java.io.Serializable) r1
            java.lang.String r0 = "exclude_user_list"
            r2.putExtra(r0, r1)
            int r1 = r4.allowRecommend
            java.lang.String r0 = "allow_recommend"
            r2.putExtra(r0, r1)
            java.util.List<java.lang.String> r0 = r4.geofencingSetting
            boolean r0 = X.878.LIZ(r0)
            if (r0 != 0) goto L_0x0206
            java.util.List<java.lang.String> r1 = r4.geofencingSetting
            boolean r0 = r1 instanceof java.io.Serializable
            if (r0 != 0) goto L_0x01ff
            r1 = r5
        L_0x01ff:
            java.io.Serializable r1 = (java.io.Serializable) r1
            java.lang.String r0 = "geo_fencing"
            r2.putExtra(r0, r1)
        L_0x0206:
            int r1 = r4.commentSetting
            java.lang.String r0 = "comment_setting"
            r2.putExtra(r0, r1)
            int r1 = r4.reactDuetSetting
            java.lang.String r0 = "duet_setting"
            r2.putExtra(r0, r1)
            int r1 = r4.stitchSetting
            java.lang.String r0 = "stitch_setting"
            r2.putExtra(r0, r1)
            com.ss.android.ugc.aweme.shortvideo.edit.LoudnessBalanceParam r1 = r4.loudnessBalanceParam
            java.lang.String r0 = "edit_loudness_param"
            r2.putExtra(r0, r1)
            com.ss.android.ugc.aweme.profile.model.User r1 = r4.getDuetAuthor()
            java.lang.String r0 = "duet_author"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.getDuetHashTag()
            java.lang.String r0 = "duet_hash_tag"
            r2.putExtra(r0, r1)
            boolean r1 = r4.mFromMultiCut
            java.lang.String r0 = "fromMultiCut"
            r2.putExtra(r0, r1)
            boolean r1 = r4.mFromCut
            java.lang.String r0 = "fromCut"
            r2.putExtra(r0, r1)
            int r1 = r4.mShootMode
            java.lang.String r0 = "shoot_mode"
            r2.putExtra(r0, r1)
            boolean r1 = r4.mDurationMode
            java.lang.String r0 = "duration_mode"
            r2.putExtra(r0, r1)
            boolean r1 = r4.containBackgroundVideo
            java.lang.String r0 = "contain_backgroundvideo"
            r2.putExtra(r0, r1)
            boolean r1 = r4.mIsMultiVideo
            java.lang.String r0 = "upload_video_type"
            r2.putExtra(r0, r1)
            int r1 = r4.recordMode
            java.lang.String r0 = "record_mode"
            r2.putExtra(r0, r1)
            boolean r1 = r4.isMuted
            java.lang.String r0 = "is_muted"
            r2.putExtra(r0, r1)
            float r1 = r4.musicVolume
            java.lang.String r0 = "music_volume"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.getMusicOrigin()
            java.lang.String r0 = "music_origin"
            r2.putExtra(r0, r1)
            float r1 = r4.voiceVolume
            java.lang.String r0 = "voice_volume"
            r2.putExtra(r0, r1)
            com.ss.android.ugc.aweme.shortvideo.ClientCherEffectParam r1 = r4.veCherEffectParam
            java.lang.String r6 = "null cannot be cast to non-null type android.os.Parcelable"
            if (r1 == 0) goto L_0x0291
            java.util.Objects.requireNonNull(r1, r6)
            java.lang.String r0 = "extra_ve_cher_effect_param"
            r2.putExtra(r0, r1)
        L_0x0291:
            com.ss.android.ugc.aweme.shortvideo.edit.audioeffect.AudioEffectParam r1 = r4.veAudioEffectParam
            if (r1 == 0) goto L_0x029d
            java.util.Objects.requireNonNull(r1, r6)
            java.lang.String r0 = "extra_ve_audio_effect_param"
            r2.putExtra(r0, r1)
        L_0x029d:
            com.ss.android.ugc.aweme.audiorecord.AudioRecorderParam r1 = r4.veAudioRecorderParam
            if (r1 == 0) goto L_0x02a9
            java.util.Objects.requireNonNull(r1, r6)
            java.lang.String r0 = "audio_record_param"
            r2.putExtra(r0, r1)
        L_0x02a9:
            android.content.Intent r8 = r9.getIntent()
            X.9He r7 = X.TcG.LIZ(r4)
            X.6eR r1 = X.C38376eR.PUBLISH
            X.6eR r0 = X.C38376eR.EDIT
            X.9Hc.LIZ(r8, r7, r1, r0)
            com.ss.android.ugc.aweme.shortvideo.model.ExtractFramesModel r1 = r4.extractFramesModel
            java.lang.String r0 = "extract_model"
            r2.putExtra(r0, r1)
            com.ss.android.ugc.aweme.editSticker.model.InfoStickerModel r1 = r4.infoStickerModel
            boolean r0 = r1 instanceof android.os.Parcelable
            if (r0 != 0) goto L_0x02c6
            r1 = r5
        L_0x02c6:
            java.lang.String r0 = "infosticker_model"
            r2.putExtra(r0, r1)
            int r1 = r4.allowDownloadSetting
            java.lang.String r0 = "download_setting"
            r2.putExtra(r0, r1)
            boolean r0 = r4.isMvThemeVideoType()
            if (r0 == 0) goto L_0x02df
            X.6nE r1 = r4.mvCreateVideoData
            java.lang.String r0 = "key_mv_theme_data"
            r2.putExtra(r0, r1)
        L_0x02df:
            com.ss.android.ugc.aweme.shortvideo.edit.multiedit.data.MultiEditVideoStatusRecordData r1 = r4.multiEditVideoRecordData
            boolean r0 = r1 instanceof android.os.Parcelable
            if (r0 != 0) goto L_0x02e6
            r1 = r5
        L_0x02e6:
            java.lang.String r0 = "extra_multi_edit_video_data"
            r2.putExtra(r0, r1)
            r1 = r9
            java.lang.Class<com.ss.android.ugc.aweme.shortvideo.edit.VEVideoPublishEditActivity> r0 = com.ss.android.ugc.aweme.shortvideo.edit.VEVideoPublishEditActivity.class
            r2.setClass(r1, r0)
            boolean r1 = r4.isFastImport
            java.lang.String r0 = "extra_av_is_fast_import"
            r2.putExtra(r0, r1)
            com.ss.android.ugc.aweme.shortvideo.edit.model.EditPreviewInfo r1 = r4.getPreviewInfo()
            if (r1 == 0) goto L_0x0306
            java.util.Objects.requireNonNull(r1, r6)
            java.lang.String r0 = "extra_edit_preview_info"
            r2.putExtra(r0, r1)
        L_0x0306:
            com.ss.android.ugc.aweme.draft.model.DraftEditTransferModel r1 = r4.draftEditTransferModel
            if (r1 == 0) goto L_0x0313
            boolean r0 = r1 instanceof android.os.Parcelable
            if (r0 != 0) goto L_0x0364
        L_0x030e:
            java.lang.String r0 = "extra_draft_transform_model"
            r2.putExtra(r0, r5)
        L_0x0313:
            java.util.ArrayList<java.lang.String> r0 = r4.messageBubbleTexts
            boolean r0 = X.878.LIZ(r0)
            if (r0 != 0) goto L_0x0322
            java.util.ArrayList<java.lang.String> r1 = r4.messageBubbleTexts
            java.lang.String r0 = "extra_sticker_text"
            r2.putStringArrayListExtra(r0, r1)
        L_0x0322:
            java.lang.String r1 = r4.pic2VideoSource
            java.lang.String r0 = "picture_source"
            r2.putExtra(r0, r1)
            boolean r1 = r4.mUseMusicBeforeEdit
            java.lang.String r0 = "use_music_before_edit"
            r2.putExtra(r0, r1)
            com.ss.android.ugc.aweme.sticker.StickerInfo r1 = r4.stickerInfo
            java.lang.String r0 = "sticker_info"
            r2.putExtra(r0, r1)
            java.util.ArrayList<java.lang.String> r1 = r4.cameraLensInfo
            java.lang.String r0 = "extra_camera_lens_info"
            r2.putStringArrayListExtra(r0, r1)
            boolean r1 = r4.isPhotoMvMode
            java.lang.String r0 = "extra_photo_mv_mode"
            r2.putExtra(r0, r1)
            java.lang.String r1 = r4.nleData
            java.lang.String r0 = "NLE"
            r2.putExtra(r0, r1)
            java.lang.Boolean r0 = r4.isSoundLoop
            kotlin.h.b.n.LIZIZ(r0, r3)
            boolean r1 = r0.booleanValue()
            java.lang.String r0 = "extra_is_sound_loop"
            r2.putExtra(r0, r1)
            X.3i8.LIZ(r2, r9)
            r9.startActivity(r2)
            r9.finish()
            return
        L_0x0364:
            r5 = r1
            goto L_0x030e
        L_0x0366:
            java.lang.String r1 = "shoot"
            goto L_0x012e
        L_0x036a:
            com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity.super.onBackPressed()
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity.onBackPressed():void");
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [android.content.Context] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void onSaveInstanceState(android.os.Bundle r3) {
        /*
            r2 = this;
            X.M12.LIZ(r3)
            com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity.super.onSaveInstanceState(r3)
            X.78o r1 = X.C539678o.LJ
            r0 = r2
            r2.getIntent()
            r1.LIZ((android.content.Context) r0, (android.os.Bundle) r3)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity.onSaveInstanceState(android.os.Bundle):void");
    }

    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r1v0, resolved type: android.app.Activity} */
    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r1v1, resolved type: android.content.Context} */
    /* JADX DEBUG: Multi-variable search result rejected for TypeSearchVarInfo{r0v18, resolved type: X.1hK} */
    /* JADX WARNING: type inference failed for: r0v31, types: [android.view.View$OnClickListener, X.6kN] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void onCreate(android.os.Bundle r11) {
        /*
            r10 = this;
            X.8gF.LIZ(r10, r11)
            java.lang.String r4 = "com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity"
            java.lang.String r3 = "onCreate"
            r5 = 1
            com.bytedance.apm.agent.v2.instrumentation.ActivityAgent.onTrace(r4, r3, r5)
            r1 = r10
            boolean r0 = X.Fnr.LIZ()
            r2 = 0
            if (r0 == 0) goto L_0x011d
            int r0 = X.Fnq.LIZ()
        L_0x0017:
            X.Fnq.LIZ(r1, r0)
            com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity.super.onCreate(r11)
            r0 = 2131558485(0x7f0d0055, float:1.8742287E38)
            r10.setContentView(r0)
            X.78o r6 = X.C539678o.LJ
            r1 = r10
            android.content.Intent r0 = r10.getIntent()
            r6.LIZ((android.content.Context) r1, (android.content.Intent) r0, (android.os.Bundle) r11)
            android.content.Intent r1 = r10.getIntent()
            java.lang.String r0 = ""
            kotlin.h.b.n.LIZIZ(r1, r0)
            com.ss.android.ugc.aweme.shortvideo.edit.VideoPublishEditModel r0 = X.C30456Gd.LIZ((android.content.Intent) r1)
            r10.LIZLLL = r0
            android.content.Intent r0 = r10.getIntent()
            java.lang.String r6 = "fromDraft"
            int r0 = r0.getIntExtra(r6, r2)
            if (r0 != r5) goto L_0x011a
            r0 = 1
        L_0x0049:
            r10.LJIIIIZZ = r0
            android.content.Intent r0 = r10.getIntent()
            java.lang.String r9 = "enter_record_from_other_platform"
            boolean r0 = r0.getBooleanExtra(r9, r2)
            r10.LJFF = r0
            android.content.Intent r0 = r10.getIntent()
            java.lang.String r8 = "extra_enter_from_live"
            boolean r0 = r0.getBooleanExtra(r8, r2)
            r10.LJII = r0
            android.content.Intent r1 = r10.getIntent()
            java.lang.String r0 = "draft_to_edit_from"
            int r0 = r1.getIntExtra(r0, r2)
            r10.LJI = r0
            com.ss.android.ugc.aweme.shortvideo.edit.VideoPublishEditModel r0 = r10.LIZLLL
            if (r0 != 0) goto L_0x007f
            java.lang.String r0 = "VideoPublishActivity onCreate error, model == null"
            X.C35526Zq.LIZIZ((java.lang.String) r0)
            r10.finish()
        L_0x007b:
            com.bytedance.apm.agent.v2.instrumentation.ActivityAgent.onTrace(r4, r3, r2)
            return
        L_0x007f:
            X.Szm r1 = X.Szo.LIZIZ
            r0 = r10
            X.Szo r1 = r1.LIZ(r0)
            r0 = 2131099659(0x7f06000b, float:1.7811677E38)
            r1.LIZ(r0)
            r1.LIZLLL(r0)
            r1.LIZ(r5)
            X.Szn r0 = r1.LIZ
            r0.LIZJ()
            android.os.Bundle r7 = new android.os.Bundle
            r7.<init>()
            com.ss.android.ugc.aweme.shortvideo.edit.VideoPublishEditModel r0 = r10.LIZLLL
            X.C30456Gd.LIZ((android.os.Bundle) r7, (com.ss.android.ugc.aweme.shortvideo.edit.VideoPublishEditModel) r0)
            android.content.Intent r5 = r10.getIntent()
            r0 = -1
            java.lang.String r1 = "music_rec_type"
            int r0 = r5.getIntExtra(r1, r0)
            r7.putInt(r1, r0)
            boolean r0 = r10.LJFF
            r7.putBoolean(r9, r0)
            boolean r0 = r10.LJII
            r7.putBoolean(r8, r0)
            android.content.Intent r0 = r10.getIntent()
            java.lang.String r1 = "edit_publish_session_end_together"
            boolean r0 = r0.getBooleanExtra(r1, r2)
            r7.putBoolean(r1, r0)
            boolean r0 = r10.LJIIIIZZ
            r7.putBoolean(r6, r0)
            X.0AA r6 = r10.getSupportFragmentManager()
            r5 = 2131365158(0x7f0a0d26, float:1.8350173E38)
            androidx.fragment.app.Fragment r1 = r6.LIZ(r5)
            boolean r0 = r1 instanceof com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishFragment
            if (r0 != 0) goto L_0x0117
        L_0x00da:
            com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishFragment r1 = new com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishFragment
            r1.<init>()
            r1.setArguments(r7)
            X.0AP r0 = r6.LIZ()
            r0.LIZ(r5, r1)
            r0.LIZIZ()
        L_0x00ec:
            r0 = 2131362569(0x7f0a0309, float:1.8344922E38)
            android.view.View r1 = r10.g_(r0)
            X.3CB r1 = (X.3CB) r1
            X.6kN r0 = new X.6kN
            r0.<init>(r10)
            r1.setOnClickListener(r0)
            X.NuT r1 = X.NuT.LIZ()
            java.lang.String r0 = X.NuV.LIZIZ
            android.graphics.Typeface r1 = r1.LIZ(r0)
            if (r1 == 0) goto L_0x007b
            r0 = 2131371754(0x7f0a26ea, float:1.8363552E38)
            android.view.View r0 = r10.g_(r0)
            X.Qeg r0 = (X.Qeg) r0
            r0.setTypeface(r1)
            goto L_0x007b
        L_0x0117:
            if (r1 != 0) goto L_0x00ec
            goto L_0x00da
        L_0x011a:
            r0 = 0
            goto L_0x0049
        L_0x011d:
            r0 = 0
            goto L_0x0017
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity.onCreate(android.os.Bundle):void");
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [android.app.Activity] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void onRequestPermissionsResult(int r2, java.lang.String[] r3, int[] r4) {
        /*
            r1 = this;
            X.M12.LIZ(r3, r4)
            r0 = r1
            X.JMk.LIZ(r0, r2, r4)
            com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity.super.onRequestPermissionsResult(r2, r3, r4)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.ftc.pages.FTCVideoPublishActivity.onRequestPermissionsResult(int, java.lang.String[], int[]):void");
    }

    public final void onActivityResult(int i, int i2, Intent intent) {
        FTCVideoPublishActivity.super.onActivityResult(i, i2, intent);
        Fragment LIZ = getSupportFragmentManager().LIZ(2131365158);
        if ((LIZ instanceof FTCVideoPublishFragment) && LIZ != null && LIZ.isAdded()) {
            LIZ.onActivityResult(i, i2, intent);
        }
    }
}
