package com.google.android.gms.common.api.internal;

import android.os.DeadObjectException;
import android.os.RemoteException;
import androidx.annotation.Nullable;
import com.google.android.gms.common.api.Status;
import java.util.Map;

/* JADX INFO: loaded from: classes2.dex */
public final class q0 extends f0 {

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final s f8279b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final w8.i f8280c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    public final q f8281d;

    public q0(int i10, s sVar, w8.i iVar, q qVar) {
        super(i10);
        this.f8280c = iVar;
        this.f8279b = sVar;
        this.f8281d = qVar;
        if (i10 == 2 && sVar.f8287a) {
            throw new IllegalArgumentException("Best-effort write calls cannot pass methods that should auto-resolve missing features.");
        }
    }

    @Override // com.google.android.gms.common.api.internal.s0
    public final void a(Status status) {
        ((androidx.window.core.h) this.f8281d).getClass();
        this.f8280c.b(com.bumptech.glide.g.g(status));
    }

    @Override // com.google.android.gms.common.api.internal.s0
    public final void b(Exception exc) {
        this.f8280c.b(exc);
    }

    @Override // com.google.android.gms.common.api.internal.s0
    public final void c(a0 a0Var) throws DeadObjectException {
        w8.i iVar = this.f8280c;
        try {
            this.f8279b.b(a0Var.f8209b, iVar);
        } catch (DeadObjectException e10) {
            throw e10;
        } catch (RemoteException e11) {
            a(s0.e(e11));
        } catch (RuntimeException e12) {
            iVar.b(e12);
        }
    }

    @Override // com.google.android.gms.common.api.internal.s0
    public final void d(w wVar, boolean z10) {
        Boolean boolValueOf = Boolean.valueOf(z10);
        Map map = wVar.f8298b;
        w8.i iVar = this.f8280c;
        map.put(iVar, boolValueOf);
        iVar.f34224a.b(new xyz.stream.utils.f(wVar, iVar, 12));
    }

    @Override // com.google.android.gms.common.api.internal.f0
    public final boolean f(a0 a0Var) {
        return this.f8279b.f8287a;
    }

    @Override // com.google.android.gms.common.api.internal.f0
    @Nullable
    public final e8.c[] zab(a0 a0Var) {
        return this.f8279b.zab();
    }
}
