
void volume_id_set_uuid(volume_id *id,uint8_t *buf,uuid_format format)

{
  uint uVar1;
  uint8_t uVar2;
  uint uVar3;
  
  if (format == UUID_DCE_STRING) {
    uVar3 = 0x24;
    if (*buf != '\0') goto LAB_000979e4;
LAB_00097970:
    uVar1 = 0;
    do {
      uVar1 = uVar1 + 1;
      if (uVar3 <= uVar1) {
        return;
      }
    } while (buf[uVar1] == '\0');
    uVar2 = '\0';
  }
  else {
    uVar3 = 4 << (format & 0x1f);
    if (uVar3 == 0) {
      return;
    }
    uVar2 = *buf;
    if (uVar2 == '\0') goto LAB_00097970;
  }
  if (format == UUID_NTFS) {
    (*(code *)PTR___sprintf_chk_0012ac60)
              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6048,
               buf[7],buf[6],buf[5],buf[4],buf[3],buf[2],buf[1],uVar2);
    return;
  }
  if (format == UUID_DOS) {
    (*(code *)PTR___sprintf_chk_0012ac60)
              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x605c,
               buf[3],buf[2],buf[1],uVar2);
    return;
  }
  if (format == UUID_DCE) {
    (*(code *)PTR___sprintf_chk_0012ac60)
              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6024,
               uVar2,buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]
               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]);
    return;
  }
  if (format != UUID_DCE_STRING) {
    return;
  }
LAB_000979e4:
  (*(code *)PTR_memcpy_0012b150)(id->uuid,buf,uVar3);
  id->uuid[uVar3] = '\0';
  return;
}



void FUN_0009791c(int param_1,char *param_2,uint param_3)

{
  uint uVar1;
  char cVar2;
  uint uVar3;
  
  if (param_3 == 3) {
    uVar3 = 0x24;
    if (*param_2 != '\0') goto LAB_000979e4;
LAB_00097970:
    uVar1 = 0;
    do {
      uVar1 = uVar1 + 1;
      if (uVar3 <= uVar1) {
        return;
      }
    } while (param_2[uVar1] == '\0');
    cVar2 = '\0';
  }
  else {
    uVar3 = 4 << (param_3 & 0x1f);
    if (uVar3 == 0) {
      return;
    }
    cVar2 = *param_2;
    if (cVar2 == '\0') goto LAB_00097970;
  }
  if (param_3 == 1) {
    (*(code *)PTR___sprintf_chk_0012ac60)
              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],
               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);
    return;
  }
  if (param_3 == 0) {
    (*(code *)PTR___sprintf_chk_0012ac60)
              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],
               param_2[1],cVar2);
    return;
  }
  if (param_3 == 2) {
    (*(code *)PTR___sprintf_chk_0012ac60)
              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],
               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],
               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);
    return;
  }
  if (param_3 != 3) {
    return;
  }
LAB_000979e4:
  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);
  *(undefined1 *)(param_1 + uVar3 + 0x61) = 0;
  return;
}


lui gp,0xa
addiu gp,gp,-0x57cc
addu gp,gp,t9
addiu sp,sp,-0x70
li v1,0x3
or v0,a1,zero
sw gp,0x50(sp)
sw s1,0x60(sp)
or s1,a0,zero
sw ra,0x6c(sp)
sw s3,0x68(sp)
sw s2,0x64(sp)
beq a2,v1,0x000979d4
_sw s0,0x5c(sp)
li s0,0x4
sllv s0,s0,a2
beq s0,zero,0x000979b8
_nop
lbu v1,0x0(a1)
bne v1,zero,0x00097994
_li a0,0x1
or v1,zero,zero
addiu v1,v1,0x1
sltu a0,v1,s0
beq a0,zero,0x000979b8
_addu a0,v0,v1
lbu a0,0x0(a0)
beq a0,zero,0x00097974
_li a0,0x1
or v1,zero,zero
beq a2,a0,0x00097a18
_lw a3,-0x7fa8(gp)
beq a2,zero,0x00097a88
_li a0,0x2
beq a2,a0,0x00097adc
_lw a3,-0x7fa8(gp)
li v1,0x3
beq a2,v1,0x000979e4
_lw t9,-0x7000(gp)
lw ra,0x6c(sp)
lw s3,0x68(sp)
lw s2,0x64(sp)
lw s1,0x60(sp)
lw s0,0x5c(sp)
jr ra
_addiu sp,sp,0x70
lbu v1,0x0(a1)
beq v1,zero,0x00097970
_li s0,0x24
lw t9,-0x7000(gp)
or a2,s0,zero
addu s0,s1,s0
addiu a0,s1,0x61
jalr t9
_or a1,v0,zero
sb zero,0x61(s0)
lw ra,0x6c(sp)
lw s3,0x68(sp)
lw s2,0x64(sp)
lw s1,0x60(sp)
lw s0,0x5c(sp)
jr ra
_addiu sp,sp,0x70
addiu a0,s1,0x61
lbu t5,0x1(v0)
li a2,-0x1
lbu t4,0x2(v0)
li a1,0x1
lbu t3,0x3(v0)
addiu a3,a3,-0x6048
lbu t2,0x4(v0)
lbu t1,0x5(v0)
lbu t0,0x6(v0)
lbu v0,0x7(v0)
lw t9,-0x74f0(gp)
sw v1,0x2c(sp)
sw t5,0x28(sp)
sw t4,0x24(sp)
sw t3,0x20(sp)
sw t2,0x1c(sp)
sw t1,0x18(sp)
sw t0,0x14(sp)
jalr t9
_sw v0,0x10(sp)
lw ra,0x6c(sp)
lw s3,0x68(sp)
lw s2,0x64(sp)
lw s1,0x60(sp)
lw s0,0x5c(sp)
jr ra
_addiu sp,sp,0x70
lw a3,-0x7fa8(gp)
addiu a0,s1,0x61
lbu t1,0x1(v0)
li a2,-0x1
lbu t0,0x2(v0)
li a1,0x1
lbu v0,0x3(v0)
addiu a3,a3,-0x605c
lw t9,-0x74f0(gp)
sw v1,0x1c(sp)
sw t1,0x18(sp)
sw t0,0x14(sp)
jalr t9
_sw v0,0x10(sp)
lw ra,0x6c(sp)
lw s3,0x68(sp)
lw s2,0x64(sp)
lw s1,0x60(sp)
lw s0,0x5c(sp)
jr ra
_addiu sp,sp,0x70
addiu a0,s1,0x61
lbu s3,0xf(v0)
li a2,-0x1
lbu s2,0xe(v0)
li a1,0x1
lbu ra,0xd(v0)
addiu a3,a3,-0x6024
lbu s1,0xc(v0)
lbu s0,0xb(v0)
lbu t8,0xa(v0)
lbu t7,0x9(v0)
lbu t6,0x8(v0)
lbu t5,0x7(v0)
lbu t4,0x6(v0)
lbu t3,0x5(v0)
lbu t2,0x4(v0)
lbu t1,0x3(v0)
lbu t0,0x2(v0)
lbu v0,0x1(v0)
lw t9,-0x74f0(gp)
sw s3,0x4c(sp)
sw s2,0x48(sp)
sw ra,0x44(sp)
sw s1,0x40(sp)
sw s0,0x3c(sp)
sw t8,0x38(sp)
sw t7,0x34(sp)
sw t6,0x30(sp)
sw t5,0x2c(sp)
sw t4,0x28(sp)
sw t3,0x24(sp)
sw t2,0x20(sp)
sw t1,0x1c(sp)
sw t0,0x18(sp)
sw v1,0x10(sp)
jalr t9
_sw v0,0x14(sp)
lw ra,0x6c(sp)
lw s3,0x68(sp)
lw s2,0x64(sp)
lw s1,0x60(sp)
lw s0,0x5c(sp)
jr ra
_addiu sp,sp,0x70
(translation_unit "void FUN_0009791c(int param_1,char *param_2,uint param_3)\n\n{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  \n  if (param_3 == 3) {\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }\n  if (param_3 == 1) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 0) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 2) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }\n  if (param_3 != 3) {\n    return;\n  }\nLAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);\n  *(undefined1 *)(param_1 + uVar3 + 0x61) = 0;\n  return;\n}\n\n" (function_definition "void FUN_0009791c(int param_1,char *param_2,uint param_3)\n\n{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  \n  if (param_3 == 3) {\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }\n  if (param_3 == 1) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 0) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 2) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }\n  if (param_3 != 3) {\n    return;\n  }\nLAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);\n  *(undefined1 *)(param_1 + uVar3 + 0x61) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_0009791c(int param_1,char *param_2,uint param_3)" identifier (parameter_list "(int param_1,char *param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  \n  if (param_3 == 3) {\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }\n  if (param_3 == 1) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 0) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 2) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }\n  if (param_3 != 3) {\n    return;\n  }\nLAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);\n  *(undefined1 *)(param_1 + uVar3 + 0x61) = 0;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (param_3 == 3) {\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }" if (parenthesized_expression "(param_3 == 3)" ( (binary_expression "param_3 == 3" identifier == number_literal) )) (compound_statement "{\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }" { (expression_statement "uVar3 = 0x24;" (assignment_expression "uVar3 = 0x24" identifier = number_literal) ;) (if_statement "if (*param_2 != '\0') goto LAB_000979e4;" if (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000979e4;" goto statement_identifier ;)) (labeled_statement "LAB_00097970:\n    uVar1 = 0;" statement_identifier : (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;)) (do_statement "do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');" do (compound_statement "{\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    }" { (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (if_statement "if (uVar3 <= uVar1) {\n        return;\n      }" if (parenthesized_expression "(uVar3 <= uVar1)" ( (binary_expression "uVar3 <= uVar1" identifier <= identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "(param_2[uVar1] == '\0')" ( (binary_expression "param_2[uVar1] == '\0'" (subscript_expression "param_2[uVar1]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "cVar2 = '\0';" (assignment_expression "cVar2 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }" else (compound_statement "{\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }" { (expression_statement "uVar3 = 4 << (param_3 & 0x1f);" (assignment_expression "uVar3 = 4 << (param_3 & 0x1f)" identifier = (binary_expression "4 << (param_3 & 0x1f)" number_literal << (parenthesized_expression "(param_3 & 0x1f)" ( (binary_expression "param_3 & 0x1f" identifier & number_literal) )))) ;) (if_statement "if (uVar3 == 0) {\n      return;\n    }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "cVar2 = *param_2;" (assignment_expression "cVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (cVar2 == '\0') goto LAB_00097970;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00097970;" goto statement_identifier ;)) }))) (if_statement "if (param_3 == 1) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }" { (expression_statement "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);" (call_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0012ac60)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0012ac60" * (cast_expression "(code *)PTR___sprintf_chk_0012ac60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2)" ( (binary_expression "param_1 + 0x61" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x6048" identifier + number_literal) , (subscript_expression "param_2[7]" identifier [ number_literal ]) , (subscript_expression "param_2[6]" identifier [ number_literal ]) , (subscript_expression "param_2[5]" identifier [ number_literal ]) , (subscript_expression "param_2[4]" identifier [ number_literal ]) , (subscript_expression "param_2[3]" identifier [ number_literal ]) , (subscript_expression "param_2[2]" identifier [ number_literal ]) , (subscript_expression "param_2[1]" identifier [ number_literal ]) , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_3 == 0) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }" { (expression_statement "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);" (call_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0012ac60)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0012ac60" * (cast_expression "(code *)PTR___sprintf_chk_0012ac60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2)" ( (binary_expression "param_1 + 0x61" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x605c" identifier + number_literal) , (subscript_expression "param_2[3]" identifier [ number_literal ]) , (subscript_expression "param_2[2]" identifier [ number_literal ]) , (subscript_expression "param_2[1]" identifier [ number_literal ]) , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_3 == 2) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }" if (parenthesized_expression "(param_3 == 2)" ( (binary_expression "param_3 == 2" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }" { (expression_statement "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);" (call_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf])" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0012ac60)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0012ac60" * (cast_expression "(code *)PTR___sprintf_chk_0012ac60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf])" ( (binary_expression "param_1 + 0x61" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x6024" identifier + number_literal) , identifier , (subscript_expression "param_2[1]" identifier [ number_literal ]) , (subscript_expression "param_2[2]" identifier [ number_literal ]) , (subscript_expression "param_2[3]" identifier [ number_literal ]) , (subscript_expression "param_2[4]" identifier [ number_literal ]) , (subscript_expression "param_2[5]" identifier [ number_literal ]) , (subscript_expression "param_2[6]" identifier [ number_literal ]) , (subscript_expression "param_2[7]" identifier [ number_literal ]) , (subscript_expression "param_2[8]" identifier [ number_literal ]) , (subscript_expression "param_2[9]" identifier [ number_literal ]) , (subscript_expression "param_2[10]" identifier [ number_literal ]) , (subscript_expression "param_2[0xb]" identifier [ number_literal ]) , (subscript_expression "param_2[0xc]" identifier [ number_literal ]) , (subscript_expression "param_2[0xd]" identifier [ number_literal ]) , (subscript_expression "param_2[0xe]" identifier [ number_literal ]) , (subscript_expression "param_2[0xf]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_3 != 3) {\n    return;\n  }" if (parenthesized_expression "(param_3 != 3)" ( (binary_expression "param_3 != 3" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);" statement_identifier : (expression_statement "(*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);" (call_expression "(*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_0012b150)" ( (pointer_expression "*(code *)PTR_memcpy_0012b150" * (cast_expression "(code *)PTR_memcpy_0012b150" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x61,param_2,uVar3)" ( (binary_expression "param_1 + 0x61" identifier + number_literal) , identifier , identifier ))) ;)) (expression_statement "*(undefined1 *)(param_1 + uVar3 + 0x61) = 0;" (assignment_expression "*(undefined1 *)(param_1 + uVar3 + 0x61) = 0" (pointer_expression "*(undefined1 *)(param_1 + uVar3 + 0x61)" * (cast_expression "(undefined1 *)(param_1 + uVar3 + 0x61)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + uVar3 + 0x61)" ( (binary_expression "param_1 + uVar3 + 0x61" (binary_expression "param_1 + uVar3" identifier + identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void volume_id_set_uuid(volume_id *id,uint8_t *buf,uuid_format format)\n\n{\n  uint uVar1;\n  uint8_t uVar2;\n  uint uVar3;\n  \n  if (format == UUID_DCE_STRING) {\n    uVar3 = 0x24;\n    if (*buf != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (buf[uVar1] == '\0');\n    uVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (format & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    uVar2 = *buf;\n    if (uVar2 == '\0') goto LAB_00097970;\n  }\n  if (format == UUID_NTFS) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6048,\n               buf[7],buf[6],buf[5],buf[4],buf[3],buf[2],buf[1],uVar2);\n    return;\n  }\n  if (format == UUID_DOS) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x605c,\n               buf[3],buf[2],buf[1],uVar2);\n    return;\n  }\n  if (format == UUID_DCE) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6024,\n               uVar2,buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]);\n    return;\n  }\n  if (format != UUID_DCE_STRING) {\n    return;\n  }\nLAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(id->uuid,buf,uVar3);\n  id->uuid[uVar3] = '\0';\n  return;\n}\n\n" (function_definition "void volume_id_set_uuid(volume_id *id,uint8_t *buf,uuid_format format)\n\n{\n  uint uVar1;\n  uint8_t uVar2;\n  uint uVar3;\n  \n  if (format == UUID_DCE_STRING) {\n    uVar3 = 0x24;\n    if (*buf != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (buf[uVar1] == '\0');\n    uVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (format & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    uVar2 = *buf;\n    if (uVar2 == '\0') goto LAB_00097970;\n  }\n  if (format == UUID_NTFS) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6048,\n               buf[7],buf[6],buf[5],buf[4],buf[3],buf[2],buf[1],uVar2);\n    return;\n  }\n  if (format == UUID_DOS) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x605c,\n               buf[3],buf[2],buf[1],uVar2);\n    return;\n  }\n  if (format == UUID_DCE) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6024,\n               uVar2,buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]);\n    return;\n  }\n  if (format != UUID_DCE_STRING) {\n    return;\n  }\nLAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(id->uuid,buf,uVar3);\n  id->uuid[uVar3] = '\0';\n  return;\n}" primitive_type (function_declarator "volume_id_set_uuid(volume_id *id,uint8_t *buf,uuid_format format)" identifier (parameter_list "(volume_id *id,uint8_t *buf,uuid_format format)" ( (parameter_declaration "volume_id *id" type_identifier (pointer_declarator "*id" * identifier)) , (parameter_declaration "uint8_t *buf" primitive_type (pointer_declarator "*buf" * identifier)) , (parameter_declaration "uuid_format format" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint8_t uVar2;\n  uint uVar3;\n  \n  if (format == UUID_DCE_STRING) {\n    uVar3 = 0x24;\n    if (*buf != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (buf[uVar1] == '\0');\n    uVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (format & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    uVar2 = *buf;\n    if (uVar2 == '\0') goto LAB_00097970;\n  }\n  if (format == UUID_NTFS) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6048,\n               buf[7],buf[6],buf[5],buf[4],buf[3],buf[2],buf[1],uVar2);\n    return;\n  }\n  if (format == UUID_DOS) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x605c,\n               buf[3],buf[2],buf[1],uVar2);\n    return;\n  }\n  if (format == UUID_DCE) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6024,\n               uVar2,buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]);\n    return;\n  }\n  if (format != UUID_DCE_STRING) {\n    return;\n  }\nLAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(id->uuid,buf,uVar3);\n  id->uuid[uVar3] = '\0';\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint8_t uVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (format == UUID_DCE_STRING) {\n    uVar3 = 0x24;\n    if (*buf != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (buf[uVar1] == '\0');\n    uVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (format & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    uVar2 = *buf;\n    if (uVar2 == '\0') goto LAB_00097970;\n  }" if (parenthesized_expression "(format == UUID_DCE_STRING)" ( (binary_expression "format == UUID_DCE_STRING" identifier == identifier) )) (compound_statement "{\n    uVar3 = 0x24;\n    if (*buf != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (buf[uVar1] == '\0');\n    uVar2 = '\0';\n  }" { (expression_statement "uVar3 = 0x24;" (assignment_expression "uVar3 = 0x24" identifier = number_literal) ;) (if_statement "if (*buf != '\0') goto LAB_000979e4;" if (parenthesized_expression "(*buf != '\0')" ( (binary_expression "*buf != '\0'" (pointer_expression "*buf" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000979e4;" goto statement_identifier ;)) (labeled_statement "LAB_00097970:\n    uVar1 = 0;" statement_identifier : (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;)) (do_statement "do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (buf[uVar1] == '\0');" do (compound_statement "{\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    }" { (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (if_statement "if (uVar3 <= uVar1) {\n        return;\n      }" if (parenthesized_expression "(uVar3 <= uVar1)" ( (binary_expression "uVar3 <= uVar1" identifier <= identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "(buf[uVar1] == '\0')" ( (binary_expression "buf[uVar1] == '\0'" (subscript_expression "buf[uVar1]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar2 = '\0';" (assignment_expression "uVar2 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    uVar3 = 4 << (format & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    uVar2 = *buf;\n    if (uVar2 == '\0') goto LAB_00097970;\n  }" else (compound_statement "{\n    uVar3 = 4 << (format & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    uVar2 = *buf;\n    if (uVar2 == '\0') goto LAB_00097970;\n  }" { (expression_statement "uVar3 = 4 << (format & 0x1f);" (assignment_expression "uVar3 = 4 << (format & 0x1f)" identifier = (binary_expression "4 << (format & 0x1f)" number_literal << (parenthesized_expression "(format & 0x1f)" ( (binary_expression "format & 0x1f" identifier & number_literal) )))) ;) (if_statement "if (uVar3 == 0) {\n      return;\n    }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "uVar2 = *buf;" (assignment_expression "uVar2 = *buf" identifier = (pointer_expression "*buf" * identifier)) ;) (if_statement "if (uVar2 == '\0') goto LAB_00097970;" if (parenthesized_expression "(uVar2 == '\0')" ( (binary_expression "uVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00097970;" goto statement_identifier ;)) }))) (if_statement "if (format == UUID_NTFS) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6048,\n               buf[7],buf[6],buf[5],buf[4],buf[3],buf[2],buf[1],uVar2);\n    return;\n  }" if (parenthesized_expression "(format == UUID_NTFS)" ( (binary_expression "format == UUID_NTFS" identifier == identifier) )) (compound_statement "{\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6048,\n               buf[7],buf[6],buf[5],buf[4],buf[3],buf[2],buf[1],uVar2);\n    return;\n  }" { (expression_statement "(*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6048,\n               buf[7],buf[6],buf[5],buf[4],buf[3],buf[2],buf[1],uVar2);" (comma_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6048,\n               buf[7],buf[6],buf[5],buf[4],buf[3],buf[2],buf[1],uVar2" (binary_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6048" (call_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0012ac60)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0012ac60" * (cast_expression "(code *)PTR___sprintf_chk_0012ac60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (field_expression "id->uuid" identifier -> field_identifier) , number_literal , number_literal , (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , (comma_expression "buf[7],buf[6],buf[5],buf[4],buf[3],buf[2],buf[1],uVar2" (subscript_expression "buf[7]" identifier [ number_literal ]) , (comma_expression "buf[6],buf[5],buf[4],buf[3],buf[2],buf[1],uVar2" (subscript_expression "buf[6]" identifier [ number_literal ]) , (comma_expression "buf[5],buf[4],buf[3],buf[2],buf[1],uVar2" (subscript_expression "buf[5]" identifier [ number_literal ]) , (comma_expression "buf[4],buf[3],buf[2],buf[1],uVar2" (subscript_expression "buf[4]" identifier [ number_literal ]) , (comma_expression "buf[3],buf[2],buf[1],uVar2" (subscript_expression "buf[3]" identifier [ number_literal ]) , (comma_expression "buf[2],buf[1],uVar2" (subscript_expression "buf[2]" identifier [ number_literal ]) , (comma_expression "buf[1],uVar2" (subscript_expression "buf[1]" identifier [ number_literal ]) , identifier)))))))) (ERROR ")" )) ;) (return_statement "return;" return ;) })) (if_statement "if (format == UUID_DOS) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x605c,\n               buf[3],buf[2],buf[1],uVar2);\n    return;\n  }" if (parenthesized_expression "(format == UUID_DOS)" ( (binary_expression "format == UUID_DOS" identifier == identifier) )) (compound_statement "{\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x605c,\n               buf[3],buf[2],buf[1],uVar2);\n    return;\n  }" { (expression_statement "(*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x605c,\n               buf[3],buf[2],buf[1],uVar2);" (comma_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x605c,\n               buf[3],buf[2],buf[1],uVar2" (binary_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x605c" (call_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0012ac60)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0012ac60" * (cast_expression "(code *)PTR___sprintf_chk_0012ac60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (field_expression "id->uuid" identifier -> field_identifier) , number_literal , number_literal , (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , (comma_expression "buf[3],buf[2],buf[1],uVar2" (subscript_expression "buf[3]" identifier [ number_literal ]) , (comma_expression "buf[2],buf[1],uVar2" (subscript_expression "buf[2]" identifier [ number_literal ]) , (comma_expression "buf[1],uVar2" (subscript_expression "buf[1]" identifier [ number_literal ]) , identifier)))) (ERROR ")" )) ;) (return_statement "return;" return ;) })) (if_statement "if (format == UUID_DCE) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6024,\n               uVar2,buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]);\n    return;\n  }" if (parenthesized_expression "(format == UUID_DCE)" ( (binary_expression "format == UUID_DCE" identifier == identifier) )) (compound_statement "{\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6024,\n               uVar2,buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]);\n    return;\n  }" { (expression_statement "(*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6024,\n               uVar2,buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]);" (comma_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6024,\n               uVar2,buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (binary_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)9__f_l_0012a1a8 + -0x6024" (call_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0012ac60)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0012ac60" * (cast_expression "(code *)PTR___sprintf_chk_0012ac60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(id->uuid,1,0xffffffff,PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P)" ( (field_expression "id->uuid" identifier -> field_identifier) , number_literal , number_literal , (binary_expression "PTR_s_<_W_q_v1_HxLJ_&uD_sa_____P" (binary_expression "PTR_s_<_W_q_v1_HxLJ_" identifier < identifier) & identifier) ))) (ERROR "9__f_l_0012a1a8" number_literal identifier) + number_literal) , (comma_expression "uVar2,buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" identifier , (comma_expression "buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[1]" identifier [ number_literal ]) , (comma_expression "buf[2],buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[2]" identifier [ number_literal ]) , (comma_expression "buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[3]" identifier [ number_literal ]) , (comma_expression "buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[4]" identifier [ number_literal ]) , (comma_expression "buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[5]" identifier [ number_literal ]) , (comma_expression "buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[6]" identifier [ number_literal ]) , (comma_expression "buf[7],buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[7]" identifier [ number_literal ]) , (comma_expression "buf[8],buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[8]" identifier [ number_literal ]) , (comma_expression "buf[9],buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[9]" identifier [ number_literal ]) , (comma_expression "buf[10],buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[10]" identifier [ number_literal ]) , (comma_expression "buf[0xb]\n               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[0xb]" identifier [ number_literal ]) , (comma_expression "buf[0xc],buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[0xc]" identifier [ number_literal ]) , (comma_expression "buf[0xd],buf[0xe],buf[0xf]" (subscript_expression "buf[0xd]" identifier [ number_literal ]) , (comma_expression "buf[0xe],buf[0xf]" (subscript_expression "buf[0xe]" identifier [ number_literal ]) , (subscript_expression "buf[0xf]" identifier [ number_literal ]))))))))))))))))) (ERROR ")" )) ;) (return_statement "return;" return ;) })) (if_statement "if (format != UUID_DCE_STRING) {\n    return;\n  }" if (parenthesized_expression "(format != UUID_DCE_STRING)" ( (binary_expression "format != UUID_DCE_STRING" identifier != identifier) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(id->uuid,buf,uVar3);" statement_identifier : (expression_statement "(*(code *)PTR_memcpy_0012b150)(id->uuid,buf,uVar3);" (call_expression "(*(code *)PTR_memcpy_0012b150)(id->uuid,buf,uVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_0012b150)" ( (pointer_expression "*(code *)PTR_memcpy_0012b150" * (cast_expression "(code *)PTR_memcpy_0012b150" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(id->uuid,buf,uVar3)" ( (field_expression "id->uuid" identifier -> field_identifier) , identifier , identifier ))) ;)) (expression_statement "id->uuid[uVar3] = '\0';" (assignment_expression "id->uuid[uVar3] = '\0'" (subscript_expression "id->uuid[uVar3]" (field_expression "id->uuid" identifier -> field_identifier) [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0009791c(int param_1,char *param_2,uint param_3)\n\n{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  \n  if (param_3 == 3) {\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }\n  if (param_3 == 1) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 0) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 2) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }\n  if (param_3 != 3) {\n    return;\n  }\nLAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);\n  *(undefined1 *)(param_1 + uVar3 + 0x61) = 0;\n  return;\n}\n\n" (function_definition "void FUN_0009791c(int param_1,char *param_2,uint param_3)\n\n{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  \n  if (param_3 == 3) {\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }\n  if (param_3 == 1) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 0) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 2) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }\n  if (param_3 != 3) {\n    return;\n  }\nLAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);\n  *(undefined1 *)(param_1 + uVar3 + 0x61) = 0;\n  return;\n}" primitive_type (function_declarator "FUN_0009791c(int param_1,char *param_2,uint param_3)" identifier (parameter_list "(int param_1,char *param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  \n  if (param_3 == 3) {\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }\n  if (param_3 == 1) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 0) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 2) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }\n  if (param_3 != 3) {\n    return;\n  }\nLAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);\n  *(undefined1 *)(param_1 + uVar3 + 0x61) = 0;\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (param_3 == 3) {\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }" if (parenthesized_expression "(param_3 == 3)" ( (binary_expression "param_3 == 3" identifier == number_literal) )) (compound_statement "{\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }" { (expression_statement "uVar3 = 0x24;" (assignment_expression "uVar3 = 0x24" identifier = number_literal) ;) (if_statement "if (*param_2 != '\0') goto LAB_000979e4;" if (parenthesized_expression "(*param_2 != '\0')" ( (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000979e4;" goto statement_identifier ;)) (labeled_statement "LAB_00097970:\n    uVar1 = 0;" statement_identifier : (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;)) (do_statement "do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');" do (compound_statement "{\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    }" { (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (if_statement "if (uVar3 <= uVar1) {\n        return;\n      }" if (parenthesized_expression "(uVar3 <= uVar1)" ( (binary_expression "uVar3 <= uVar1" identifier <= identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "(param_2[uVar1] == '\0')" ( (binary_expression "param_2[uVar1] == '\0'" (subscript_expression "param_2[uVar1]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "cVar2 = '\0';" (assignment_expression "cVar2 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }) (else_clause "else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }" else (compound_statement "{\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }" { (expression_statement "uVar3 = 4 << (param_3 & 0x1f);" (assignment_expression "uVar3 = 4 << (param_3 & 0x1f)" identifier = (binary_expression "4 << (param_3 & 0x1f)" number_literal << (parenthesized_expression "(param_3 & 0x1f)" ( (binary_expression "param_3 & 0x1f" identifier & number_literal) )))) ;) (if_statement "if (uVar3 == 0) {\n      return;\n    }" if (parenthesized_expression "(uVar3 == 0)" ( (binary_expression "uVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "cVar2 = *param_2;" (assignment_expression "cVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (if_statement "if (cVar2 == '\0') goto LAB_00097970;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00097970;" goto statement_identifier ;)) }))) (if_statement "if (param_3 == 1) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }" if (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }" { (expression_statement "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);" (call_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0012ac60)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0012ac60" * (cast_expression "(code *)PTR___sprintf_chk_0012ac60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2)" ( (binary_expression "param_1 + 0x61" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x6048" identifier + number_literal) , (subscript_expression "param_2[7]" identifier [ number_literal ]) , (subscript_expression "param_2[6]" identifier [ number_literal ]) , (subscript_expression "param_2[5]" identifier [ number_literal ]) , (subscript_expression "param_2[4]" identifier [ number_literal ]) , (subscript_expression "param_2[3]" identifier [ number_literal ]) , (subscript_expression "param_2[2]" identifier [ number_literal ]) , (subscript_expression "param_2[1]" identifier [ number_literal ]) , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_3 == 0) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }" { (expression_statement "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);" (call_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0012ac60)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0012ac60" * (cast_expression "(code *)PTR___sprintf_chk_0012ac60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2)" ( (binary_expression "param_1 + 0x61" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x605c" identifier + number_literal) , (subscript_expression "param_2[3]" identifier [ number_literal ]) , (subscript_expression "param_2[2]" identifier [ number_literal ]) , (subscript_expression "param_2[1]" identifier [ number_literal ]) , identifier ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_3 == 2) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }" if (parenthesized_expression "(param_3 == 2)" ( (binary_expression "param_3 == 2" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }" { (expression_statement "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);" (call_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf])" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0012ac60)" ( (pointer_expression "*(code *)PTR___sprintf_chk_0012ac60" * (cast_expression "(code *)PTR___sprintf_chk_0012ac60" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf])" ( (binary_expression "param_1 + 0x61" identifier + number_literal) , number_literal , number_literal , (binary_expression "PTR_FUN_0012a1a8 + -0x6024" identifier + number_literal) , identifier , (subscript_expression "param_2[1]" identifier [ number_literal ]) , (subscript_expression "param_2[2]" identifier [ number_literal ]) , (subscript_expression "param_2[3]" identifier [ number_literal ]) , (subscript_expression "param_2[4]" identifier [ number_literal ]) , (subscript_expression "param_2[5]" identifier [ number_literal ]) , (subscript_expression "param_2[6]" identifier [ number_literal ]) , (subscript_expression "param_2[7]" identifier [ number_literal ]) , (subscript_expression "param_2[8]" identifier [ number_literal ]) , (subscript_expression "param_2[9]" identifier [ number_literal ]) , (subscript_expression "param_2[10]" identifier [ number_literal ]) , (subscript_expression "param_2[0xb]" identifier [ number_literal ]) , (subscript_expression "param_2[0xc]" identifier [ number_literal ]) , (subscript_expression "param_2[0xd]" identifier [ number_literal ]) , (subscript_expression "param_2[0xe]" identifier [ number_literal ]) , (subscript_expression "param_2[0xf]" identifier [ number_literal ]) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (param_3 != 3) {\n    return;\n  }" if (parenthesized_expression "(param_3 != 3)" ( (binary_expression "param_3 != 3" identifier != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (labeled_statement "LAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);" statement_identifier : (expression_statement "(*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);" (call_expression "(*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_0012b150)" ( (pointer_expression "*(code *)PTR_memcpy_0012b150" * (cast_expression "(code *)PTR_memcpy_0012b150" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + 0x61,param_2,uVar3)" ( (binary_expression "param_1 + 0x61" identifier + number_literal) , identifier , identifier ))) ;)) (expression_statement "*(undefined1 *)(param_1 + uVar3 + 0x61) = 0;" (assignment_expression "*(undefined1 *)(param_1 + uVar3 + 0x61) = 0" (pointer_expression "*(undefined1 *)(param_1 + uVar3 + 0x61)" * (cast_expression "(undefined1 *)(param_1 + uVar3 + 0x61)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + uVar3 + 0x61)" ( (binary_expression "param_1 + uVar3 + 0x61" (binary_expression "param_1 + uVar3" identifier + identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return ;) })) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , IDENT ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT , (binary_expression IDENT + LIT) , IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return ;) })) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_0009791c(int param_1,char *param_2,uint param_3)\n\n{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  \n  if (param_3 == 3) {\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }\n  if (param_3 == 1) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 0) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 2) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }\n  if (param_3 != 3) {\n    return;\n  }\nLAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);\n  *(undefined1 *)(param_1 + uVar3 + 0x61) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0009791c(int param_1,char *param_2,uint param_3)" (identifier "FUN_0009791c") (parameter_list "(int param_1,char *param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  char cVar2;\n  uint uVar3;\n  \n  if (param_3 == 3) {\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }\n  if (param_3 == 1) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 0) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }\n  if (param_3 == 2) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }\n  if (param_3 != 3) {\n    return;\n  }\nLAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);\n  *(undefined1 *)(param_1 + uVar3 + 0x61) = 0;\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (if_statement "if (param_3 == 3) {\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }\n  else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }" (if "if") (parenthesized_expression "(param_3 == 3)" (( "(") (binary_expression "param_3 == 3" (identifier "param_3") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n    uVar3 = 0x24;\n    if (*param_2 != '\0') goto LAB_000979e4;\nLAB_00097970:\n    uVar1 = 0;\n    do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');\n    cVar2 = '\0';\n  }" ({ "{") (expression_statement "uVar3 = 0x24;" (assignment_expression "uVar3 = 0x24" (identifier "uVar3") (= "=") (number_literal "0x24")) (; ";")) (if_statement "if (*param_2 != '\0') goto LAB_000979e4;" (if "if") (parenthesized_expression "(*param_2 != '\0')" (( "(") (binary_expression "*param_2 != '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000979e4;" (goto "goto") (statement_identifier "LAB_000979e4") (; ";"))) (labeled_statement "LAB_00097970:\n    uVar1 = 0;" (statement_identifier "LAB_00097970") (: ":") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";"))) (do_statement "do {\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    } while (param_2[uVar1] == '\0');" (do "do") (compound_statement "{\n      uVar1 = uVar1 + 1;\n      if (uVar3 <= uVar1) {\n        return;\n      }\n    }" ({ "{") (expression_statement "uVar1 = uVar1 + 1;" (assignment_expression "uVar1 = uVar1 + 1" (identifier "uVar1") (= "=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar3 <= uVar1) {\n        return;\n      }" (if "if") (parenthesized_expression "(uVar3 <= uVar1)" (( "(") (binary_expression "uVar3 <= uVar1" (identifier "uVar3") (<= "<=") (identifier "uVar1")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(param_2[uVar1] == '\0')" (( "(") (binary_expression "param_2[uVar1] == '\0'" (subscript_expression "param_2[uVar1]" (identifier "param_2") ([ "[") (identifier "uVar1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "cVar2 = '\0';" (assignment_expression "cVar2 = '\0'" (identifier "cVar2") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }" (else "else") (compound_statement "{\n    uVar3 = 4 << (param_3 & 0x1f);\n    if (uVar3 == 0) {\n      return;\n    }\n    cVar2 = *param_2;\n    if (cVar2 == '\0') goto LAB_00097970;\n  }" ({ "{") (expression_statement "uVar3 = 4 << (param_3 & 0x1f);" (assignment_expression "uVar3 = 4 << (param_3 & 0x1f)" (identifier "uVar3") (= "=") (binary_expression "4 << (param_3 & 0x1f)" (number_literal "4") (<< "<<") (parenthesized_expression "(param_3 & 0x1f)" (( "(") (binary_expression "param_3 & 0x1f" (identifier "param_3") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if (uVar3 == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(uVar3 == 0)" (( "(") (binary_expression "uVar3 == 0" (identifier "uVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "cVar2 = *param_2;" (assignment_expression "cVar2 = *param_2" (identifier "cVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (if_statement "if (cVar2 == '\0') goto LAB_00097970;" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00097970;" (goto "goto") (statement_identifier "LAB_00097970") (; ";"))) (} "}")))) (if_statement "if (param_3 == 1) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 == 1)" (( "(") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);" (call_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0012ac60)" (( "(") (pointer_expression "*(code *)PTR___sprintf_chk_0012ac60" (* "*") (cast_expression "(code *)PTR___sprintf_chk_0012ac60" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___sprintf_chk_0012ac60"))) () ")")) (argument_list "(param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],\n               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2)" (( "(") (binary_expression "param_1 + 0x61" (identifier "param_1") (+ "+") (number_literal "0x61")) (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "PTR_FUN_0012a1a8 + -0x6048" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x6048")) (, ",") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (, ",") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (, ",") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (, ",") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (, ",") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (, ",") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "cVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_3 == 0) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2);" (call_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0012ac60)" (( "(") (pointer_expression "*(code *)PTR___sprintf_chk_0012ac60" (* "*") (cast_expression "(code *)PTR___sprintf_chk_0012ac60" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___sprintf_chk_0012ac60"))) () ")")) (argument_list "(param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],\n               param_2[1],cVar2)" (( "(") (binary_expression "param_1 + 0x61" (identifier "param_1") (+ "+") (number_literal "0x61")) (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "PTR_FUN_0012a1a8 + -0x605c" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x605c")) (, ",") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (, ",") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "cVar2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_3 == 2) {\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 == 2)" (( "(") (binary_expression "param_3 == 2" (identifier "param_3") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    (*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);\n    return;\n  }" ({ "{") (expression_statement "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);" (call_expression "(*(code *)PTR___sprintf_chk_0012ac60)\n              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf])" (parenthesized_expression "(*(code *)PTR___sprintf_chk_0012ac60)" (( "(") (pointer_expression "*(code *)PTR___sprintf_chk_0012ac60" (* "*") (cast_expression "(code *)PTR___sprintf_chk_0012ac60" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___sprintf_chk_0012ac60"))) () ")")) (argument_list "(param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],\n               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],\n               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf])" (( "(") (binary_expression "param_1 + 0x61" (identifier "param_1") (+ "+") (number_literal "0x61")) (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (binary_expression "PTR_FUN_0012a1a8 + -0x6024" (identifier "PTR_FUN_0012a1a8") (+ "+") (number_literal "-0x6024")) (, ",") (identifier "cVar2") (, ",") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (, ",") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (, ",") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (, ",") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (, ",") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]")) (, ",") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]")) (, ",") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]")) (, ",") (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]")) (, ",") (subscript_expression "param_2[10]" (identifier "param_2") ([ "[") (number_literal "10") (] "]")) (, ",") (subscript_expression "param_2[0xb]" (identifier "param_2") ([ "[") (number_literal "0xb") (] "]")) (, ",") (subscript_expression "param_2[0xc]" (identifier "param_2") ([ "[") (number_literal "0xc") (] "]")) (, ",") (subscript_expression "param_2[0xd]" (identifier "param_2") ([ "[") (number_literal "0xd") (] "]")) (, ",") (subscript_expression "param_2[0xe]" (identifier "param_2") ([ "[") (number_literal "0xe") (] "]")) (, ",") (subscript_expression "param_2[0xf]" (identifier "param_2") ([ "[") (number_literal "0xf") (] "]")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (param_3 != 3) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 != 3)" (( "(") (binary_expression "param_3 != 3" (identifier "param_3") (!= "!=") (number_literal "3")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (labeled_statement "LAB_000979e4:\n  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);" (statement_identifier "LAB_000979e4") (: ":") (expression_statement "(*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);" (call_expression "(*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_0012b150)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0012b150" (* "*") (cast_expression "(code *)PTR_memcpy_0012b150" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0012b150"))) () ")")) (argument_list "(param_1 + 0x61,param_2,uVar3)" (( "(") (binary_expression "param_1 + 0x61" (identifier "param_1") (+ "+") (number_literal "0x61")) (, ",") (identifier "param_2") (, ",") (identifier "uVar3") () ")"))) (; ";"))) (expression_statement "*(undefined1 *)(param_1 + uVar3 + 0x61) = 0;" (assignment_expression "*(undefined1 *)(param_1 + uVar3 + 0x61) = 0" (pointer_expression "*(undefined1 *)(param_1 + uVar3 + 0x61)" (* "*") (cast_expression "(undefined1 *)(param_1 + uVar3 + 0x61)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + uVar3 + 0x61)" (( "(") (binary_expression "param_1 + uVar3 + 0x61" (binary_expression "param_1 + uVar3" (identifier "param_1") (+ "+") (identifier "uVar3")) (+ "+") (number_literal "0x61")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *id,uint8_t *buf,type_2 var_1)

{
  type_3 var_3;
  uint8_t var_5;
  type_3 var_4;
  
  if (var_1 == var_2) {
    var_4 = 0x24;
    if (*buf != '\0') goto LAB_000979e4;
LAB_00097970:
    var_3 = 0;
    do {
      var_3 = var_3 + 1;
      if (var_4 <= var_3) {
        return;
      }
    } while (buf[var_3] == '\0');
    var_5 = '\0';
  }
  else {
    var_4 = 4 << (var_1 & 0x1f);
    if (var_4 == 0) {
      return;
    }
    var_5 = *buf;
    if (var_5 == '\0') goto LAB_00097970;
  }
  if (var_1 == var_6) {
    (*(type_4 *)PTR___sprintf_chk_0012ac60)
              (id->uuid,1,0xffffffff,var_7<var_8&var_9)9__f_l_0012a1a8 + -0x6048,
               buf[7],buf[6],buf[5],buf[4],buf[3],buf[2],buf[1],var_5);
    return;
  }
  if (var_1 == var_10) {
    (*(type_4 *)PTR___sprintf_chk_0012ac60)
              (id->uuid,1,0xffffffff,var_7<var_8&var_9)9__f_l_0012a1a8 + -0x605c,
               buf[3],buf[2],buf[1],var_5);
    return;
  }
  if (var_1 == var_11) {
    (*(type_4 *)PTR___sprintf_chk_0012ac60)
              (id->uuid,1,0xffffffff,var_7<var_8&var_9)9__f_l_0012a1a8 + -0x6024,
               var_5,buf[1],buf[2],buf[3],buf[4],buf[5],buf[6],buf[7],buf[8],buf[9],buf[10],buf[0xb]
               ,buf[0xc],buf[0xd],buf[0xe],buf[0xf]);
    return;
  }
  if (var_1 != var_2) {
    return;
  }
LAB_000979e4:
  (*(type_4 *)PTR_memcpy_0012b150)(id->uuid,buf,var_4);
  id->uuid[var_4] = '\0';
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (return_statement)))) condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (identifier)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (identifier)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal))))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))) right: (number_literal))) (return_statement))))

void MASKED(int param_1,char *param_2,uint param_3)

{
  uint uVar1;
  char cVar2;
  uint uVar3;
  
  if (param_3 == 3) {
    uVar3 = 0x24;
    if (*param_2 != '\0') goto LAB_000979e4;
LAB_00097970:
    uVar1 = 0;
    do {
      uVar1 = uVar1 + 1;
      if (uVar3 <= uVar1) {
        return;
      }
    } while (param_2[uVar1] == '\0');
    cVar2 = '\0';
  }
  else {
    uVar3 = 4 << (param_3 & 0x1f);
    if (uVar3 == 0) {
      return;
    }
    cVar2 = *param_2;
    if (cVar2 == '\0') goto LAB_00097970;
  }
  if (param_3 == 1) {
    (*(code *)PTR___sprintf_chk_0012ac60)
              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6048,param_2[7],param_2[6],
               param_2[5],param_2[4],param_2[3],param_2[2],param_2[1],cVar2);
    return;
  }
  if (param_3 == 0) {
    (*(code *)PTR___sprintf_chk_0012ac60)
              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x605c,param_2[3],param_2[2],
               param_2[1],cVar2);
    return;
  }
  if (param_3 == 2) {
    (*(code *)PTR___sprintf_chk_0012ac60)
              (param_1 + 0x61,1,0xffffffff,PTR_FUN_0012a1a8 + -0x6024,cVar2,param_2[1],param_2[2],
               param_2[3],param_2[4],param_2[5],param_2[6],param_2[7],param_2[8],param_2[9],
               param_2[10],param_2[0xb],param_2[0xc],param_2[0xd],param_2[0xe],param_2[0xf]);
    return;
  }
  if (param_3 != 3) {
    return;
  }
LAB_000979e4:
  (*(code *)PTR_memcpy_0012b150)(param_1 + 0x61,param_2,uVar3);
  *(undefined1 *)(param_1 + uVar3 + 0x61) = 0;
  return;
}

