package f5;

import Z6.InterfaceC0382w;
import a5.C0405d;
import android.content.SharedPreferences;
import com.google.android.gms.internal.measurement.C1;
import com.martsnew.data.model.response.GenreListResponse;
import d5.AbstractC0844a;
import e5.InterfaceC0881a;

/* JADX INFO: renamed from: f5.l, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final class C0951l extends G6.i implements O6.p {

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

    /* JADX INFO: renamed from: v, reason: collision with root package name */
    public final /* synthetic */ C0926C f12805v;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public C0951l(C0926C c0926c, E6.d dVar) {
        super(2, dVar);
        this.f12805v = c0926c;
    }

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((C0951l) m((E6.d) obj2, (InterfaceC0382w) obj)).p(A6.n.f457a);
    }

    @Override // G6.a
    public final E6.d m(E6.d dVar, Object obj) {
        return new C0951l(this.f12805v, dVar);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        F6.a aVar = F6.a.f2580q;
        int i = this.f12804u;
        C0926C c0926c = this.f12805v;
        if (i == 0) {
            C1.N(obj);
            InterfaceC0881a interfaceC0881a = c0926c.f12713a;
            String strL = AbstractC0844a.l(C1.v(c0926c.f12714b), g6.o.f12958a.w());
            this.f12804u = 1;
            obj = interfaceC0881a.x(strL, this);
            if (obj == aVar) {
                return aVar;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
        }
        GenreListResponse genreListResponse = (GenreListResponse) obj;
        C0405d c0405d = c0926c.f12714b;
        String strG = g6.o.f12958a.G();
        SharedPreferences.Editor editorEdit = c0405d.f7619a.edit();
        editorEdit.putString(strG, c0405d.f7620b.a(GenreListResponse.class).d(genreListResponse));
        editorEdit.apply();
        return new X4.b(genreListResponse);
    }
}
