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

{

    const struct cow_header_v2 *cow_header = (const void *)buf;



    if (buf_size >= sizeof(struct cow_header_v2) &&

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

        be32_to_cpu(cow_header->version) == COW_VERSION)

        return 100;

    else

        return 0;

}

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

{

    const struct cow_header_v2 *cow_header = (const void *)buf;



    if (buf_size >= sizeof(struct cow_header_v2) &&

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

        be32_to_cpu(cow_header->version) == COW_VERSION)

        return 100;

    else

        return 0;

}

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

{

    const struct cow_header_v2 *VAR_3 = (const void *)VAR_0;



    if (VAR_1 >= sizeof(struct cow_header_v2) &&

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

        be32_to_cpu(VAR_3->version) == COW_VERSION)

        return 100;

    else

        return 0;

}

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