package m1;

import J0.RunnableC0394y;
import android.os.Handler;
import android.os.Looper;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final class k extends kotlin.jvm.internal.p implements J4.c {

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

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

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public /* synthetic */ k(l lVar, int i6) {
        super(1);
        this.f20442a = i6;
        this.f20443b = lVar;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        switch (this.f20442a) {
            case 0:
                J4.a aVar = (J4.a) obj;
                if (kotlin.jvm.internal.o.c(Looper.myLooper(), Looper.getMainLooper())) {
                    aVar.invoke();
                } else {
                    l lVar = this.f20443b;
                    Handler handler = lVar.f20445b;
                    if (handler == null) {
                        handler = new Handler(Looper.getMainLooper());
                        lVar.f20445b = handler;
                    }
                    handler.post(new RunnableC0394y(aVar, 9));
                }
                break;
            default:
                this.f20443b.f20447d = true;
                break;
        }
        return C3137A.f25453a;
    }
}
