package o;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.gu, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C1336gu implements OC {
    public final /* synthetic */ int l;
    public final /* synthetic */ InterfaceC1191fR m;
    public final /* synthetic */ InterfaceC1191fR n;

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ InterfaceC1191fR f546o;

    public /* synthetic */ C1336gu(InterfaceC1191fR interfaceC1191fR, InterfaceC1191fR interfaceC1191fR2, InterfaceC1191fR interfaceC1191fR3, int i) {
        this.l = i;
        this.m = interfaceC1191fR;
        this.n = interfaceC1191fR2;
        this.f546o = interfaceC1191fR3;
    }

    @Override // o.OC
    public final Object g(Object obj) {
        switch (this.l) {
            case 0:
                String str = (String) obj;
                InterfaceC1191fR interfaceC1191fR = this.m;
                interfaceC1191fR.setValue(C0953cu.a((C0953cu) interfaceC1191fR.getValue(), null, null, null, str, 7));
                this.n.setValue(null);
                this.f546o.setValue(Boolean.FALSE);
                break;
            case 1:
                boolean zBooleanValue = ((Boolean) obj).booleanValue();
                InterfaceC1191fR interfaceC1191fR2 = this.m;
                NC nc = (NC) interfaceC1191fR2.getValue();
                interfaceC1191fR2.setValue(null);
                if (!zBooleanValue) {
                    InterfaceC1191fR interfaceC1191fR3 = this.n;
                    interfaceC1191fR3.setValue(Integer.valueOf(((Number) interfaceC1191fR3.getValue()).intValue() + 1));
                    if (((Number) interfaceC1191fR3.getValue()).intValue() >= 2) {
                        YT.f(this.f546o, true);
                    }
                }
                if (nc != null) {
                    nc.a();
                }
                return Oh0.a;
            default:
                String str2 = (String) obj;
                InterfaceC1191fR interfaceC1191fR4 = this.m;
                interfaceC1191fR4.setValue(Ei0.a((Ei0) interfaceC1191fR4.getValue(), null, null, null, str2, 7));
                this.n.setValue(null);
                this.f546o.setValue(Boolean.FALSE);
                break;
        }
        return Oh0.a;
    }
}
