int qemu_pixman_get_type(int rshift, int gshift, int bshift)

{

    int type = PIXMAN_TYPE_OTHER;



    if (rshift > gshift && gshift > bshift) {

        if (bshift == 0) {

            type = PIXMAN_TYPE_ARGB;

        } else {

#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0, 21, 8)

            type = PIXMAN_TYPE_RGBA;

#endif

        }

    } else if (rshift < gshift && gshift < bshift) {

        if (rshift == 0) {

            type = PIXMAN_TYPE_ABGR;

        } else {

#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0, 21, 8)

            type = PIXMAN_TYPE_BGRA;

#endif

        }

    }

    return type;

}

int qemu_pixman_get_type(int rshift, int gshift, int bshift)

{

    int type = PIXMAN_TYPE_OTHER;



    if (rshift > gshift && gshift > bshift) {

        if (bshift == 0) {

            type = PIXMAN_TYPE_ARGB;

        } else {

#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0, 21, 8)

            type = PIXMAN_TYPE_RGBA;

#endif

        }

    } else if (rshift < gshift && gshift < bshift) {

        if (rshift == 0) {

            type = PIXMAN_TYPE_ABGR;

        } else {

#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0, 21, 8)

            type = PIXMAN_TYPE_BGRA;

#endif

        }

    }

    return type;

}

int FUNC_0(int VAR_0, int VAR_1, int VAR_2)

{

    int VAR_3 = PIXMAN_TYPE_OTHER;



    if (VAR_0 > VAR_1 && VAR_1 > VAR_2) {

        if (VAR_2 == 0) {

            VAR_3 = PIXMAN_TYPE_ARGB;

        } else {

#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0, 21, 8)

            VAR_3 = PIXMAN_TYPE_RGBA;

#endif

        }

    } else if (VAR_0 < VAR_1 && VAR_1 < VAR_2) {

        if (VAR_0 == 0) {

            VAR_3 = PIXMAN_TYPE_ABGR;

        } else {

#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0, 21, 8)

            VAR_3 = PIXMAN_TYPE_BGRA;

#endif

        }

    }

    return VAR_3;

}

int FUNC_0(int VAR_0, int VAR_1, int VAR_2)
{ int VAR_3 = PIXMAN_TYPE_OTHER; if (VAR_0 > VAR_1 && VAR_1 > VAR_2) { if (VAR_2 == 0) { VAR_3 = PIXMAN_TYPE_ARGB; } else { #if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0, 21, 8)
VAR_3 = PIXMAN_TYPE_RGBA; #endif
} } else if (VAR_0 < VAR_1 && VAR_1 < VAR_2) { if (VAR_0 == 0) { VAR_3 = PIXMAN_TYPE_ABGR; } else { #if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0, 21, 8)
VAR_3 = PIXMAN_TYPE_BGRA; #endif
} } return VAR_3; }