
/* WARNING: Unknown calling convention */

char * xgetcwd(void)

{
  char *pcVar1;
  int *piVar2;
  
  pcVar1 = rpl_getcwd((char *)0x0,0);
  if ((pcVar1 == (char *)0x0) &&
     (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)) {
                    /* WARNING: Subroutine does not return */
    xalloc_die();
  }
  return pcVar1;
}



int xgetcwd(void)

{
  int iVar1;
  int *piVar2;
  
  iVar1 = rpl_getcwd(0,0);
  if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))
  {
                    /* WARNING: Subroutine does not return */
    xalloc_die();
  }
  return iVar1;
}


lui gp,0x2
addiu gp,gp,0x3de0
addu gp,gp,t9
addiu sp,sp,-0x20
lw t9,-0x7d6c(gp)
or a1,zero,zero
sw gp,0x10(sp)
sw s0,0x18(sp)
sw ra,0x1c(sp)
bal 0x0002aa80
_or a0,zero,zero
lw gp,0x10(sp)
beq v0,zero,0x0002735c
_or s0,v0,zero
lw ra,0x1c(sp)
or v0,s0,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7bd0(gp)
jalr t9
_nop
li v1,0xc
lw v0,0x0(v0)
bne v0,v1,0x00027348
_lw gp,0x10(sp)
lw t9,-0x7e88(gp)
bal 0x000271e0
_nop
(translation_unit "int xgetcwd(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = rpl_getcwd(0,0);\n  if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))\n  {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  return iVar1;\n}\n\n" (function_definition "int xgetcwd(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = rpl_getcwd(0,0);\n  if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))\n  {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  return iVar1;\n}" primitive_type (function_declarator "xgetcwd(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = rpl_getcwd(0,0);\n  if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))\n  {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "iVar1 = rpl_getcwd(0,0);" (assignment_expression "iVar1 = rpl_getcwd(0,0)" identifier = (call_expression "rpl_getcwd(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal )))) ;) (if_statement "if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))\n  {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }" if (parenthesized_expression "((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))" ( (binary_expression "(iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00043520)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00043520)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00043520)()" (parenthesized_expression "(*(code *)PTR___errno_location_00043520)" ( (pointer_expression "*(code *)PTR___errno_location_00043520" * (cast_expression "(code *)PTR___errno_location_00043520" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar2 == 0xc" (pointer_expression "*piVar2" * identifier) == number_literal)) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }" { comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nchar * xgetcwd(void)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  \n  pcVar1 = rpl_getcwd((char *)0x0,0);\n  if ((pcVar1 == (char *)0x0) &&\n     (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)) {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  return pcVar1;\n}\n\n" comment (function_definition "char * xgetcwd(void)\n\n{\n  char *pcVar1;\n  int *piVar2;\n  \n  pcVar1 = rpl_getcwd((char *)0x0,0);\n  if ((pcVar1 == (char *)0x0) &&\n     (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)) {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  return pcVar1;\n}" primitive_type (pointer_declarator "* xgetcwd(void)" * (function_declarator "xgetcwd(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  char *pcVar1;\n  int *piVar2;\n  \n  pcVar1 = rpl_getcwd((char *)0x0,0);\n  if ((pcVar1 == (char *)0x0) &&\n     (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)) {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "pcVar1 = rpl_getcwd((char *)0x0,0);" (assignment_expression "pcVar1 = rpl_getcwd((char *)0x0,0)" identifier = (call_expression "rpl_getcwd((char *)0x0,0)" identifier (argument_list "((char *)0x0,0)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal )))) ;) (if_statement "if ((pcVar1 == (char *)0x0) &&\n     (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)) {\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }" if (parenthesized_expression "((pcVar1 == (char *)0x0) &&\n     (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))" ( (binary_expression "(pcVar1 == (char *)0x0) &&\n     (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)" (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00043520)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00043520)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00043520)()" (parenthesized_expression "(*(code *)PTR___errno_location_00043520)" ( (pointer_expression "*(code *)PTR___errno_location_00043520" * (cast_expression "(code *)PTR___errno_location_00043520" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar2 == 0xc" (pointer_expression "*piVar2" * identifier) == number_literal)) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    xalloc_die();\n  }" { comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "int xgetcwd(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = rpl_getcwd(0,0);\n  if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))\n  {\n                    \n    xalloc_die();\n  }\n  return iVar1;\n}\n\n" (function_definition "int xgetcwd(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = rpl_getcwd(0,0);\n  if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))\n  {\n                    \n    xalloc_die();\n  }\n  return iVar1;\n}" primitive_type (function_declarator "xgetcwd(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = rpl_getcwd(0,0);\n  if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))\n  {\n                    \n    xalloc_die();\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (expression_statement "iVar1 = rpl_getcwd(0,0);" (assignment_expression "iVar1 = rpl_getcwd(0,0)" identifier = (call_expression "rpl_getcwd(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal )))) ;) (if_statement "if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))\n  {\n                    \n    xalloc_die();\n  }" if (parenthesized_expression "((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))" ( (binary_expression "(iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) && (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)" ( (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00043520)()" identifier = (cast_expression "(int *)(*(code *)PTR___errno_location_00043520)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___errno_location_00043520)()" (parenthesized_expression "(*(code *)PTR___errno_location_00043520)" ( (pointer_expression "*(code *)PTR___errno_location_00043520" * (cast_expression "(code *)PTR___errno_location_00043520" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) , (binary_expression "*piVar2 == 0xc" (pointer_expression "*piVar2" * identifier) == number_literal)) ))) )) (compound_statement "{\n                    \n    xalloc_die();\n  }" { (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) , (binary_expression (pointer_expression * IDENT) == LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int xgetcwd(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = rpl_getcwd(0,0);\n  if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))\n  {\n                    \n    xalloc_die();\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "xgetcwd(void)" (identifier "xgetcwd") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  \n  iVar1 = rpl_getcwd(0,0);\n  if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))\n  {\n                    \n    xalloc_die();\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (expression_statement "iVar1 = rpl_getcwd(0,0);" (assignment_expression "iVar1 = rpl_getcwd(0,0)" (identifier "iVar1") (= "=") (call_expression "rpl_getcwd(0,0)" (identifier "rpl_getcwd") (argument_list "(0,0)" (( "(") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))\n  {\n                    \n    xalloc_die();\n  }" (if "if") (parenthesized_expression "((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))" (( "(") (binary_expression "(iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc)" (( "(") (comma_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc" (assignment_expression "piVar2 = (int *)(*(code *)PTR___errno_location_00043520)()" (identifier "piVar2") (= "=") (cast_expression "(int *)(*(code *)PTR___errno_location_00043520)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___errno_location_00043520)()" (parenthesized_expression "(*(code *)PTR___errno_location_00043520)" (( "(") (pointer_expression "*(code *)PTR___errno_location_00043520" (* "*") (cast_expression "(code *)PTR___errno_location_00043520" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___errno_location_00043520"))) () ")")) (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "*piVar2 == 0xc" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0xc"))) () ")"))) () ")")) (compound_statement "{\n                    \n    xalloc_die();\n  }" ({ "{") (expression_statement "xalloc_die();" (call_expression "xalloc_die()" (identifier "xalloc_die") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list)))) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (identifier)))))

int MASKED(void)

{
  int iVar1;
  int *piVar2;
  
  iVar1 = rpl_getcwd(0,0);
  if ((iVar1 == 0) && (piVar2 = (int *)(*(code *)PTR___errno_location_00043520)(), *piVar2 == 0xc))
  {
                    /* WARNING: Subroutine does not return */
    xalloc_die();
  }
  return iVar1;
}

