package com.strmr.ps.data.repository;

import defpackage.ck1;
import defpackage.e6a;
import defpackage.ir3;
import defpackage.n41;
import defpackage.s38;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.Boxing;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;

/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0010\u0007\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0001\u001a\u00020\u00002\u0006\u0010\u0003\u001a\u00020\u0002H\n¢\u0006\u0004\b\u0005\u0010\u0006"}, d2 = {"", "phase", "", "itemCount", "Le6a;", "<anonymous>", "(FI)V"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "com.strmr.ps.data.repository.TraktSyncRepository$performSyncPhases$newHistory$1", f = "TraktSyncRepository.kt", i = {}, l = {461}, m = "invokeSuspend", n = {}, s = {})
public final class TraktSyncRepository$performSyncPhases$newHistory$1 extends SuspendLambda implements ir3<Float, Integer, Continuation<? super e6a>, Object> {
    final /* synthetic */ ir3<Float, String, Continuation<? super e6a>, Object> $onProgress;
    /* synthetic */ float F$0;
    /* synthetic */ int I$0;
    int label;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public TraktSyncRepository$performSyncPhases$newHistory$1(ir3<? super Float, ? super String, ? super Continuation<? super e6a>, ? extends Object> ir3Var, Continuation<? super TraktSyncRepository$performSyncPhases$newHistory$1> continuation) {
        super(3, continuation);
        this.$onProgress = ir3Var;
    }

    public final Object invoke(float f, int i, Continuation<? super e6a> continuation) {
        TraktSyncRepository$performSyncPhases$newHistory$1 traktSyncRepository$performSyncPhases$newHistory$1 = new TraktSyncRepository$performSyncPhases$newHistory$1(this.$onProgress, continuation);
        traktSyncRepository$performSyncPhases$newHistory$1.F$0 = f;
        traktSyncRepository$performSyncPhases$newHistory$1.I$0 = i;
        return traktSyncRepository$performSyncPhases$newHistory$1.invokeSuspend(e6a.a);
    }

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Object invokeSuspend(Object obj) {
        ck1 ck1Var = ck1.a;
        int i = this.label;
        if (i == 0) {
            s38.b(obj);
            float f = this.F$0;
            int i2 = this.I$0;
            float f2 = (f * 0.5f) + 0.35f;
            ir3<Float, String, Continuation<? super e6a>, Object> ir3Var = this.$onProgress;
            if (ir3Var != null) {
                Float fBoxFloat = Boxing.boxFloat(f2);
                String strI = n41.i(i2, "Syncing: ", " new items...");
                this.label = 1;
                if (ir3Var.invoke(fBoxFloat, strI, this) == ck1Var) {
                    return ck1Var;
                }
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            s38.b(obj);
        }
        return e6a.a;
    }

    @Override // defpackage.ir3
    public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2, Object obj3) {
        return invoke(((Number) obj).floatValue(), ((Number) obj2).intValue(), (Continuation<? super e6a>) obj3);
    }
}
