int qemu_uuid_parse(const char *str, uint8_t *uuid)

{

    int ret;



    if(strlen(str) != 36)

        return -1;



    ret = sscanf(str, UUID_FMT, &uuid[0], &uuid[1], &uuid[2], &uuid[3],

            &uuid[4], &uuid[5], &uuid[6], &uuid[7], &uuid[8], &uuid[9],

            &uuid[10], &uuid[11], &uuid[12], &uuid[13], &uuid[14], &uuid[15]);



    if(ret != 16)

        return -1;



#ifdef TARGET_I386

    smbios_add_field(1, offsetof(struct smbios_type_1, uuid), 16, uuid);

#endif



    return 0;

}

int qemu_uuid_parse(const char *str, uint8_t *uuid)

{

    int ret;



    if(strlen(str) != 36)

        return -1;



    ret = sscanf(str, UUID_FMT, &uuid[0], &uuid[1], &uuid[2], &uuid[3],

            &uuid[4], &uuid[5], &uuid[6], &uuid[7], &uuid[8], &uuid[9],

            &uuid[10], &uuid[11], &uuid[12], &uuid[13], &uuid[14], &uuid[15]);



    if(ret != 16)

        return -1;



#ifdef TARGET_I386

    smbios_add_field(1, offsetof(struct smbios_type_1, uuid), 16, uuid);

#endif



    return 0;

}

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

{

    int VAR_2;



    if(strlen(VAR_0) != 36)

        return -1;



    VAR_2 = sscanf(VAR_0, UUID_FMT, &VAR_1[0], &VAR_1[1], &VAR_1[2], &VAR_1[3],

            &VAR_1[4], &VAR_1[5], &VAR_1[6], &VAR_1[7], &VAR_1[8], &VAR_1[9],

            &VAR_1[10], &VAR_1[11], &VAR_1[12], &VAR_1[13], &VAR_1[14], &VAR_1[15]);



    if(VAR_2 != 16)

        return -1;



#ifdef TARGET_I386

    smbios_add_field(1, offsetof(struct smbios_type_1, VAR_1), 16, VAR_1);

#endif



    return 0;

}

int FUNC_0(const char *VAR_0, uint8_t *VAR_1)
{ int VAR_2; if(strlen(VAR_0) != 36)
return -1; VAR_2 = sscanf(VAR_0, UUID_FMT, &VAR_1[0], &VAR_1[1], &VAR_1[2], &VAR_1[3],
&VAR_1[4], &VAR_1[5], &VAR_1[6], &VAR_1[7], &VAR_1[8], &VAR_1[9],
&VAR_1[10], &VAR_1[11], &VAR_1[12], &VAR_1[13], &VAR_1[14], &VAR_1[15]); if(VAR_2 != 16)
return -1; #ifdef TARGET_I386
smbios_add_field(1, offsetof(struct smbios_type_1, VAR_1), 16, VAR_1); #endif
return 0; }