
char * umaxtostr(uintmax_t i,char *buf)

{
  char extraout_v1;
  undefined4 in_a1;
  int in_a2;
  int iVar1;
  uint uVar2;
  char *pcVar3;
  undefined8 uVar4;
  
  uVar4 = CONCAT44(buf,in_a1);
  pcVar3 = (char *)(in_a2 + 0x14);
  *(undefined1 *)(in_a2 + 0x14) = 0;
  do {
    do {
      iVar1 = (int)((ulonglong)uVar4 >> 0x20);
      uVar2 = (uint)uVar4;
      pcVar3 = pcVar3 + -1;
      __umoddi3(iVar1,uVar2,0,10);
      *pcVar3 = extraout_v1 + '0';
      uVar4 = __udivdi3(iVar1,uVar2,0,10);
    } while (iVar1 != 0);
  } while (9 < uVar2);
  return pcVar3;
}



char * umaxtostr(undefined4 param_1,undefined4 param_2,int param_3)

{
  char extraout_v1;
  int iVar1;
  uint uVar2;
  char *pcVar3;
  undefined8 uVar4;
  
  uVar4 = CONCAT44(param_1,param_2);
  pcVar3 = (char *)(param_3 + 0x14);
  *(undefined1 *)(param_3 + 0x14) = 0;
  do {
    do {
      iVar1 = (int)((ulonglong)uVar4 >> 0x20);
      uVar2 = (uint)uVar4;
      pcVar3 = pcVar3 + -1;
      FUN_00018f20(iVar1,uVar2,0,10);
      *pcVar3 = extraout_v1 + '0';
      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);
    } while (iVar1 != 0);
  } while (9 < uVar2);
  return pcVar3;
}


lui gp,0x2
addiu gp,gp,-0x430
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s0,a0,zero
or s1,a1,zero
addiu s2,a2,0x14
b 0x00013550
_sb zero,0x14(a2)
or s0,v0,zero
or s1,v1,zero
addiu s2,s2,-0x1
lw t9,-0x7f5c(gp)
li a3,0xa
or a2,zero,zero
or a0,s0,zero
or a1,s1,zero
bal 0x00018f20
_nop
lw gp,0x10(sp)
addiu v1,v1,0x30
sb v1,0x0(s2)
lw t9,-0x7f58(gp)
li a3,0xa
or a2,zero,zero
or a0,s0,zero
or a1,s1,zero
bal 0x00018ab0
_nop
lw gp,0x10(sp)
bne s0,zero,0x00013548
_nop
bne s0,zero,0x000135b4
_sltiu s1,s1,0xa
beq s1,zero,0x0001354c
_or s0,v0,zero
or v0,s2,zero
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "char * umaxtostr(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  char extraout_v1;\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  uVar4 = CONCAT44(param_1,param_2);\n  pcVar3 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);\n  return pcVar3;\n}\n\n" (function_definition "char * umaxtostr(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  char extraout_v1;\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  uVar4 = CONCAT44(param_1,param_2);\n  pcVar3 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* umaxtostr(undefined4 param_1,undefined4 param_2,int param_3)" * (function_declarator "umaxtostr(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  char extraout_v1;\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  uVar4 = CONCAT44(param_1,param_2);\n  pcVar3 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);\n  return pcVar3;\n}" { (declaration "char extraout_v1;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "uVar4 = CONCAT44(param_1,param_2);" (assignment_expression "uVar4 = CONCAT44(param_1,param_2)" identifier = (call_expression "CONCAT44(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "pcVar3 = (char *)(param_3 + 0x14);" (assignment_expression "pcVar3 = (char *)(param_3 + 0x14)" identifier = (cast_expression "(char *)(param_3 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(param_3 + 0x14) = 0;" (assignment_expression "*(undefined1 *)(param_3 + 0x14) = 0" (pointer_expression "*(undefined1 *)(param_3 + 0x14)" * (cast_expression "(undefined1 *)(param_3 + 0x14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (do_statement "do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);" do (compound_statement "{\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  }" { (do_statement "do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);" do (compound_statement "{\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    }" { (expression_statement "iVar1 = (int)((ulonglong)uVar4 >> 0x20);" (assignment_expression "iVar1 = (int)((ulonglong)uVar4 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar4 >> 0x20)" ( (binary_expression "(ulonglong)uVar4 >> 0x20" (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar2 = (uint)uVar4;" (assignment_expression "uVar2 = (uint)uVar4" identifier = (cast_expression "(uint)uVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "pcVar3 = pcVar3 + -1;" (assignment_expression "pcVar3 = pcVar3 + -1" identifier = (binary_expression "pcVar3 + -1" identifier + number_literal)) ;) (expression_statement "FUN_00018f20(iVar1,uVar2,0,10);" (call_expression "FUN_00018f20(iVar1,uVar2,0,10)" identifier (argument_list "(iVar1,uVar2,0,10)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "*pcVar3 = extraout_v1 + '0';" (assignment_expression "*pcVar3 = extraout_v1 + '0'" (pointer_expression "*pcVar3" * identifier) = (binary_expression "extraout_v1 + '0'" identifier + (char_literal "'0'" ' character '))) ;) (expression_statement "uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);" (assignment_expression "uVar4 = FUN_00018ab0(iVar1,uVar2,0,10)" identifier = (call_expression "FUN_00018ab0(iVar1,uVar2,0,10)" identifier (argument_list "(iVar1,uVar2,0,10)" ( identifier , identifier , number_literal , number_literal )))) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) }) while (parenthesized_expression "(9 < uVar2)" ( (binary_expression "9 < uVar2" number_literal < identifier) )) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "char * umaxtostr(uintmax_t i,char *buf)\n\n{\n  char extraout_v1;\n  undefined4 in_a1;\n  int in_a2;\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  uVar4 = CONCAT44(buf,in_a1);\n  pcVar3 = (char *)(in_a2 + 0x14);\n  *(undefined1 *)(in_a2 + 0x14) = 0;\n  do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      __umoddi3(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = __udivdi3(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);\n  return pcVar3;\n}\n\n" (function_definition "char * umaxtostr(uintmax_t i,char *buf)\n\n{\n  char extraout_v1;\n  undefined4 in_a1;\n  int in_a2;\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  uVar4 = CONCAT44(buf,in_a1);\n  pcVar3 = (char *)(in_a2 + 0x14);\n  *(undefined1 *)(in_a2 + 0x14) = 0;\n  do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      __umoddi3(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = __udivdi3(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* umaxtostr(uintmax_t i,char *buf)" * (function_declarator "umaxtostr(uintmax_t i,char *buf)" identifier (parameter_list "(uintmax_t i,char *buf)" ( (parameter_declaration "uintmax_t i" type_identifier identifier) , (parameter_declaration "char *buf" primitive_type (pointer_declarator "*buf" * identifier)) )))) (compound_statement "{\n  char extraout_v1;\n  undefined4 in_a1;\n  int in_a2;\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  uVar4 = CONCAT44(buf,in_a1);\n  pcVar3 = (char *)(in_a2 + 0x14);\n  *(undefined1 *)(in_a2 + 0x14) = 0;\n  do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      __umoddi3(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = __udivdi3(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);\n  return pcVar3;\n}" { (declaration "char extraout_v1;" primitive_type identifier ;) (declaration "undefined4 in_a1;" type_identifier identifier ;) (declaration "int in_a2;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "uVar4 = CONCAT44(buf,in_a1);" (assignment_expression "uVar4 = CONCAT44(buf,in_a1)" identifier = (call_expression "CONCAT44(buf,in_a1)" identifier (argument_list "(buf,in_a1)" ( identifier , identifier )))) ;) (expression_statement "pcVar3 = (char *)(in_a2 + 0x14);" (assignment_expression "pcVar3 = (char *)(in_a2 + 0x14)" identifier = (cast_expression "(char *)(in_a2 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a2 + 0x14)" ( (binary_expression "in_a2 + 0x14" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(in_a2 + 0x14) = 0;" (assignment_expression "*(undefined1 *)(in_a2 + 0x14) = 0" (pointer_expression "*(undefined1 *)(in_a2 + 0x14)" * (cast_expression "(undefined1 *)(in_a2 + 0x14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_a2 + 0x14)" ( (binary_expression "in_a2 + 0x14" identifier + number_literal) )))) = number_literal) ;) (do_statement "do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      __umoddi3(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = __udivdi3(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);" do (compound_statement "{\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      __umoddi3(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = __udivdi3(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  }" { (do_statement "do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      __umoddi3(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = __udivdi3(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);" do (compound_statement "{\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      __umoddi3(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = __udivdi3(iVar1,uVar2,0,10);\n    }" { (expression_statement "iVar1 = (int)((ulonglong)uVar4 >> 0x20);" (assignment_expression "iVar1 = (int)((ulonglong)uVar4 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar4 >> 0x20)" ( (binary_expression "(ulonglong)uVar4 >> 0x20" (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar2 = (uint)uVar4;" (assignment_expression "uVar2 = (uint)uVar4" identifier = (cast_expression "(uint)uVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "pcVar3 = pcVar3 + -1;" (assignment_expression "pcVar3 = pcVar3 + -1" identifier = (binary_expression "pcVar3 + -1" identifier + number_literal)) ;) (expression_statement "__umoddi3(iVar1,uVar2,0,10);" (call_expression "__umoddi3(iVar1,uVar2,0,10)" identifier (argument_list "(iVar1,uVar2,0,10)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "*pcVar3 = extraout_v1 + '0';" (assignment_expression "*pcVar3 = extraout_v1 + '0'" (pointer_expression "*pcVar3" * identifier) = (binary_expression "extraout_v1 + '0'" identifier + (char_literal "'0'" ' character '))) ;) (expression_statement "uVar4 = __udivdi3(iVar1,uVar2,0,10);" (assignment_expression "uVar4 = __udivdi3(iVar1,uVar2,0,10)" identifier = (call_expression "__udivdi3(iVar1,uVar2,0,10)" identifier (argument_list "(iVar1,uVar2,0,10)" ( identifier , identifier , number_literal , number_literal )))) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) }) while (parenthesized_expression "(9 < uVar2)" ( (binary_expression "9 < uVar2" number_literal < identifier) )) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "char * umaxtostr(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  char extraout_v1;\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  uVar4 = CONCAT44(param_1,param_2);\n  pcVar3 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);\n  return pcVar3;\n}\n\n" (function_definition "char * umaxtostr(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  char extraout_v1;\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  uVar4 = CONCAT44(param_1,param_2);\n  pcVar3 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);\n  return pcVar3;\n}" primitive_type (pointer_declarator "* umaxtostr(undefined4 param_1,undefined4 param_2,int param_3)" * (function_declarator "umaxtostr(undefined4 param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) )))) (compound_statement "{\n  char extraout_v1;\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  uVar4 = CONCAT44(param_1,param_2);\n  pcVar3 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);\n  return pcVar3;\n}" { (declaration "char extraout_v1;" primitive_type identifier ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (expression_statement "uVar4 = CONCAT44(param_1,param_2);" (assignment_expression "uVar4 = CONCAT44(param_1,param_2)" identifier = (call_expression "CONCAT44(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier )))) ;) (expression_statement "pcVar3 = (char *)(param_3 + 0x14);" (assignment_expression "pcVar3 = (char *)(param_3 + 0x14)" identifier = (cast_expression "(char *)(param_3 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) ;) (expression_statement "*(undefined1 *)(param_3 + 0x14) = 0;" (assignment_expression "*(undefined1 *)(param_3 + 0x14) = 0" (pointer_expression "*(undefined1 *)(param_3 + 0x14)" * (cast_expression "(undefined1 *)(param_3 + 0x14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x14)" ( (binary_expression "param_3 + 0x14" identifier + number_literal) )))) = number_literal) ;) (do_statement "do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);" do (compound_statement "{\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  }" { (do_statement "do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);" do (compound_statement "{\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    }" { (expression_statement "iVar1 = (int)((ulonglong)uVar4 >> 0x20);" (assignment_expression "iVar1 = (int)((ulonglong)uVar4 >> 0x20)" identifier = (cast_expression "(int)((ulonglong)uVar4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar4 >> 0x20)" ( (binary_expression "(ulonglong)uVar4 >> 0x20" (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "uVar2 = (uint)uVar4;" (assignment_expression "uVar2 = (uint)uVar4" identifier = (cast_expression "(uint)uVar4" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "pcVar3 = pcVar3 + -1;" (assignment_expression "pcVar3 = pcVar3 + -1" identifier = (binary_expression "pcVar3 + -1" identifier + number_literal)) ;) (expression_statement "FUN_00018f20(iVar1,uVar2,0,10);" (call_expression "FUN_00018f20(iVar1,uVar2,0,10)" identifier (argument_list "(iVar1,uVar2,0,10)" ( identifier , identifier , number_literal , number_literal ))) ;) (expression_statement "*pcVar3 = extraout_v1 + '0';" (assignment_expression "*pcVar3 = extraout_v1 + '0'" (pointer_expression "*pcVar3" * identifier) = (binary_expression "extraout_v1 + '0'" identifier + (char_literal "'0'" ' character '))) ;) (expression_statement "uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);" (assignment_expression "uVar4 = FUN_00018ab0(iVar1,uVar2,0,10)" identifier = (call_expression "FUN_00018ab0(iVar1,uVar2,0,10)" identifier (argument_list "(iVar1,uVar2,0,10)" ( identifier , identifier , number_literal , number_literal )))) ;) }) while (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) ;) }) while (parenthesized_expression "(9 < uVar2)" ( (binary_expression "9 < uVar2" number_literal < identifier) )) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , 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) ;) (do_statement do (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 (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + (char_literal ' character '))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , LIT )))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }) while (parenthesized_expression ( (binary_expression LIT < IDENT) )) ;) (return_statement return IDENT ;) })))
(function_definition "char * umaxtostr(undefined4 param_1,undefined4 param_2,int param_3)\n\n{\n  char extraout_v1;\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  uVar4 = CONCAT44(param_1,param_2);\n  pcVar3 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);\n  return pcVar3;\n}" (primitive_type "char") (pointer_declarator "* umaxtostr(undefined4 param_1,undefined4 param_2,int param_3)" (* "*") (function_declarator "umaxtostr(undefined4 param_1,undefined4 param_2,int param_3)" (identifier "umaxtostr") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")")))) (compound_statement "{\n  char extraout_v1;\n  int iVar1;\n  uint uVar2;\n  char *pcVar3;\n  undefined8 uVar4;\n  \n  uVar4 = CONCAT44(param_1,param_2);\n  pcVar3 = (char *)(param_3 + 0x14);\n  *(undefined1 *)(param_3 + 0x14) = 0;\n  do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);\n  return pcVar3;\n}" ({ "{") (declaration "char extraout_v1;" (primitive_type "char") (identifier "extraout_v1") (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined8 uVar4;" (type_identifier "undefined8") (identifier "uVar4") (; ";")) (expression_statement "uVar4 = CONCAT44(param_1,param_2);" (assignment_expression "uVar4 = CONCAT44(param_1,param_2)" (identifier "uVar4") (= "=") (call_expression "CONCAT44(param_1,param_2)" (identifier "CONCAT44") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")")))) (; ";")) (expression_statement "pcVar3 = (char *)(param_3 + 0x14);" (assignment_expression "pcVar3 = (char *)(param_3 + 0x14)" (identifier "pcVar3") (= "=") (cast_expression "(char *)(param_3 + 0x14)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x14)" (( "(") (binary_expression "param_3 + 0x14" (identifier "param_3") (+ "+") (number_literal "0x14")) () ")")))) (; ";")) (expression_statement "*(undefined1 *)(param_3 + 0x14) = 0;" (assignment_expression "*(undefined1 *)(param_3 + 0x14) = 0" (pointer_expression "*(undefined1 *)(param_3 + 0x14)" (* "*") (cast_expression "(undefined1 *)(param_3 + 0x14)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x14)" (( "(") (binary_expression "param_3 + 0x14" (identifier "param_3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  } while (9 < uVar2);" (do "do") (compound_statement "{\n    do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);\n  }" ({ "{") (do_statement "do {\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    } while (iVar1 != 0);" (do "do") (compound_statement "{\n      iVar1 = (int)((ulonglong)uVar4 >> 0x20);\n      uVar2 = (uint)uVar4;\n      pcVar3 = pcVar3 + -1;\n      FUN_00018f20(iVar1,uVar2,0,10);\n      *pcVar3 = extraout_v1 + '0';\n      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);\n    }" ({ "{") (expression_statement "iVar1 = (int)((ulonglong)uVar4 >> 0x20);" (assignment_expression "iVar1 = (int)((ulonglong)uVar4 >> 0x20)" (identifier "iVar1") (= "=") (cast_expression "(int)((ulonglong)uVar4 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)uVar4 >> 0x20)" (( "(") (binary_expression "(ulonglong)uVar4 >> 0x20" (cast_expression "(ulonglong)uVar4" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar4")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "uVar2 = (uint)uVar4;" (assignment_expression "uVar2 = (uint)uVar4" (identifier "uVar2") (= "=") (cast_expression "(uint)uVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar4"))) (; ";")) (expression_statement "pcVar3 = pcVar3 + -1;" (assignment_expression "pcVar3 = pcVar3 + -1" (identifier "pcVar3") (= "=") (binary_expression "pcVar3 + -1" (identifier "pcVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "FUN_00018f20(iVar1,uVar2,0,10);" (call_expression "FUN_00018f20(iVar1,uVar2,0,10)" (identifier "FUN_00018f20") (argument_list "(iVar1,uVar2,0,10)" (( "(") (identifier "iVar1") (, ",") (identifier "uVar2") (, ",") (number_literal "0") (, ",") (number_literal "10") () ")"))) (; ";")) (expression_statement "*pcVar3 = extraout_v1 + '0';" (assignment_expression "*pcVar3 = extraout_v1 + '0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (= "=") (binary_expression "extraout_v1 + '0'" (identifier "extraout_v1") (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (expression_statement "uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);" (assignment_expression "uVar4 = FUN_00018ab0(iVar1,uVar2,0,10)" (identifier "uVar4") (= "=") (call_expression "FUN_00018ab0(iVar1,uVar2,0,10)" (identifier "FUN_00018ab0") (argument_list "(iVar1,uVar2,0,10)" (( "(") (identifier "iVar1") (, ",") (identifier "uVar2") (, ",") (number_literal "0") (, ",") (number_literal "10") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(9 < uVar2)" (( "(") (binary_expression "9 < uVar2" (number_literal "9") (< "<") (identifier "uVar2")) () ")")) (; ";")) (return_statement "return pcVar3;" (return "return") (identifier "pcVar3") (; ";")) (} "}")))

char * function_1(type_1 i,char *buf)

{
  char var_5;
  type_2 in_a1;
  int var_2;
  int var_7;
  type_3 var_8;
  char *var_3;
  type_4 uVar4;
  
  uVar4 = var_1(buf,in_a1);
  var_3 = (char *)(var_2 + 0x14);
  *(type_5 *)(var_2 + 0x14) = 0;
  do {
    do {
      var_7 = (int)((type_6)uVar4 >> 0x20);
      var_8 = (type_3)uVar4;
      var_3 = var_3 + -1;
      var_4(var_7,var_8,0,10);
      *var_3 = var_5 + '0';
      uVar4 = var_6(var_7,var_8,0,10);
    } while (var_7 != 0);
  } while (9 < var_8);
  return var_3;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator 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: (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))) (do_statement body: (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (char_literal (character))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal) (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier)))) (return_statement (identifier)))))

char * MASKED(undefined4 param_1,undefined4 param_2,int param_3)

{
  char extraout_v1;
  int iVar1;
  uint uVar2;
  char *pcVar3;
  undefined8 uVar4;
  
  uVar4 = CONCAT44(param_1,param_2);
  pcVar3 = (char *)(param_3 + 0x14);
  *(undefined1 *)(param_3 + 0x14) = 0;
  do {
    do {
      iVar1 = (int)((ulonglong)uVar4 >> 0x20);
      uVar2 = (uint)uVar4;
      pcVar3 = pcVar3 + -1;
      FUN_00018f20(iVar1,uVar2,0,10);
      *pcVar3 = extraout_v1 + '0';
      uVar4 = FUN_00018ab0(iVar1,uVar2,0,10);
    } while (iVar1 != 0);
  } while (9 < uVar2);
  return pcVar3;
}

