package com.ss.android.ugc.aweme.im.sdk.privacy.viewmodel;

import X.0Bt;
import X.1Bn;
import X.AnonymousClass3LQ;
import X.AnonymousClass3MU;
import X.AnonymousClass3MX;
import X.C26003Ma;
import X.M12;
import X.Mjy;
import X.PlG;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.im.sdk.privacy.data.api.ChatAuthorityService;
import com.ss.android.ugc.aweme.im.service.IIMService;

public final class MessagingPrivacyViewModel extends 0Bt {
    public static final AnonymousClass3MX LJIILIIL = new AnonymousClass3MX((byte) 0);
    public int LIZ;
    public String LIZIZ;
    public String LIZJ;
    public final 1Bn<C26003Ma> LIZLLL;
    public final 1Bn<C26003Ma> LJ;
    public final 1Bn<Boolean> LJFF;
    public final Mjy LJI;
    public final ChatAuthorityService LJII;
    public final IIMService LJIIIIZZ;
    public final PlG LJIIIZ;
    public final PlG LJIIJ;
    public final AnonymousClass3MU LJIIJJI;
    public final AnonymousClass3LQ LJIIL;

    static {
        Covode.recordClassIndex(86644);
    }

    public MessagingPrivacyViewModel() {
        this((byte) 0);
    }

    public final void onCleared() {
        MessagingPrivacyViewModel.super.onCleared();
        this.LJI.LIZ();
    }

    public final void LIZ(boolean z) {
        String str;
        Integer num;
        if (z) {
            AnonymousClass3MU r1 = this.LJIIJJI;
            C26003Ma r0 = (C26003Ma) this.LIZLLL.getValue();
            if (r0 != null) {
                num = Integer.valueOf(r0.getValue());
            } else {
                num = null;
            }
            str = r1.LIZ(num);
        } else {
            str = "";
        }
        AnonymousClass3LQ.LIZ(this.LIZJ, this.LIZIZ, z ? 1 : 0, str, this.LIZ);
    }

    /* JADX WARNING: Illegal instructions before constructor call */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public /* synthetic */ MessagingPrivacyViewModel(byte r9) {
        /*
            r8 = this;
            com.ss.android.ugc.aweme.im.sdk.privacy.data.api.ChatAuthorityService r0 = X.AnonymousClass3MY.LIZ
            if (r0 != 0) goto L_0x0018
            com.bytedance.ies.ugc.aweme.network.IRetrofitFactory r1 = com.bytedance.ies.ugc.aweme.network.RetrofitFactory.LIZ()
            java.lang.String r0 = X.9DY.LJ
            X.2XC r1 = r1.LIZ(r0)
            java.lang.Class<com.ss.android.ugc.aweme.im.sdk.privacy.data.api.ChatAuthorityService> r0 = com.ss.android.ugc.aweme.im.sdk.privacy.data.api.ChatAuthorityService.class
            java.lang.Object r0 = r1.LIZ(r0)
            com.ss.android.ugc.aweme.im.sdk.privacy.data.api.ChatAuthorityService r0 = (com.ss.android.ugc.aweme.im.sdk.privacy.data.api.ChatAuthorityService) r0
            X.AnonymousClass3MY.LIZ = r0
        L_0x0018:
            com.ss.android.ugc.aweme.im.sdk.privacy.data.api.ChatAuthorityService r2 = X.AnonymousClass3MY.LIZ
            if (r2 != 0) goto L_0x001f
            kotlin.h.b.n.LIZIZ()
        L_0x001f:
            com.ss.android.ugc.aweme.im.sdk.common.controller.providedservices.IMService$Companion r0 = com.ss.android.ugc.aweme.im.sdk.common.controller.providedservices.IMService.Companion
            com.ss.android.ugc.aweme.im.service.IIMService r3 = r0.get()
            X.PlG r0 = X.Mk3.LIZ
            X.PlG r4 = X.Mk2.LIZ(r0)
            java.lang.String r1 = ""
            kotlin.h.b.n.LIZIZ(r4, r1)
            X.PlG r0 = X.PlI.LIZJ
            X.PlG r5 = X.PhE.LIZIZ(r0)
            kotlin.h.b.n.LIZIZ(r5, r1)
            X.3MU r6 = X.AnonymousClass3MU.LIZ
            X.3LQ r7 = X.AnonymousClass3LQ.LIZ
            r1 = r8
            r1.<init>(r2, r3, r4, r5, r6, r7)
            return
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.im.sdk.privacy.viewmodel.MessagingPrivacyViewModel.<init>(byte):void");
    }

    public MessagingPrivacyViewModel(ChatAuthorityService chatAuthorityService, IIMService iIMService, PlG plG, PlG plG2, AnonymousClass3MU r11, AnonymousClass3LQ r12) {
        IIMService iIMService2 = iIMService;
        ChatAuthorityService chatAuthorityService2 = chatAuthorityService;
        PlG plG3 = plG;
        PlG plG4 = plG2;
        AnonymousClass3LQ r5 = r12;
        AnonymousClass3MU r4 = r11;
        M12.LIZ(chatAuthorityService2, iIMService2, plG3, plG4, r4, r5);
        this.LJII = chatAuthorityService2;
        this.LJIIIIZZ = iIMService2;
        this.LJIIIZ = plG3;
        this.LJIIJ = plG4;
        this.LJIIJJI = r4;
        this.LJIIL = r5;
        this.LIZIZ = "";
        this.LIZJ = "";
        1Bn<C26003Ma> r1 = new 1Bn<>();
        r1.setValue((Object) null);
        this.LIZLLL = r1;
        this.LJ = new 1Bn<>();
        1Bn<Boolean> r13 = new 1Bn<>();
        r13.setValue(false);
        this.LJFF = r13;
        this.LJI = new Mjy();
    }
}
