package defpackage;

import android.os.Bundle;
import j$.util.Objects;
import java.util.concurrent.atomic.AtomicReference;
import org.json.JSONException;

/* renamed from: ᵿᵼᵔ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class RunnableC5534 implements Runnable {

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

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

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

    public RunnableC5534(C1757 c1757, AtomicReference atomicReference, int i) {
        this.f20788 = i;
        switch (i) {
            case 1:
                this.f20787 = atomicReference;
                Objects.requireNonNull(c1757);
                this.f20789 = c1757;
                break;
            case 2:
                this.f20789 = c1757;
                this.f20787 = atomicReference;
                break;
            default:
                this.f20787 = atomicReference;
                Objects.requireNonNull(c1757);
                this.f20789 = c1757;
                break;
        }
    }

    /* renamed from: ᵥᵯˎ, reason: contains not printable characters */
    private final void m11148() {
        AtomicReference atomicReference = this.f20787;
        synchronized (atomicReference) {
            try {
                try {
                    C4205 c4205 = (C4205) ((ᵢˇᵭ) this.f20789).ᵧᵾˀˈ;
                    atomicReference.set(Double.valueOf(c4205.f15726.m5360(c4205.m9143().m9462(), AbstractC5018.f18622)));
                } finally {
                    this.f20787.notify();
                }
            } catch (Throwable th) {
                throw th;
            }
        }
    }

    @Override // java.lang.Runnable
    public final void run() throws JSONException {
        switch (this.f20788) {
            case 0:
                AtomicReference atomicReference = this.f20787;
                synchronized (atomicReference) {
                    try {
                        try {
                            C4205 c4205 = (C4205) ((ᵢˇᵭ) this.f20789).ᵧᵾˀˈ;
                            atomicReference.set(Long.valueOf(c4205.f15726.m5358(c4205.m9143().m9462(), AbstractC5018.f18647)));
                        } finally {
                            this.f20787.notify();
                        }
                    } catch (Throwable th) {
                        throw th;
                    }
                }
                return;
            case 1:
                m11148();
                return;
            default:
                C1757 c1757 = this.f20789;
                C4180 c4180 = ((C4205) ((ᵢˇᵭ) c1757).ᵧᵾˀˈ).f15717;
                C4205.m9134(c4180);
                Bundle bundleM1018 = c4180.f15634.m1018();
                C0323 c0323M9136 = ((C4205) ((ᵢˇᵭ) c1757).ᵧᵾˀˈ).m9136();
                AtomicReference atomicReference2 = this.f20787;
                c0323M9136.m6590();
                c0323M9136.m3663();
                c0323M9136.m1733(new RunnableC5068(c0323M9136, atomicReference2, c0323M9136.m1732(false), bundleM1018, 11, false));
                return;
        }
    }
}
