package o;

import android.net.Uri;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Fu, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class C0150Fu 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 f128o;
    public final /* synthetic */ InterfaceC1191fR p;
    public final /* synthetic */ InterfaceC1191fR q;

    public /* synthetic */ C0150Fu(InterfaceC1191fR interfaceC1191fR, InterfaceC1191fR interfaceC1191fR2, InterfaceC1191fR interfaceC1191fR3, InterfaceC1191fR interfaceC1191fR4, InterfaceC1191fR interfaceC1191fR5, int i) {
        this.l = i;
        this.m = interfaceC1191fR;
        this.n = interfaceC1191fR2;
        this.f128o = interfaceC1191fR3;
        this.p = interfaceC1191fR4;
        this.q = interfaceC1191fR5;
    }

    @Override // o.OC
    public final Object g(Object obj) {
        Uri uri = (Uri) obj;
        switch (this.l) {
            case 0:
                InterfaceC1191fR interfaceC1191fR = this.m;
                Ki0 ki0 = (Ki0) interfaceC1191fR.getValue();
                if (uri != null && ki0 != null) {
                    int iOrdinal = ki0.ordinal();
                    if (iOrdinal == 0) {
                        this.n.setValue(uri);
                    } else if (iOrdinal == 1) {
                        this.f128o.setValue(uri);
                    } else {
                        if (iOrdinal != 2) {
                            throw new C2170pj();
                        }
                        this.p.setValue(uri);
                    }
                    this.q.setValue(null);
                }
                interfaceC1191fR.setValue(null);
                break;
            default:
                InterfaceC1191fR interfaceC1191fR2 = this.m;
                Ji0 ji0 = (Ji0) interfaceC1191fR2.getValue();
                if (uri != null && ji0 != null) {
                    int iOrdinal2 = ji0.ordinal();
                    if (iOrdinal2 == 0) {
                        this.n.setValue(uri);
                    } else if (iOrdinal2 == 1) {
                        this.f128o.setValue(uri);
                    } else {
                        if (iOrdinal2 != 2) {
                            throw new C2170pj();
                        }
                        this.p.setValue(uri);
                    }
                    this.q.setValue(null);
                }
                interfaceC1191fR2.setValue(null);
                break;
        }
        return Oh0.a;
    }
}
