package h3;

import androidx.compose.runtime.MutableState;
import coil.compose.AsyncImagePainter;
import w4.C3137A;

/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class W3 implements J4.c {

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

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

    public /* synthetic */ W3(MutableState mutableState, int i6) {
        this.f17555a = i6;
        this.f17556b = mutableState;
    }

    @Override // J4.c
    public final Object invoke(Object obj) {
        switch (this.f17555a) {
            case 0:
                Boolean bool = (Boolean) obj;
                bool.booleanValue();
                this.f17556b.setValue(bool);
                break;
            case 1:
                if (!((Boolean) obj).booleanValue()) {
                    this.f17556b.setValue(Boolean.FALSE);
                }
                break;
            case 2:
                AsyncImagePainter.State.Error it = (AsyncImagePainter.State.Error) obj;
                kotlin.jvm.internal.o.h(it, "it");
                this.f17556b.setValue(Boolean.TRUE);
                break;
            case 3:
                if (!((Boolean) obj).booleanValue()) {
                    this.f17556b.setValue(Boolean.FALSE);
                }
                break;
            default:
                AsyncImagePainter.State.Error it2 = (AsyncImagePainter.State.Error) obj;
                kotlin.jvm.internal.o.h(it2, "it");
                this.f17556b.setValue(Boolean.TRUE);
                break;
        }
        return C3137A.f25453a;
    }
}
