package d3;

import android.os.Parcel;
import com.google.android.gms.internal.measurement.AbstractBinderC0720x;
import com.google.android.gms.internal.measurement.AbstractC0725y;
import java.util.concurrent.atomic.AtomicReference;

/* JADX INFO: renamed from: d3.n1, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class BinderC0807n1 extends AbstractBinderC0720x implements O {

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    public final /* synthetic */ AtomicReference f12074e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    public final /* synthetic */ C0824t1 f12075f;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public BinderC0807n1(C0824t1 c0824t1, AtomicReference atomicReference) {
        super("com.google.android.gms.measurement.internal.IUploadBatchesCallback");
        this.f12074e = atomicReference;
        this.f12075f = c0824t1;
    }

    @Override // d3.O
    public final void A(J1 j12) {
        AtomicReference atomicReference = this.f12074e;
        synchronized (atomicReference) {
            Z z8 = ((C0817r0) this.f12075f.f5146q).f12150y;
            C0817r0.k(z8);
            z8.D.c(Integer.valueOf(j12.f11611q.size()), "[sgtm] Got upload batches from service. count");
            atomicReference.set(j12);
            atomicReference.notifyAll();
        }
    }

    @Override // com.google.android.gms.internal.measurement.AbstractBinderC0720x
    public final boolean c(int i, Parcel parcel, Parcel parcel2) {
        if (i != 2) {
            return false;
        }
        J1 j12 = (J1) AbstractC0725y.a(parcel, J1.CREATOR);
        AbstractC0725y.b(parcel);
        A(j12);
        return true;
    }
}
