package o;

import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import java.io.File;
import java.nio.ByteBuffer;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.s9, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C2408s9 implements InterfaceC0360Nx {
    public final /* synthetic */ int a;

    public /* synthetic */ C2408s9(int i) {
        this.a = i;
    }

    @Override // o.InterfaceC0360Nx
    public final InterfaceC0386Ox a(Object obj, NU nu) {
        switch (this.a) {
            case 0:
                Uri uri = (Uri) obj;
                if (AbstractC1345h.c(uri)) {
                    return new C2503t9(uri, nu, 0);
                }
                return null;
            case 1:
                return new C0366Od((Bitmap) obj, nu, 0);
            case 2:
                return new C0366Od((ByteBuffer) obj, nu, 1);
            case 3:
                Uri uri2 = (Uri) obj;
                if (F3.c(uri2.getScheme(), "content")) {
                    return new C2503t9(uri2, nu, 1);
                }
                return null;
            case 4:
                return new C0366Od((Drawable) obj, nu, 2);
            case 5:
                return new C0542Ux((File) obj);
            default:
                Uri uri3 = (Uri) obj;
                if (F3.c(uri3.getScheme(), "android.resource")) {
                    return new C2503t9(uri3, nu, 2);
                }
                return null;
        }
    }
}
