
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* int std::__int_to_char<char, unsigned long>(char*, unsigned long, char const*,
   std::_Ios_Fmtflags, bool) */

int std::__int_to_char<char,unsigned_long>
              (undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)

{
  bool bVar1;
  uint uVar2;
  undefined1 *puVar3;
  
  puVar3 = param_1;
  if (param_5 == '\0') {
    if ((param_4 & 0x4a) == 0x40) {
      do {
        puVar3 = puVar3 + -1;
        uVar2 = param_2 & 7;
        param_2 = param_2 >> 3;
        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);
      } while (param_2 != 0);
    }
    else {
      do {
        puVar3 = puVar3 + -1;
        uVar2 = param_2 & 0xf;
        param_2 = param_2 >> 4;
        *puVar3 = *(undefined1 *)
                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);
      } while (param_2 != 0);
    }
  }
  else {
    do {
      puVar3 = puVar3 + -1;
      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);
      bVar1 = 9 < param_2;
      param_2 = param_2 / 10;
    } while (bVar1);
  }
  return (int)param_1 - (int)puVar3;
}



int FUN_003c6780(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)

{
  bool bVar1;
  uint uVar2;
  undefined1 *puVar3;
  
  puVar3 = param_1;
  if (param_5 == '\0') {
    if ((param_4 & 0x4a) == 0x40) {
      do {
        puVar3 = puVar3 + -1;
        uVar2 = param_2 & 7;
        param_2 = param_2 >> 3;
        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);
      } while (param_2 != 0);
    }
    else {
      do {
        puVar3 = puVar3 + -1;
        uVar2 = param_2 & 0xf;
        param_2 = param_2 >> 4;
        *puVar3 = *(undefined1 *)
                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);
      } while (param_2 != 0);
    }
  }
  else {
    do {
      puVar3 = puVar3 + -1;
      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);
      bVar1 = 9 < param_2;
      param_2 = param_2 / 10;
    } while (bVar1);
  }
  return (int)param_1 - (int)puVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CMP byte ptr [ESP + 0x24],0x0
MOV ECX,dword ptr [ESP + 0x18]
MOV ESI,dword ptr [ESP + 0x1c]
JZ 0x003c67d0
MOV EBX,dword ptr [ESP + 0x14]
MOV EDI,0xcccccccd
JMP 0x003c67a2
MOV ECX,EDX
MOV EAX,ECX
MOV EBP,ECX
SUB EBX,0x1
MUL EDI
SHR EDX,0x3
LEA EAX,[EDX + EDX*0x4]
ADD EAX,EAX
SUB EBP,EAX
MOVZX EAX,byte ptr [ESI + EBP*0x1 + 0x4]
MOV byte ptr [EBX],AL
CMP ECX,0x9
JA 0x003c67a0
MOV EAX,dword ptr [ESP + 0x14]
SUB EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x20]
AND EAX,0x4a
CMP EAX,0x40
JZ 0x003c680d
MOV EAX,dword ptr [ESP + 0x20]
MOV EBX,dword ptr [ESP + 0x14]
AND EAX,0x4000
CMP EAX,0x1
SBB EAX,EAX
AND EAX,0xfffffff0
LEA EDX,[ESI + EAX*0x1 + 0x14]
LEA ESI,[ESI]
MOV EAX,ECX
SUB EBX,0x1
AND EAX,0xf
SHR ECX,0x4
MOVZX EAX,byte ptr [EDX + EAX*0x1]
MOV byte ptr [EBX],AL
JNZ 0x003c67f8
JMP 0x003c67c1
MOV EBX,dword ptr [ESP + 0x14]
LEA ESI,[ESI]
MOV EAX,ECX
SUB EBX,0x1
AND EAX,0x7
SHR ECX,0x3
MOVZX EAX,byte ptr [ESI + EAX*0x1 + 0x4]
MOV byte ptr [EBX],AL
JNZ 0x003c6818
JMP 0x003c67c1
(translation_unit "int FUN_003c6780(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)\n\n{\n  bool bVar1;\n  uint uVar2;\n  undefined1 *puVar3;\n  \n  puVar3 = param_1;\n  if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }\n  return (int)param_1 - (int)puVar3;\n}\n\n" (function_definition "int FUN_003c6780(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)\n\n{\n  bool bVar1;\n  uint uVar2;\n  undefined1 *puVar3;\n  \n  puVar3 = param_1;\n  if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }\n  return (int)param_1 - (int)puVar3;\n}" primitive_type (function_declarator "FUN_003c6780(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)" identifier (parameter_list "(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "char param_5" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  undefined1 *puVar3;\n  \n  puVar3 = param_1;\n  if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }\n  return (int)param_1 - (int)puVar3;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = param_1;" (assignment_expression "puVar3 = param_1" identifier = identifier) ;) (if_statement "if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }" if (parenthesized_expression "(param_5 == '\0')" ( (binary_expression "param_5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }" { (if_statement "if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }" if (parenthesized_expression "((param_4 & 0x4a) == 0x40)" ( (binary_expression "(param_4 & 0x4a) == 0x40" (parenthesized_expression "(param_4 & 0x4a)" ( (binary_expression "param_4 & 0x4a" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }" { (do_statement "do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);" do (compound_statement "{\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      }" { (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "uVar2 = param_2 & 7;" (assignment_expression "uVar2 = param_2 & 7" identifier = (binary_expression "param_2 & 7" identifier & number_literal)) ;) (expression_statement "param_2 = param_2 >> 3;" (assignment_expression "param_2 = param_2 >> 3" identifier = (binary_expression "param_2 >> 3" identifier >> number_literal)) ;) (expression_statement "*puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);" (assignment_expression "*puVar3 = *(undefined1 *)(param_3 + 4 + uVar2)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined1 *)(param_3 + 4 + uVar2)" * (cast_expression "(undefined1 *)(param_3 + 4 + uVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4 + uVar2)" ( (binary_expression "param_3 + 4 + uVar2" (binary_expression "param_3 + 4" identifier + number_literal) + identifier) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) }) (else_clause "else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }" else (compound_statement "{\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }" { (do_statement "do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);" do (compound_statement "{\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      }" { (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "uVar2 = param_2 & 0xf;" (assignment_expression "uVar2 = param_2 & 0xf" identifier = (binary_expression "param_2 & 0xf" identifier & number_literal)) ;) (expression_statement "param_2 = param_2 >> 4;" (assignment_expression "param_2 = param_2 >> 4" identifier = (binary_expression "param_2 >> 4" identifier >> number_literal)) ;) (expression_statement "*puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);" (assignment_expression "*puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" * (cast_expression "(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" ( (binary_expression "param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2" (binary_expression "param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0)" (binary_expression "param_3 + 0x14" identifier + number_literal) + (parenthesized_expression "(-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0)" ( (binary_expression "-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0" (unary_expression "-(uint)((param_4 & 0x4000) == 0)" - (call_expression "(uint)((param_4 & 0x4000) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_4 & 0x4000) == 0)" ( (binary_expression "(param_4 & 0x4000) == 0" (parenthesized_expression "(param_4 & 0x4000)" ( (binary_expression "param_4 & 0x4000" identifier & number_literal) )) == number_literal) )))) & number_literal) ))) + identifier) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) }))) }) (else_clause "else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }" else (compound_statement "{\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }" { (do_statement "do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);" do (compound_statement "{\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    }" { (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "*puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);" (assignment_expression "*puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined1 *)(param_3 + 4 + param_2 % 10)" * (cast_expression "(undefined1 *)(param_3 + 4 + param_2 % 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4 + param_2 % 10)" ( (binary_expression "param_3 + 4 + param_2 % 10" (binary_expression "param_3 + 4" identifier + number_literal) + (binary_expression "param_2 % 10" identifier % number_literal)) ))))) ;) (expression_statement "bVar1 = 9 < param_2;" (assignment_expression "bVar1 = 9 < param_2" identifier = (binary_expression "9 < param_2" number_literal < identifier)) ;) (expression_statement "param_2 = param_2 / 10;" (assignment_expression "param_2 = param_2 / 10" identifier = (binary_expression "param_2 / 10" identifier / number_literal)) ;) }) while (parenthesized_expression "(bVar1)" ( identifier )) ;) }))) (return_statement "return (int)param_1 - (int)puVar3;" return (binary_expression "(int)param_1 - (int)puVar3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })))
(translation_unit "/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* int std::__int_to_char<char, unsigned long>(char*, unsigned long, char const*,\n   std::_Ios_Fmtflags, bool) */\n\nint std::__int_to_char<char,unsigned_long>\n              (undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)\n\n{\n  bool bVar1;\n  uint uVar2;\n  undefined1 *puVar3;\n  \n  puVar3 = param_1;\n  if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }\n  return (int)param_1 - (int)puVar3;\n}\n\n" comment comment (declaration "int std::__int_to_char<char,unsigned_long>\n              (undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)\n\n{\n  bool bVar1;" primitive_type (ERROR "std::" identifier : :) identifier (ERROR "<char" < primitive_type) , (ERROR "unsigned_long>\n              (undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)\n\n{\n  bool" (function_declarator "unsigned_long>\n              (undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)" identifier (ERROR ">" >) (parameter_list "(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "char param_5" primitive_type identifier) ))) { primitive_type) identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = param_1;" (assignment_expression "puVar3 = param_1" identifier = identifier) ;) (if_statement "if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }" if (parenthesized_expression "(param_5 == '\0')" ( (binary_expression "param_5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }" { (if_statement "if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }" if (parenthesized_expression "((param_4 & 0x4a) == 0x40)" ( (binary_expression "(param_4 & 0x4a) == 0x40" (parenthesized_expression "(param_4 & 0x4a)" ( (binary_expression "param_4 & 0x4a" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }" { (do_statement "do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);" do (compound_statement "{\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      }" { (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "uVar2 = param_2 & 7;" (assignment_expression "uVar2 = param_2 & 7" identifier = (binary_expression "param_2 & 7" identifier & number_literal)) ;) (expression_statement "param_2 = param_2 >> 3;" (assignment_expression "param_2 = param_2 >> 3" identifier = (binary_expression "param_2 >> 3" identifier >> number_literal)) ;) (expression_statement "*puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);" (assignment_expression "*puVar3 = *(undefined1 *)(param_3 + 4 + uVar2)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined1 *)(param_3 + 4 + uVar2)" * (cast_expression "(undefined1 *)(param_3 + 4 + uVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4 + uVar2)" ( (binary_expression "param_3 + 4 + uVar2" (binary_expression "param_3 + 4" identifier + number_literal) + identifier) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) }) (else_clause "else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }" else (compound_statement "{\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }" { (do_statement "do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);" do (compound_statement "{\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      }" { (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "uVar2 = param_2 & 0xf;" (assignment_expression "uVar2 = param_2 & 0xf" identifier = (binary_expression "param_2 & 0xf" identifier & number_literal)) ;) (expression_statement "param_2 = param_2 >> 4;" (assignment_expression "param_2 = param_2 >> 4" identifier = (binary_expression "param_2 >> 4" identifier >> number_literal)) ;) (expression_statement "*puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);" (assignment_expression "*puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" * (cast_expression "(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" ( (binary_expression "param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2" (binary_expression "param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0)" (binary_expression "param_3 + 0x14" identifier + number_literal) + (parenthesized_expression "(-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0)" ( (binary_expression "-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0" (unary_expression "-(uint)((param_4 & 0x4000) == 0)" - (call_expression "(uint)((param_4 & 0x4000) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_4 & 0x4000) == 0)" ( (binary_expression "(param_4 & 0x4000) == 0" (parenthesized_expression "(param_4 & 0x4000)" ( (binary_expression "param_4 & 0x4000" identifier & number_literal) )) == number_literal) )))) & number_literal) ))) + identifier) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) }))) }) (else_clause "else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }" else (compound_statement "{\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }" { (do_statement "do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);" do (compound_statement "{\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    }" { (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "*puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);" (assignment_expression "*puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined1 *)(param_3 + 4 + param_2 % 10)" * (cast_expression "(undefined1 *)(param_3 + 4 + param_2 % 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4 + param_2 % 10)" ( (binary_expression "param_3 + 4 + param_2 % 10" (binary_expression "param_3 + 4" identifier + number_literal) + (binary_expression "param_2 % 10" identifier % number_literal)) ))))) ;) (expression_statement "bVar1 = 9 < param_2;" (assignment_expression "bVar1 = 9 < param_2" identifier = (binary_expression "9 < param_2" number_literal < identifier)) ;) (expression_statement "param_2 = param_2 / 10;" (assignment_expression "param_2 = param_2 / 10" identifier = (binary_expression "param_2 / 10" identifier / number_literal)) ;) }) while (parenthesized_expression "(bVar1)" ( identifier )) ;) }))) (return_statement "return (int)param_1 - (int)puVar3;" return (binary_expression "(int)param_1 - (int)puVar3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (ERROR "}" }))
(translation_unit "int FUN_003c6780(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)\n\n{\n  bool bVar1;\n  uint uVar2;\n  undefined1 *puVar3;\n  \n  puVar3 = param_1;\n  if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }\n  return (int)param_1 - (int)puVar3;\n}\n\n" (function_definition "int FUN_003c6780(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)\n\n{\n  bool bVar1;\n  uint uVar2;\n  undefined1 *puVar3;\n  \n  puVar3 = param_1;\n  if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }\n  return (int)param_1 - (int)puVar3;\n}" primitive_type (function_declarator "FUN_003c6780(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)" identifier (parameter_list "(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "uint param_4" type_identifier identifier) , (parameter_declaration "char param_5" primitive_type identifier) ))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  undefined1 *puVar3;\n  \n  puVar3 = param_1;\n  if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }\n  return (int)param_1 - (int)puVar3;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar3 = param_1;" (assignment_expression "puVar3 = param_1" identifier = identifier) ;) (if_statement "if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }" if (parenthesized_expression "(param_5 == '\0')" ( (binary_expression "param_5 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }" { (if_statement "if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }" if (parenthesized_expression "((param_4 & 0x4a) == 0x40)" ( (binary_expression "(param_4 & 0x4a) == 0x40" (parenthesized_expression "(param_4 & 0x4a)" ( (binary_expression "param_4 & 0x4a" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }" { (do_statement "do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);" do (compound_statement "{\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      }" { (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "uVar2 = param_2 & 7;" (assignment_expression "uVar2 = param_2 & 7" identifier = (binary_expression "param_2 & 7" identifier & number_literal)) ;) (expression_statement "param_2 = param_2 >> 3;" (assignment_expression "param_2 = param_2 >> 3" identifier = (binary_expression "param_2 >> 3" identifier >> number_literal)) ;) (expression_statement "*puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);" (assignment_expression "*puVar3 = *(undefined1 *)(param_3 + 4 + uVar2)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined1 *)(param_3 + 4 + uVar2)" * (cast_expression "(undefined1 *)(param_3 + 4 + uVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4 + uVar2)" ( (binary_expression "param_3 + 4 + uVar2" (binary_expression "param_3 + 4" identifier + number_literal) + identifier) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) }) (else_clause "else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }" else (compound_statement "{\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }" { (do_statement "do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);" do (compound_statement "{\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      }" { (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "uVar2 = param_2 & 0xf;" (assignment_expression "uVar2 = param_2 & 0xf" identifier = (binary_expression "param_2 & 0xf" identifier & number_literal)) ;) (expression_statement "param_2 = param_2 >> 4;" (assignment_expression "param_2 = param_2 >> 4" identifier = (binary_expression "param_2 >> 4" identifier >> number_literal)) ;) (expression_statement "*puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);" (assignment_expression "*puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" * (cast_expression "(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" ( (binary_expression "param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2" (binary_expression "param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0)" (binary_expression "param_3 + 0x14" identifier + number_literal) + (parenthesized_expression "(-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0)" ( (binary_expression "-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0" (unary_expression "-(uint)((param_4 & 0x4000) == 0)" - (call_expression "(uint)((param_4 & 0x4000) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_4 & 0x4000) == 0)" ( (binary_expression "(param_4 & 0x4000) == 0" (parenthesized_expression "(param_4 & 0x4000)" ( (binary_expression "param_4 & 0x4000" identifier & number_literal) )) == number_literal) )))) & number_literal) ))) + identifier) ))))) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) }))) }) (else_clause "else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }" else (compound_statement "{\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }" { (do_statement "do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);" do (compound_statement "{\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    }" { (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" identifier = (binary_expression "puVar3 + -1" identifier + number_literal)) ;) (expression_statement "*puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);" (assignment_expression "*puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10)" (pointer_expression "*puVar3" * identifier) = (pointer_expression "*(undefined1 *)(param_3 + 4 + param_2 % 10)" * (cast_expression "(undefined1 *)(param_3 + 4 + param_2 % 10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4 + param_2 % 10)" ( (binary_expression "param_3 + 4 + param_2 % 10" (binary_expression "param_3 + 4" identifier + number_literal) + (binary_expression "param_2 % 10" identifier % number_literal)) ))))) ;) (expression_statement "bVar1 = 9 < param_2;" (assignment_expression "bVar1 = 9 < param_2" identifier = (binary_expression "9 < param_2" number_literal < identifier)) ;) (expression_statement "param_2 = param_2 / 10;" (assignment_expression "param_2 = param_2 / 10" identifier = (binary_expression "param_2 / 10" identifier / number_literal)) ;) }) while (parenthesized_expression "(bVar1)" ( identifier )) ;) }))) (return_statement "return (int)param_1 - (int)puVar3;" return (binary_expression "(int)param_1 - (int)puVar3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + LIT) + (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )))) & LIT) ))) + IDENT) ))))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }))) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (binary_expression IDENT % LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression LIT < IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) }))) (return_statement return (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })))
(function_definition "int FUN_003c6780(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)\n\n{\n  bool bVar1;\n  uint uVar2;\n  undefined1 *puVar3;\n  \n  puVar3 = param_1;\n  if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }\n  return (int)param_1 - (int)puVar3;\n}" (primitive_type "int") (function_declarator "FUN_003c6780(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)" (identifier "FUN_003c6780") (parameter_list "(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) (, ",") (parameter_declaration "char param_5" (primitive_type "char") (identifier "param_5")) () ")"))) (compound_statement "{\n  bool bVar1;\n  uint uVar2;\n  undefined1 *puVar3;\n  \n  puVar3 = param_1;\n  if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }\n  return (int)param_1 - (int)puVar3;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "puVar3 = param_1;" (assignment_expression "puVar3 = param_1" (identifier "puVar3") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (param_5 == '\0') {\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }\n  else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }" (if "if") (parenthesized_expression "(param_5 == '\0')" (( "(") (binary_expression "param_5 == '\0'" (identifier "param_5") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }\n  }" ({ "{") (if_statement "if ((param_4 & 0x4a) == 0x40) {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }\n    else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }" (if "if") (parenthesized_expression "((param_4 & 0x4a) == 0x40)" (( "(") (binary_expression "(param_4 & 0x4a) == 0x40" (parenthesized_expression "(param_4 & 0x4a)" (( "(") (binary_expression "param_4 & 0x4a" (identifier "param_4") (& "&") (number_literal "0x4a")) () ")")) (== "==") (number_literal "0x40")) () ")")) (compound_statement "{\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);\n    }" ({ "{") (do_statement "do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      } while (param_2 != 0);" (do "do") (compound_statement "{\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 7;\n        param_2 = param_2 >> 3;\n        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);\n      }" ({ "{") (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + -1" (identifier "puVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar2 = param_2 & 7;" (assignment_expression "uVar2 = param_2 & 7" (identifier "uVar2") (= "=") (binary_expression "param_2 & 7" (identifier "param_2") (& "&") (number_literal "7"))) (; ";")) (expression_statement "param_2 = param_2 >> 3;" (assignment_expression "param_2 = param_2 >> 3" (identifier "param_2") (= "=") (binary_expression "param_2 >> 3" (identifier "param_2") (>> ">>") (number_literal "3"))) (; ";")) (expression_statement "*puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);" (assignment_expression "*puVar3 = *(undefined1 *)(param_3 + 4 + uVar2)" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*(undefined1 *)(param_3 + 4 + uVar2)" (* "*") (cast_expression "(undefined1 *)(param_3 + 4 + uVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4 + uVar2)" (( "(") (binary_expression "param_3 + 4 + uVar2" (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) (+ "+") (identifier "uVar2")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")) (else_clause "else {\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }" (else "else") (compound_statement "{\n      do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);\n    }" ({ "{") (do_statement "do {\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      } while (param_2 != 0);" (do "do") (compound_statement "{\n        puVar3 = puVar3 + -1;\n        uVar2 = param_2 & 0xf;\n        param_2 = param_2 >> 4;\n        *puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);\n      }" ({ "{") (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + -1" (identifier "puVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar2 = param_2 & 0xf;" (assignment_expression "uVar2 = param_2 & 0xf" (identifier "uVar2") (= "=") (binary_expression "param_2 & 0xf" (identifier "param_2") (& "&") (number_literal "0xf"))) (; ";")) (expression_statement "param_2 = param_2 >> 4;" (assignment_expression "param_2 = param_2 >> 4" (identifier "param_2") (= "=") (binary_expression "param_2 >> 4" (identifier "param_2") (>> ">>") (number_literal "4"))) (; ";")) (expression_statement "*puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);" (assignment_expression "*puVar3 = *(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" (* "*") (cast_expression "(undefined1 *)\n                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2)" (( "(") (binary_expression "param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2" (binary_expression "param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0)" (binary_expression "param_3 + 0x14" (identifier "param_3") (+ "+") (number_literal "0x14")) (+ "+") (parenthesized_expression "(-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0)" (( "(") (binary_expression "-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0" (unary_expression "-(uint)((param_4 & 0x4000) == 0)" (- "-") (call_expression "(uint)((param_4 & 0x4000) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((param_4 & 0x4000) == 0)" (( "(") (binary_expression "(param_4 & 0x4000) == 0" (parenthesized_expression "(param_4 & 0x4000)" (( "(") (binary_expression "param_4 & 0x4000" (identifier "param_4") (& "&") (number_literal "0x4000")) () ")")) (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "0xfffffff0")) () ")"))) (+ "+") (identifier "uVar2")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }" (else "else") (compound_statement "{\n    do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);\n  }" ({ "{") (do_statement "do {\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    } while (bVar1);" (do "do") (compound_statement "{\n      puVar3 = puVar3 + -1;\n      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);\n      bVar1 = 9 < param_2;\n      param_2 = param_2 / 10;\n    }" ({ "{") (expression_statement "puVar3 = puVar3 + -1;" (assignment_expression "puVar3 = puVar3 + -1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + -1" (identifier "puVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);" (assignment_expression "*puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10)" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "*(undefined1 *)(param_3 + 4 + param_2 % 10)" (* "*") (cast_expression "(undefined1 *)(param_3 + 4 + param_2 % 10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4 + param_2 % 10)" (( "(") (binary_expression "param_3 + 4 + param_2 % 10" (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) (+ "+") (binary_expression "param_2 % 10" (identifier "param_2") (% "%") (number_literal "10"))) () ")"))))) (; ";")) (expression_statement "bVar1 = 9 < param_2;" (assignment_expression "bVar1 = 9 < param_2" (identifier "bVar1") (= "=") (binary_expression "9 < param_2" (number_literal "9") (< "<") (identifier "param_2"))) (; ";")) (expression_statement "param_2 = param_2 / 10;" (assignment_expression "param_2 = param_2 / 10" (identifier "param_2") (= "=") (binary_expression "param_2 / 10" (identifier "param_2") (/ "/") (number_literal "10"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar1)" (( "(") (identifier "bVar1") () ")")) (; ";")) (} "}")))) (return_statement "return (int)param_1 - (int)puVar3;" (return "return") (binary_expression "(int)param_1 - (int)puVar3" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (- "-") (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3"))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* int std::__int_to_char<char, unsigned long>(char*, unsigned long, char const*,
   std::_Ios_Fmtflags, bool) */

int std::__int_to_char<char,unsigned_long>
              (type_2 *param_1,type_1 var_4,int var_5,type_1 var_2,char var_1)

{
  bool bVar1;
  type_1 var_6;
  type_2 *var_3;
  
  var_3 = param_1;
  if (var_1 == '\0') {
    if ((var_2 & 0x4a) == 0x40) {
      do {
        var_3 = var_3 + -1;
        var_6 = var_4 & 7;
        var_4 = var_4 >> 3;
        *var_3 = *(type_2 *)(var_5 + 4 + var_6);
      } while (var_4 != 0);
    }
    else {
      do {
        var_3 = var_3 + -1;
        var_6 = var_4 & 0xf;
        var_4 = var_4 >> 4;
        *var_3 = *(type_2 *)
                   (var_5 + 0x14 + (-(type_1)((var_2 & 0x4000) == 0) & 0xfffffff0) + var_6);
      } while (var_4 != 0);
    }
  }
  else {
    do {
      var_3 = var_3 + -1;
      *var_3 = *(type_2 *)(var_5 + 4 + var_4 % 10);
      bVar1 = 9 < var_4;
      var_4 = var_4 / 10;
    } while (bVar1);
  }
  return (int)param_1 - (int)var_3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (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: (number_literal)) right: (identifier)))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (unary_expression argument: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) right: (number_literal)))) right: (identifier)))))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (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: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (identifier)))))) (return_statement (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))

int MASKED(undefined1 *param_1,uint param_2,int param_3,uint param_4,char param_5)

{
  bool bVar1;
  uint uVar2;
  undefined1 *puVar3;
  
  puVar3 = param_1;
  if (param_5 == '\0') {
    if ((param_4 & 0x4a) == 0x40) {
      do {
        puVar3 = puVar3 + -1;
        uVar2 = param_2 & 7;
        param_2 = param_2 >> 3;
        *puVar3 = *(undefined1 *)(param_3 + 4 + uVar2);
      } while (param_2 != 0);
    }
    else {
      do {
        puVar3 = puVar3 + -1;
        uVar2 = param_2 & 0xf;
        param_2 = param_2 >> 4;
        *puVar3 = *(undefined1 *)
                   (param_3 + 0x14 + (-(uint)((param_4 & 0x4000) == 0) & 0xfffffff0) + uVar2);
      } while (param_2 != 0);
    }
  }
  else {
    do {
      puVar3 = puVar3 + -1;
      *puVar3 = *(undefined1 *)(param_3 + 4 + param_2 % 10);
      bVar1 = 9 < param_2;
      param_2 = param_2 / 10;
    } while (bVar1);
  }
  return (int)param_1 - (int)puVar3;
}

