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

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

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

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public bg(bn bnVar, TaskCompletionSource taskCompletionSource, int i6, String str, long j4, long j6, TaskCompletionSource taskCompletionSource2) {
        super(bnVar, taskCompletionSource);
        this.f13649e = bnVar;
        this.f13645a = str;
        this.f13646b = j4;
        this.f13647c = j6;
        this.f13648d = taskCompletionSource2;
    }

    @Override // C3.B
    public final void b() {
        if (bn.k(this.f13649e)) {
            a(new StandardIntegrityException(-2, null));
            return;
        }
        try {
            bn bnVar = this.f13649e;
            C3.q qVar = (C3.q) bnVar.f13664a.f728n;
            Bundle bundleA = bn.a(bnVar, this.f13645a, this.f13646b, this.f13647c, 0);
            bk bkVar = new bk(this.f13649e, this.f13648d, this.f13646b);
            C3.o oVar = (C3.o) qVar;
            oVar.getClass();
            Parcel parcelObtain = Parcel.obtain();
            parcelObtain.writeInterfaceToken(oVar.f708b);
            int i6 = C3.m.f734a;
            parcelObtain.writeInt(1);
            bundleA.writeToParcel(parcelObtain, 0);
            parcelObtain.writeStrongBinder(bkVar);
            oVar.a(3, parcelObtain);
        } catch (RemoteException e6) {
            this.f13649e.f13665b.a(e6, "requestExpressIntegrityToken(%s, %s)", this.f13645a, Long.valueOf(this.f13646b));
            this.f13648d.trySetException(new StandardIntegrityException(-100, e6));
        }
    }
}
