package ῲ.ᨨ.ඓ;

import android.os.Build;
import android.os.CancellationSignal;

/* renamed from: ῲ.ᨨ.ඓ.K  reason: contains not printable characters */
/* compiled from: CancellationSignal */
public final class C1725 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public boolean f6039;

    /* renamed from: ῲ  reason: contains not printable characters */
    public Object f6040;

    /* renamed from: K  reason: contains not printable characters */
    public boolean f6041;

    /* renamed from: ῲ.ᨨ.ඓ.K$K  reason: contains not printable characters */
    /* compiled from: CancellationSignal */
    public interface AbstractC1726 {
        void onCancel();
    }

    /* JADX WARNING: Exception block dominator not found, dom blocks: [] */
    /* JADX WARNING: Missing exception handler attribute for start block: B:1:0x0001 */
    /* JADX WARNING: Removed duplicated region for block: B:1:0x0001 A[LOOP:0: B:1:0x0001->B:20:0x0001, LOOP_START, SYNTHETIC] */
    public void setOnCancelListener(AbstractC1726 k) {
        synchronized (this) {
            while (this.f6039) {
                wait();
            }
            if (k != null) {
                if (this.f6041 && k != null) {
                    k.onCancel();
                }
            }
        }
    }

    /* renamed from: ῲ  reason: contains not printable characters */
    public Object m4433() {
        Object obj;
        int i = Build.VERSION.SDK_INT;
        synchronized (this) {
            if (this.f6040 == null) {
                this.f6040 = new CancellationSignal();
                if (this.f6041) {
                    ((CancellationSignal) this.f6040).cancel();
                }
            }
            obj = this.f6040;
        }
        return obj;
    }

    /* JADX WARNING: Code restructure failed: missing block: B:11:?, code lost:
        r2 = android.os.Build.VERSION.SDK_INT;
        ((android.os.CancellationSignal) r0).cancel();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:12:0x001a, code lost:
        r0 = move-exception;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:13:0x001b, code lost:
        monitor-enter(r3);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:15:?, code lost:
        r3.f6039 = false;
        notifyAll();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:17:0x0022, code lost:
        throw r0;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:21:0x0026, code lost:
        monitor-enter(r3);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:23:?, code lost:
        r3.f6039 = false;
        notifyAll();
     */
    /* JADX WARNING: Code restructure failed: missing block: B:24:0x002c, code lost:
        monitor-exit(r3);
     */
    /* JADX WARNING: Code restructure failed: missing block: B:25:0x002d, code lost:
        return;
     */
    /* JADX WARNING: Code restructure failed: missing block: B:9:0x0010, code lost:
        if (r0 == null) goto L_0x0026;
     */
    /* renamed from: K  reason: contains not printable characters */
    public void m4434() {
        synchronized (this) {
            if (!this.f6041) {
                this.f6041 = true;
                this.f6039 = true;
                Object obj = this.f6040;
            }
        }
    }
}
