
char * inttostr(int i,char *buf)

{
  int iVar1;
  char *pcVar2;
  char *pcVar3;
  uint uVar4;
  
  pcVar2 = buf + 0xb;
  buf[0xb] = '\0';
  if (i < 0) {
    do {
      pcVar3 = pcVar2;
      iVar1 = i / 10;
      pcVar3[-1] = '0' - ((char)i + (char)iVar1 * -10);
      pcVar2 = pcVar3 + -1;
      i = iVar1;
    } while (iVar1 != 0);
    pcVar3[-2] = '-';
    return pcVar3 + -2;
  }
  do {
    pcVar2 = pcVar2 + -1;
    uVar4 = (uint)i / 10;
    *pcVar2 = (char)i + (char)uVar4 * -10 + '0';
    i = uVar4;
  } while (uVar4 != 0);
  return pcVar2;
}



char * inttostr(uint param_1,int param_2)

{
  char *pcVar1;
  char *pcVar2;
  uint uVar3;
  
  pcVar1 = (char *)(param_2 + 0xb);
  *(undefined1 *)(param_2 + 0xb) = 0;
  if ((int)param_1 < 0) {
    do {
      pcVar2 = pcVar1;
      uVar3 = (int)param_1 / 10;
      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);
      pcVar1 = pcVar2 + -1;
      param_1 = uVar3;
    } while (uVar3 != 0);
    pcVar2[-2] = '-';
    return pcVar2 + -2;
  }
  do {
    pcVar1 = pcVar1 + -1;
    uVar3 = param_1 / 10;
    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';
    param_1 = uVar3;
  } while (uVar3 != 0);
  return pcVar1;
}


addiu v0,a1,0xb
bltz a0,0x0002022c
_sb zero,0xb(a1)
lui a2,0xcccc
ori a2,a2,0xcccd
multu a0,a2
addiu v0,v0,-0x1
mfhi a1
srl a1,a1,0x3
sll v1,a1,0x2
addu v1,v1,a1
sll v1,v1,0x1
subu v1,a0,v1
or a0,a1,zero
addiu v1,v1,0x30
bne a1,zero,0x000201f4
_sb v1,0x0(v0)
jr ra
_nop
lui a3,0x6666
li t0,0x30
b 0x00020240
_addiu a3,a3,0x6667
or v0,a2,zero
mult a0,a3
sra v1,a0,0x1f
addiu a2,v0,-0x1
mfhi a1
sra a1,a1,0x2
subu a1,a1,v1
sll v1,a1,0x2
addu v1,v1,a1
sll v1,v1,0x1
subu v1,a0,v1
or a0,a1,zero
subu v1,t0,v1
bne a1,zero,0x0002023c
_sb v1,-0x1(v0)
li v1,0x2d
addiu v0,v0,-0x2
jr ra
_sb v1,-0x1(a2)
(translation_unit "char * inttostr(uint param_1,int param_2)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar1 = (char *)(param_2 + 0xb);\n  *(undefined1 *)(param_2 + 0xb) = 0;\n  if ((int)param_1 < 0) {\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }\n  do {\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  } while (uVar3 != 0);\n  return pcVar1;\n}\n\n" (function_definition "char * inttostr(uint param_1,int param_2)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar1 = (char *)(param_2 + 0xb);\n  *(undefined1 *)(param_2 + 0xb) = 0;\n  if ((int)param_1 < 0) {\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }\n  do {\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  } while (uVar3 != 0);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* inttostr(uint param_1,int param_2)" * (function_declarator "inttostr(uint param_1,int param_2)" identifier (parameter_list "(uint param_1,int param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar1 = (char *)(param_2 + 0xb);\n  *(undefined1 *)(param_2 + 0xb) = 0;\n  if ((int)param_1 < 0) {\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }\n  do {\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  } while (uVar3 != 0);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "pcVar1 = (char *)(param_2 + 0xb);" (assignment_expression "pcVar1 = (char *)(param_2 + 0xb)" identifier = (cast_expression "(char *)(param_2 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb)" ( (binary_expression "param_2 + 0xb" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(param_2 + 0xb) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0xb) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0xb)" * (cast_expression "(undefined1 *)(param_2 + 0xb)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb)" ( (binary_expression "param_2 + 0xb" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((int)param_1 < 0) {\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }" if (parenthesized_expression "((int)param_1 < 0)" ( (binary_expression "(int)param_1 < 0" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }" { (do_statement "do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);" do (compound_statement "{\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    }" { (expression_statement "pcVar2 = pcVar1;" (assignment_expression "pcVar2 = pcVar1" identifier = identifier) ;) (expression_statement "uVar3 = (int)param_1 / 10;" (assignment_expression "uVar3 = (int)param_1 / 10" identifier = (binary_expression "(int)param_1 / 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal)) ;) (expression_statement "pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);" (assignment_expression "pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10)" (subscript_expression "pcVar2[-1]" identifier [ number_literal ]) = (binary_expression "'0' - ((char)param_1 + (char)uVar3 * -10)" (char_literal "'0'" ' character ') - (parenthesized_expression "((char)param_1 + (char)uVar3 * -10)" ( (binary_expression "(char)param_1 + (char)uVar3 * -10" (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)uVar3 * -10" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) )))) ;) (expression_statement "pcVar1 = pcVar2 + -1;" (assignment_expression "pcVar1 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "param_1 = uVar3;" (assignment_expression "param_1 = uVar3" identifier = identifier) ;) }) while (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) ;) (expression_statement "pcVar2[-2] = '-';" (assignment_expression "pcVar2[-2] = '-'" (subscript_expression "pcVar2[-2]" identifier [ number_literal ]) = (char_literal "'-'" ' character ')) ;) (return_statement "return pcVar2 + -2;" return (binary_expression "pcVar2 + -2" identifier + number_literal) ;) })) (do_statement "do {\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  } while (uVar3 != 0);" do (compound_statement "{\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  }" { (expression_statement "pcVar1 = pcVar1 + -1;" (assignment_expression "pcVar1 = pcVar1 + -1" identifier = (binary_expression "pcVar1 + -1" identifier + number_literal)) ;) (expression_statement "uVar3 = param_1 / 10;" (assignment_expression "uVar3 = param_1 / 10" identifier = (binary_expression "param_1 / 10" identifier / number_literal)) ;) (expression_statement "*pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';" (assignment_expression "*pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0'" (pointer_expression "*pcVar1" * identifier) = (binary_expression "(char)param_1 + (char)uVar3 * -10 + '0'" (binary_expression "(char)param_1 + (char)uVar3 * -10" (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)uVar3 * -10" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "param_1 = uVar3;" (assignment_expression "param_1 = uVar3" identifier = identifier) ;) }) while (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "char * inttostr(int i,char *buf)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  uint uVar4;\n  \n  pcVar2 = buf + 0xb;\n  buf[0xb] = '\0';\n  if (i < 0) {\n    do {\n      pcVar3 = pcVar2;\n      iVar1 = i / 10;\n      pcVar3[-1] = '0' - ((char)i + (char)iVar1 * -10);\n      pcVar2 = pcVar3 + -1;\n      i = iVar1;\n    } while (iVar1 != 0);\n    pcVar3[-2] = '-';\n    return pcVar3 + -2;\n  }\n  do {\n    pcVar2 = pcVar2 + -1;\n    uVar4 = (uint)i / 10;\n    *pcVar2 = (char)i + (char)uVar4 * -10 + '0';\n    i = uVar4;\n  } while (uVar4 != 0);\n  return pcVar2;\n}\n\n" (function_definition "char * inttostr(int i,char *buf)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  uint uVar4;\n  \n  pcVar2 = buf + 0xb;\n  buf[0xb] = '\0';\n  if (i < 0) {\n    do {\n      pcVar3 = pcVar2;\n      iVar1 = i / 10;\n      pcVar3[-1] = '0' - ((char)i + (char)iVar1 * -10);\n      pcVar2 = pcVar3 + -1;\n      i = iVar1;\n    } while (iVar1 != 0);\n    pcVar3[-2] = '-';\n    return pcVar3 + -2;\n  }\n  do {\n    pcVar2 = pcVar2 + -1;\n    uVar4 = (uint)i / 10;\n    *pcVar2 = (char)i + (char)uVar4 * -10 + '0';\n    i = uVar4;\n  } while (uVar4 != 0);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* inttostr(int i,char *buf)" * (function_declarator "inttostr(int i,char *buf)" identifier (parameter_list "(int i,char *buf)" ( (parameter_declaration "int i" primitive_type identifier) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  uint uVar4;\n  \n  pcVar2 = buf + 0xb;\n  buf[0xb] = '\0';\n  if (i < 0) {\n    do {\n      pcVar3 = pcVar2;\n      iVar1 = i / 10;\n      pcVar3[-1] = '0' - ((char)i + (char)iVar1 * -10);\n      pcVar2 = pcVar3 + -1;\n      i = iVar1;\n    } while (iVar1 != 0);\n    pcVar3[-2] = '-';\n    return pcVar3 + -2;\n  }\n  do {\n    pcVar2 = pcVar2 + -1;\n    uVar4 = (uint)i / 10;\n    *pcVar2 = (char)i + (char)uVar4 * -10 + '0';\n    i = uVar4;\n  } while (uVar4 != 0);\n  return pcVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "pcVar2 = buf + 0xb;" (assignment_expression "pcVar2 = buf + 0xb" identifier = (binary_expression "buf + 0xb" identifier + number_literal)) ;) (expression_statement "buf[0xb] = '\0';" (assignment_expression "buf[0xb] = '\0'" (subscript_expression "buf[0xb]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (i < 0) {\n    do {\n      pcVar3 = pcVar2;\n      iVar1 = i / 10;\n      pcVar3[-1] = '0' - ((char)i + (char)iVar1 * -10);\n      pcVar2 = pcVar3 + -1;\n      i = iVar1;\n    } while (iVar1 != 0);\n    pcVar3[-2] = '-';\n    return pcVar3 + -2;\n  }" if (parenthesized_expression "(i < 0)" ( (binary_expression "i < 0" identifier < number_literal) )) (compound_statement "{\n    do {\n      pcVar3 = pcVar2;\n      iVar1 = i / 10;\n      pcVar3[-1] = '0' - ((char)i + (char)iVar1 * -10);\n      pcVar2 = pcVar3 + -1;\n      i = iVar1;\n    } while (iVar1 != 0);\n    pcVar3[-2] = '-';\n    return pcVar3 + -2;\n  }" { (do_statement "do {\n      pcVar3 = pcVar2;\n      iVar1 = i / 10;\n      pcVar3[-1] = '0' - ((char)i + (char)iVar1 * -10);\n      pcVar2 = pcVar3 + -1;\n      i = iVar1;\n    } while (iVar1 != 0);" do (compound_statement "{\n      pcVar3 = pcVar2;\n      iVar1 = i / 10;\n      pcVar3[-1] = '0' - ((char)i + (char)iVar1 * -10);\n      pcVar2 = pcVar3 + -1;\n      i = iVar1;\n    }" { (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) (expression_statement "iVar1 = i / 10;" (assignment_expression "iVar1 = i / 10" identifier = (binary_expression "i / 10" identifier / number_literal)) ;) (expression_statement "pcVar3[-1] = '0' - ((char)i + (char)iVar1 * -10);" (assignment_expression "pcVar3[-1] = '0' - ((char)i + (char)iVar1 * -10)" (subscript_expression "pcVar3[-1]" identifier [ number_literal ]) = (binary_expression "'0' - ((char)i + (char)iVar1 * -10)" (char_literal "'0'" ' character ') - (parenthesized_expression "((char)i + (char)iVar1 * -10)" ( (binary_expression "(char)i + (char)iVar1 * -10" (cast_expression "(char)i" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)iVar1 * -10" (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) )))) ;) (expression_statement "pcVar2 = pcVar3 + -1;" (assignment_expression "pcVar2 = pcVar3 + -1" identifier = (binary_expression "pcVar3 + -1" identifier + number_literal)) ;) (expression_statement "i = iVar1;" (assignment_expression "i = iVar1" identifier = identifier) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) (expression_statement "pcVar3[-2] = '-';" (assignment_expression "pcVar3[-2] = '-'" (subscript_expression "pcVar3[-2]" identifier [ number_literal ]) = (char_literal "'-'" ' character ')) ;) (return_statement "return pcVar3 + -2;" return (binary_expression "pcVar3 + -2" identifier + number_literal) ;) })) (do_statement "do {\n    pcVar2 = pcVar2 + -1;\n    uVar4 = (uint)i / 10;\n    *pcVar2 = (char)i + (char)uVar4 * -10 + '0';\n    i = uVar4;\n  } while (uVar4 != 0);" do (compound_statement "{\n    pcVar2 = pcVar2 + -1;\n    uVar4 = (uint)i / 10;\n    *pcVar2 = (char)i + (char)uVar4 * -10 + '0';\n    i = uVar4;\n  }" { (expression_statement "pcVar2 = pcVar2 + -1;" (assignment_expression "pcVar2 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "uVar4 = (uint)i / 10;" (assignment_expression "uVar4 = (uint)i / 10" identifier = (binary_expression "(uint)i / 10" (cast_expression "(uint)i" ( (type_descriptor "uint" type_identifier) ) identifier) / number_literal)) ;) (expression_statement "*pcVar2 = (char)i + (char)uVar4 * -10 + '0';" (assignment_expression "*pcVar2 = (char)i + (char)uVar4 * -10 + '0'" (pointer_expression "*pcVar2" * identifier) = (binary_expression "(char)i + (char)uVar4 * -10 + '0'" (binary_expression "(char)i + (char)uVar4 * -10" (cast_expression "(char)i" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)uVar4 * -10" (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "i = uVar4;" (assignment_expression "i = uVar4" identifier = identifier) ;) }) while (parenthesized_expression "(uVar4 != 0)" ( (binary_expression "uVar4 != 0" identifier != number_literal) )) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "char * inttostr(uint param_1,int param_2)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar1 = (char *)(param_2 + 0xb);\n  *(undefined1 *)(param_2 + 0xb) = 0;\n  if ((int)param_1 < 0) {\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }\n  do {\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  } while (uVar3 != 0);\n  return pcVar1;\n}\n\n" (function_definition "char * inttostr(uint param_1,int param_2)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar1 = (char *)(param_2 + 0xb);\n  *(undefined1 *)(param_2 + 0xb) = 0;\n  if ((int)param_1 < 0) {\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }\n  do {\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  } while (uVar3 != 0);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* inttostr(uint param_1,int param_2)" * (function_declarator "inttostr(uint param_1,int param_2)" identifier (parameter_list "(uint param_1,int param_2)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar1 = (char *)(param_2 + 0xb);\n  *(undefined1 *)(param_2 + 0xb) = 0;\n  if ((int)param_1 < 0) {\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }\n  do {\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  } while (uVar3 != 0);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "pcVar1 = (char *)(param_2 + 0xb);" (assignment_expression "pcVar1 = (char *)(param_2 + 0xb)" identifier = (cast_expression "(char *)(param_2 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb)" ( (binary_expression "param_2 + 0xb" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(param_2 + 0xb) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0xb) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0xb)" * (cast_expression "(undefined1 *)(param_2 + 0xb)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb)" ( (binary_expression "param_2 + 0xb" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((int)param_1 < 0) {\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }" if (parenthesized_expression "((int)param_1 < 0)" ( (binary_expression "(int)param_1 < 0" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }" { (do_statement "do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);" do (compound_statement "{\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    }" { (expression_statement "pcVar2 = pcVar1;" (assignment_expression "pcVar2 = pcVar1" identifier = identifier) ;) (expression_statement "uVar3 = (int)param_1 / 10;" (assignment_expression "uVar3 = (int)param_1 / 10" identifier = (binary_expression "(int)param_1 / 10" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) / number_literal)) ;) (expression_statement "pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);" (assignment_expression "pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10)" (subscript_expression "pcVar2[-1]" identifier [ number_literal ]) = (binary_expression "'0' - ((char)param_1 + (char)uVar3 * -10)" (char_literal "'0'" ' character ') - (parenthesized_expression "((char)param_1 + (char)uVar3 * -10)" ( (binary_expression "(char)param_1 + (char)uVar3 * -10" (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)uVar3 * -10" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) )))) ;) (expression_statement "pcVar1 = pcVar2 + -1;" (assignment_expression "pcVar1 = pcVar2 + -1" identifier = (binary_expression "pcVar2 + -1" identifier + number_literal)) ;) (expression_statement "param_1 = uVar3;" (assignment_expression "param_1 = uVar3" identifier = identifier) ;) }) while (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) ;) (expression_statement "pcVar2[-2] = '-';" (assignment_expression "pcVar2[-2] = '-'" (subscript_expression "pcVar2[-2]" identifier [ number_literal ]) = (char_literal "'-'" ' character ')) ;) (return_statement "return pcVar2 + -2;" return (binary_expression "pcVar2 + -2" identifier + number_literal) ;) })) (do_statement "do {\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  } while (uVar3 != 0);" do (compound_statement "{\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  }" { (expression_statement "pcVar1 = pcVar1 + -1;" (assignment_expression "pcVar1 = pcVar1 + -1" identifier = (binary_expression "pcVar1 + -1" identifier + number_literal)) ;) (expression_statement "uVar3 = param_1 / 10;" (assignment_expression "uVar3 = param_1 / 10" identifier = (binary_expression "param_1 / 10" identifier / number_literal)) ;) (expression_statement "*pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';" (assignment_expression "*pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0'" (pointer_expression "*pcVar1" * identifier) = (binary_expression "(char)param_1 + (char)uVar3 * -10 + '0'" (binary_expression "(char)param_1 + (char)uVar3 * -10" (cast_expression "(char)param_1" ( (type_descriptor "char" primitive_type) ) identifier) + (binary_expression "(char)uVar3 * -10" (cast_expression "(char)uVar3" ( (type_descriptor "char" primitive_type) ) identifier) * number_literal)) + (char_literal "'0'" ' character '))) ;) (expression_statement "param_1 = uVar3;" (assignment_expression "param_1 = uVar3" identifier = identifier) ;) }) while (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (char_literal ' character ') - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) )))) ;) (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 (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) (return_statement return (binary_expression IDENT + LIT) ;) })) (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 * inttostr(uint param_1,int param_2)\n\n{\n  char *pcVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar1 = (char *)(param_2 + 0xb);\n  *(undefined1 *)(param_2 + 0xb) = 0;\n  if ((int)param_1 < 0) {\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }\n  do {\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  } while (uVar3 != 0);\n  return pcVar1;\n}" (primitive_type "char") (pointer_declarator "* inttostr(uint param_1,int param_2)" (* "*") (function_declarator "inttostr(uint param_1,int param_2)" (identifier "inttostr") (parameter_list "(uint param_1,int param_2)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  char *pcVar2;\n  uint uVar3;\n  \n  pcVar1 = (char *)(param_2 + 0xb);\n  *(undefined1 *)(param_2 + 0xb) = 0;\n  if ((int)param_1 < 0) {\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }\n  do {\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  } while (uVar3 != 0);\n  return pcVar1;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "pcVar1 = (char *)(param_2 + 0xb);" (assignment_expression "pcVar1 = (char *)(param_2 + 0xb)" (identifier "pcVar1") (= "=") (cast_expression "(char *)(param_2 + 0xb)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xb)" (( "(") (binary_expression "param_2 + 0xb" (identifier "param_2") (+ "+") (number_literal "0xb")) () ")")))) (; ";")) (expression_statement "*(undefined1 *)(param_2 + 0xb) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0xb) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0xb)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0xb)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xb)" (( "(") (binary_expression "param_2 + 0xb" (identifier "param_2") (+ "+") (number_literal "0xb")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((int)param_1 < 0) {\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }" (if "if") (parenthesized_expression "((int)param_1 < 0)" (( "(") (binary_expression "(int)param_1 < 0" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);\n    pcVar2[-2] = '-';\n    return pcVar2 + -2;\n  }" ({ "{") (do_statement "do {\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    } while (uVar3 != 0);" (do "do") (compound_statement "{\n      pcVar2 = pcVar1;\n      uVar3 = (int)param_1 / 10;\n      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);\n      pcVar1 = pcVar2 + -1;\n      param_1 = uVar3;\n    }" ({ "{") (expression_statement "pcVar2 = pcVar1;" (assignment_expression "pcVar2 = pcVar1" (identifier "pcVar2") (= "=") (identifier "pcVar1")) (; ";")) (expression_statement "uVar3 = (int)param_1 / 10;" (assignment_expression "uVar3 = (int)param_1 / 10" (identifier "uVar3") (= "=") (binary_expression "(int)param_1 / 10" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (/ "/") (number_literal "10"))) (; ";")) (expression_statement "pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);" (assignment_expression "pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10)" (subscript_expression "pcVar2[-1]" (identifier "pcVar2") ([ "[") (number_literal "-1") (] "]")) (= "=") (binary_expression "'0' - ((char)param_1 + (char)uVar3 * -10)" (char_literal "'0'" (' "'") (character "0") (' "'")) (- "-") (parenthesized_expression "((char)param_1 + (char)uVar3 * -10)" (( "(") (binary_expression "(char)param_1 + (char)uVar3 * -10" (cast_expression "(char)param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_1")) (+ "+") (binary_expression "(char)uVar3 * -10" (cast_expression "(char)uVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar3")) (* "*") (number_literal "-10"))) () ")")))) (; ";")) (expression_statement "pcVar1 = pcVar2 + -1;" (assignment_expression "pcVar1 = pcVar2 + -1" (identifier "pcVar1") (= "=") (binary_expression "pcVar2 + -1" (identifier "pcVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "param_1 = uVar3;" (assignment_expression "param_1 = uVar3" (identifier "param_1") (= "=") (identifier "uVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "pcVar2[-2] = '-';" (assignment_expression "pcVar2[-2] = '-'" (subscript_expression "pcVar2[-2]" (identifier "pcVar2") ([ "[") (number_literal "-2") (] "]")) (= "=") (char_literal "'-'" (' "'") (character "-") (' "'"))) (; ";")) (return_statement "return pcVar2 + -2;" (return "return") (binary_expression "pcVar2 + -2" (identifier "pcVar2") (+ "+") (number_literal "-2")) (; ";")) (} "}"))) (do_statement "do {\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  } while (uVar3 != 0);" (do "do") (compound_statement "{\n    pcVar1 = pcVar1 + -1;\n    uVar3 = param_1 / 10;\n    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';\n    param_1 = uVar3;\n  }" ({ "{") (expression_statement "pcVar1 = pcVar1 + -1;" (assignment_expression "pcVar1 = pcVar1 + -1" (identifier "pcVar1") (= "=") (binary_expression "pcVar1 + -1" (identifier "pcVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar3 = param_1 / 10;" (assignment_expression "uVar3 = param_1 / 10" (identifier "uVar3") (= "=") (binary_expression "param_1 / 10" (identifier "param_1") (/ "/") (number_literal "10"))) (; ";")) (expression_statement "*pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';" (assignment_expression "*pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0'" (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) (= "=") (binary_expression "(char)param_1 + (char)uVar3 * -10 + '0'" (binary_expression "(char)param_1 + (char)uVar3 * -10" (cast_expression "(char)param_1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_1")) (+ "+") (binary_expression "(char)uVar3 * -10" (cast_expression "(char)uVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar3")) (* "*") (number_literal "-10"))) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "param_1 = uVar3;" (assignment_expression "param_1 = uVar3" (identifier "param_1") (= "=") (identifier "uVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar3 != 0)" (( "(") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) () ")")) (; ";")) (return_statement "return pcVar1;" (return "return") (identifier "pcVar1") (; ";")) (} "}")))

char * function_1(int var_2,char *var_1)

{
  int var_4;
  char *var_5;
  char *var_3;
  type_1 var_6;
  
  var_5 = var_1 + 0xb;
  var_1[0xb] = '\0';
  if (var_2 < 0) {
    do {
      var_3 = var_5;
      var_4 = var_2 / 10;
      var_3[-1] = '0' - ((char)var_2 + (char)var_4 * -10);
      var_5 = var_3 + -1;
      var_2 = var_4;
    } while (var_4 != 0);
    var_3[-2] = '-';
    return var_3 + -2;
  }
  do {
    var_5 = var_5 + -1;
    var_6 = (type_1)var_2 / 10;
    *var_5 = (char)var_2 + (char)var_6 * -10 + '0';
    var_2 = var_6;
  } while (var_6 != 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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (char_literal (character)) right: (parenthesized_expression (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))))))) (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (character)))) (return_statement (binary_expression left: (identifier) right: (number_literal))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (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(uint param_1,int param_2)

{
  char *pcVar1;
  char *pcVar2;
  uint uVar3;
  
  pcVar1 = (char *)(param_2 + 0xb);
  *(undefined1 *)(param_2 + 0xb) = 0;
  if ((int)param_1 < 0) {
    do {
      pcVar2 = pcVar1;
      uVar3 = (int)param_1 / 10;
      pcVar2[-1] = '0' - ((char)param_1 + (char)uVar3 * -10);
      pcVar1 = pcVar2 + -1;
      param_1 = uVar3;
    } while (uVar3 != 0);
    pcVar2[-2] = '-';
    return pcVar2 + -2;
  }
  do {
    pcVar1 = pcVar1 + -1;
    uVar3 = param_1 / 10;
    *pcVar1 = (char)param_1 + (char)uVar3 * -10 + '0';
    param_1 = uVar3;
  } while (uVar3 != 0);
  return pcVar1;
}

