package o;

import android.os.RemoteException;
import com.google.android.gms.common.internal.Preconditions;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final /* synthetic */ class Pt0 implements Runnable {
    public final /* synthetic */ int l;
    public final /* synthetic */ Vt0 m;

    public /* synthetic */ Pt0(Vt0 vt0, int i) {
        this.l = i;
        this.m = vt0;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.l) {
            case 0:
                this.m.y();
                break;
            case 1:
                Vt0 vt0 = this.m;
                Kr0 kr0 = (Kr0) vt0.a;
                InterfaceC2185pq0 interfaceC2185pq0 = vt0.d;
                if (interfaceC2185pq0 == null) {
                    Nq0 nq0 = kr0.f;
                    Kr0.l(nq0);
                    nq0.f.b("Failed to send Dma consent settings to service");
                    break;
                } else {
                    try {
                        C1531iw0 c1531iw0I = vt0.I(false);
                        Preconditions.checkNotNull(c1531iw0I);
                        interfaceC2185pq0.c(c1531iw0I);
                        vt0.F();
                        break;
                    } catch (RemoteException e) {
                        Nq0 nq02 = kr0.f;
                        Kr0.l(nq02);
                        nq02.f.c(e, "Failed to send Dma consent settings to the service");
                        return;
                    }
                }
            default:
                Vt0 vt02 = this.m;
                Kr0 kr02 = (Kr0) vt02.a;
                InterfaceC2185pq0 interfaceC2185pq02 = vt02.d;
                if (interfaceC2185pq02 == null) {
                    Nq0 nq03 = kr02.f;
                    Kr0.l(nq03);
                    nq03.f.b("Failed to send storage consent settings to service");
                    break;
                } else {
                    try {
                        C1531iw0 c1531iw0I2 = vt02.I(false);
                        Preconditions.checkNotNull(c1531iw0I2);
                        interfaceC2185pq02.z(c1531iw0I2);
                        vt02.F();
                        break;
                    } catch (RemoteException e2) {
                        Nq0 nq04 = kr02.f;
                        Kr0.l(nq04);
                        nq04.f.c(e2, "Failed to send storage consent settings to the service");
                    }
                }
        }
    }
}
