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.AllSettingsResponse;
import com.martsnew.data.model.response.ContactLinkResponse;
import com.martsnew.data.model.response.DownloaderResponse;
import com.martsnew.data.model.response.ListPlayerResponse;
import e5.InterfaceC0881a;

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

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

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

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

    @Override // O6.p
    public final Object k(Object obj, Object obj2) {
        return ((C0927D) 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 C0927D(this.f12721v, dVar);
    }

    @Override // G6.a
    public final Object p(Object obj) throws Throwable {
        F6.a aVar = F6.a.f2580q;
        int i = this.f12720u;
        C0929F c0929f = this.f12721v;
        if (i == 0) {
            C1.N(obj);
            InterfaceC0881a interfaceC0881a = c0929f.f12724a;
            String strG = g6.o.f12958a.g();
            this.f12720u = 1;
            obj = interfaceC0881a.n(strG, this);
            if (obj == aVar) {
                return aVar;
            }
        } else {
            if (i != 1) {
                throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
            }
            C1.N(obj);
        }
        AllSettingsResponse allSettingsResponse = (AllSettingsResponse) obj;
        C0405d c0405d = c0929f.f12726c;
        g6.o oVar = g6.o.f12958a;
        String strJ = oVar.J();
        ListPlayerResponse listPlayerResponse = allSettingsResponse.f10651a;
        SharedPreferences.Editor editorEdit = c0405d.f7619a.edit();
        editorEdit.putString(strJ, c0405d.f7620b.a(ListPlayerResponse.class).d(listPlayerResponse));
        editorEdit.apply();
        C0405d c0405d2 = c0929f.f12726c;
        String strZ = oVar.z();
        SharedPreferences.Editor editorEdit2 = c0405d2.f7619a.edit();
        editorEdit2.putString(strZ, c0405d2.f7620b.a(DownloaderResponse.class).d(allSettingsResponse.f10652b));
        editorEdit2.apply();
        String strB = oVar.B();
        SharedPreferences.Editor editorEdit3 = c0405d2.f7619a.edit();
        editorEdit3.putString(strB, c0405d2.f7620b.a(ContactLinkResponse.class).d(allSettingsResponse.f10653c));
        editorEdit3.apply();
        String strE = oVar.E();
        Integer num = new Integer(oVar.a(allSettingsResponse.f10654d));
        SharedPreferences.Editor editorEdit4 = c0405d2.f7619a.edit();
        editorEdit4.putInt(strE, num.intValue());
        editorEdit4.apply();
        return new X4.b(allSettingsResponse);
    }
}
