package defpackage;

import android.os.Process;
import java.util.concurrent.locks.ReentrantLock;

/* renamed from: ᵘᵥᵻ, reason: contains not printable characters */
/* loaded from: classes3.dex */
public final class C2532 extends Thread {

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

    public /* synthetic */ C2532(Runnable runnable) {
        super(runnable);
    }

    public /* synthetic */ C2532(String str) {
        super(str);
    }

    public /* synthetic */ C2532(ThreadGroup threadGroup, String str) {
        super(threadGroup, str);
    }

    @Override // java.lang.Thread, java.lang.Runnable
    public final void run() throws SecurityException, IllegalArgumentException {
        ReentrantLock reentrantLock;
        C4657 c4657;
        switch (this.f9882) {
            case 0:
                break;
            case 1:
                Process.setThreadPriority(9);
                super.run();
                return;
            default:
                Process.setThreadPriority(19);
                synchronized (this) {
                    while (true) {
                        try {
                            wait();
                        } catch (InterruptedException unused) {
                            return;
                        }
                    }
                }
        }
        while (true) {
            try {
                C2124 c2124 = C4657.f17236;
                reentrantLock = C4657.f17234;
                reentrantLock.lock();
                try {
                    c4657 = ˉːᵡ.ᵧـˌᵎ();
                } catch (Throwable th) {
                    reentrantLock.unlock();
                    throw th;
                }
            } catch (InterruptedException unused2) {
                continue;
            }
            if (c4657 == C4657.f17232) {
                C4657.f17232 = null;
                reentrantLock.unlock();
                return;
            } else {
                reentrantLock.unlock();
                if (c4657 != null) {
                    c4657.mo2866();
                }
            }
        }
    }
}
