package L1;

import android.os.Bundle;
import java.io.Serializable;
import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;
import t1.AbstractC1022a;

/* JADX INFO: loaded from: classes.dex */
public final class V0 implements Runnable {

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ int f1580k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final /* synthetic */ AtomicReference f1581l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    public final /* synthetic */ C0088c1 f1582m;

    public /* synthetic */ V0(C0088c1 c0088c1, AtomicReference atomicReference, int i, boolean z5) {
        this.f1580k = i;
        this.f1582m = c0088c1;
        this.f1581l = atomicReference;
    }

    private final void a() {
        AtomicReference atomicReference = this.f1581l;
        synchronized (atomicReference) {
            try {
                try {
                    C0146w0 c0146w0 = (C0146w0) this.f1582m.f29k;
                    atomicReference.set(Double.valueOf(c0146w0.f2035n.t(c0146w0.q().q(), F.f1406e0)));
                } finally {
                    this.f1581l.notify();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.f1580k) {
            case 0:
                AtomicReference atomicReference = this.f1581l;
                synchronized (atomicReference) {
                    try {
                        try {
                            C0146w0 c0146w0 = (C0146w0) this.f1582m.f29k;
                            atomicReference.set(Boolean.valueOf(c0146w0.f2035n.u(c0146w0.q().q(), F.f1394a0)));
                        } finally {
                        }
                    } finally {
                    }
                }
                return;
            case 1:
                AtomicReference atomicReference2 = this.f1581l;
                synchronized (atomicReference2) {
                    try {
                        try {
                            C0146w0 c0146w02 = (C0146w0) this.f1582m.f29k;
                            atomicReference2.set(c0146w02.f2035n.q(c0146w02.q().q(), F.f1397b0));
                        } finally {
                        }
                    } finally {
                    }
                }
                return;
            case 2:
                AtomicReference atomicReference3 = this.f1581l;
                synchronized (atomicReference3) {
                    try {
                        try {
                            C0146w0 c0146w03 = (C0146w0) this.f1582m.f29k;
                            atomicReference3.set(Long.valueOf(c0146w03.f2035n.r(c0146w03.q().q(), F.f1400c0)));
                        } finally {
                        }
                    } finally {
                    }
                }
                return;
            case 3:
                AtomicReference atomicReference4 = this.f1581l;
                synchronized (atomicReference4) {
                    try {
                        try {
                            C0146w0 c0146w04 = (C0146w0) this.f1582m.f29k;
                            atomicReference4.set(Integer.valueOf(c0146w04.f2035n.s(c0146w04.q().q(), F.f1403d0)));
                        } finally {
                        }
                    } finally {
                    }
                }
                return;
            case 4:
                a();
                return;
            case 5:
                C0088c1 c0088c1 = this.f1582m;
                C0108j0 c0108j0 = ((C0146w0) c0088c1.f29k).f2036o;
                C0146w0.j(c0108j0);
                Bundle bundleQ = c0108j0.f1872x.Q();
                C0153y1 c0153y1O = ((C0146w0) c0088c1.f29k).o();
                c0153y1O.k();
                c0153y1O.l();
                c0153y1O.y(new E0((Object) c0153y1O, (Serializable) this.f1581l, (AbstractC1022a) c0153y1O.A(false), (Object) bundleQ, 6));
                return;
            default:
                C0153y1 c0153y1O2 = ((C0146w0) this.f1582m.f29k).o();
                O1 o1A = O1.a(EnumC0109j1.SGTM_CLIENT);
                c0153y1O2.k();
                c0153y1O2.l();
                c0153y1O2.y(new E0(c0153y1O2, this.f1581l, c0153y1O2.A(false), o1A));
                return;
        }
    }

    public V0(C0088c1 c0088c1, AtomicReference atomicReference, int i) {
        this.f1580k = i;
        switch (i) {
            case 1:
                this.f1581l = atomicReference;
                Objects.requireNonNull(c0088c1);
                this.f1582m = c0088c1;
                break;
            case 2:
                this.f1581l = atomicReference;
                Objects.requireNonNull(c0088c1);
                this.f1582m = c0088c1;
                break;
            case 3:
                this.f1581l = atomicReference;
                Objects.requireNonNull(c0088c1);
                this.f1582m = c0088c1;
                break;
            case 4:
                this.f1581l = atomicReference;
                Objects.requireNonNull(c0088c1);
                this.f1582m = c0088c1;
                break;
            default:
                this.f1581l = atomicReference;
                Objects.requireNonNull(c0088c1);
                this.f1582m = c0088c1;
                break;
        }
    }
}
