static int qcow2_probe(const uint8_t *buf, int buf_size, const char *filename)

{

    const QCowHeader *cow_header = (const void *)buf;



    if (buf_size >= sizeof(QCowHeader) &&

        be32_to_cpu(cow_header->magic) == QCOW_MAGIC &&

        be32_to_cpu(cow_header->version) >= QCOW_VERSION)

        return 100;

    else

        return 0;

}

static int qcow2_probe(const uint8_t *buf, int buf_size, const char *filename)

{

    const QCowHeader *cow_header = (const void *)buf;



    if (buf_size >= sizeof(QCowHeader) &&

        be32_to_cpu(cow_header->magic) == QCOW_MAGIC &&

        be32_to_cpu(cow_header->version) >= QCOW_VERSION)

        return 100;

    else

        return 0;

}

static int FUNC_0(const uint8_t *VAR_0, int VAR_1, const char *VAR_2)

{

    const QCowHeader *VAR_3 = (const void *)VAR_0;



    if (VAR_1 >= sizeof(QCowHeader) &&

        be32_to_cpu(VAR_3->magic) == QCOW_MAGIC &&

        be32_to_cpu(VAR_3->version) >= QCOW_VERSION)

        return 100;

    else

        return 0;

}

static int FUNC_0(const uint8_t *VAR_0, int VAR_1, const char *VAR_2)
{ const QCowHeader *VAR_3 = (const void *)VAR_0; if (VAR_1 >= sizeof(QCowHeader) &&
be32_to_cpu(VAR_3->magic) == QCOW_MAGIC &&
be32_to_cpu(VAR_3->version) >= QCOW_VERSION)
return 100; else
return 0; }