package com.ss.android.ugc.aweme.favorites.ui;

import X.AnonymousClass3XP;
import X.M12;
import android.content.Intent;
import android.os.Bundle;
import com.bytedance.covode.number.Covode;
import kotlin.h.b.n;

public final class VideoCollectionAddVideosFragment__BindExtra {
    static {
        Covode.recordClassIndex(75820);
    }

    public static Bundle INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_getExtras(Intent intent) {
        try {
            return intent.getExtras();
        } catch (Exception unused) {
            return null;
        }
    }

    public static Object INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get(Bundle bundle, String str) {
        try {
            return bundle.get(str);
        } catch (Exception | OutOfMemoryError unused) {
            return null;
        }
    }

    public VideoCollectionAddVideosFragment__BindExtra(VideoCollectionAddVideosFragment videoCollectionAddVideosFragment, Intent intent) {
        M12.LIZ(videoCollectionAddVideosFragment, intent);
        Bundle INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_getExtras = INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_getExtras(intent);
        if (INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_getExtras != null) {
            Object INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get = INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get(INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_getExtras, "collectionId");
            if (INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get != null) {
                AnonymousClass3XP r1 = AnonymousClass3XP.LIZ;
                n.LIZIZ(INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get, "");
                if (!(INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get instanceof String)) {
                    if (INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get instanceof String) {
                        INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get = r1.LIZ((String) INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get, String.class);
                    } else {
                        throw new IllegalArgumentException("Expecting " + String.class + " but get " + INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get.getClass());
                    }
                }
                videoCollectionAddVideosFragment.LJ = (String) INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get;
            }
            Object INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get2 = INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get(INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_getExtras, "collectionName");
            if (INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get2 != null) {
                AnonymousClass3XP r12 = AnonymousClass3XP.LIZ;
                n.LIZIZ(INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get2, "");
                if (!(INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get2 instanceof String)) {
                    if (INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get2 instanceof String) {
                        INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get2 = r12.LIZ((String) INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get2, String.class);
                    } else {
                        throw new IllegalArgumentException("Expecting " + String.class + " but get " + INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get2.getClass());
                    }
                }
                videoCollectionAddVideosFragment.LJFF = (String) INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get2;
            }
            Object INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get3 = INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get(INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_getExtras, "enterMethod");
            if (INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get3 != null) {
                AnonymousClass3XP r13 = AnonymousClass3XP.LIZ;
                n.LIZIZ(INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get3, "");
                if (!(INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get3 instanceof String)) {
                    if (INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get3 instanceof String) {
                        INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get3 = r13.LIZ((String) INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get3, String.class);
                    } else {
                        throw new IllegalArgumentException("Expecting " + String.class + " but get " + INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get3.getClass());
                    }
                }
                videoCollectionAddVideosFragment.LJI = (String) INVOKEVIRTUAL_com_ss_android_ugc_aweme_favorites_ui_VideoCollectionAddVideosFragment__BindExtra_com_ss_android_ugc_aweme_lancet_IntentLancet_get3;
            }
        }
    }
}
