package defpackage;

import com.strmr.ps.data.repository.ScreenConfigRepository;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.coroutines.jvm.internal.SuspendLambda;

/* JADX INFO: renamed from: ox0, reason: from Kotlin metadata and case insensitive filesystem */
/* JADX INFO: loaded from: classes3.dex */
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0004\u001a\u00020\u0003\"\u0004\b\u0000\u0010\u0000*\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u00020\u0001H\n¢\u0006\u0004\b\u0004\u0010\u0005"}, d2 = {"E", "Lyi7;", "Lhl4;", "Le6a;", "<anonymous>", "(Lyi7;)V"}, k = 3, mv = {2, 0, 0})
@DebugMetadata(c = "kotlinx.coroutines.channels.ChannelsKt__DeprecatedKt$withIndex$1", f = "Deprecated.kt", i = {0, 0, 1, 1}, l = {ScreenConfigRepository.MAX_ROWS_PER_PROFILE, 401}, m = "invokeSuspend", n = {"$this$produce", "index", "$this$produce", "index"}, s = {"L$0", "I$0", "L$0", "I$0"})
final class C0650ox0 extends SuspendLambda implements gr3 {
    public lv0 a;
    public int b;
    public int c;
    public /* synthetic */ Object d;

    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    public final Continuation create(Object obj, Continuation continuation) {
        throw null;
    }

    @Override // defpackage.gr3
    public final Object invoke(Object obj, Object obj2) {
        return ((C0650ox0) create((yi7) obj, (Continuation) obj2)).invokeSuspend(e6a.a);
    }

    /* JADX WARN: Removed duplicated region for block: B:11:0x002b A[PHI: r1 r4 r5 r9
      0x002b: PHI (r1v2 int) = (r1v1 int), (r1v4 int) binds: [B:10:0x0020, B:18:0x005a] A[DONT_GENERATE, DONT_INLINE]
      0x002b: PHI (r4v1 lv0) = (r4v0 lv0), (r4v2 lv0) binds: [B:10:0x0020, B:18:0x005a] A[DONT_GENERATE, DONT_INLINE]
      0x002b: PHI (r5v2 yi7) = (r5v1 yi7), (r5v3 yi7) binds: [B:10:0x0020, B:18:0x005a] A[DONT_GENERATE, DONT_INLINE]
      0x002b: PHI (r9v4 java.lang.Object) = (r9v0 java.lang.Object), (r9v10 java.lang.Object) binds: [B:10:0x0020, B:18:0x005a] A[DONT_GENERATE, DONT_INLINE]] */
    /* JADX WARN: Removed duplicated region for block: B:13:0x0033  */
    /* JADX WARN: Removed duplicated region for block: B:20:0x005d  */
    /* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:16:0x004d -> B:17:0x004e). Please report as a decompilation issue!!! */
    @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        int i;
        lv0 lv0Var;
        yi7 yi7Var;
        ck1 ck1Var = ck1.a;
        int i2 = this.c;
        if (i2 == 0) {
            s38.b(obj);
            throw null;
        }
        if (i2 != 1) {
            if (i2 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            i = this.b;
            lv0Var = this.a;
            yi7Var = (yi7) this.d;
            s38.b(obj);
            this.d = yi7Var;
            this.a = lv0Var;
            this.b = i;
            this.c = 1;
            obj = lv0Var.b(this);
            if (obj != ck1Var) {
                if (((Boolean) obj).booleanValue()) {
                    return e6a.a;
                }
                int i3 = i + 1;
                hl4 hl4Var = new hl4(i, lv0Var.next());
                this.d = yi7Var;
                this.a = lv0Var;
                this.b = i3;
                this.c = 2;
                if (yi7Var.s(hl4Var, this) != ck1Var) {
                    i = i3;
                    this.d = yi7Var;
                    this.a = lv0Var;
                    this.b = i;
                    this.c = 1;
                    obj = lv0Var.b(this);
                    if (obj != ck1Var) {
                    }
                }
            }
            return ck1Var;
        }
        i = this.b;
        lv0Var = this.a;
        yi7Var = (yi7) this.d;
        s38.b(obj);
        if (((Boolean) obj).booleanValue()) {
        }
    }
}
