package g3;

import V4.C;
import androidx.fragment.app.C1049g;
import androidx.media3.exoplayer.upstream.CmcdData;
import androidx.media3.extractor.text.ttml.TtmlNode;
import com.google.android.gms.tasks.Task;
import com.google.firebase.firestore.DocumentReference;
import com.google.firebase.firestore.FirebaseFirestore;
import com.google.firebase.firestore.Transaction;
import m3.AbstractC2467b;
import w4.C3137A;
import y4.C3277e;

/* JADX INFO: renamed from: g3.e, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C2063e extends C4.j implements J4.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public int f16479a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ String f16480b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final /* synthetic */ int f16481c;

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

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

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

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    public final /* synthetic */ Integer f16485j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    public final /* synthetic */ String f16486k;
    public final /* synthetic */ String l;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C2063e(String str, int i6, int i7, boolean z6, Integer num, Integer num2, String str2, String str3, A4.d dVar) {
        super(2, dVar);
        this.f16480b = str;
        this.f16481c = i6;
        this.f16482d = i7;
        this.f16483e = z6;
        this.f16484f = num;
        this.f16485j = num2;
        this.f16486k = str2;
        this.l = str3;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new C2063e(this.f16480b, this.f16481c, this.f16482d, this.f16483e, this.f16484f, this.f16485j, this.f16486k, this.l, dVar);
    }

    @Override // J4.e
    public final Object invoke(Object obj, Object obj2) {
        return ((C2063e) create((C) obj, (A4.d) obj2)).invokeSuspend(C3137A.f25453a);
    }

    @Override // C4.a
    public final Object invokeSuspend(Object obj) throws Exception {
        Integer num;
        B4.a aVar = B4.a.f492a;
        int i6 = this.f16479a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            FirebaseFirestore firebaseFirestore = FirebaseFirestore.getInstance();
            kotlin.jvm.internal.o.g(firebaseFirestore, "getInstance(...)");
            DocumentReference documentReferenceDocument = firebaseFirestore.collection("accountSync").document(this.f16480b);
            kotlin.jvm.internal.o.g(documentReferenceDocument, "document(...)");
            long jCurrentTimeMillis = System.currentTimeMillis();
            C3277e c3277e = new C3277e();
            c3277e.put(TtmlNode.TAG_P, new Integer(this.f16481c));
            c3277e.put("d", new Integer(this.f16482d));
            c3277e.put("t", new Long(jCurrentTimeMillis));
            if (this.f16483e) {
                c3277e.put("u", Boolean.TRUE);
            }
            Integer num2 = this.f16484f;
            if (num2 != null && (num = this.f16485j) != null) {
                c3277e.put(CmcdData.Factory.STREAMING_FORMAT_SS, num2);
                c3277e.put("e", num);
            }
            Task taskRunTransaction = firebaseFirestore.runTransaction(new C1049g(documentReferenceDocument, this.f16486k, this.l, c3277e.b()));
            kotlin.jvm.internal.o.g(taskRunTransaction, "runTransaction(...)");
            this.f16479a = 1;
            obj = W0.e.h(taskRunTransaction, this);
            if (obj == aVar) {
                return aVar;
            }
        } else {
            if (i6 != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
        }
        return (Transaction) obj;
    }
}
