
char * itoa(int n)

{
  undefined *puVar1;
  char *pcVar2;
  char *pcVar3;
  
  puVar1 = PTR_DAT_0012a178;
  if (-1 < n) {
    pcVar3 = PTR_DAT_0012a178 + -0x4d98;
    pcVar2 = utoa_to_buf(n,pcVar3,0xb);
    *pcVar2 = '\0';
    return pcVar3;
  }
  PTR_DAT_0012a178[-0x4d98] = 0x2d;
  pcVar3 = puVar1 + -0x4d98;
  pcVar2 = utoa_to_buf(-n,puVar1 + -0x4d97,10);
  *pcVar2 = '\0';
  return pcVar3;
}



undefined * FUN_000196e8(int param_1)

{
  undefined1 *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  
  puVar2 = PTR_DAT_0012a178;
  if (-1 < param_1) {
    puVar2 = PTR_DAT_0012a178 + -0x4d98;
    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);
    *puVar1 = 0;
    return puVar2;
  }
  PTR_DAT_0012a178[-0x4d98] = 0x2d;
  puVar3 = puVar2 + -0x4d98;
  puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);
  *puVar1 = 0;
  return puVar3;
}


lui gp,0x12
addiu gp,gp,-0x7598
addu gp,gp,t9
addiu sp,sp,-0x20
sw gp,0x10(sp)
sw ra,0x1c(sp)
bltz a0,0x00019730
_lw v0,-0x7fd8(gp)
addiu t4,v0,-0x4d98
lw t9,-0x7ef0(gp)
li a2,0xb
bal 0x00019594
_or a1,t4,zero
sb zero,0x0(v0)
or v0,t4,zero
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
lw a1,-0x7fd8(gp)
li v1,0x2d
lw t9,-0x7ef0(gp)
subu a0,zero,a0
li a2,0xa
sb v1,-0x4d98(v0)
addiu a1,a1,-0x4d97
bal 0x00019594
_addiu t4,v0,-0x4d98
sb zero,0x0(v0)
or v0,t4,zero
lw ra,0x1c(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined * FUN_000196e8(int param_1)\n\n{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  puVar2 = PTR_DAT_0012a178;\n  if (-1 < param_1) {\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }\n  PTR_DAT_0012a178[-0x4d98] = 0x2d;\n  puVar3 = puVar2 + -0x4d98;\n  puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);\n  *puVar1 = 0;\n  return puVar3;\n}\n\n" (function_definition "undefined * FUN_000196e8(int param_1)\n\n{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  puVar2 = PTR_DAT_0012a178;\n  if (-1 < param_1) {\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }\n  PTR_DAT_0012a178[-0x4d98] = 0x2d;\n  puVar3 = puVar2 + -0x4d98;\n  puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);\n  *puVar1 = 0;\n  return puVar3;\n}" type_identifier (pointer_declarator "* FUN_000196e8(int param_1)" * (function_declarator "FUN_000196e8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  puVar2 = PTR_DAT_0012a178;\n  if (-1 < param_1) {\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }\n  PTR_DAT_0012a178[-0x4d98] = 0x2d;\n  puVar3 = puVar2 + -0x4d98;\n  puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);\n  *puVar1 = 0;\n  return puVar3;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_0012a178;" (assignment_expression "puVar2 = PTR_DAT_0012a178" identifier = identifier) ;) (if_statement "if (-1 < param_1) {\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }" if (parenthesized_expression "(-1 < param_1)" ( (binary_expression "-1 < param_1" number_literal < identifier) )) (compound_statement "{\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }" { (expression_statement "puVar2 = PTR_DAT_0012a178 + -0x4d98;" (assignment_expression "puVar2 = PTR_DAT_0012a178 + -0x4d98" identifier = (binary_expression "PTR_DAT_0012a178 + -0x4d98" identifier + number_literal)) ;) (expression_statement "puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);" (assignment_expression "puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb)" identifier = (cast_expression "(undefined1 *)FUN_00019594(param_1,puVar2,0xb)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019594(param_1,puVar2,0xb)" identifier (argument_list "(param_1,puVar2,0xb)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "PTR_DAT_0012a178[-0x4d98] = 0x2d;" (assignment_expression "PTR_DAT_0012a178[-0x4d98] = 0x2d" (subscript_expression "PTR_DAT_0012a178[-0x4d98]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3 = puVar2 + -0x4d98;" (assignment_expression "puVar3 = puVar2 + -0x4d98" identifier = (binary_expression "puVar2 + -0x4d98" identifier + number_literal)) ;) (expression_statement "puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);" (assignment_expression "puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10)" identifier = (cast_expression "(undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019594(-param_1,puVar2 + -0x4d97,10)" identifier (argument_list "(-param_1,puVar2 + -0x4d97,10)" ( (unary_expression "-param_1" - identifier) , (binary_expression "puVar2 + -0x4d97" identifier + number_literal) , number_literal ))))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit "char * itoa(int n)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_DAT_0012a178;\n  if (-1 < n) {\n    pcVar3 = PTR_DAT_0012a178 + -0x4d98;\n    pcVar2 = utoa_to_buf(n,pcVar3,0xb);\n    *pcVar2 = '\0';\n    return pcVar3;\n  }\n  PTR_DAT_0012a178[-0x4d98] = 0x2d;\n  pcVar3 = puVar1 + -0x4d98;\n  pcVar2 = utoa_to_buf(-n,puVar1 + -0x4d97,10);\n  *pcVar2 = '\0';\n  return pcVar3;\n}\n\n" (function_definition "char * itoa(int n)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_DAT_0012a178;\n  if (-1 < n) {\n    pcVar3 = PTR_DAT_0012a178 + -0x4d98;\n    pcVar2 = utoa_to_buf(n,pcVar3,0xb);\n    *pcVar2 = '\0';\n    return pcVar3;\n  }\n  PTR_DAT_0012a178[-0x4d98] = 0x2d;\n  pcVar3 = puVar1 + -0x4d98;\n  pcVar2 = utoa_to_buf(-n,puVar1 + -0x4d97,10);\n  *pcVar2 = '\0';\n  return pcVar3;\n}" primitive_type (pointer_declarator "* itoa(int n)" * (function_declarator "itoa(int n)" identifier (parameter_list "(int n)" ( (parameter_declaration "int n" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_DAT_0012a178;\n  if (-1 < n) {\n    pcVar3 = PTR_DAT_0012a178 + -0x4d98;\n    pcVar2 = utoa_to_buf(n,pcVar3,0xb);\n    *pcVar2 = '\0';\n    return pcVar3;\n  }\n  PTR_DAT_0012a178[-0x4d98] = 0x2d;\n  pcVar3 = puVar1 + -0x4d98;\n  pcVar2 = utoa_to_buf(-n,puVar1 + -0x4d97,10);\n  *pcVar2 = '\0';\n  return pcVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "puVar1 = PTR_DAT_0012a178;" (assignment_expression "puVar1 = PTR_DAT_0012a178" identifier = identifier) ;) (if_statement "if (-1 < n) {\n    pcVar3 = PTR_DAT_0012a178 + -0x4d98;\n    pcVar2 = utoa_to_buf(n,pcVar3,0xb);\n    *pcVar2 = '\0';\n    return pcVar3;\n  }" if (parenthesized_expression "(-1 < n)" ( (binary_expression "-1 < n" number_literal < identifier) )) (compound_statement "{\n    pcVar3 = PTR_DAT_0012a178 + -0x4d98;\n    pcVar2 = utoa_to_buf(n,pcVar3,0xb);\n    *pcVar2 = '\0';\n    return pcVar3;\n  }" { (expression_statement "pcVar3 = PTR_DAT_0012a178 + -0x4d98;" (assignment_expression "pcVar3 = PTR_DAT_0012a178 + -0x4d98" identifier = (binary_expression "PTR_DAT_0012a178 + -0x4d98" identifier + number_literal)) ;) (expression_statement "pcVar2 = utoa_to_buf(n,pcVar3,0xb);" (assignment_expression "pcVar2 = utoa_to_buf(n,pcVar3,0xb)" identifier = (call_expression "utoa_to_buf(n,pcVar3,0xb)" identifier (argument_list "(n,pcVar3,0xb)" ( identifier , identifier , number_literal )))) ;) (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar3;" return identifier ;) })) (expression_statement "PTR_DAT_0012a178[-0x4d98] = 0x2d;" (assignment_expression "PTR_DAT_0012a178[-0x4d98] = 0x2d" (subscript_expression "PTR_DAT_0012a178[-0x4d98]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pcVar3 = puVar1 + -0x4d98;" (assignment_expression "pcVar3 = puVar1 + -0x4d98" identifier = (binary_expression "puVar1 + -0x4d98" identifier + number_literal)) ;) (expression_statement "pcVar2 = utoa_to_buf(-n,puVar1 + -0x4d97,10);" (assignment_expression "pcVar2 = utoa_to_buf(-n,puVar1 + -0x4d97,10)" identifier = (call_expression "utoa_to_buf(-n,puVar1 + -0x4d97,10)" identifier (argument_list "(-n,puVar1 + -0x4d97,10)" ( (unary_expression "-n" - identifier) , (binary_expression "puVar1 + -0x4d97" identifier + number_literal) , number_literal )))) ;) (expression_statement "*pcVar2 = '\0';" (assignment_expression "*pcVar2 = '\0'" (pointer_expression "*pcVar2" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "undefined * FUN_000196e8(int param_1)\n\n{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  puVar2 = PTR_DAT_0012a178;\n  if (-1 < param_1) {\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }\n  PTR_DAT_0012a178[-0x4d98] = 0x2d;\n  puVar3 = puVar2 + -0x4d98;\n  puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);\n  *puVar1 = 0;\n  return puVar3;\n}\n\n" (function_definition "undefined * FUN_000196e8(int param_1)\n\n{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  puVar2 = PTR_DAT_0012a178;\n  if (-1 < param_1) {\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }\n  PTR_DAT_0012a178[-0x4d98] = 0x2d;\n  puVar3 = puVar2 + -0x4d98;\n  puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);\n  *puVar1 = 0;\n  return puVar3;\n}" type_identifier (pointer_declarator "* FUN_000196e8(int param_1)" * (function_declarator "FUN_000196e8(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) )))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  puVar2 = PTR_DAT_0012a178;\n  if (-1 < param_1) {\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }\n  PTR_DAT_0012a178[-0x4d98] = 0x2d;\n  puVar3 = puVar2 + -0x4d98;\n  puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);\n  *puVar1 = 0;\n  return puVar3;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "puVar2 = PTR_DAT_0012a178;" (assignment_expression "puVar2 = PTR_DAT_0012a178" identifier = identifier) ;) (if_statement "if (-1 < param_1) {\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }" if (parenthesized_expression "(-1 < param_1)" ( (binary_expression "-1 < param_1" number_literal < identifier) )) (compound_statement "{\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }" { (expression_statement "puVar2 = PTR_DAT_0012a178 + -0x4d98;" (assignment_expression "puVar2 = PTR_DAT_0012a178 + -0x4d98" identifier = (binary_expression "PTR_DAT_0012a178 + -0x4d98" identifier + number_literal)) ;) (expression_statement "puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);" (assignment_expression "puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb)" identifier = (cast_expression "(undefined1 *)FUN_00019594(param_1,puVar2,0xb)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019594(param_1,puVar2,0xb)" identifier (argument_list "(param_1,puVar2,0xb)" ( identifier , identifier , number_literal ))))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "PTR_DAT_0012a178[-0x4d98] = 0x2d;" (assignment_expression "PTR_DAT_0012a178[-0x4d98] = 0x2d" (subscript_expression "PTR_DAT_0012a178[-0x4d98]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar3 = puVar2 + -0x4d98;" (assignment_expression "puVar3 = puVar2 + -0x4d98" identifier = (binary_expression "puVar2 + -0x4d98" identifier + number_literal)) ;) (expression_statement "puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);" (assignment_expression "puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10)" identifier = (cast_expression "(undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00019594(-param_1,puVar2 + -0x4d97,10)" identifier (argument_list "(-param_1,puVar2 + -0x4d97,10)" ( (unary_expression "-param_1" - identifier) , (binary_expression "puVar2 + -0x4d97" identifier + number_literal) , number_literal ))))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (unary_expression - IDENT) , (binary_expression IDENT + LIT) , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined * FUN_000196e8(int param_1)\n\n{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  puVar2 = PTR_DAT_0012a178;\n  if (-1 < param_1) {\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }\n  PTR_DAT_0012a178[-0x4d98] = 0x2d;\n  puVar3 = puVar2 + -0x4d98;\n  puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);\n  *puVar1 = 0;\n  return puVar3;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_000196e8(int param_1)" (* "*") (function_declarator "FUN_000196e8(int param_1)" (identifier "FUN_000196e8") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined1 *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  \n  puVar2 = PTR_DAT_0012a178;\n  if (-1 < param_1) {\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }\n  PTR_DAT_0012a178[-0x4d98] = 0x2d;\n  puVar3 = puVar2 + -0x4d98;\n  puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);\n  *puVar1 = 0;\n  return puVar3;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (expression_statement "puVar2 = PTR_DAT_0012a178;" (assignment_expression "puVar2 = PTR_DAT_0012a178" (identifier "puVar2") (= "=") (identifier "PTR_DAT_0012a178")) (; ";")) (if_statement "if (-1 < param_1) {\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(-1 < param_1)" (( "(") (binary_expression "-1 < param_1" (number_literal "-1") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n    puVar2 = PTR_DAT_0012a178 + -0x4d98;\n    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);\n    *puVar1 = 0;\n    return puVar2;\n  }" ({ "{") (expression_statement "puVar2 = PTR_DAT_0012a178 + -0x4d98;" (assignment_expression "puVar2 = PTR_DAT_0012a178 + -0x4d98" (identifier "puVar2") (= "=") (binary_expression "PTR_DAT_0012a178 + -0x4d98" (identifier "PTR_DAT_0012a178") (+ "+") (number_literal "-0x4d98"))) (; ";")) (expression_statement "puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);" (assignment_expression "puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)FUN_00019594(param_1,puVar2,0xb)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00019594(param_1,puVar2,0xb)" (identifier "FUN_00019594") (argument_list "(param_1,puVar2,0xb)" (( "(") (identifier "param_1") (, ",") (identifier "puVar2") (, ",") (number_literal "0xb") () ")"))))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "PTR_DAT_0012a178[-0x4d98] = 0x2d;" (assignment_expression "PTR_DAT_0012a178[-0x4d98] = 0x2d" (subscript_expression "PTR_DAT_0012a178[-0x4d98]" (identifier "PTR_DAT_0012a178") ([ "[") (number_literal "-0x4d98") (] "]")) (= "=") (number_literal "0x2d")) (; ";")) (expression_statement "puVar3 = puVar2 + -0x4d98;" (assignment_expression "puVar3 = puVar2 + -0x4d98" (identifier "puVar3") (= "=") (binary_expression "puVar2 + -0x4d98" (identifier "puVar2") (+ "+") (number_literal "-0x4d98"))) (; ";")) (expression_statement "puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);" (assignment_expression "puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00019594(-param_1,puVar2 + -0x4d97,10)" (identifier "FUN_00019594") (argument_list "(-param_1,puVar2 + -0x4d97,10)" (( "(") (unary_expression "-param_1" (- "-") (identifier "param_1")) (, ",") (binary_expression "puVar2 + -0x4d97" (identifier "puVar2") (+ "+") (number_literal "-0x4d97")) (, ",") (number_literal "10") () ")"))))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}")))

char * function_1(int var_1)

{
  type_1 *var_4;
  char *pcVar2;
  char *pcVar3;
  
  var_4 = var_2;
  if (-1 < var_1) {
    pcVar3 = var_2 + -0x4d98;
    pcVar2 = var_3(var_1,pcVar3,0xb);
    *pcVar2 = '\0';
    return pcVar3;
  }
  var_2[-0x4d98] = 0x2d;
  pcVar3 = var_4 + -0x4d98;
  pcVar2 = var_3(-var_1,var_4 + -0x4d97,10);
  *pcVar2 = '\0';
  return pcVar3;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (unary_expression argument: (identifier)) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (return_statement (identifier)))))

undefined * MASKED(int param_1)

{
  undefined1 *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  
  puVar2 = PTR_DAT_0012a178;
  if (-1 < param_1) {
    puVar2 = PTR_DAT_0012a178 + -0x4d98;
    puVar1 = (undefined1 *)FUN_00019594(param_1,puVar2,0xb);
    *puVar1 = 0;
    return puVar2;
  }
  PTR_DAT_0012a178[-0x4d98] = 0x2d;
  puVar3 = puVar2 + -0x4d98;
  puVar1 = (undefined1 *)FUN_00019594(-param_1,puVar2 + -0x4d97,10);
  *puVar1 = 0;
  return puVar3;
}

