package d8;

import android.os.Bundle;
import android.util.Log;
import java.io.IOException;
import w8.t;

/* JADX INFO: loaded from: classes2.dex */
public final /* synthetic */ class c implements w8.b, w8.g {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final /* synthetic */ c f25016a = new c();

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public static final /* synthetic */ c f25017b = new c();

    @Override // w8.g
    public t a(Object obj) {
        Bundle bundle = (Bundle) obj;
        int i10 = b.f25006h;
        return (bundle == null || !bundle.containsKey("google.messenger")) ? w8.k.e(bundle) : w8.k.e(null);
    }

    @Override // w8.b
    public Object then(w8.h hVar) throws IOException {
        if (hVar.j()) {
            return (Bundle) hVar.g();
        }
        if (Log.isLoggable("Rpc", 3)) {
            "Error making request: ".concat(String.valueOf(hVar.getException()));
        }
        throw new IOException("SERVICE_NOT_AVAILABLE", hVar.getException());
    }
}
