package com.strmr.ps.data.repository;

import defpackage.ck1;
import defpackage.e6a;
import defpackage.ir3;
import defpackage.kr3;
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\u0016\n\u0002\u0010\u0007\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0006\u001a\u00020\u00052\u0006\u0010\u0001\u001a\u00020\u00002\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0004\u001a\u00020\u0002H\n¢\u0006\u0004\b\u0006\u0010\u0007"}, d2 = {"", "progress", "", "itemsSoFar", "totalItems", "Le6a;", "<anonymous>", "(FII)V"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "com.strmr.ps.data.repository.TraktSyncRepository$fetchHistoryWithProgress$movies$1", f = "TraktSyncRepository.kt", i = {}, l = {794}, m = "invokeSuspend", n = {}, s = {})
public final class TraktSyncRepository$fetchHistoryWithProgress$movies$1 extends SuspendLambda implements kr3<Float, Integer, Integer, Continuation<? super e6a>, Object> {
    final /* synthetic */ ir3<Float, Integer, Continuation<? super e6a>, Object> $onProgress;
    /* synthetic */ float F$0;
    /* synthetic */ int I$0;
    /* synthetic */ int I$1;
    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$fetchHistoryWithProgress$movies$1(ir3<? super Float, ? super Integer, ? super Continuation<? super e6a>, ? extends Object> ir3Var, Continuation<? super TraktSyncRepository$fetchHistoryWithProgress$movies$1> continuation) {
        super(4, continuation);
        this.$onProgress = ir3Var;
    }

    public final Object invoke(float f, int i, int i2, Continuation<? super e6a> continuation) {
        TraktSyncRepository$fetchHistoryWithProgress$movies$1 traktSyncRepository$fetchHistoryWithProgress$movies$1 = new TraktSyncRepository$fetchHistoryWithProgress$movies$1(this.$onProgress, continuation);
        traktSyncRepository$fetchHistoryWithProgress$movies$1.F$0 = f;
        traktSyncRepository$fetchHistoryWithProgress$movies$1.I$0 = i;
        traktSyncRepository$fetchHistoryWithProgress$movies$1.I$1 = i2;
        return traktSyncRepository$fetchHistoryWithProgress$movies$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;
            if (this.I$1 <= 0) {
                String.valueOf(i2);
            }
            ir3<Float, Integer, Continuation<? super e6a>, Object> ir3Var = this.$onProgress;
            if (ir3Var != null) {
                Float fBoxFloat = Boxing.boxFloat(f2);
                Integer numBoxInt = Boxing.boxInt(i2);
                this.label = 1;
                if (ir3Var.invoke(fBoxFloat, numBoxInt, 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.kr3
    public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2, Object obj3, Object obj4) {
        return invoke(((Number) obj).floatValue(), ((Number) obj2).intValue(), ((Number) obj3).intValue(), (Continuation<? super e6a>) obj4);
    }
}
