package m;

import android.util.SparseArray;
import com.cvte.recordaudio.RecordAudio;

/* JADX INFO: renamed from: m.b, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0626b {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private static C0626b f5392c;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private final Object f5393a = new Object();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private final SparseArray f5394b = new SparseArray();

    public static boolean b() {
        return RecordAudio.audioRecordStart();
    }

    public static boolean c() {
        return RecordAudio.audioRecordStop();
    }

    public static C0626b d() {
        if (f5392c == null) {
            f5392c = new C0626b();
        }
        return f5392c;
    }

    public static boolean e() {
        return RecordAudio.recordInit();
    }

    public void a(InterfaceC0625a interfaceC0625a) {
        synchronized (this.f5393a) {
            this.f5394b.put(System.identityHashCode(interfaceC0625a), interfaceC0625a);
        }
    }

    public void f(InterfaceC0625a interfaceC0625a) {
        synchronized (this.f5393a) {
            if (interfaceC0625a != null) {
                try {
                    this.f5394b.remove(System.identityHashCode(interfaceC0625a));
                } catch (Throwable th) {
                    throw th;
                }
            }
        }
    }
}
