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

import C3.B;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
import com.google.android.gms.tasks.TaskCompletionSource;

/* JADX INFO: loaded from: classes3.dex */
final class af extends B {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    final /* synthetic */ byte[] f13587a;

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public af(aj ajVar, TaskCompletionSource taskCompletionSource, byte[] bArr, Long l, Parcelable parcelable, TaskCompletionSource taskCompletionSource2, IntegrityTokenRequest integrityTokenRequest) {
        super(taskCompletionSource);
        this.f13591e = ajVar;
        this.f13587a = bArr;
        this.f13588b = l;
        this.f13589c = taskCompletionSource2;
        this.f13590d = integrityTokenRequest;
    }

    @Override // C3.B
    public final void a(Exception exc) {
        if (exc instanceof C3.f) {
            super.a(new IntegrityServiceException(-9, exc));
        } else {
            super.a(exc);
        }
    }

    @Override // C3.B
    public final void b() {
        try {
            aj ajVar = this.f13591e;
            C3.v vVar = (C3.v) ajVar.f13601a.f728n;
            Bundle bundleA = aj.a(ajVar, this.f13587a, this.f13588b, null);
            ai aiVar = new ai(this.f13591e, this.f13589c);
            C3.t tVar = (C3.t) vVar;
            tVar.getClass();
            Parcel parcelObtain = Parcel.obtain();
            parcelObtain.writeInterfaceToken(tVar.f708b);
            int i6 = C3.m.f734a;
            parcelObtain.writeInt(1);
            bundleA.writeToParcel(parcelObtain, 0);
            parcelObtain.writeStrongBinder(aiVar);
            tVar.a(2, parcelObtain);
        } catch (RemoteException e6) {
            this.f13591e.f13602b.a(e6, "requestIntegrityToken(%s)", this.f13590d);
            this.f13589c.trySetException(new IntegrityServiceException(-100, e6));
        }
    }
}
