TikTok.apk(点击下载) / C29392Bgb.java


package X;

import android.content.Context;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.IAccountUserService;
import com.ss.android.ugc.aweme.friendstab.ui.FriendsEmptyPageMainSectionVM;
import com.ss.android.ugc.aweme.profile.model.User;
import kotlin.d.b.a.a;

/* renamed from: X.Bgb  reason: case insensitive filesystem */
public final class C29392Bgb extends AbstractC34211Ww implements AnonymousClass1IX<AbstractC23950xE, AbstractC23200w1<? super C23860x5>, Object> {
    public Object LIZ;
    public int LIZIZ;
    public final /* synthetic */ FriendsEmptyPageMainSectionVM LIZJ;
    public final /* synthetic */ AbstractC19400pt LIZLLL;
    public final /* synthetic */ String LJ;
    public final /* synthetic */ String LJFF;
    public final /* synthetic */ Context LJI;

    static {
        Covode.recordClassIndex(72129);
    }

    /* JADX INFO: super call moved to the top of the method (can break code semantics) */
    public C29392Bgb(FriendsEmptyPageMainSectionVM friendsEmptyPageMainSectionVM, AbstractC19400pt r3, String str, String str2, Context context, AbstractC23200w1 r7) {
        super(2, r7);
        this.LIZJ = friendsEmptyPageMainSectionVM;
        this.LIZLLL = r3;
        this.LJ = str;
        this.LJFF = str2;
        this.LJI = context;
    }

    @Override // kotlin.d.b.a.a
    public final AbstractC23200w1<C23860x5> create(Object obj, AbstractC23200w1<?> r9) {
        C21090sc.LIZ(r9);
        return new C29392Bgb(this.LIZJ, this.LIZLLL, this.LJ, this.LJFF, this.LJI, r9);
    }

    /* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
    @Override // X.AnonymousClass1IX
    public final Object invoke(AbstractC23950xE r3, AbstractC23200w1<? super C23860x5> r4) {
        return ((a) create(r3, r4)).invokeSuspend(C23860x5.LIZ);
    }

    @Override // kotlin.d.b.a.a
    public final Object invokeSuspend(Object obj) {
        String LIZ2;
        String str;
        User curUser;
        EnumC23120vt r7 = EnumC23120vt.COROUTINE_SUSPENDED;
        int i2 = this.LIZIZ;
        if (i2 == 0) {
            C23800wz.LIZ(obj);
            LIZ2 = this.LIZJ.LIZ("https://m.tiktok.com/invitef/download", this.LIZLLL.LIZ(), "invitevia", "homepage_friends");
            C19370pq.LIZIZ.LIZ(this.LIZLLL.LIZ(), 2);
            if (LIZ2 != null) {
                FriendsEmptyPageMainSectionVM friendsEmptyPageMainSectionVM = this.LIZJ;
                this.LIZ = LIZ2;
                this.LIZIZ = 1;
                obj = friendsEmptyPageMainSectionVM.LIZ(LIZ2, this);
                if (obj == r7) {
                    return r7;
                }
            }
            return C23860x5.LIZ;
        } else if (i2 == 1) {
            LIZ2 = (String) this.LIZ;
            C23800wz.LIZ(obj);
        } else {
            throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
        }
        String str2 = (String) obj;
        String LIZ3 = this.LIZLLL.LIZ();
        if (LIZ3.hashCode() == 96619420 && LIZ3.equals("email")) {
            this.LIZLLL.LIZ((AbstractC37452EnJ) new C37458EnP(str2, this.LJ, this.LJFF), this.LJI);
        } else {
            this.LIZLLL.LIZ((AbstractC37452EnJ) new C37458EnP(str2, this.LJFF, 4), this.LJI);
        }
        C12740f9 r2 = new C12740f9();
        IAccountUserService LJFF2 = C12290eQ.LJFF();
        if (LJFF2 == null || (curUser = LJFF2.getCurUser()) == null || (str = curUser.getUid()) == null) {
            str = "";
        }
        C14300hf.LIZ("invite_via", r2.LIZ("from_user_id", str).LIZ("platform", this.LIZLLL.LIZ()).LIZ("enter_from", "homepage_friends").LIZ("enter_method", "empty_page").LIZ("url", LIZ2).LIZ);
        return C23860x5.LIZ;
    }
}