package h3;

import com.debridstream.tv.screens.SearchViewModel;
import m3.AbstractC2467b;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class Z2 extends C4.j implements J4.e {

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

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public Z2(SearchViewModel searchViewModel, String str, A4.d dVar) {
        super(2, dVar);
        this.f17677b = searchViewModel;
        this.f17678c = str;
    }

    @Override // C4.a
    public final A4.d create(Object obj, A4.d dVar) {
        return new Z2(this.f17677b, this.f17678c, dVar);
    }

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

    /* JADX WARN: Code restructure failed: missing block: B:14:0x003c, code lost:
    
        if (r5.f17677b.runSearch(r6, r5) == r0) goto L15;
     */
    @Override // C4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invokeSuspend(Object obj) {
        B4.a aVar = B4.a.f492a;
        int i6 = this.f17676a;
        if (i6 == 0) {
            AbstractC2467b.l(obj);
            this.f17676a = 1;
            if (V4.E.l(1000L, this) != aVar) {
            }
            return aVar;
        }
        if (i6 != 1) {
            if (i6 != 2) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            AbstractC2467b.l(obj);
            return C3137A.f25453a;
        }
        AbstractC2467b.l(obj);
        String string = S4.p.o1(this.f17678c).toString();
        this.f17676a = 2;
    }
}
