package com.google.android.play.core.integrity;

import C3.C0129e;
import android.app.Activity;
import android.os.Bundle;
import android.os.Parcel;
import android.os.RemoteException;
import com.google.android.gms.tasks.TaskCompletionSource;

/* JADX INFO: loaded from: classes3.dex */
final class bh extends bm {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    final /* synthetic */ Bundle f13650a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    final /* synthetic */ Activity f13651b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    final /* synthetic */ TaskCompletionSource f13652c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    final /* synthetic */ int f13653d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    final /* synthetic */ bn f13654e;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public bh(bn bnVar, TaskCompletionSource taskCompletionSource, Bundle bundle, Activity activity, TaskCompletionSource taskCompletionSource2, int i6) {
        super(bnVar, taskCompletionSource);
        this.f13654e = bnVar;
        this.f13650a = bundle;
        this.f13651b = activity;
        this.f13652c = taskCompletionSource2;
        this.f13653d = i6;
    }

    @Override // C3.B
    public final void b() {
        if (bn.k(this.f13654e)) {
            a(new StandardIntegrityException(-2, null));
            return;
        }
        try {
            bn bnVar = this.f13654e;
            C0129e c0129e = bnVar.f13664a;
            C3.q qVar = (C3.q) c0129e.f728n;
            Bundle bundle = this.f13650a;
            as asVarA = bnVar.f13668e.a(this.f13651b, this.f13652c, c0129e);
            C3.o oVar = (C3.o) qVar;
            oVar.getClass();
            Parcel parcelObtain = Parcel.obtain();
            parcelObtain.writeInterfaceToken(oVar.f708b);
            int i6 = C3.m.f734a;
            parcelObtain.writeInt(1);
            bundle.writeToParcel(parcelObtain, 0);
            parcelObtain.writeStrongBinder(asVarA);
            oVar.a(6, parcelObtain);
        } catch (RemoteException e6) {
            this.f13654e.f13665b.a(e6, "requestAndShowDialog(%s)", Integer.valueOf(this.f13653d));
            this.f13652c.trySetException(new StandardIntegrityException(-100, e6));
        }
    }
}
