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

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 bf extends bm {

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public bf(bn bnVar, TaskCompletionSource taskCompletionSource, int i6, long j4, TaskCompletionSource taskCompletionSource2) {
        super(bnVar, taskCompletionSource);
        this.f13644c = bnVar;
        this.f13642a = j4;
        this.f13643b = taskCompletionSource2;
    }

    @Override // C3.B
    public final void b() {
        if (bn.k(this.f13644c)) {
            a(new StandardIntegrityException(-2, null));
            return;
        }
        try {
            bn bnVar = this.f13644c;
            C3.q qVar = (C3.q) bnVar.f13664a.f728n;
            Bundle bundleB = bn.b(bnVar, this.f13642a, 0);
            bl blVar = new bl(this.f13644c, this.f13643b);
            C3.o oVar = (C3.o) qVar;
            oVar.getClass();
            Parcel parcelObtain = Parcel.obtain();
            parcelObtain.writeInterfaceToken(oVar.f708b);
            int i6 = C3.m.f734a;
            parcelObtain.writeInt(1);
            bundleB.writeToParcel(parcelObtain, 0);
            parcelObtain.writeStrongBinder(blVar);
            oVar.a(2, parcelObtain);
        } catch (RemoteException e6) {
            this.f13644c.f13665b.a(e6, "warmUpIntegrityToken(%s)", Long.valueOf(this.f13642a));
            this.f13643b.trySetException(new StandardIntegrityException(-100, e6));
        }
    }
}
