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

import C3.B;
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 ag extends B {

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public ag(aj ajVar, TaskCompletionSource taskCompletionSource, Bundle bundle, Activity activity, TaskCompletionSource taskCompletionSource2, int i6) {
        super(taskCompletionSource);
        this.f13596e = ajVar;
        this.f13592a = bundle;
        this.f13593b = activity;
        this.f13594c = taskCompletionSource2;
        this.f13595d = i6;
    }

    @Override // C3.B
    public final void b() {
        try {
            aj ajVar = this.f13596e;
            C3.v vVar = (C3.v) ajVar.f13601a.f728n;
            Bundle bundle = this.f13592a;
            as asVarA = ajVar.f13604d.a(this.f13593b, this.f13594c, ajVar.f13601a);
            C3.t tVar = (C3.t) vVar;
            tVar.getClass();
            Parcel parcelObtain = Parcel.obtain();
            parcelObtain.writeInterfaceToken(tVar.f708b);
            int i6 = C3.m.f734a;
            parcelObtain.writeInt(1);
            bundle.writeToParcel(parcelObtain, 0);
            parcelObtain.writeStrongBinder(asVarA);
            tVar.a(3, parcelObtain);
        } catch (RemoteException e6) {
            this.f13596e.f13602b.a(e6, "requestAndShowDialog(%s)", Integer.valueOf(this.f13595d));
            this.f13594c.trySetException(new IntegrityServiceException(-100, e6));
        }
    }
}
