
char * offtostr(off_t i,char *buf)

{
  long lVar1;
  char *pcVar2;
  char *pcVar3;
  
  pcVar2 = buf + 0x14;
  buf[0x14] = '\0';
  if (i < 0) {
    do {
      pcVar3 = pcVar2;
      lVar1 = i / 10;
      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)i;
      pcVar2 = pcVar3 + -1;
      i = lVar1;
    } while (lVar1 != 0);
    pcVar2 = pcVar3 + -2;
    pcVar3[-2] = '-';
  }
  else {
    do {
      pcVar2 = pcVar2 + -1;
      lVar1 = i / 10;
      *pcVar2 = (char)i + (char)lVar1 * -10 + '0';
      i = lVar1;
    } while (lVar1 != 0);
  }
  return pcVar2;
}



char * FUN_0010861a(long param_1,long param_2)

{
  long lVar1;
  char *pcVar2;
  char *pcVar3;
  
  pcVar2 = (char *)(param_2 + 0x14);
  *(undefined1 *)(param_2 + 0x14) = 0;
  if (param_1 < 0) {
    do {
      pcVar3 = pcVar2;
      lVar1 = param_1 / 10;
      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;
      pcVar2 = pcVar3 + -1;
      param_1 = lVar1;
    } while (lVar1 != 0);
    pcVar2 = pcVar3 + -2;
    pcVar3[-2] = '-';
  }
  else {
    do {
      pcVar2 = pcVar2 + -1;
      lVar1 = param_1 / 10;
      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';
      param_1 = lVar1;
    } while (lVar1 != 0);
  }
  return pcVar2;
}


LEA RCX,[RSI + 0x14]
MOV byte ptr [RSI + 0x14],0x0
MOV RSI,0x6666666666666667
MOV R9,RSI
MOV R8D,0x30
TEST RDI,RDI
JS 0x00108671
SUB RCX,0x1
MOV RAX,RDI
IMUL RSI
SAR RDX,0x2
MOV RAX,RDI
SAR RAX,0x3f
SUB RDX,RAX
LEA RAX,[RDX + RDX*0x4]
ADD RAX,RAX
SUB RDI,RAX
ADD EDI,0x30
MOV byte ptr [RCX],DIL
MOV RDI,RDX
TEST RDX,RDX
JNZ 0x0010863a
MOV RAX,RCX
RET
MOV RCX,RSI
LEA RSI,[RCX + -0x1]
MOV RAX,RDI
IMUL R9
SAR RDX,0x2
MOV RAX,RDI
SAR RAX,0x3f
SUB RDX,RAX
LEA RAX,[RDX + RDX*0x4]
LEA EAX,[R8 + RAX*0x2]
SUB EAX,EDI
MOV byte ptr [RCX + -0x1],AL
MOV RDI,RDX
TEST RDX,RDX
JNZ 0x0010866e
SUB RCX,0x2
MOV byte ptr [RSI + -0x1],0x2d
JMP 0x0010866a
(translation_unit "char * FUN_0010861a(long param_1,long param_2)\n\n{\n  long lVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar2 = (char *)(param_2 + 0x14);\n  *(undefined1 *)(param_2 + 0x14) = 0;\n  if (param_1 < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }\n  return pcVar2;\n}\n\n" (function_definition "char * FUN_0010861a(long param_1,long param_2)\n\n{\n  long lVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar2 = (char *)(param_2 + 0x14);\n  *(undefined1 *)(param_2 + 0x14) = 0;\n  if (param_1 < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* FUN_0010861a(long param_1,long param_2)" * (function_declarator "FUN_0010861a(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  long lVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar2 = (char *)(param_2 + 0x14);\n  *(undefined1 *)(param_2 + 0x14) = 0;\n  if (param_1 < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }\n  return pcVar2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar2 = (char *)(param_2 + 0x14);" (assignment_expression "pcVar2 = (char *)(param_2 + 0x14)" identifier = (cast_expression "(char *)(param_2 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(param_2 + 0x14) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0x14) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0x14)" * (cast_expression "(undefined1 *)(param_2 + 0x14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_1 < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }" { (do_statement "do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);" do (compound_statement "{\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    }" { (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (expression_statement "lVar1 = param_1 / 10;" (assignment_expression "lVar1 = param_1 / 10" identifier = (binary_expression "param_1 / 10" identifier / number_literal)) ;) (expression_statement "pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;" (assignment_expression "pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1" (subscript_expression "pcVar3[-1]" identifier [ number_literal ]) = (binary_expression "((char)lVar1 * '\n' + '0') - (char)param_1" (parenthesized_expression "((char)lVar1 * '\n' + '0')" ( (binary_expression "(char)lVar1 * '\n' + '0'" (binary_expression "(char)lVar1 * '\n'" (cast_expression "(char)lVar1" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\n'" ' escape_sequence ')) + (char_literal "'0'" ' character ')) )) - (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier))) ;) (expression_statement "pcVar2 = pcVar3 + -1;" (assignment_expression "pcVar2 = pcVar3 + -1" identifier = (binary_expression "pcVar3 + -1" identifier + number_literal)) ;) (expression_statement "param_1 = lVar1;" (assignment_expression "param_1 = lVar1" identifier = identifier) ;) }) while (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) ;) (expression_statement "pcVar2 = pcVar3 + -2;" (assignment_expression "pcVar2 = pcVar3 + -2" identifier = (binary_expression "pcVar3 + -2" identifier + number_literal)) ;) (expression_statement "pcVar3[-2] = '-';" (assignment_expression "pcVar3[-2] = '-'" (subscript_expression "pcVar3[-2]" identifier [ number_literal ]) = (char_literal "'-'" ' character ')) ;) }) (else_clause "else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }" else (compound_statement "{\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }" { (do_statement "do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);" do (compound_statement "{\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    }" { (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "lVar1 = param_1 / 10;" (assignment_expression "lVar1 = param_1 / 10" identifier = (binary_expression "param_1 / 10" identifier / number_literal)) ;) (expression_statement "*pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';" (assignment_expression "*pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0'" (pointer_expression "*pcVar2" * identifier) = (binary_expression "(char)param_1 + (char)lVar1 * -10 + '0'" (binary_expression "(char)param_1 + (char)lVar1 * -10" (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)lVar1 * -10" (cast_expression "(char)lVar1" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "param_1 = lVar1;" (assignment_expression "param_1 = lVar1" identifier = identifier) ;) }) while (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) ;) }))) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "char * offtostr(off_t i,char *buf)\n\n{\n  long lVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar2 = buf + 0x14;\n  buf[0x14] = '\0';\n  if (i < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = i / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)i;\n      pcVar2 = pcVar3 + -1;\n      i = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = i / 10;\n      *pcVar2 = (char)i + (char)lVar1 * -10 + '0';\n      i = lVar1;\n    } while (lVar1 != 0);\n  }\n  return pcVar2;\n}\n\n" (function_definition "char * offtostr(off_t i,char *buf)\n\n{\n  long lVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar2 = buf + 0x14;\n  buf[0x14] = '\0';\n  if (i < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = i / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)i;\n      pcVar2 = pcVar3 + -1;\n      i = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = i / 10;\n      *pcVar2 = (char)i + (char)lVar1 * -10 + '0';\n      i = lVar1;\n    } while (lVar1 != 0);\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* offtostr(off_t i,char *buf)" * (function_declarator "offtostr(off_t i,char *buf)" identifier (parameter_list "(off_t i,char *buf)" ( (parameter_declaration "off_t i" type_identifier identifier) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) )))) (compound_statement "{\n  long lVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar2 = buf + 0x14;\n  buf[0x14] = '\0';\n  if (i < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = i / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)i;\n      pcVar2 = pcVar3 + -1;\n      i = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = i / 10;\n      *pcVar2 = (char)i + (char)lVar1 * -10 + '0';\n      i = lVar1;\n    } while (lVar1 != 0);\n  }\n  return pcVar2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar2 = buf + 0x14;" (assignment_expression "pcVar2 = buf + 0x14" identifier = (binary_expression "buf + 0x14" identifier + number_literal)) ;) (expression_statement "buf[0x14] = '\0';" (assignment_expression "buf[0x14] = '\0'" (subscript_expression "buf[0x14]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (i < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = i / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)i;\n      pcVar2 = pcVar3 + -1;\n      i = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = i / 10;\n      *pcVar2 = (char)i + (char)lVar1 * -10 + '0';\n      i = lVar1;\n    } while (lVar1 != 0);\n  }" if (parenthesized_expression "(i < 0)" ( (binary_expression "i < 0" identifier < number_literal) )) (compound_statement "{\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = i / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)i;\n      pcVar2 = pcVar3 + -1;\n      i = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }" { (do_statement "do {\n      pcVar3 = pcVar2;\n      lVar1 = i / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)i;\n      pcVar2 = pcVar3 + -1;\n      i = lVar1;\n    } while (lVar1 != 0);" do (compound_statement "{\n      pcVar3 = pcVar2;\n      lVar1 = i / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)i;\n      pcVar2 = pcVar3 + -1;\n      i = lVar1;\n    }" { (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (expression_statement "lVar1 = i / 10;" (assignment_expression "lVar1 = i / 10" identifier = (binary_expression "i / 10" identifier / number_literal)) ;) (expression_statement "pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)i;" (assignment_expression "pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)i" (subscript_expression "pcVar3[-1]" identifier [ number_literal ]) = (binary_expression "((char)lVar1 * '\n' + '0') - (char)i" (parenthesized_expression "((char)lVar1 * '\n' + '0')" ( (binary_expression "(char)lVar1 * '\n' + '0'" (binary_expression "(char)lVar1 * '\n'" (cast_expression "(char)lVar1" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\n'" ' escape_sequence ')) + (char_literal "'0'" ' character ')) )) - (cast_expression "(char)i" ( (type_descriptor "char" primitive_type) ) identifier))) ;) (expression_statement "pcVar2 = pcVar3 + -1;" (assignment_expression "pcVar2 = pcVar3 + -1" identifier = (binary_expression "pcVar3 + -1" identifier + number_literal)) ;) (expression_statement "i = lVar1;" (assignment_expression "i = lVar1" identifier = identifier) ;) }) while (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) ;) (expression_statement "pcVar2 = pcVar3 + -2;" (assignment_expression "pcVar2 = pcVar3 + -2" identifier = (binary_expression "pcVar3 + -2" identifier + number_literal)) ;) (expression_statement "pcVar3[-2] = '-';" (assignment_expression "pcVar3[-2] = '-'" (subscript_expression "pcVar3[-2]" identifier [ number_literal ]) = (char_literal "'-'" ' character ')) ;) }) (else_clause "else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = i / 10;\n      *pcVar2 = (char)i + (char)lVar1 * -10 + '0';\n      i = lVar1;\n    } while (lVar1 != 0);\n  }" else (compound_statement "{\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = i / 10;\n      *pcVar2 = (char)i + (char)lVar1 * -10 + '0';\n      i = lVar1;\n    } while (lVar1 != 0);\n  }" { (do_statement "do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = i / 10;\n      *pcVar2 = (char)i + (char)lVar1 * -10 + '0';\n      i = lVar1;\n    } while (lVar1 != 0);" do (compound_statement "{\n      pcVar2 = pcVar2 + -1;\n      lVar1 = i / 10;\n      *pcVar2 = (char)i + (char)lVar1 * -10 + '0';\n      i = lVar1;\n    }" { (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "lVar1 = i / 10;" (assignment_expression "lVar1 = i / 10" identifier = (binary_expression "i / 10" identifier / number_literal)) ;) (expression_statement "*pcVar2 = (char)i + (char)lVar1 * -10 + '0';" (assignment_expression "*pcVar2 = (char)i + (char)lVar1 * -10 + '0'" (pointer_expression "*pcVar2" * identifier) = (binary_expression "(char)i + (char)lVar1 * -10 + '0'" (binary_expression "(char)i + (char)lVar1 * -10" (cast_expression "(char)i" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)lVar1 * -10" (cast_expression "(char)lVar1" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "i = lVar1;" (assignment_expression "i = lVar1" identifier = identifier) ;) }) while (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) ;) }))) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "char * FUN_0010861a(long param_1,long param_2)\n\n{\n  long lVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar2 = (char *)(param_2 + 0x14);\n  *(undefined1 *)(param_2 + 0x14) = 0;\n  if (param_1 < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }\n  return pcVar2;\n}\n\n" (function_definition "char * FUN_0010861a(long param_1,long param_2)\n\n{\n  long lVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar2 = (char *)(param_2 + 0x14);\n  *(undefined1 *)(param_2 + 0x14) = 0;\n  if (param_1 < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }\n  return pcVar2;\n}" primitive_type (pointer_declarator "* FUN_0010861a(long param_1,long param_2)" * (function_declarator "FUN_0010861a(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  long lVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar2 = (char *)(param_2 + 0x14);\n  *(undefined1 *)(param_2 + 0x14) = 0;\n  if (param_1 < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }\n  return pcVar2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "pcVar2 = (char *)(param_2 + 0x14);" (assignment_expression "pcVar2 = (char *)(param_2 + 0x14)" identifier = (cast_expression "(char *)(param_2 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(param_2 + 0x14) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0x14) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0x14)" * (cast_expression "(undefined1 *)(param_2 + 0x14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_1 < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }" if (parenthesized_expression "(param_1 < 0)" ( (binary_expression "param_1 < 0" identifier < number_literal) )) (compound_statement "{\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }" { (do_statement "do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);" do (compound_statement "{\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    }" { (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (expression_statement "lVar1 = param_1 / 10;" (assignment_expression "lVar1 = param_1 / 10" identifier = (binary_expression "param_1 / 10" identifier / number_literal)) ;) (expression_statement "pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;" (assignment_expression "pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1" (subscript_expression "pcVar3[-1]" identifier [ number_literal ]) = (binary_expression "((char)lVar1 * '\n' + '0') - (char)param_1" (parenthesized_expression "((char)lVar1 * '\n' + '0')" ( (binary_expression "(char)lVar1 * '\n' + '0'" (binary_expression "(char)lVar1 * '\n'" (cast_expression "(char)lVar1" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\n'" ' escape_sequence ')) + (char_literal "'0'" ' character ')) )) - (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier))) ;) (expression_statement "pcVar2 = pcVar3 + -1;" (assignment_expression "pcVar2 = pcVar3 + -1" identifier = (binary_expression "pcVar3 + -1" identifier + number_literal)) ;) (expression_statement "param_1 = lVar1;" (assignment_expression "param_1 = lVar1" identifier = identifier) ;) }) while (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) ;) (expression_statement "pcVar2 = pcVar3 + -2;" (assignment_expression "pcVar2 = pcVar3 + -2" identifier = (binary_expression "pcVar3 + -2" identifier + number_literal)) ;) (expression_statement "pcVar3[-2] = '-';" (assignment_expression "pcVar3[-2] = '-'" (subscript_expression "pcVar3[-2]" identifier [ number_literal ]) = (char_literal "'-'" ' character ')) ;) }) (else_clause "else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }" else (compound_statement "{\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }" { (do_statement "do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);" do (compound_statement "{\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    }" { (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "lVar1 = param_1 / 10;" (assignment_expression "lVar1 = param_1 / 10" identifier = (binary_expression "param_1 / 10" identifier / number_literal)) ;) (expression_statement "*pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';" (assignment_expression "*pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0'" (pointer_expression "*pcVar2" * identifier) = (binary_expression "(char)param_1 + (char)lVar1 * -10 + '0'" (binary_expression "(char)param_1 + (char)lVar1 * -10" (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)lVar1 * -10" (cast_expression "(char)lVar1" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "param_1 = lVar1;" (assignment_expression "param_1 = lVar1" identifier = identifier) ;) }) while (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) ;) }))) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) )))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (char_literal ' escape_sequence ')) + (char_literal ' character ')) )) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) }) (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 (pointer_expression * IDENT) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + (char_literal ' character '))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }))) (return_statement return IDENT ;) })))
(function_definition "char * FUN_0010861a(long param_1,long param_2)\n\n{\n  long lVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar2 = (char *)(param_2 + 0x14);\n  *(undefined1 *)(param_2 + 0x14) = 0;\n  if (param_1 < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }\n  return pcVar2;\n}" (primitive_type "char") (pointer_declarator "* FUN_0010861a(long param_1,long param_2)" (* "*") (function_declarator "FUN_0010861a(long param_1,long param_2)" (identifier "FUN_0010861a") (parameter_list "(long param_1,long param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")")))) (compound_statement "{\n  long lVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  pcVar2 = (char *)(param_2 + 0x14);\n  *(undefined1 *)(param_2 + 0x14) = 0;\n  if (param_1 < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }\n  return pcVar2;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (expression_statement "pcVar2 = (char *)(param_2 + 0x14);" (assignment_expression "pcVar2 = (char *)(param_2 + 0x14)" (identifier "pcVar2") (= "=") (cast_expression "(char *)(param_2 + 0x14)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (; ";")) (expression_statement "*(undefined1 *)(param_2 + 0x14) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0x14) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 < 0) {\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }\n  else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }" (if "if") (parenthesized_expression "(param_1 < 0)" (( "(") (binary_expression "param_1 < 0" (identifier "param_1") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n    pcVar2 = pcVar3 + -2;\n    pcVar3[-2] = '-';\n  }" ({ "{") (do_statement "do {\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    } while (lVar1 != 0);" (do "do") (compound_statement "{\n      pcVar3 = pcVar2;\n      lVar1 = param_1 / 10;\n      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;\n      pcVar2 = pcVar3 + -1;\n      param_1 = lVar1;\n    }" ({ "{") (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" (identifier "pcVar3") (= "=") (identifier "pcVar2")) (; ";")) (expression_statement "lVar1 = param_1 / 10;" (assignment_expression "lVar1 = param_1 / 10" (identifier "lVar1") (= "=") (binary_expression "param_1 / 10" (identifier "param_1") (/ "/") (number_literal "10"))) (; ";")) (expression_statement "pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;" (assignment_expression "pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1" (subscript_expression "pcVar3[-1]" (identifier "pcVar3") ([ "[") (number_literal "-1") (] "]")) (= "=") (binary_expression "((char)lVar1 * '\n' + '0') - (char)param_1" (parenthesized_expression "((char)lVar1 * '\n' + '0')" (( "(") (binary_expression "(char)lVar1 * '\n' + '0'" (binary_expression "(char)lVar1 * '\n'" (cast_expression "(char)lVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "lVar1")) (* "*") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'"))) () ")")) (- "-") (cast_expression "(char)param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_1")))) (; ";")) (expression_statement "pcVar2 = pcVar3 + -1;" (assignment_expression "pcVar2 = pcVar3 + -1" (identifier "pcVar2") (= "=") (binary_expression "pcVar3 + -1" (identifier "pcVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "param_1 = lVar1;" (assignment_expression "param_1 = lVar1" (identifier "param_1") (= "=") (identifier "lVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "pcVar2 = pcVar3 + -2;" (assignment_expression "pcVar2 = pcVar3 + -2" (identifier "pcVar2") (= "=") (binary_expression "pcVar3 + -2" (identifier "pcVar3") (+ "+") (number_literal "-2"))) (; ";")) (expression_statement "pcVar3[-2] = '-';" (assignment_expression "pcVar3[-2] = '-'" (subscript_expression "pcVar3[-2]" (identifier "pcVar3") ([ "[") (number_literal "-2") (] "]")) (= "=") (char_literal "'-'" (' "'") (character "-") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }" (else "else") (compound_statement "{\n    do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);\n  }" ({ "{") (do_statement "do {\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    } while (lVar1 != 0);" (do "do") (compound_statement "{\n      pcVar2 = pcVar2 + -1;\n      lVar1 = param_1 / 10;\n      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';\n      param_1 = lVar1;\n    }" ({ "{") (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" (identifier "pcVar2") (= "=") (binary_expression "pcVar2 + -1" (identifier "pcVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "lVar1 = param_1 / 10;" (assignment_expression "lVar1 = param_1 / 10" (identifier "lVar1") (= "=") (binary_expression "param_1 / 10" (identifier "param_1") (/ "/") (number_literal "10"))) (; ";")) (expression_statement "*pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';" (assignment_expression "*pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0'" (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) (= "=") (binary_expression "(char)param_1 + (char)lVar1 * -10 + '0'" (binary_expression "(char)param_1 + (char)lVar1 * -10" (cast_expression "(char)param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_1")) (+ "+") (binary_expression "(char)lVar1 * -10" (cast_expression "(char)lVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "lVar1")) (* "*") (number_literal "-10"))) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "param_1 = lVar1;" (assignment_expression "param_1 = lVar1" (identifier "param_1") (= "=") (identifier "lVar1")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")))) (return_statement "return pcVar2;" (return "return") (identifier "pcVar2") (; ";")) (} "}")))

char * function_1(type_1 var_2,char *var_1)

{
  long var_4;
  char *var_5;
  char *var_3;
  
  var_5 = var_1 + 0x14;
  var_1[0x14] = '\0';
  if (var_2 < 0) {
    do {
      var_3 = var_5;
      var_4 = var_2 / 10;
      var_3[-1] = ((char)var_4 * '\n' + '0') - (char)var_2;
      var_5 = var_3 + -1;
      var_2 = var_4;
    } while (var_4 != 0);
    var_5 = var_3 + -2;
    var_3[-2] = '-';
  }
  else {
    do {
      var_5 = var_5 + -1;
      var_4 = var_2 / 10;
      *var_5 = (char)var_2 + (char)var_4 * -10 + '0';
      var_2 = var_4;
    } while (var_4 != 0);
  }
  return var_5;
}


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

char * MASKED(long param_1,long param_2)

{
  long lVar1;
  char *pcVar2;
  char *pcVar3;
  
  pcVar2 = (char *)(param_2 + 0x14);
  *(undefined1 *)(param_2 + 0x14) = 0;
  if (param_1 < 0) {
    do {
      pcVar3 = pcVar2;
      lVar1 = param_1 / 10;
      pcVar3[-1] = ((char)lVar1 * '\n' + '0') - (char)param_1;
      pcVar2 = pcVar3 + -1;
      param_1 = lVar1;
    } while (lVar1 != 0);
    pcVar2 = pcVar3 + -2;
    pcVar3[-2] = '-';
  }
  else {
    do {
      pcVar2 = pcVar2 + -1;
      lVar1 = param_1 / 10;
      *pcVar2 = (char)param_1 + (char)lVar1 * -10 + '0';
      param_1 = lVar1;
    } while (lVar1 != 0);
  }
  return pcVar2;
}

