package defpackage;

import android.os.RemoteException;
import j$.util.Objects;

/* renamed from: ᵠᵻ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class RunnableC3158 implements Runnable {

    /* renamed from: ᵢˇᵭ, reason: contains not printable characters */
    public final /* synthetic */ C1331 f11986;

    /* renamed from: ᵧᵾˀˈ, reason: contains not printable characters */
    public final /* synthetic */ int f11987;

    /* renamed from: ᵿʗᵝʽ, reason: contains not printable characters */
    public final /* synthetic */ C0323 f11988;

    public RunnableC3158(C0323 c0323, C1331 c1331, int i) {
        this.f11987 = i;
        switch (i) {
            case 1:
                this.f11986 = c1331;
                Objects.requireNonNull(c0323);
                this.f11988 = c0323;
                break;
            default:
                this.f11986 = c1331;
                this.f11988 = c0323;
                break;
        }
    }

    @Override // java.lang.Runnable
    public final void run() throws Throwable {
        int i = this.f11987;
        C1331 c1331 = this.f11986;
        C0323 c0323 = this.f11988;
        switch (i) {
            case 0:
                InterfaceC3519 interfaceC3519 = c0323.f2002;
                C4205 c4205 = (C4205) ((ᵢˇᵭ) c0323).ᵧᵾˀˈ;
                if (interfaceC3519 == null) {
                    C1736 c1736 = c4205.f15715;
                    C4205.m9132(c1736);
                    c1736.f6937.m6038("Discarding data. Failed to send app launch");
                    break;
                } else {
                    try {
                        C1904 c1904 = c4205.f15726;
                        C5559 c5559 = AbstractC5018.f18709;
                        if (c1904.m5353(null, c5559)) {
                            c0323.m1734(interfaceC3519, null, c1331);
                        }
                        interfaceC3519.mo2197(c1331);
                        c4205.m9141().m3744();
                        c4205.f15726.m5353(null, c5559);
                        c0323.m1734(interfaceC3519, null, c1331);
                        c0323.m1736();
                        break;
                    } catch (RemoteException e) {
                        C1736 c17362 = c4205.f15715;
                        C4205.m9132(c17362);
                        c17362.f6937.m6039(e, "Failed to send app launch to the service");
                        return;
                    }
                }
            default:
                InterfaceC3519 interfaceC35192 = c0323.f2002;
                C4205 c42052 = (C4205) ((ᵢˇᵭ) c0323).ᵧᵾˀˈ;
                if (interfaceC35192 == null) {
                    C1736 c17363 = c42052.f15715;
                    C4205.m9132(c17363);
                    c17363.f6937.m6038("Failed to send consent settings to service");
                    break;
                } else {
                    try {
                        interfaceC35192.mo2191(c1331);
                        c0323.m1736();
                        break;
                    } catch (RemoteException e2) {
                        C1736 c17364 = c42052.f15715;
                        C4205.m9132(c17364);
                        c17364.f6937.m6039(e2, "Failed to send consent settings to the service");
                    }
                }
        }
    }
}
