package O2;

import O1.C0225a;
import android.os.DeadObjectException;
import android.os.RemoteException;
import com.google.android.gms.common.api.Status;

/* JADX INFO: loaded from: classes.dex */
public final class s extends m {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final g3.h f5140b;

    public s(g3.h hVar) {
        super(4);
        this.f5140b = hVar;
    }

    @Override // O2.m
    public final boolean a(i iVar) {
        if (iVar.f5121j.get(null) == null) {
            return false;
        }
        throw new ClassCastException();
    }

    @Override // O2.m
    public final M2.d[] b(i iVar) {
        if (iVar.f5121j.get(null) == null) {
            return null;
        }
        throw new ClassCastException();
    }

    @Override // O2.m
    public final void c(Status status) {
        this.f5140b.a(new D0.q(status));
    }

    @Override // O2.m
    public final void d(RuntimeException runtimeException) {
        this.f5140b.a(runtimeException);
    }

    @Override // O2.m
    public final void e(i iVar) throws DeadObjectException {
        try {
            h(iVar);
        } catch (DeadObjectException e8) {
            c(m.g(e8));
            throw e8;
        } catch (RemoteException e9) {
            c(m.g(e9));
        } catch (RuntimeException e10) {
            this.f5140b.a(e10);
        }
    }

    public final void h(i iVar) {
        if (iVar.f5121j.remove(null) != null) {
            throw new ClassCastException();
        }
        this.f5140b.b(Boolean.FALSE);
    }

    @Override // O2.m
    public final /* bridge */ /* synthetic */ void f(C0225a c0225a, boolean z8) {
    }
}
