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

import X.7he;
import X.8gF;
import X.C26543Oc;
import X.C32773f3;
import X.C41203se;
import X.C41373sv;
import X.C41633tL;
import X.C464542r;
import X.Crj;
import X.SNU;
import android.content.Intent;
import android.util.SparseArray;
import android.view.View;
import com.bytedance.apm.agent.v2.instrumentation.ActivityAgent;
import com.bytedance.covode.number.Covode;
import com.bytedance.keva.Keva;
import com.bytedance.sysoptimizer.EnterTransitionCrashOptimizer;
import com.ss.android.ugc.aweme.tcm.impl.service.TcmServiceImpl;

public final class BusinessAccountActivity extends SNU {
    public static final C41373sv LIZLLL = new C41373sv((byte) 0);
    public C41633tL LIZ;
    public C32773f3 LIZIZ;
    public final Keva LIZJ = Keva.getRepo("BusinessAccountActivity");
    public C32773f3 LJ;
    public C32773f3 LJFF;
    public C32773f3 LJI;
    public C32773f3 LJII;
    public C32773f3 LJIIIIZZ;
    public C32773f3 LJIIIZ;
    public C32773f3 LJIIJ;
    public C26543Oc LJIIJJI;
    public final Crj LJIIL = 7he.LIZ(new C41203se(this));
    public SparseArray LJIILIIL;

    static {
        Covode.recordClassIndex(106316);
    }

    private final C464542r LIZ() {
        return (C464542r) this.LJIIL.getValue();
    }

    public final void _$_clearFindViewByIdCache() {
        SparseArray sparseArray = this.LJIILIIL;
        if (sparseArray != null) {
            sparseArray.clear();
        }
    }

    public final View _$_findCachedViewById(int i) {
        if (this.LJIILIIL == null) {
            this.LJIILIIL = new SparseArray();
        }
        View view = (View) this.LJIILIIL.get(i);
        if (view != null) {
            return view;
        }
        View findViewById = findViewById(i);
        this.LJIILIIL.put(i, findViewById);
        return findViewById;
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [com.ss.android.ugc.aweme.setting.ui.BusinessAccountActivity, X.SNU, android.app.Activity] */
    public final void onDestroy() {
        8gF.LJ(this);
        BusinessAccountActivity.super.onDestroy();
    }

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

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

    public final void onWindowFocusChanged(boolean z) {
        ActivityAgent.onTrace("com.ss.android.ugc.aweme.setting.ui.BusinessAccountActivity", "onWindowFocusChanged", true);
        BusinessAccountActivity.super.onWindowFocusChanged(z);
    }

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

    private final void LIZIZ() {
        C41633tL r1 = this.LIZ;
        if (r1 != null) {
            r1.setCount(TcmServiceImpl.LJI().LIZIZ());
        }
        C41633tL r12 = this.LIZ;
        if (r12 != null) {
            r12.setVariant(1);
        }
        C41633tL r13 = this.LIZ;
        if (r13 != null) {
            r13.setMaxCount(2);
        }
        C41633tL r0 = this.LIZ;
        if (r0 == null || r0.getCount() != 0) {
            C41633tL r14 = this.LIZ;
            if (r14 != null) {
                r14.setVisibility(0);
                return;
            }
            return;
        }
        C41633tL r15 = this.LIZ;
        if (r15 != null) {
            r15.setVisibility(8);
        }
    }

    /* JADX WARNING: type inference failed for: r1v0, types: [com.ss.android.ugc.aweme.setting.ui.BusinessAccountActivity, X.SNU, android.app.Activity] */
    public final void onStop() {
        8gF.LIZLLL(this);
        BusinessAccountActivity.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: r0v1, types: [android.content.Context, X.1hK, X.4Qh, X.1oX, X.SNU, com.ss.android.ugc.aweme.setting.ui.BusinessAccountActivity, java.lang.Object, android.app.Activity] */
    /* JADX WARNING: type inference failed for: r3v20, types: [X.3t1, android.view.View] */
    /* JADX WARNING: Multi-variable type inference failed */
    /* JADX WARNING: Unknown variable types count: 1 */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final void onCreate(android.os.Bundle r30) {
        /*
            r29 = this;
            r0 = r29
            r0 = r0
            r2 = r30
            X.8gF.LIZ(r0, r2)
            java.lang.String r8 = "com.ss.android.ugc.aweme.setting.ui.BusinessAccountActivity"
            java.lang.String r7 = "onCreate"
            r5 = 1
            com.bytedance.apm.agent.v2.instrumentation.ActivityAgent.onTrace(r8, r7, r5)
            X.3sp r1 = new X.3sp
            r1.<init>(r0)
            r0.activityConfiguration(r1)
            com.ss.android.ugc.aweme.setting.ui.BusinessAccountActivity.super.onCreate(r2)
            r1 = 10
            r0.supportRequestWindowFeature(r1)
            r1 = 2131561239(0x7f0d0b17, float:1.8747873E38)
            r0.setContentView(r1)
            r1 = 2131371262(0x7f0a24fe, float:1.8362554E38)
            android.view.View r10 = r0._$_findCachedViewById(r1)
            X.3c7 r10 = (X.C30953c7) r10
            X.2uR r9 = new X.2uR
            r9.<init>()
            X.3cI[] r3 = new X.C31063cI[r5]
            X.3cA r2 = new X.3cA
            r2.<init>()
            r1 = 2131755170(0x7f1000a2, float:1.9141212E38)
            r2.LIZ((int) r1)
            r2.LIZIZ = r5
            X.3so r1 = new X.3so
            r1.<init>(r0)
            r2.LIZ((X.Ls2<X.C03012Pr>) r1)
            r6 = 0
            r3[r6] = r2
            r9.LIZ((X.C31063cI[]) r3)
            X.3cC r3 = new X.3cC
            r3.<init>()
            r1 = 2131822249(0x7f1106a9, float:1.9277264E38)
            java.lang.String r2 = r0.getString(r1)
            java.lang.String r1 = ""
            kotlin.h.b.n.LIZIZ(r2, r1)
            r3.LIZ((java.lang.String) r2)
            r9.LIZ((X.C31003cC) r3)
            X.3cI[] r4 = new X.C31063cI[r5]
            X.3cA r3 = new X.3cA
            r3.<init>()
            X.3st r2 = X.C41353st.LIZ
            r3.LIZ((X.Ls2<X.C03012Pr>) r2)
            r4[r6] = r3
            r9.LIZIZ(r4)
            r10.setNavActions(r9)
            X.42r r3 = r0.LIZ()
            X.3f3 r2 = new X.3f3
            X.42f r9 = new X.42f
            r4 = 2131832197(0x7f112d85, float:1.9297441E38)
            java.lang.String r13 = r0.getString(r4)
            kotlin.h.b.n.LIZIZ(r13, r1)
            X.3Rw r4 = X.C27523Rw.LIZ
            X.3ZQ r15 = X.C18812xd.LIZ((X.LsC<? super X.AnonymousClass3ZQ, X.C03012Pr>) r4)
            r10 = 0
            r11 = 0
            r12 = 0
            r14 = 0
            r16 = 0
            r17 = 0
            r18 = 0
            r19 = 0
            r20 = 0
            r21 = 8151(0x1fd7, float:1.1422E-41)
            r9.<init>(r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21)
            r2.<init>(r9)
            r0.LJ = r2
            r3.LIZ((X.AnonymousClass43O<?>) r2)
            X.3f3 r3 = r0.LJ
            if (r3 != 0) goto L_0x00b6
            kotlin.h.b.n.LIZ(r1)
        L_0x00b6:
            X.3sl r2 = new X.3sl
            r2.<init>(r0)
            r3.LIZ(r2)
            X.42r r3 = r0.LIZ()
            X.3f3 r2 = new X.3f3
            X.42f r9 = new X.42f
            r10 = 0
            r11 = 0
            r12 = 0
            r4 = 2131831118(0x7f11294e, float:1.9295253E38)
            java.lang.String r13 = r0.getString(r4)
            kotlin.h.b.n.LIZIZ(r13, r1)
            r14 = 0
            X.3Ru r4 = X.C27503Ru.LIZ
            X.3ZQ r15 = X.C18812xd.LIZ((X.LsC<? super X.AnonymousClass3ZQ, X.C03012Pr>) r4)
            r16 = 0
            r17 = 0
            r18 = 0
            r19 = 0
            r20 = 0
            r21 = 8023(0x1f57, float:1.1243E-41)
            r9.<init>(r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21)
            r2.<init>(r9)
            r0.LJFF = r2
            r3.LIZ((X.AnonymousClass43O<?>) r2)
            boolean r2 = X.C61264ju.LIZ()
            if (r2 == 0) goto L_0x0166
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.C474046i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.User r2 = r2.getCurUser()
            kotlin.h.b.n.LIZIZ(r2, r1)
            int r9 = r2.getAccountType()
            X.2us r4 = new X.2us
            r4.<init>()
            r4.element = r6
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.C474046i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.User r2 = r2.getCurUser()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.CommerceUserInfo r2 = r2.getCommerceUserInfo()
            if (r2 == 0) goto L_0x013c
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.C474046i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.User r2 = r2.getCurUser()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.CommerceUserInfo r2 = r2.getCommerceUserInfo()
            int r2 = r2.getPromotePayType()
            r4.element = r2
        L_0x013c:
            X.2UX r10 = new X.2UX
            r10.<init>()
            java.lang.String r2 = "user_account_type"
            r10.LIZ((java.lang.String) r2, (int) r9)
            int r3 = r4.element
            java.lang.String r2 = "promote_version"
            r10.LIZ((java.lang.String) r2, (int) r3)
            java.util.Map<java.lang.String, java.lang.String> r3 = r10.LIZ
            java.lang.String r2 = "Promote_profile_entrance_show"
            X.C12422nK.LIZ((java.lang.String) r2, (java.util.Map<java.lang.String, java.lang.String>) r3)
            X.C61264ju.LIZ(r0)
            X.3f3 r3 = r0.LJFF
            if (r3 != 0) goto L_0x015e
            kotlin.h.b.n.LIZ(r1)
        L_0x015e:
            X.3tC r2 = new X.3tC
            r2.<init>(r0, r9, r4)
            r3.LIZ(r2)
        L_0x0166:
            X.42r r3 = r0.LIZ()
            X.3f3 r2 = new X.3f3
            X.42f r9 = new X.42f
            r10 = 0
            r11 = 0
            r12 = 0
            r4 = 2131820940(0x7f11018c, float:1.927461E38)
            java.lang.String r13 = r0.getString(r4)
            kotlin.h.b.n.LIZIZ(r13, r1)
            r14 = 0
            X.3Ro r4 = X.C27443Ro.LIZ
            X.3ZQ r15 = X.C18812xd.LIZ((X.LsC<? super X.AnonymousClass3ZQ, X.C03012Pr>) r4)
            r16 = 0
            r17 = 0
            r18 = 0
            r19 = 0
            r20 = 0
            r21 = 8023(0x1f57, float:1.1243E-41)
            r9.<init>(r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21)
            r2.<init>(r9)
            r0.LJI = r2
            r3.LIZ((X.AnonymousClass43O<?>) r2)
            com.ss.android.ugc.aweme.IAccountService r2 = com.ss.android.ugc.aweme.AccountService.LIZ()
            com.ss.android.ugc.aweme.IAccountUserService r2 = r2.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.User r2 = r2.getCurUser()
            kotlin.h.b.n.LIZIZ(r2, r1)
            X.3t7 r2 = r2.getBizAccountInfo()
            if (r2 == 0) goto L_0x01c6
            boolean r2 = r2.enableAutoMsg()
            if (r2 != r5) goto L_0x01c6
            X.3f3 r3 = r0.LJI
            if (r3 != 0) goto L_0x01be
            kotlin.h.b.n.LIZ(r1)
        L_0x01be:
            X.3sg r2 = new X.3sg
            r2.<init>(r0)
            r3.LIZ(r2)
        L_0x01c6:
            X.42r r3 = r0.LIZ()
            X.3f3 r2 = new X.3f3
            X.42f r9 = new X.42f
            r10 = 0
            r11 = 0
            r12 = 0
            r4 = 2131832167(0x7f112d67, float:1.929738E38)
            java.lang.String r13 = r0.getString(r4)
            kotlin.h.b.n.LIZIZ(r13, r1)
            r14 = 0
            X.3Rr r4 = X.C27473Rr.LIZ
            X.3ZQ r15 = X.C18812xd.LIZ((X.LsC<? super X.AnonymousClass3ZQ, X.C03012Pr>) r4)
            r16 = 0
            r17 = 0
            r18 = 0
            r19 = 0
            r20 = 0
            r21 = 8023(0x1f57, float:1.1243E-41)
            r9.<init>(r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21)
            r2.<init>(r9)
            r0.LJII = r2
            r3.LIZ((X.AnonymousClass43O<?>) r2)
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.C474046i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.User r2 = r2.getCurUser()
            if (r2 == 0) goto L_0x0221
            X.3t7 r2 = r2.getBizAccountInfo()
            if (r2 == 0) goto L_0x0221
            boolean r2 = r2.enableCreativeHub()
            if (r2 == 0) goto L_0x0221
            X.3f3 r3 = r0.LJII
            if (r3 != 0) goto L_0x0219
            kotlin.h.b.n.LIZ(r1)
        L_0x0219:
            X.3sj r2 = new X.3sj
            r2.<init>(r0)
            r3.LIZ(r2)
        L_0x0221:
            X.42r r3 = r0.LIZ()
            X.3f3 r2 = new X.3f3
            X.42f r9 = new X.42f
            r10 = 0
            r11 = 0
            r12 = 0
            r4 = 2131820691(0x7f110093, float:1.9274104E38)
            java.lang.String r13 = r0.getString(r4)
            kotlin.h.b.n.LIZIZ(r13, r1)
            r14 = 0
            X.3Rt r4 = X.C27493Rt.LIZ
            X.3ZQ r15 = X.C18812xd.LIZ((X.LsC<? super X.AnonymousClass3ZQ, X.C03012Pr>) r4)
            r16 = 0
            r17 = 0
            r18 = 0
            r19 = 0
            r20 = 0
            r21 = 8023(0x1f57, float:1.1243E-41)
            r9.<init>(r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21)
            r2.<init>(r9)
            r0.LJIIIIZZ = r2
            r3.LIZ((X.AnonymousClass43O<?>) r2)
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.C474046i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.User r2 = r2.getCurUser()
            if (r2 == 0) goto L_0x027c
            X.3t7 r2 = r2.getBizAccountInfo()
            if (r2 == 0) goto L_0x027c
            boolean r2 = r2.enableLiveLinks()
            if (r2 == 0) goto L_0x027c
            X.3f3 r3 = r0.LJIIIIZZ
            if (r3 != 0) goto L_0x0274
            kotlin.h.b.n.LIZ(r1)
        L_0x0274:
            X.3sy r2 = new X.3sy
            r2.<init>(r0)
            r3.LIZ(r2)
        L_0x027c:
            X.42r r3 = r0.LIZ()
            X.3f3 r2 = new X.3f3
            X.42f r9 = new X.42f
            r10 = 0
            r11 = 0
            r12 = 0
            r4 = 2131822250(0x7f1106aa, float:1.9277266E38)
            java.lang.String r13 = r0.getString(r4)
            kotlin.h.b.n.LIZIZ(r13, r1)
            r14 = 0
            X.3Rs r4 = X.C27483Rs.LIZ
            X.3ZQ r15 = X.C18812xd.LIZ((X.LsC<? super X.AnonymousClass3ZQ, X.C03012Pr>) r4)
            r16 = 0
            r17 = 0
            r18 = 0
            r19 = 0
            r20 = 0
            r21 = 8023(0x1f57, float:1.1243E-41)
            r9.<init>(r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21)
            r2.<init>(r9)
            r0.LIZIZ = r2
            r3.LIZ((X.AnonymousClass43O<?>) r2)
            com.ss.android.ugc.aweme.profile.model.User r2 = X.ESC.LIZJ()
            if (r2 == 0) goto L_0x02d0
            X.3t7 r2 = r2.getBizAccountInfo()
            if (r2 == 0) goto L_0x02d0
            boolean r2 = r2.enableGetLeads()
            if (r2 != r5) goto L_0x02d0
            X.3f3 r3 = r0.LIZIZ
            if (r3 != 0) goto L_0x02c8
            kotlin.h.b.n.LIZ(r1)
        L_0x02c8:
            X.3sd r2 = new X.3sd
            r2.<init>(r0)
            r3.LIZ(r2)
        L_0x02d0:
            X.42r r3 = r0.LIZ()
            X.3f3 r2 = new X.3f3
            X.42f r9 = new X.42f
            r10 = 0
            r11 = 0
            r12 = 0
            r4 = 2131820939(0x7f11018b, float:1.9274607E38)
            java.lang.String r13 = r0.getString(r4)
            kotlin.h.b.n.LIZIZ(r13, r1)
            r14 = 0
            X.3Rq r4 = X.C27463Rq.LIZ
            X.3ZQ r15 = X.C18812xd.LIZ((X.LsC<? super X.AnonymousClass3ZQ, X.C03012Pr>) r4)
            r16 = 0
            r17 = 0
            r18 = 0
            r19 = 0
            r20 = 0
            r21 = 8023(0x1f57, float:1.1243E-41)
            r9.<init>(r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21)
            r2.<init>(r9)
            r0.LJIIIZ = r2
            r3.LIZ((X.AnonymousClass43O<?>) r2)
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.C474046i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.User r2 = r2.getCurUser()
            if (r2 == 0) goto L_0x032b
            X.3t7 r2 = r2.getBizAccountInfo()
            if (r2 == 0) goto L_0x032b
            boolean r2 = r2.enableBusinessRegistration()
            if (r2 == 0) goto L_0x032b
            X.3f3 r3 = r0.LJIIIZ
            if (r3 != 0) goto L_0x0323
            kotlin.h.b.n.LIZ(r1)
        L_0x0323:
            X.3sh r2 = new X.3sh
            r2.<init>(r0)
            r3.LIZ(r2)
        L_0x032b:
            android.content.Intent r3 = r0.getIntent()
            if (r3 == 0) goto L_0x037c
            java.lang.String r2 = "bundle_show_account_dialog_when_start"
            boolean r2 = r3.getBooleanExtra(r2, r6)
            if (r2 != r5) goto L_0x037c
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.C474046i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.User r2 = r2.getCurUser()
            kotlin.h.b.n.LIZIZ(r2, r1)
            int r9 = r2.getAccountType()
            X.3sr r4 = new X.3sr
            r4.<init>(r0)
            X.M12.LIZ(r0)
            X.3t1 r3 = new X.3t1
            r2 = r0
            r3.<init>(r2)
            X.3YB r2 = new X.3YB
            r2.<init>()
            r2.LIZ((android.view.View) r3)
            com.bytedance.tux.sheet.sheet.TuxSheet r2 = r2.LIZ
            r3.LIZJ = r4
            X.M12.LIZ(r2)
            r3.LIZ = r2
            r3.setAccountType(r9)
            android.os.Handler r9 = new android.os.Handler
            r9.<init>()
            X.3sf r4 = new X.3sf
            r4.<init>(r0, r2)
            r2 = 400(0x190, double:1.976E-321)
            r9.postDelayed(r4, r2)
        L_0x037c:
            X.42r r3 = r0.LIZ()
            X.3f3 r2 = new X.3f3
            X.42f r9 = new X.42f
            r10 = 0
            r11 = 0
            r12 = 0
            r4 = 2131833696(0x7f113360, float:1.9300481E38)
            java.lang.String r13 = r0.getString(r4)
            kotlin.h.b.n.LIZIZ(r13, r1)
            r14 = 0
            X.3Rv r4 = X.C27513Rv.LIZ
            X.3ZQ r15 = X.C18812xd.LIZ((X.LsC<? super X.AnonymousClass3ZQ, X.C03012Pr>) r4)
            r16 = 0
            r17 = 0
            r18 = 0
            r19 = 0
            r20 = 0
            r21 = 8023(0x1f57, float:1.1243E-41)
            r9.<init>(r10, r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21)
            r2.<init>(r9)
            r0.LJIIJ = r2
            r3.LIZ((X.AnonymousClass43O<?>) r2)
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.C474046i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.User r2 = r2.getCurUser()
            r3 = 0
            if (r2 == 0) goto L_0x0539
            X.3t7 r2 = r2.getBizAccountInfo()
            if (r2 == 0) goto L_0x0539
            java.lang.String r9 = r2.getSuggestedAccountsLynxSchema()
        L_0x03c7:
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.C474046i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.User r2 = r2.getCurUser()
            if (r2 == 0) goto L_0x03ef
            X.3t7 r2 = r2.getBizAccountInfo()
            if (r2 == 0) goto L_0x03ef
            boolean r2 = r2.enableSuggestedAccounts()
            if (r2 == 0) goto L_0x03ef
            X.3f3 r4 = r0.LJIIJ
            if (r4 != 0) goto L_0x03e7
            kotlin.h.b.n.LIZ(r1)
        L_0x03e7:
            X.3t9 r2 = new X.3t9
            r2.<init>(r0, r9)
            r4.LIZ(r2)
        L_0x03ef:
            X.42r r4 = r0.LIZ()
            X.3Oc r2 = new X.3Oc
            X.42p r10 = new X.42p
            r9 = 2131822028(0x7f1105cc, float:1.9276816E38)
            java.lang.String r11 = r0.getString(r9)
            kotlin.h.b.n.LIZIZ(r11, r1)
            X.3Rp r9 = X.C27453Rp.LIZ
            X.3ZQ r12 = X.C18812xd.LIZ((X.LsC<? super X.AnonymousClass3ZQ, X.C03012Pr>) r9)
            r13 = 0
            r14 = 0
            r15 = 0
            r16 = 0
            r17 = 0
            r18 = 0
            r19 = 0
            r20 = 0
            r21 = 0
            r22 = 0
            r23 = 0
            r24 = 0
            r25 = 0
            r26 = 0
            r27 = 0
            r28 = 524268(0x7ffec, float:7.34656E-40)
            r10.<init>(r11, r12, r13, r14, r15, r16, r17, r18, r19, r20, r21, r22, r23, r24, r25, r26, r27, r28)
            r2.<init>(r10)
            r0.LJIIJJI = r2
            r4.LIZ((X.AnonymousClass43O<?>) r2)
            X.3tL r2 = new X.3tL
            r4 = 6
            r2.<init>(r0, r3, r6, r4)
            r0.LIZ = r2
            com.ss.android.ugc.aweme.tcm.api.service.ITcmService r2 = com.ss.android.ugc.aweme.tcm.impl.service.TcmServiceImpl.LJI()
            java.lang.String r11 = r2.LIZ()
            if (r11 != 0) goto L_0x0444
            java.lang.String r11 = "aweme://lynxview/?channel=tiktok_ba_lynx_v2&bundle=branded-content%2Ftemplate.js&hide_nav_bar=1&use_bdx=1&trans_status_bar=1&group=tiktok_ba_lynx_v2&hide_status_bar=0&fallback_url=https%3A%2F%2Fwww.tiktok.com%2Ffalcon%2Ftiktok_ba_lynx_v2%2Fbranded-content%3Fpage_module%3Doverview&page_module=overview"
        L_0x0444:
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.C474046i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.User r2 = r2.getCurUser()
            if (r2 == 0) goto L_0x04d5
            X.3t7 r2 = r2.getBizAccountInfo()
            if (r2 == 0) goto L_0x04d5
            boolean r2 = r2.enableBrandedContent()
            if (r2 == 0) goto L_0x04d5
            int r2 = r11.length()
            if (r2 <= 0) goto L_0x04d5
            X.3Oc r9 = r0.LJIIJJI
            if (r9 != 0) goto L_0x046a
            kotlin.h.b.n.LIZ(r1)
        L_0x046a:
            X.3Rk r2 = X.C27403Rk.LIZ
            r9.LIZ(r2)
            r0.LIZIZ()
            X.3tL r2 = r0.LIZ
            if (r2 == 0) goto L_0x0485
            X.3Oc r9 = r0.LJIIJJI
            if (r9 != 0) goto L_0x047d
            kotlin.h.b.n.LIZ(r1)
        L_0x047d:
            X.3sc r2 = new X.3sc
            r2.<init>(r0)
            r9.LIZ(r2)
        L_0x0485:
            X.3kI r10 = X.C36063kM.LIZ
            java.lang.StringBuilder r9 = new java.lang.StringBuilder
            java.lang.String r2 = "ba_branded_content_tip_showed"
            r9.<init>(r2)
            com.ss.android.ugc.aweme.IAccountUserService r2 = X.C474046i.LJFF()
            kotlin.h.b.n.LIZIZ(r2, r1)
            com.ss.android.ugc.aweme.profile.model.User r2 = r2.getCurUser()
            if (r2 == 0) goto L_0x0536
            java.lang.String r2 = r2.getUid()
        L_0x049f:
            r9.append(r2)
            java.lang.String r9 = r9.toString()
            java.lang.Boolean r2 = java.lang.Boolean.valueOf(r6)
            java.lang.Boolean r2 = r10.LIZ((java.lang.String) r9, (java.lang.Boolean) r2)
            boolean r2 = r2.booleanValue()
            r2 = r2 ^ r5
            X.2sG r10 = new X.2sG
            r10.<init>()
            r10.element = r3
            if (r2 == 0) goto L_0x04c6
            X.3sY r9 = new X.3sY
            r9.<init>(r0, r10, r11)
            r2 = 200(0xc8, double:9.9E-322)
            X.AnonymousClass3QA.LIZ(r9, r2)
        L_0x04c6:
            X.3Oc r3 = r0.LJIIJJI
            if (r3 != 0) goto L_0x04cd
            kotlin.h.b.n.LIZ(r1)
        L_0x04cd:
            X.3sb r2 = new X.3sb
            r2.<init>(r0, r10, r11)
            r3.LIZ(r2)
        L_0x04d5:
            java.lang.String r10 = "www.tiktok.com/business-suite"
            android.text.SpannableString r11 = new android.text.SpannableString
            android.content.Context r2 = r0.getBaseContext()
            kotlin.h.b.n.LIZIZ(r2, r1)
            android.content.res.Resources r9 = r2.getResources()
            r3 = 2131833692(0x7f11335c, float:1.9300473E38)
            java.lang.Object[] r2 = new java.lang.Object[r5]
            r2[r6] = r10
            java.lang.String r2 = r9.getString(r3, r2)
            r11.<init>(r2)
            int r9 = kotlin.o.z.LIZ(r11, r10, r6, r6, r4)
            int r4 = r9 + 29
            android.text.style.StyleSpan r3 = new android.text.style.StyleSpan
            r3.<init>(r5)
            r2 = 33
            r11.setSpan(r3, r9, r4, r2)
            r3 = 2131362803(0x7f0a03f3, float:1.8345397E38)
            android.view.View r2 = r0._$_findCachedViewById(r3)
            X.Qeg r2 = (X.Qeg) r2
            kotlin.h.b.n.LIZIZ(r2, r1)
            r2.setText(r11)
            android.view.View r3 = r0._$_findCachedViewById(r3)
            X.Qeg r3 = (X.Qeg) r3
            X.3Ri r2 = new X.3Ri
            r2.<init>(r0, r10)
            r3.setOnClickListener(r2)
            android.content.Intent r2 = r0.getIntent()
            java.lang.String r0 = "enterFrom"
            java.lang.String r0 = LIZ(r2, r0)
            if (r0 != 0) goto L_0x052c
            r0 = r1
        L_0x052c:
            kotlin.h.b.n.LIZIZ(r0, r1)
            X.AnonymousClass2J4.LIZ(r0)
            com.bytedance.apm.agent.v2.instrumentation.ActivityAgent.onTrace(r8, r7, r6)
            return
        L_0x0536:
            r2 = r3
            goto L_0x049f
        L_0x0539:
            r9 = r3
            goto L_0x03c7
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.setting.ui.BusinessAccountActivity.onCreate(android.os.Bundle):void");
    }

    public static String LIZ(Intent intent, String str) {
        try {
            return intent.getStringExtra(str);
        } catch (Exception unused) {
            return null;
        }
    }
}
