
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* int std::__int_to_char<char, unsigned long long>(char*, unsigned long long, char const*,
   std::_Ios_Fmtflags, bool) */

int std::__int_to_char<char,unsigned_long_long>(void)

{
}



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

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

{
  int iVar1;
  undefined1 *puVar2;
  uint uVar3;
  int iVar4;
  undefined8 uVar5;
  
  uVar5 = CONCAT44(param_3,param_2);
  puVar2 = param_1;
  if (param_6 == '\0') {
    if ((param_5 & 0x4a) == 0x40) {
      do {
        uVar3 = param_2 >> 3 | param_3 << 0x1d;
        puVar2 = puVar2 + -1;
        param_3 = param_3 >> 3;
        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));
        param_2 = uVar3;
      } while (param_3 != 0 || uVar3 != 0);
    }
    else {
      do {
        uVar3 = param_2 >> 4 | param_3 << 0x1c;
        puVar2 = puVar2 + -1;
        param_3 = param_3 >> 4;
        *puVar2 = *(undefined1 *)
                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +
                   (param_2 & 0xf));
        param_2 = uVar3;
      } while (param_3 != 0 || uVar3 != 0);
    }
  }
  else {
    do {
      iVar4 = (int)((ulonglong)uVar5 >> 0x20);
      uVar3 = (uint)uVar5;
      puVar2 = puVar2 + -1;
      iVar1 = FUN_002dccc0(uVar5,10,0);
      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);
      uVar5 = FUN_002dcbb0(uVar5,10,0);
    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));
  }
  return (int)param_1 - (int)puVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0003a210
ADD EBX,0x1b3627
SUB ESP,0xc
CMP byte ptr [ESP + 0x34],0x0
MOV ESI,dword ptr [ESP + 0x24]
MOV EDI,dword ptr [ESP + 0x28]
JZ 0x00260a50
MOV EBP,dword ptr [ESP + 0x20]
JMP 0x00260a04
MOV ESI,EAX
MOV EDI,EDX
PUSH 0x0
SUB EBP,0x1
PUSH 0xa
PUSH EDI
PUSH ESI
CALL 0x002dccc0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x2c]
MOVZX EAX,byte ptr [ECX + EAX*0x1 + 0x4]
MOV byte ptr [EBP],AL
PUSH 0x0
PUSH 0xa
PUSH EDI
PUSH ESI
CALL 0x002dcbb0
MOV ECX,0x9
ADD ESP,0x10
CMP ECX,ESI
MOV ECX,0x0
SBB ECX,EDI
JC 0x00260a00
MOV EAX,dword ptr [ESP + 0x20]
ADD ESP,0xc
POP EBX
POP ESI
SUB EAX,EBP
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x30]
AND EAX,0x4a
CMP EAX,0x40
JZ 0x00260a9e
MOV EAX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x2c]
MOV EBP,dword ptr [ESP + 0x20]
AND EAX,0x4000
CMP EAX,0x1
SBB EAX,EAX
AND EAX,0xfffffff0
LEA ECX,[EDX + EAX*0x1 + 0x14]
LEA ESI,[ESI]
MOV EAX,ESI
SHRD ESI,EDI,0x4
SUB EBP,0x1
AND EAX,0xf
SHR EDI,0x4
MOVZX EAX,byte ptr [ECX + EAX*0x1]
MOV EDX,EDI
OR EDX,ESI
MOV byte ptr [EBP],AL
JNZ 0x00260a80
JMP 0x00260a3f
MOV EBP,dword ptr [ESP + 0x20]
MOV ECX,dword ptr [ESP + 0x2c]
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EAX,ESI
SHRD ESI,EDI,0x3
SUB EBP,0x1
AND EAX,0x7
SHR EDI,0x3
MOVZX EAX,byte ptr [ECX + EAX*0x1 + 0x4]
MOV EDX,EDI
OR EDX,ESI
MOV byte ptr [EBP],AL
JNZ 0x00260ab0
JMP 0x00260a3f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_002609d0(undefined1 *param_1,uint param_2,uint param_3,int param_4,uint param_5,char param_6\n                )\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_3,param_2);\n  puVar2 = param_1;\n  if (param_6 == '\0') {\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }\n  else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }\n  return (int)param_1 - (int)puVar2;\n}\n\n" comment (function_definition "int FUN_002609d0(undefined1 *param_1,uint param_2,uint param_3,int param_4,uint param_5,char param_6\n                )\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_3,param_2);\n  puVar2 = param_1;\n  if (param_6 == '\0') {\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }\n  else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }\n  return (int)param_1 - (int)puVar2;\n}" primitive_type (function_declarator "FUN_002609d0(undefined1 *param_1,uint param_2,uint param_3,int param_4,uint param_5,char param_6\n                )" identifier (parameter_list "(undefined1 *param_1,uint param_2,uint param_3,int param_4,uint param_5,char param_6\n                )" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "char param_6" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_3,param_2);\n  puVar2 = param_1;\n  if (param_6 == '\0') {\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }\n  else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }\n  return (int)param_1 - (int)puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = CONCAT44(param_3,param_2);" (assignment_expression "uVar5 = CONCAT44(param_3,param_2)" identifier = (call_expression "CONCAT44(param_3,param_2)" identifier (argument_list "(param_3,param_2)" ( identifier , identifier )))) ;) (expression_statement "puVar2 = param_1;" (assignment_expression "puVar2 = param_1" identifier = identifier) ;) (if_statement "if (param_6 == '\0') {\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }\n  else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }" if (parenthesized_expression "(param_6 == '\0')" ( (binary_expression "param_6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }" { (if_statement "if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }" if (parenthesized_expression "((param_5 & 0x4a) == 0x40)" ( (binary_expression "(param_5 & 0x4a) == 0x40" (parenthesized_expression "(param_5 & 0x4a)" ( (binary_expression "param_5 & 0x4a" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }" { (do_statement "do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);" do (compound_statement "{\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      }" { (expression_statement "uVar3 = param_2 >> 3 | param_3 << 0x1d;" (assignment_expression "uVar3 = param_2 >> 3 | param_3 << 0x1d" identifier = (binary_expression "param_2 >> 3 | param_3 << 0x1d" (binary_expression "param_2 >> 3" identifier >> number_literal) | (binary_expression "param_3 << 0x1d" identifier << number_literal))) ;) (expression_statement "puVar2 = puVar2 + -1;" (assignment_expression "puVar2 = puVar2 + -1" identifier = (binary_expression "puVar2 + -1" identifier + number_literal)) ;) (expression_statement "param_3 = param_3 >> 3;" (assignment_expression "param_3 = param_3 >> 3" identifier = (binary_expression "param_3 >> 3" identifier >> number_literal)) ;) (expression_statement "*puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));" (assignment_expression "*puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7))" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*(undefined1 *)(param_4 + 4 + (param_2 & 7))" * (cast_expression "(undefined1 *)(param_4 + 4 + (param_2 & 7))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4 + (param_2 & 7))" ( (binary_expression "param_4 + 4 + (param_2 & 7)" (binary_expression "param_4 + 4" identifier + number_literal) + (parenthesized_expression "(param_2 & 7)" ( (binary_expression "param_2 & 7" identifier & number_literal) ))) ))))) ;) (expression_statement "param_2 = uVar3;" (assignment_expression "param_2 = uVar3" identifier = identifier) ;) }) while (parenthesized_expression "(param_3 != 0 || uVar3 != 0)" ( (binary_expression "param_3 != 0 || uVar3 != 0" (binary_expression "param_3 != 0" identifier != number_literal) || (binary_expression "uVar3 != 0" identifier != number_literal)) )) ;) }) (else_clause "else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }" else (compound_statement "{\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }" { (do_statement "do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);" do (compound_statement "{\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      }" { (expression_statement "uVar3 = param_2 >> 4 | param_3 << 0x1c;" (assignment_expression "uVar3 = param_2 >> 4 | param_3 << 0x1c" identifier = (binary_expression "param_2 >> 4 | param_3 << 0x1c" (binary_expression "param_2 >> 4" identifier >> number_literal) | (binary_expression "param_3 << 0x1c" identifier << number_literal))) ;) (expression_statement "puVar2 = puVar2 + -1;" (assignment_expression "puVar2 = puVar2 + -1" identifier = (binary_expression "puVar2 + -1" identifier + number_literal)) ;) (expression_statement "param_3 = param_3 >> 4;" (assignment_expression "param_3 = param_3 >> 4" identifier = (binary_expression "param_3 >> 4" identifier >> number_literal)) ;) (expression_statement "*puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));" (assignment_expression "*puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf))" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf))" * (cast_expression "(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf))" ( (binary_expression "param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf)" (binary_expression "param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0)" (binary_expression "param_4 + 0x14" identifier + number_literal) + (parenthesized_expression "(-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0)" ( (binary_expression "-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0" (unary_expression "-(uint)((param_5 & 0x4000) == 0)" - (call_expression "(uint)((param_5 & 0x4000) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_5 & 0x4000) == 0)" ( (binary_expression "(param_5 & 0x4000) == 0" (parenthesized_expression "(param_5 & 0x4000)" ( (binary_expression "param_5 & 0x4000" identifier & number_literal) )) == number_literal) )))) & number_literal) ))) + (parenthesized_expression "(param_2 & 0xf)" ( (binary_expression "param_2 & 0xf" identifier & number_literal) ))) ))))) ;) (expression_statement "param_2 = uVar3;" (assignment_expression "param_2 = uVar3" identifier = identifier) ;) }) while (parenthesized_expression "(param_3 != 0 || uVar3 != 0)" ( (binary_expression "param_3 != 0 || uVar3 != 0" (binary_expression "param_3 != 0" identifier != number_literal) || (binary_expression "uVar3 != 0" identifier != number_literal)) )) ;) }))) }) (else_clause "else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }" else (compound_statement "{\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }" { (do_statement "do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));" do (compound_statement "{\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    }" { (expression_statement "iVar4 = (int)((ulonglong)uVar5 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar5 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar5 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar5 >> 0x20)" ( (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar3 = (uint)uVar5;" (assignment_expression "uVar3 = (uint)uVar5" identifier = (cast_expression "(uint)uVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar2 = puVar2 + -1;" (assignment_expression "puVar2 = puVar2 + -1" identifier = (binary_expression "puVar2 + -1" identifier + number_literal)) ;) (expression_statement "iVar1 = FUN_002dccc0(uVar5,10,0);" (assignment_expression "iVar1 = FUN_002dccc0(uVar5,10,0)" identifier = (call_expression "FUN_002dccc0(uVar5,10,0)" identifier (argument_list "(uVar5,10,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);" (assignment_expression "*puVar2 = *(undefined1 *)(param_4 + 4 + iVar1)" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*(undefined1 *)(param_4 + 4 + iVar1)" * (cast_expression "(undefined1 *)(param_4 + 4 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4 + iVar1)" ( (binary_expression "param_4 + 4 + iVar1" (binary_expression "param_4 + 4" identifier + number_literal) + identifier) ))))) ;) (expression_statement "uVar5 = FUN_002dcbb0(uVar5,10,0);" (assignment_expression "uVar5 = FUN_002dcbb0(uVar5,10,0)" identifier = (call_expression "FUN_002dcbb0(uVar5,10,0)" identifier (argument_list "(uVar5,10,0)" ( identifier , number_literal , number_literal )))) ;) }) while (parenthesized_expression "(iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3))" ( (binary_expression "iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "iVar4 != 0" identifier != number_literal) || (binary_expression "(uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(9 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(9 < uVar3)" ( (binary_expression "9 < uVar3" number_literal < identifier) ))))) )) ;) }))) (return_statement "return (int)param_1 - (int)puVar2;" return (binary_expression "(int)param_1 - (int)puVar2" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* int std::__int_to_char<char, unsigned long long>(char*, unsigned long long, char const*,\n   std::_Ios_Fmtflags, bool) */\n\nint std::__int_to_char<char,unsigned_long_long>(void)\n\n{\n}\n\n" comment comment comment (ERROR "int std::__int_to_char<char,unsigned_long_long>(void)" primitive_type (ERROR "std::" identifier : :) identifier (ERROR "<char" < primitive_type) , identifier > ( primitive_type )) (compound_statement "{\n}" { }))
(translation_unit "int FUN_002609d0(undefined1 *param_1,uint param_2,uint param_3,int param_4,uint param_5,char param_6\n                )\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_3,param_2);\n  puVar2 = param_1;\n  if (param_6 == '\0') {\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }\n  else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }\n  return (int)param_1 - (int)puVar2;\n}\n\n" (function_definition "int FUN_002609d0(undefined1 *param_1,uint param_2,uint param_3,int param_4,uint param_5,char param_6\n                )\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_3,param_2);\n  puVar2 = param_1;\n  if (param_6 == '\0') {\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }\n  else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }\n  return (int)param_1 - (int)puVar2;\n}" primitive_type (function_declarator "FUN_002609d0(undefined1 *param_1,uint param_2,uint param_3,int param_4,uint param_5,char param_6\n                )" identifier (parameter_list "(undefined1 *param_1,uint param_2,uint param_3,int param_4,uint param_5,char param_6\n                )" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) , (parameter_declaration "char param_6" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_3,param_2);\n  puVar2 = param_1;\n  if (param_6 == '\0') {\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }\n  else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }\n  return (int)param_1 - (int)puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined8 uVar5;" type_identifier identifier ;) (expression_statement "uVar5 = CONCAT44(param_3,param_2);" (assignment_expression "uVar5 = CONCAT44(param_3,param_2)" identifier = (call_expression "CONCAT44(param_3,param_2)" identifier (argument_list "(param_3,param_2)" ( identifier , identifier )))) ;) (expression_statement "puVar2 = param_1;" (assignment_expression "puVar2 = param_1" identifier = identifier) ;) (if_statement "if (param_6 == '\0') {\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }\n  else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }" if (parenthesized_expression "(param_6 == '\0')" ( (binary_expression "param_6 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }" { (if_statement "if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }" if (parenthesized_expression "((param_5 & 0x4a) == 0x40)" ( (binary_expression "(param_5 & 0x4a) == 0x40" (parenthesized_expression "(param_5 & 0x4a)" ( (binary_expression "param_5 & 0x4a" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }" { (do_statement "do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);" do (compound_statement "{\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      }" { (expression_statement "uVar3 = param_2 >> 3 | param_3 << 0x1d;" (assignment_expression "uVar3 = param_2 >> 3 | param_3 << 0x1d" identifier = (binary_expression "param_2 >> 3 | param_3 << 0x1d" (binary_expression "param_2 >> 3" identifier >> number_literal) | (binary_expression "param_3 << 0x1d" identifier << number_literal))) ;) (expression_statement "puVar2 = puVar2 + -1;" (assignment_expression "puVar2 = puVar2 + -1" identifier = (binary_expression "puVar2 + -1" identifier + number_literal)) ;) (expression_statement "param_3 = param_3 >> 3;" (assignment_expression "param_3 = param_3 >> 3" identifier = (binary_expression "param_3 >> 3" identifier >> number_literal)) ;) (expression_statement "*puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));" (assignment_expression "*puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7))" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*(undefined1 *)(param_4 + 4 + (param_2 & 7))" * (cast_expression "(undefined1 *)(param_4 + 4 + (param_2 & 7))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4 + (param_2 & 7))" ( (binary_expression "param_4 + 4 + (param_2 & 7)" (binary_expression "param_4 + 4" identifier + number_literal) + (parenthesized_expression "(param_2 & 7)" ( (binary_expression "param_2 & 7" identifier & number_literal) ))) ))))) ;) (expression_statement "param_2 = uVar3;" (assignment_expression "param_2 = uVar3" identifier = identifier) ;) }) while (parenthesized_expression "(param_3 != 0 || uVar3 != 0)" ( (binary_expression "param_3 != 0 || uVar3 != 0" (binary_expression "param_3 != 0" identifier != number_literal) || (binary_expression "uVar3 != 0" identifier != number_literal)) )) ;) }) (else_clause "else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }" else (compound_statement "{\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }" { (do_statement "do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);" do (compound_statement "{\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      }" { (expression_statement "uVar3 = param_2 >> 4 | param_3 << 0x1c;" (assignment_expression "uVar3 = param_2 >> 4 | param_3 << 0x1c" identifier = (binary_expression "param_2 >> 4 | param_3 << 0x1c" (binary_expression "param_2 >> 4" identifier >> number_literal) | (binary_expression "param_3 << 0x1c" identifier << number_literal))) ;) (expression_statement "puVar2 = puVar2 + -1;" (assignment_expression "puVar2 = puVar2 + -1" identifier = (binary_expression "puVar2 + -1" identifier + number_literal)) ;) (expression_statement "param_3 = param_3 >> 4;" (assignment_expression "param_3 = param_3 >> 4" identifier = (binary_expression "param_3 >> 4" identifier >> number_literal)) ;) (expression_statement "*puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));" (assignment_expression "*puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf))" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf))" * (cast_expression "(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf))" ( (binary_expression "param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf)" (binary_expression "param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0)" (binary_expression "param_4 + 0x14" identifier + number_literal) + (parenthesized_expression "(-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0)" ( (binary_expression "-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0" (unary_expression "-(uint)((param_5 & 0x4000) == 0)" - (call_expression "(uint)((param_5 & 0x4000) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((param_5 & 0x4000) == 0)" ( (binary_expression "(param_5 & 0x4000) == 0" (parenthesized_expression "(param_5 & 0x4000)" ( (binary_expression "param_5 & 0x4000" identifier & number_literal) )) == number_literal) )))) & number_literal) ))) + (parenthesized_expression "(param_2 & 0xf)" ( (binary_expression "param_2 & 0xf" identifier & number_literal) ))) ))))) ;) (expression_statement "param_2 = uVar3;" (assignment_expression "param_2 = uVar3" identifier = identifier) ;) }) while (parenthesized_expression "(param_3 != 0 || uVar3 != 0)" ( (binary_expression "param_3 != 0 || uVar3 != 0" (binary_expression "param_3 != 0" identifier != number_literal) || (binary_expression "uVar3 != 0" identifier != number_literal)) )) ;) }))) }) (else_clause "else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }" else (compound_statement "{\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }" { (do_statement "do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));" do (compound_statement "{\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    }" { (expression_statement "iVar4 = (int)((ulonglong)uVar5 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar5 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar5 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar5 >> 0x20)" ( (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar3 = (uint)uVar5;" (assignment_expression "uVar3 = (uint)uVar5" identifier = (cast_expression "(uint)uVar5" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "puVar2 = puVar2 + -1;" (assignment_expression "puVar2 = puVar2 + -1" identifier = (binary_expression "puVar2 + -1" identifier + number_literal)) ;) (expression_statement "iVar1 = FUN_002dccc0(uVar5,10,0);" (assignment_expression "iVar1 = FUN_002dccc0(uVar5,10,0)" identifier = (call_expression "FUN_002dccc0(uVar5,10,0)" identifier (argument_list "(uVar5,10,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);" (assignment_expression "*puVar2 = *(undefined1 *)(param_4 + 4 + iVar1)" (pointer_expression "*puVar2" * identifier) = (pointer_expression "*(undefined1 *)(param_4 + 4 + iVar1)" * (cast_expression "(undefined1 *)(param_4 + 4 + iVar1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4 + iVar1)" ( (binary_expression "param_4 + 4 + iVar1" (binary_expression "param_4 + 4" identifier + number_literal) + identifier) ))))) ;) (expression_statement "uVar5 = FUN_002dcbb0(uVar5,10,0);" (assignment_expression "uVar5 = FUN_002dcbb0(uVar5,10,0)" identifier = (call_expression "FUN_002dcbb0(uVar5,10,0)" identifier (argument_list "(uVar5,10,0)" ( identifier , number_literal , number_literal )))) ;) }) while (parenthesized_expression "(iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3))" ( (binary_expression "iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "iVar4 != 0" identifier != number_literal) || (binary_expression "(uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(9 < uVar3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(9 < uVar3)" ( (binary_expression "9 < uVar3" number_literal < identifier) ))))) )) ;) }))) (return_statement "return (int)param_1 - (int)puVar2;" return (binary_expression "(int)param_1 - (int)puVar2" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)puVar2" ( (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) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , 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 (binary_expression IDENT >> LIT) | (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) + (parenthesized_expression ( (binary_expression IDENT & LIT) ))) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT >> LIT) | (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) ))) + (parenthesized_expression ( (binary_expression IDENT & LIT) ))) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression IDENT != LIT)) )) ;) }))) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , 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) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , LIT )))) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression (binary_expression (parenthesized_expression ( IDENT )) - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < IDENT) ))))) )) ;) }))) (return_statement return (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })))
(function_definition "int FUN_002609d0(undefined1 *param_1,uint param_2,uint param_3,int param_4,uint param_5,char param_6\n                )\n\n{\n  int iVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_3,param_2);\n  puVar2 = param_1;\n  if (param_6 == '\0') {\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }\n  else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }\n  return (int)param_1 - (int)puVar2;\n}" (primitive_type "int") (function_declarator "FUN_002609d0(undefined1 *param_1,uint param_2,uint param_3,int param_4,uint param_5,char param_6\n                )" (identifier "FUN_002609d0") (parameter_list "(undefined1 *param_1,uint param_2,uint param_3,int param_4,uint param_5,char param_6\n                )" (( "(") (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 "uint param_3" (type_identifier "uint") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) (, ",") (parameter_declaration "char param_6" (primitive_type "char") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined1 *puVar2;\n  uint uVar3;\n  int iVar4;\n  undefined8 uVar5;\n  \n  uVar5 = CONCAT44(param_3,param_2);\n  puVar2 = param_1;\n  if (param_6 == '\0') {\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }\n  else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }\n  return (int)param_1 - (int)puVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined8 uVar5;" (type_identifier "undefined8") (identifier "uVar5") (; ";")) (expression_statement "uVar5 = CONCAT44(param_3,param_2);" (assignment_expression "uVar5 = CONCAT44(param_3,param_2)" (identifier "uVar5") (= "=") (call_expression "CONCAT44(param_3,param_2)" (identifier "CONCAT44") (argument_list "(param_3,param_2)" (( "(") (identifier "param_3") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "puVar2 = param_1;" (assignment_expression "puVar2 = param_1" (identifier "puVar2") (= "=") (identifier "param_1")) (; ";")) (if_statement "if (param_6 == '\0') {\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }\n  else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }" (if "if") (parenthesized_expression "(param_6 == '\0')" (( "(") (binary_expression "param_6 == '\0'" (identifier "param_6") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n  }" ({ "{") (if_statement "if ((param_5 & 0x4a) == 0x40) {\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }\n    else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }" (if "if") (parenthesized_expression "((param_5 & 0x4a) == 0x40)" (( "(") (binary_expression "(param_5 & 0x4a) == 0x40" (parenthesized_expression "(param_5 & 0x4a)" (( "(") (binary_expression "param_5 & 0x4a" (identifier "param_5") (& "&") (number_literal "0x4a")) () ")")) (== "==") (number_literal "0x40")) () ")")) (compound_statement "{\n      do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }" ({ "{") (do_statement "do {\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);" (do "do") (compound_statement "{\n        uVar3 = param_2 >> 3 | param_3 << 0x1d;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 3;\n        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));\n        param_2 = uVar3;\n      }" ({ "{") (expression_statement "uVar3 = param_2 >> 3 | param_3 << 0x1d;" (assignment_expression "uVar3 = param_2 >> 3 | param_3 << 0x1d" (identifier "uVar3") (= "=") (binary_expression "param_2 >> 3 | param_3 << 0x1d" (binary_expression "param_2 >> 3" (identifier "param_2") (>> ">>") (number_literal "3")) (| "|") (binary_expression "param_3 << 0x1d" (identifier "param_3") (<< "<<") (number_literal "0x1d")))) (; ";")) (expression_statement "puVar2 = puVar2 + -1;" (assignment_expression "puVar2 = puVar2 + -1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + -1" (identifier "puVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "param_3 = param_3 >> 3;" (assignment_expression "param_3 = param_3 >> 3" (identifier "param_3") (= "=") (binary_expression "param_3 >> 3" (identifier "param_3") (>> ">>") (number_literal "3"))) (; ";")) (expression_statement "*puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));" (assignment_expression "*puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7))" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "*(undefined1 *)(param_4 + 4 + (param_2 & 7))" (* "*") (cast_expression "(undefined1 *)(param_4 + 4 + (param_2 & 7))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 4 + (param_2 & 7))" (( "(") (binary_expression "param_4 + 4 + (param_2 & 7)" (binary_expression "param_4 + 4" (identifier "param_4") (+ "+") (number_literal "4")) (+ "+") (parenthesized_expression "(param_2 & 7)" (( "(") (binary_expression "param_2 & 7" (identifier "param_2") (& "&") (number_literal "7")) () ")"))) () ")"))))) (; ";")) (expression_statement "param_2 = uVar3;" (assignment_expression "param_2 = uVar3" (identifier "param_2") (= "=") (identifier "uVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 != 0 || uVar3 != 0)" (( "(") (binary_expression "param_3 != 0 || uVar3 != 0" (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0"))) () ")")) (; ";")) (} "}")) (else_clause "else {\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }" (else "else") (compound_statement "{\n      do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);\n    }" ({ "{") (do_statement "do {\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      } while (param_3 != 0 || uVar3 != 0);" (do "do") (compound_statement "{\n        uVar3 = param_2 >> 4 | param_3 << 0x1c;\n        puVar2 = puVar2 + -1;\n        param_3 = param_3 >> 4;\n        *puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));\n        param_2 = uVar3;\n      }" ({ "{") (expression_statement "uVar3 = param_2 >> 4 | param_3 << 0x1c;" (assignment_expression "uVar3 = param_2 >> 4 | param_3 << 0x1c" (identifier "uVar3") (= "=") (binary_expression "param_2 >> 4 | param_3 << 0x1c" (binary_expression "param_2 >> 4" (identifier "param_2") (>> ">>") (number_literal "4")) (| "|") (binary_expression "param_3 << 0x1c" (identifier "param_3") (<< "<<") (number_literal "0x1c")))) (; ";")) (expression_statement "puVar2 = puVar2 + -1;" (assignment_expression "puVar2 = puVar2 + -1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + -1" (identifier "puVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "param_3 = param_3 >> 4;" (assignment_expression "param_3 = param_3 >> 4" (identifier "param_3") (= "=") (binary_expression "param_3 >> 4" (identifier "param_3") (>> ">>") (number_literal "4"))) (; ";")) (expression_statement "*puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf));" (assignment_expression "*puVar2 = *(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf))" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "*(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf))" (* "*") (cast_expression "(undefined1 *)\n                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf))" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf))" (( "(") (binary_expression "param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +\n                   (param_2 & 0xf)" (binary_expression "param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0)" (binary_expression "param_4 + 0x14" (identifier "param_4") (+ "+") (number_literal "0x14")) (+ "+") (parenthesized_expression "(-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0)" (( "(") (binary_expression "-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0" (unary_expression "-(uint)((param_5 & 0x4000) == 0)" (- "-") (call_expression "(uint)((param_5 & 0x4000) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((param_5 & 0x4000) == 0)" (( "(") (binary_expression "(param_5 & 0x4000) == 0" (parenthesized_expression "(param_5 & 0x4000)" (( "(") (binary_expression "param_5 & 0x4000" (identifier "param_5") (& "&") (number_literal "0x4000")) () ")")) (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "0xfffffff0")) () ")"))) (+ "+") (parenthesized_expression "(param_2 & 0xf)" (( "(") (binary_expression "param_2 & 0xf" (identifier "param_2") (& "&") (number_literal "0xf")) () ")"))) () ")"))))) (; ";")) (expression_statement "param_2 = uVar3;" (assignment_expression "param_2 = uVar3" (identifier "param_2") (= "=") (identifier "uVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_3 != 0 || uVar3 != 0)" (( "(") (binary_expression "param_3 != 0 || uVar3 != 0" (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0"))) () ")")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }" (else "else") (compound_statement "{\n    do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));\n  }" ({ "{") (do_statement "do {\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));" (do "do") (compound_statement "{\n      iVar4 = (int)((ulonglong)uVar5 >> 0x20);\n      uVar3 = (uint)uVar5;\n      puVar2 = puVar2 + -1;\n      iVar1 = FUN_002dccc0(uVar5,10,0);\n      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);\n      uVar5 = FUN_002dcbb0(uVar5,10,0);\n    }" ({ "{") (expression_statement "iVar4 = (int)((ulonglong)uVar5 >> 0x20);" (assignment_expression "iVar4 = (int)((ulonglong)uVar5 >> 0x20)" (identifier "iVar4") (= "=") (cast_expression "(int)((ulonglong)uVar5 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar5 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar5 >> 0x20" (cast_expression "(ulonglong)uVar5" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar5")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "uVar3 = (uint)uVar5;" (assignment_expression "uVar3 = (uint)uVar5" (identifier "uVar3") (= "=") (cast_expression "(uint)uVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar5"))) (; ";")) (expression_statement "puVar2 = puVar2 + -1;" (assignment_expression "puVar2 = puVar2 + -1" (identifier "puVar2") (= "=") (binary_expression "puVar2 + -1" (identifier "puVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "iVar1 = FUN_002dccc0(uVar5,10,0);" (assignment_expression "iVar1 = FUN_002dccc0(uVar5,10,0)" (identifier "iVar1") (= "=") (call_expression "FUN_002dccc0(uVar5,10,0)" (identifier "FUN_002dccc0") (argument_list "(uVar5,10,0)" (( "(") (identifier "uVar5") (, ",") (number_literal "10") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "*puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);" (assignment_expression "*puVar2 = *(undefined1 *)(param_4 + 4 + iVar1)" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "*(undefined1 *)(param_4 + 4 + iVar1)" (* "*") (cast_expression "(undefined1 *)(param_4 + 4 + iVar1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 4 + iVar1)" (( "(") (binary_expression "param_4 + 4 + iVar1" (binary_expression "param_4 + 4" (identifier "param_4") (+ "+") (number_literal "4")) (+ "+") (identifier "iVar1")) () ")"))))) (; ";")) (expression_statement "uVar5 = FUN_002dcbb0(uVar5,10,0);" (assignment_expression "uVar5 = FUN_002dcbb0(uVar5,10,0)" (identifier "uVar5") (= "=") (call_expression "FUN_002dcbb0(uVar5,10,0)" (identifier "FUN_002dcbb0") (argument_list "(uVar5,10,0)" (( "(") (identifier "uVar5") (, ",") (number_literal "10") (, ",") (number_literal "0") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3))" (( "(") (binary_expression "iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "(uint)-iVar4 < (uint)(9 < uVar3)" (binary_expression "(uint)-iVar4" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (- "-") (identifier "iVar4")) (< "<") (call_expression "(uint)(9 < uVar3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(9 < uVar3)" (( "(") (binary_expression "9 < uVar3" (number_literal "9") (< "<") (identifier "uVar3")) () ")"))))) () ")")) (; ";")) (} "}")))) (return_statement "return (int)param_1 - (int)puVar2;" (return "return") (binary_expression "(int)param_1 - (int)puVar2" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (- "-") (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* int std::__int_to_char<char, unsigned long long>(char*, unsigned long long, char const*,
   std::_Ios_Fmtflags, bool) */

int std::__int_to_char<char,unsigned_long_long>(void)

{
}


(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: (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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (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: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (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: (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: (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal))))))))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (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))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (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)))))))

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

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

{
  int iVar1;
  undefined1 *puVar2;
  uint uVar3;
  int iVar4;
  undefined8 uVar5;
  
  uVar5 = CONCAT44(param_3,param_2);
  puVar2 = param_1;
  if (param_6 == '\0') {
    if ((param_5 & 0x4a) == 0x40) {
      do {
        uVar3 = param_2 >> 3 | param_3 << 0x1d;
        puVar2 = puVar2 + -1;
        param_3 = param_3 >> 3;
        *puVar2 = *(undefined1 *)(param_4 + 4 + (param_2 & 7));
        param_2 = uVar3;
      } while (param_3 != 0 || uVar3 != 0);
    }
    else {
      do {
        uVar3 = param_2 >> 4 | param_3 << 0x1c;
        puVar2 = puVar2 + -1;
        param_3 = param_3 >> 4;
        *puVar2 = *(undefined1 *)
                   (param_4 + 0x14 + (-(uint)((param_5 & 0x4000) == 0) & 0xfffffff0) +
                   (param_2 & 0xf));
        param_2 = uVar3;
      } while (param_3 != 0 || uVar3 != 0);
    }
  }
  else {
    do {
      iVar4 = (int)((ulonglong)uVar5 >> 0x20);
      uVar3 = (uint)uVar5;
      puVar2 = puVar2 + -1;
      iVar1 = FUN_002dccc0(uVar5,10,0);
      *puVar2 = *(undefined1 *)(param_4 + 4 + iVar1);
      uVar5 = FUN_002dcbb0(uVar5,10,0);
    } while (iVar4 != 0 || (uint)-iVar4 < (uint)(9 < uVar3));
  }
  return (int)param_1 - (int)puVar2;
}

