package B0;

import java.util.concurrent.atomic.AtomicBoolean;
import n4.u0;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class J implements B3.l {

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

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final /* synthetic */ Object f587r;

    public /* synthetic */ J(int i, Object obj) {
        this.f586q = i;
        this.f587r = obj;
    }

    @Override // B3.l
    public final Object get() {
        switch (this.f586q) {
            case u0.f15495q /* 0 */:
                return Boolean.valueOf(((P) this.f587r).f622T);
            case 1:
                return Boolean.valueOf(((AtomicBoolean) this.f587r).get());
            default:
                try {
                    return (L0.B) ((Class) this.f587r).getConstructor(null).newInstance(null);
                } catch (Exception e8) {
                    throw new IllegalStateException(e8);
                }
        }
    }
}
