
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int __regparm3 size_number(bfd_size_type num)

{
  uint *puVar1;
  uint *puVar2;
  uint uVar3;
  uint uVar4;
  char *__format;
  bool bVar5;
  char buffer [40];
  
  buffer[0x24] = -0x56;
  buffer[0x25] = '\x1b';
  buffer[0x26] = '\x01';
  buffer[0x27] = '\0';
  __format = "%llu";
  if (radix != decimal) {
    __format = "0%llo";
    if (radix != _sch_isblank) {
      __format = "0x%llx";
    }
  }
  sprintf(buffer,__format);
  puVar2 = (uint *)buffer;
  do {
    puVar1 = puVar2;
    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;
    uVar4 = uVar3 & 0x80808080;
    puVar2 = puVar1 + 1;
  } while (uVar4 == 0);
  bVar5 = (uVar3 & 0x8080) == 0;
  if (bVar5) {
    uVar4 = uVar4 >> 0x10;
  }
  if (bVar5) {
    puVar2 = (uint *)((int)puVar1 + 6);
  }
  return (int)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer));
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * __regparm3 FUN_00011ba0(undefined4 param_1,undefined4 param_2)

{
  uint *puVar1;
  uint *puVar2;
  uint uVar3;
  uint uVar4;
  char *__format;
  bool bVar5;
  uint local_34 [9];
  undefined4 uStack_10;
  
  uStack_10 = 0x11baa;
  __format = "%llu";
  if (DAT_00019260 != 0) {
    __format = "0%llo";
    if (DAT_00019260 != 1) {
      __format = "0x%llx";
    }
  }
  sprintf((char *)local_34,__format,param_1,param_2);
  puVar2 = local_34;
  do {
    puVar1 = puVar2;
    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;
    uVar4 = uVar3 & 0x80808080;
    puVar2 = puVar1 + 1;
  } while (uVar4 == 0);
  bVar5 = (uVar3 & 0x8080) == 0;
  if (bVar5) {
    uVar4 = uVar4 >> 0x10;
  }
  if (bVar5) {
    puVar2 = (uint *)((int)puVar1 + 6);
  }
  return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));
}


PUSH EBP
MOV EBP,ESP
PUSH ESI
PUSH EBX
CALL 0x00011890
ADD EBX,0x7456
SUB ESP,0x30
MOV ECX,dword ptr [EBX + 0x260]
LEA ESI,[EBX + 0xffffc3b1]
TEST ECX,ECX
JZ 0x00011bd5
CMP ECX,0x1
LEA ESI,[EBX + 0xffffc3b6]
LEA ECX,[EBX + 0xffffc3bc]
CMOVNZ ESI,ECX
PUSH EDX
PUSH EAX
PUSH ESI
LEA ESI,[EBP + -0x30]
PUSH ESI
CALL 0x000113f0
MOV EAX,ESI
MOV ECX,dword ptr [EAX]
ADD EAX,0x4
LEA EDX,[ECX + 0xfefefeff]
NOT ECX
AND EDX,ECX
AND EDX,0x80808080
JZ 0x00011be3
MOV ECX,EDX
SHR ECX,0x10
TEST EDX,0x8080
CMOVZ EDX,ECX
LEA ECX,[EAX + 0x2]
CMOVZ EAX,ECX
MOV EBX,EDX
ADD BL,DL
SBB EAX,0x3
ADD ESP,0x10
LEA ESP,[EBP + -0x8]
SUB EAX,ESI
POP EBX
POP ESI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nchar * __regparm3 FUN_00011ba0(undefined4 param_1,undefined4 param_2)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_34 [9];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x11baa;\n  __format = "%llu";\n  if (DAT_00019260 != 0) {\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }\n  sprintf((char *)local_34,__format,param_1,param_2);\n  puVar2 = local_34;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }\n  return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));\n}\n\n" comment (function_definition "char * __regparm3 FUN_00011ba0(undefined4 param_1,undefined4 param_2)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_34 [9];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x11baa;\n  __format = "%llu";\n  if (DAT_00019260 != 0) {\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }\n  sprintf((char *)local_34,__format,param_1,param_2);\n  puVar2 = local_34;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }\n  return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00011ba0(undefined4 param_1,undefined4 param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00011ba0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_34 [9];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x11baa;\n  __format = "%llu";\n  if (DAT_00019260 != 0) {\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }\n  sprintf((char *)local_34,__format,param_1,param_2);\n  puVar2 = local_34;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }\n  return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "uint local_34 [9];" type_identifier (array_declarator "local_34 [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x11baa;" (assignment_expression "uStack_10 = 0x11baa" identifier = number_literal) ;) (expression_statement "__format = "%llu";" (assignment_expression "__format = "%llu"" identifier = (string_literal ""%llu"" " string_content ")) ;) (if_statement "if (DAT_00019260 != 0) {\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }" if (parenthesized_expression "(DAT_00019260 != 0)" ( (binary_expression "DAT_00019260 != 0" identifier != number_literal) )) (compound_statement "{\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }" { (expression_statement "__format = "0%llo";" (assignment_expression "__format = "0%llo"" identifier = (string_literal ""0%llo"" " string_content ")) ;) (if_statement "if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }" if (parenthesized_expression "(DAT_00019260 != 1)" ( (binary_expression "DAT_00019260 != 1" identifier != number_literal) )) (compound_statement "{\n      __format = "0x%llx";\n    }" { (expression_statement "__format = "0x%llx";" (assignment_expression "__format = "0x%llx"" identifier = (string_literal ""0x%llx"" " string_content ")) ;) })) })) (expression_statement "sprintf((char *)local_34,__format,param_1,param_2);" (call_expression "sprintf((char *)local_34,__format,param_1,param_2)" identifier (argument_list "((char *)local_34,__format,param_1,param_2)" ( (cast_expression "(char *)local_34" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , identifier ))) ;) (expression_statement "puVar2 = local_34;" (assignment_expression "puVar2 = local_34" identifier = identifier) ;) (do_statement "do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);" do (compound_statement "{\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  }" { (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (expression_statement "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;" (assignment_expression "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1" identifier = (binary_expression "*puVar1 + 0xfefefeff & ~*puVar1" (binary_expression "*puVar1 + 0xfefefeff" (pointer_expression "*puVar1" * identifier) + number_literal) & (unary_expression "~*puVar1" ~ (pointer_expression "*puVar1" * identifier)))) ;) (expression_statement "uVar4 = uVar3 & 0x80808080;" (assignment_expression "uVar4 = uVar3 & 0x80808080" identifier = (binary_expression "uVar3 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) ;) (expression_statement "bVar5 = (uVar3 & 0x8080) == 0;" (assignment_expression "bVar5 = (uVar3 & 0x8080) == 0" identifier = (binary_expression "(uVar3 & 0x8080) == 0" (parenthesized_expression "(uVar3 & 0x8080)" ( (binary_expression "uVar3 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    uVar4 = uVar4 >> 0x10;\n  }" { (expression_statement "uVar4 = uVar4 >> 0x10;" (assignment_expression "uVar4 = uVar4 >> 0x10" identifier = (binary_expression "uVar4 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }" { (expression_statement "puVar2 = (uint *)((int)puVar1 + 6);" (assignment_expression "puVar2 = (uint *)((int)puVar1 + 6)" identifier = (cast_expression "(uint *)((int)puVar1 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 6)" ( (binary_expression "(int)puVar1 + 6" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (return_statement "return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));" return (cast_expression "(char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34))" ( (binary_expression "(int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34)" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34)" ( (binary_expression "(-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34" (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4))" ( (binary_expression "-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)" number_literal - (cast_expression "(uint)CARRY1((byte)uVar4,(byte)uVar4)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar4,(byte)uVar4)" identifier (argument_list "((byte)uVar4,(byte)uVar4)" ( (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) )) - (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint __regparm3 size_number(bfd_size_type num)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  char buffer [40];\n  \n  buffer[0x24] = -0x56;\n  buffer[0x25] = '\x1b';\n  buffer[0x26] = '\x01';\n  buffer[0x27] = '\0';\n  __format = "%llu";\n  if (radix != decimal) {\n    __format = "0%llo";\n    if (radix != _sch_isblank) {\n      __format = "0x%llx";\n    }\n  }\n  sprintf(buffer,__format);\n  puVar2 = (uint *)buffer;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }\n  return (int)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer));\n}\n\n" comment comment (function_definition "int __regparm3 size_number(bfd_size_type num)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  char buffer [40];\n  \n  buffer[0x24] = -0x56;\n  buffer[0x25] = '\x1b';\n  buffer[0x26] = '\x01';\n  buffer[0x27] = '\0';\n  __format = "%llu";\n  if (radix != decimal) {\n    __format = "0%llo";\n    if (radix != _sch_isblank) {\n      __format = "0x%llx";\n    }\n  }\n  sprintf(buffer,__format);\n  puVar2 = (uint *)buffer;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }\n  return (int)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer));\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "size_number(bfd_size_type num)" identifier (parameter_list "(bfd_size_type num)" ( (parameter_declaration "bfd_size_type num" type_identifier identifier) ))) (compound_statement "{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  char buffer [40];\n  \n  buffer[0x24] = -0x56;\n  buffer[0x25] = '\x1b';\n  buffer[0x26] = '\x01';\n  buffer[0x27] = '\0';\n  __format = "%llu";\n  if (radix != decimal) {\n    __format = "0%llo";\n    if (radix != _sch_isblank) {\n      __format = "0x%llx";\n    }\n  }\n  sprintf(buffer,__format);\n  puVar2 = (uint *)buffer;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }\n  return (int)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer));\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "char buffer [40];" primitive_type (array_declarator "buffer [40]" identifier [ number_literal ]) ;) (expression_statement "buffer[0x24] = -0x56;" (assignment_expression "buffer[0x24] = -0x56" (subscript_expression "buffer[0x24]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "buffer[0x25] = '\x1b';" (assignment_expression "buffer[0x25] = '\x1b'" (subscript_expression "buffer[0x25]" identifier [ number_literal ]) = (char_literal "'\x1b'" ' escape_sequence ')) ;) (expression_statement "buffer[0x26] = '\x01';" (assignment_expression "buffer[0x26] = '\x01'" (subscript_expression "buffer[0x26]" identifier [ number_literal ]) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "buffer[0x27] = '\0';" (assignment_expression "buffer[0x27] = '\0'" (subscript_expression "buffer[0x27]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "__format = "%llu";" (assignment_expression "__format = "%llu"" identifier = (string_literal ""%llu"" " string_content ")) ;) (if_statement "if (radix != decimal) {\n    __format = "0%llo";\n    if (radix != _sch_isblank) {\n      __format = "0x%llx";\n    }\n  }" if (parenthesized_expression "(radix != decimal)" ( (binary_expression "radix != decimal" identifier != identifier) )) (compound_statement "{\n    __format = "0%llo";\n    if (radix != _sch_isblank) {\n      __format = "0x%llx";\n    }\n  }" { (expression_statement "__format = "0%llo";" (assignment_expression "__format = "0%llo"" identifier = (string_literal ""0%llo"" " string_content ")) ;) (if_statement "if (radix != _sch_isblank) {\n      __format = "0x%llx";\n    }" if (parenthesized_expression "(radix != _sch_isblank)" ( (binary_expression "radix != _sch_isblank" identifier != identifier) )) (compound_statement "{\n      __format = "0x%llx";\n    }" { (expression_statement "__format = "0x%llx";" (assignment_expression "__format = "0x%llx"" identifier = (string_literal ""0x%llx"" " string_content ")) ;) })) })) (expression_statement "sprintf(buffer,__format);" (call_expression "sprintf(buffer,__format)" identifier (argument_list "(buffer,__format)" ( identifier , identifier ))) ;) (expression_statement "puVar2 = (uint *)buffer;" (assignment_expression "puVar2 = (uint *)buffer" identifier = (cast_expression "(uint *)buffer" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);" do (compound_statement "{\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  }" { (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (expression_statement "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;" (assignment_expression "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1" identifier = (binary_expression "*puVar1 + 0xfefefeff & ~*puVar1" (binary_expression "*puVar1 + 0xfefefeff" (pointer_expression "*puVar1" * identifier) + number_literal) & (unary_expression "~*puVar1" ~ (pointer_expression "*puVar1" * identifier)))) ;) (expression_statement "uVar4 = uVar3 & 0x80808080;" (assignment_expression "uVar4 = uVar3 & 0x80808080" identifier = (binary_expression "uVar3 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) ;) (expression_statement "bVar5 = (uVar3 & 0x8080) == 0;" (assignment_expression "bVar5 = (uVar3 & 0x8080) == 0" identifier = (binary_expression "(uVar3 & 0x8080) == 0" (parenthesized_expression "(uVar3 & 0x8080)" ( (binary_expression "uVar3 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    uVar4 = uVar4 >> 0x10;\n  }" { (expression_statement "uVar4 = uVar4 >> 0x10;" (assignment_expression "uVar4 = uVar4 >> 0x10" identifier = (binary_expression "uVar4 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }" { (expression_statement "puVar2 = (uint *)((int)puVar1 + 6);" (assignment_expression "puVar2 = (uint *)((int)puVar1 + 6)" identifier = (cast_expression "(uint *)((int)puVar1 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 6)" ( (binary_expression "(int)puVar1 + 6" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (return_statement "return (int)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer));" return (cast_expression "(int)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer))" ( (binary_expression "(int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer)" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer)" ( (binary_expression "(-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)buffer" (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4))" ( (binary_expression "-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)" number_literal - (cast_expression "(uint)CARRY1((byte)uVar4,(byte)uVar4)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar4,(byte)uVar4)" identifier (argument_list "((byte)uVar4,(byte)uVar4)" ( (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) )) - (cast_expression "(int)buffer" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) ;) })))
(translation_unit "char * __regparm3 FUN_00011ba0(undefined4 param_1,undefined4 param_2)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_34 [9];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x11baa;\n  __format = "%llu";\n  if (DAT_00019260 != 0) {\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }\n  sprintf((char *)local_34,__format,param_1,param_2);\n  puVar2 = local_34;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }\n  return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));\n}\n\n" (function_definition "char * __regparm3 FUN_00011ba0(undefined4 param_1,undefined4 param_2)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_34 [9];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x11baa;\n  __format = "%llu";\n  if (DAT_00019260 != 0) {\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }\n  sprintf((char *)local_34,__format,param_1,param_2);\n  puVar2 = local_34;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }\n  return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));\n}" primitive_type (pointer_declarator "* __regparm3 FUN_00011ba0(undefined4 param_1,undefined4 param_2)" * (ERROR "__regparm3" identifier) (function_declarator "FUN_00011ba0(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) )))) (compound_statement "{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_34 [9];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x11baa;\n  __format = "%llu";\n  if (DAT_00019260 != 0) {\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }\n  sprintf((char *)local_34,__format,param_1,param_2);\n  puVar2 = local_34;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }\n  return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *__format;" primitive_type (pointer_declarator "*__format" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "uint local_34 [9];" type_identifier (array_declarator "local_34 [9]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x11baa;" (assignment_expression "uStack_10 = 0x11baa" identifier = number_literal) ;) (expression_statement "__format = "%llu";" (assignment_expression "__format = "%llu"" identifier = (string_literal ""%llu"" " string_content ")) ;) (if_statement "if (DAT_00019260 != 0) {\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }" if (parenthesized_expression "(DAT_00019260 != 0)" ( (binary_expression "DAT_00019260 != 0" identifier != number_literal) )) (compound_statement "{\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }" { (expression_statement "__format = "0%llo";" (assignment_expression "__format = "0%llo"" identifier = (string_literal ""0%llo"" " string_content ")) ;) (if_statement "if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }" if (parenthesized_expression "(DAT_00019260 != 1)" ( (binary_expression "DAT_00019260 != 1" identifier != number_literal) )) (compound_statement "{\n      __format = "0x%llx";\n    }" { (expression_statement "__format = "0x%llx";" (assignment_expression "__format = "0x%llx"" identifier = (string_literal ""0x%llx"" " string_content ")) ;) })) })) (expression_statement "sprintf((char *)local_34,__format,param_1,param_2);" (call_expression "sprintf((char *)local_34,__format,param_1,param_2)" identifier (argument_list "((char *)local_34,__format,param_1,param_2)" ( (cast_expression "(char *)local_34" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , identifier ))) ;) (expression_statement "puVar2 = local_34;" (assignment_expression "puVar2 = local_34" identifier = identifier) ;) (do_statement "do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);" do (compound_statement "{\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  }" { (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" identifier = identifier) ;) (expression_statement "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;" (assignment_expression "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1" identifier = (binary_expression "*puVar1 + 0xfefefeff & ~*puVar1" (binary_expression "*puVar1 + 0xfefefeff" (pointer_expression "*puVar1" * identifier) + number_literal) & (unary_expression "~*puVar1" ~ (pointer_expression "*puVar1" * identifier)))) ;) (expression_statement "uVar4 = uVar3 & 0x80808080;" (assignment_expression "uVar4 = uVar3 & 0x80808080" identifier = (binary_expression "uVar3 & 0x80808080" identifier & number_literal)) ;) (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" identifier = (binary_expression "puVar1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 == 0)" ( (binary_expression "uVar4 == 0" identifier == number_literal) )) ;) (expression_statement "bVar5 = (uVar3 & 0x8080) == 0;" (assignment_expression "bVar5 = (uVar3 & 0x8080) == 0" identifier = (binary_expression "(uVar3 & 0x8080) == 0" (parenthesized_expression "(uVar3 & 0x8080)" ( (binary_expression "uVar3 & 0x8080" identifier & number_literal) )) == number_literal)) ;) (if_statement "if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    uVar4 = uVar4 >> 0x10;\n  }" { (expression_statement "uVar4 = uVar4 >> 0x10;" (assignment_expression "uVar4 = uVar4 >> 0x10" identifier = (binary_expression "uVar4 >> 0x10" identifier >> number_literal)) ;) })) (if_statement "if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }" if (parenthesized_expression "(bVar5)" ( identifier )) (compound_statement "{\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }" { (expression_statement "puVar2 = (uint *)((int)puVar1 + 6);" (assignment_expression "puVar2 = (uint *)((int)puVar1 + 6)" identifier = (cast_expression "(uint *)((int)puVar1 + 6)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + 6)" ( (binary_expression "(int)puVar1 + 6" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) })) (return_statement "return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));" return (cast_expression "(char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34))" ( (binary_expression "(int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34)" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34)" ( (binary_expression "(-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34" (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4))" ( (binary_expression "-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)" number_literal - (cast_expression "(uint)CARRY1((byte)uVar4,(byte)uVar4)" ( (type_descriptor "uint" type_identifier) ) (call_expression "CARRY1((byte)uVar4,(byte)uVar4)" identifier (argument_list "((byte)uVar4,(byte)uVar4)" ( (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) , (cast_expression "(byte)uVar4" ( (type_descriptor "byte" type_identifier) ) identifier) ))))) )) - (cast_expression "(int)local_34" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) & (unary_expression ~ (pointer_expression * IDENT)))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT == LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) })) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) ;) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE) ) IDENT) , (cast_expression ( (type_descriptor TYPE) ) IDENT) ))))) )) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ))) ;) })))
(function_definition "char * __regparm3 FUN_00011ba0(undefined4 param_1,undefined4 param_2)\n\n{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_34 [9];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x11baa;\n  __format = "%llu";\n  if (DAT_00019260 != 0) {\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }\n  sprintf((char *)local_34,__format,param_1,param_2);\n  puVar2 = local_34;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }\n  return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));\n}" (primitive_type "char") (pointer_declarator "* __regparm3 FUN_00011ba0(undefined4 param_1,undefined4 param_2)" (* "*") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00011ba0(undefined4 param_1,undefined4 param_2)" (identifier "FUN_00011ba0") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")")))) (compound_statement "{\n  uint *puVar1;\n  uint *puVar2;\n  uint uVar3;\n  uint uVar4;\n  char *__format;\n  bool bVar5;\n  uint local_34 [9];\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x11baa;\n  __format = "%llu";\n  if (DAT_00019260 != 0) {\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }\n  sprintf((char *)local_34,__format,param_1,param_2);\n  puVar2 = local_34;\n  do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);\n  bVar5 = (uVar3 & 0x8080) == 0;\n  if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }\n  if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }\n  return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "char *__format;" (primitive_type "char") (pointer_declarator "*__format" (* "*") (identifier "__format")) (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "uint local_34 [9];" (type_identifier "uint") (array_declarator "local_34 [9]" (identifier "local_34") ([ "[") (number_literal "9") (] "]")) (; ";")) (declaration "undefined4 uStack_10;" (type_identifier "undefined4") (identifier "uStack_10") (; ";")) (expression_statement "uStack_10 = 0x11baa;" (assignment_expression "uStack_10 = 0x11baa" (identifier "uStack_10") (= "=") (number_literal "0x11baa")) (; ";")) (expression_statement "__format = "%llu";" (assignment_expression "__format = "%llu"" (identifier "__format") (= "=") (string_literal ""%llu"" (" """) (string_content "%llu") (" """))) (; ";")) (if_statement "if (DAT_00019260 != 0) {\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }" (if "if") (parenthesized_expression "(DAT_00019260 != 0)" (( "(") (binary_expression "DAT_00019260 != 0" (identifier "DAT_00019260") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    __format = "0%llo";\n    if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }\n  }" ({ "{") (expression_statement "__format = "0%llo";" (assignment_expression "__format = "0%llo"" (identifier "__format") (= "=") (string_literal ""0%llo"" (" """) (string_content "0%llo") (" """))) (; ";")) (if_statement "if (DAT_00019260 != 1) {\n      __format = "0x%llx";\n    }" (if "if") (parenthesized_expression "(DAT_00019260 != 1)" (( "(") (binary_expression "DAT_00019260 != 1" (identifier "DAT_00019260") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      __format = "0x%llx";\n    }" ({ "{") (expression_statement "__format = "0x%llx";" (assignment_expression "__format = "0x%llx"" (identifier "__format") (= "=") (string_literal ""0x%llx"" (" """) (string_content "0x%llx") (" """))) (; ";")) (} "}"))) (} "}"))) (expression_statement "sprintf((char *)local_34,__format,param_1,param_2);" (call_expression "sprintf((char *)local_34,__format,param_1,param_2)" (identifier "sprintf") (argument_list "((char *)local_34,__format,param_1,param_2)" (( "(") (cast_expression "(char *)local_34" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_34")) (, ",") (identifier "__format") (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "puVar2 = local_34;" (assignment_expression "puVar2 = local_34" (identifier "puVar2") (= "=") (identifier "local_34")) (; ";")) (do_statement "do {\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  } while (uVar4 == 0);" (do "do") (compound_statement "{\n    puVar1 = puVar2;\n    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;\n    uVar4 = uVar3 & 0x80808080;\n    puVar2 = puVar1 + 1;\n  }" ({ "{") (expression_statement "puVar1 = puVar2;" (assignment_expression "puVar1 = puVar2" (identifier "puVar1") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;" (assignment_expression "uVar3 = *puVar1 + 0xfefefeff & ~*puVar1" (identifier "uVar3") (= "=") (binary_expression "*puVar1 + 0xfefefeff & ~*puVar1" (binary_expression "*puVar1 + 0xfefefeff" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (+ "+") (number_literal "0xfefefeff")) (& "&") (unary_expression "~*puVar1" (~ "~") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))))) (; ";")) (expression_statement "uVar4 = uVar3 & 0x80808080;" (assignment_expression "uVar4 = uVar3 & 0x80808080" (identifier "uVar4") (= "=") (binary_expression "uVar3 & 0x80808080" (identifier "uVar3") (& "&") (number_literal "0x80808080"))) (; ";")) (expression_statement "puVar2 = puVar1 + 1;" (assignment_expression "puVar2 = puVar1 + 1" (identifier "puVar2") (= "=") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 == 0)" (( "(") (binary_expression "uVar4 == 0" (identifier "uVar4") (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "bVar5 = (uVar3 & 0x8080) == 0;" (assignment_expression "bVar5 = (uVar3 & 0x8080) == 0" (identifier "bVar5") (= "=") (binary_expression "(uVar3 & 0x8080) == 0" (parenthesized_expression "(uVar3 & 0x8080)" (( "(") (binary_expression "uVar3 & 0x8080" (identifier "uVar3") (& "&") (number_literal "0x8080")) () ")")) (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar5) {\n    uVar4 = uVar4 >> 0x10;\n  }" (if "if") (parenthesized_expression "(bVar5)" (( "(") (identifier "bVar5") () ")")) (compound_statement "{\n    uVar4 = uVar4 >> 0x10;\n  }" ({ "{") (expression_statement "uVar4 = uVar4 >> 0x10;" (assignment_expression "uVar4 = uVar4 >> 0x10" (identifier "uVar4") (= "=") (binary_expression "uVar4 >> 0x10" (identifier "uVar4") (>> ">>") (number_literal "0x10"))) (; ";")) (} "}"))) (if_statement "if (bVar5) {\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }" (if "if") (parenthesized_expression "(bVar5)" (( "(") (identifier "bVar5") () ")")) (compound_statement "{\n    puVar2 = (uint *)((int)puVar1 + 6);\n  }" ({ "{") (expression_statement "puVar2 = (uint *)((int)puVar1 + 6);" (assignment_expression "puVar2 = (uint *)((int)puVar1 + 6)" (identifier "puVar2") (= "=") (cast_expression "(uint *)((int)puVar1 + 6)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar1 + 6)" (( "(") (binary_expression "(int)puVar1 + 6" (cast_expression "(int)puVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar1")) (+ "+") (number_literal "6")) () ")")))) (; ";")) (} "}"))) (return_statement "return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));" (return "return") (cast_expression "(char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34))" (( "(") (binary_expression "(int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34)" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (parenthesized_expression "((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34)" (( "(") (binary_expression "(-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34" (parenthesized_expression "(-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4))" (( "(") (binary_expression "-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)" (number_literal "-3") (- "-") (cast_expression "(uint)CARRY1((byte)uVar4,(byte)uVar4)" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (call_expression "CARRY1((byte)uVar4,(byte)uVar4)" (identifier "CARRY1") (argument_list "((byte)uVar4,(byte)uVar4)" (( "(") (cast_expression "(byte)uVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar4")) (, ",") (cast_expression "(byte)uVar4" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar4")) () ")"))))) () ")")) (- "-") (cast_expression "(int)local_34" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_34"))) () ")"))) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int __regparm3 function_1(type_1 num)

{
  type_2 *var_6;
  type_2 *puVar2;
  type_2 var_5;
  type_2 var_7;
  char *__format;
  bool bVar5;
  char buffer [40];
  
  buffer[0x24] = -0x56;
  buffer[0x25] = '\x1b';
  buffer[0x26] = '\x01';
  buffer[0x27] = '\0';
  __format = "%llu";
  if (var_1 != var_2) {
    __format = "0%llo";
    if (var_1 != var_3) {
      __format = "0x%llx";
    }
  }
  var_4(buffer,__format);
  puVar2 = (type_2 *)buffer;
  do {
    var_6 = puVar2;
    var_5 = *var_6 + 0xfefefeff & ~*var_6;
    var_7 = var_5 & 0x80808080;
    puVar2 = var_6 + 1;
  } while (var_7 == 0);
  bVar5 = (var_5 & 0x8080) == 0;
  if (bVar5) {
    var_7 = var_7 >> 0x10;
  }
  if (bVar5) {
    puVar2 = (type_2 *)((int)var_6 + 6);
  }
  return (int)((int)puVar2 + ((-3 - (type_2)var_8((type_3)var_7,(type_3)var_7)) - (int)buffer));
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)) (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)) right: (unary_expression argument: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (identifier)) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier))))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

char * __regparm3 MASKED(undefined4 param_1,undefined4 param_2)

{
  uint *puVar1;
  uint *puVar2;
  uint uVar3;
  uint uVar4;
  char *__format;
  bool bVar5;
  uint local_34 [9];
  undefined4 uStack_10;
  
  uStack_10 = 0x11baa;
  __format = "%llu";
  if (DAT_00019260 != 0) {
    __format = "0%llo";
    if (DAT_00019260 != 1) {
      __format = "0x%llx";
    }
  }
  sprintf((char *)local_34,__format,param_1,param_2);
  puVar2 = local_34;
  do {
    puVar1 = puVar2;
    uVar3 = *puVar1 + 0xfefefeff & ~*puVar1;
    uVar4 = uVar3 & 0x80808080;
    puVar2 = puVar1 + 1;
  } while (uVar4 == 0);
  bVar5 = (uVar3 & 0x8080) == 0;
  if (bVar5) {
    uVar4 = uVar4 >> 0x10;
  }
  if (bVar5) {
    puVar2 = (uint *)((int)puVar1 + 6);
  }
  return (char *)((int)puVar2 + ((-3 - (uint)CARRY1((byte)uVar4,(byte)uVar4)) - (int)local_34));
}

