
void * llist_pop(llist_t **head)

{
  undefined *puVar1;
  llist_t *plVar2;
  char *pcVar3;
  
  puVar1 = PTR_free_0012b168;
  plVar2 = *head;
  if (plVar2 != (llist_t *)0x0) {
    pcVar3 = plVar2->data;
    *head = plVar2->link;
    (*(code *)puVar1)(plVar2);
    return pcVar3;
  }
  return (void *)0x0;
}



undefined4 FUN_00018ad0(int *param_1)

{
  undefined *puVar1;
  int *piVar2;
  undefined4 uVar3;
  
  puVar1 = PTR_free_0012b168;
  piVar2 = (int *)*param_1;
  if (piVar2 != (int *)0x0) {
    uVar3 = piVar2[1];
    *param_1 = *piVar2;
    (*(code *)puVar1)(piVar2);
    return uVar3;
  }
  return 0;
}


lui gp,0x12
addiu gp,gp,-0x6980
addu gp,gp,t9
lw v0,0x0(a0)
beq v0,zero,0x00018b24
_or v1,a0,zero
addiu sp,sp,-0x20
lw a1,0x0(v0)
lw t9,-0x6fe8(gp)
or a0,v0,zero
sw gp,0x10(sp)
sw s0,0x18(sp)
sw ra,0x1c(sp)
lw s0,0x4(v0)
jalr t9
_sw a1,0x0(v1)
lw ra,0x1c(sp)
or v0,s0,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
jr ra
_nop
(translation_unit "undefined4 FUN_00018ad0(int *param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_free_0012b168;\n  piVar2 = (int *)*param_1;\n  if (piVar2 != (int *)0x0) {\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00018ad0(int *param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_free_0012b168;\n  piVar2 = (int *)*param_1;\n  if (piVar2 != (int *)0x0) {\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00018ad0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_free_0012b168;\n  piVar2 = (int *)*param_1;\n  if (piVar2 != (int *)0x0) {\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_free_0012b168;" (assignment_expression "puVar1 = PTR_free_0012b168" identifier = identifier) ;) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }" { (expression_statement "uVar3 = piVar2[1];" (assignment_expression "uVar3 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = *piVar2;" (assignment_expression "*param_1 = *piVar2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "(*(code *)puVar1)(piVar2);" (call_expression "(*(code *)puVar1)(piVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2)" ( identifier ))) ;) (return_statement "return uVar3;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void * llist_pop(llist_t **head)\n\n{\n  undefined *puVar1;\n  llist_t *plVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_free_0012b168;\n  plVar2 = *head;\n  if (plVar2 != (llist_t *)0x0) {\n    pcVar3 = plVar2->data;\n    *head = plVar2->link;\n    (*(code *)puVar1)(plVar2);\n    return pcVar3;\n  }\n  return (void *)0x0;\n}\n\n" (function_definition "void * llist_pop(llist_t **head)\n\n{\n  undefined *puVar1;\n  llist_t *plVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_free_0012b168;\n  plVar2 = *head;\n  if (plVar2 != (llist_t *)0x0) {\n    pcVar3 = plVar2->data;\n    *head = plVar2->link;\n    (*(code *)puVar1)(plVar2);\n    return pcVar3;\n  }\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* llist_pop(llist_t **head)" * (function_declarator "llist_pop(llist_t **head)" identifier (parameter_list "(llist_t **head)" ( (parameter_declaration "llist_t **head" type_identifier (pointer_declarator "**head" * (pointer_declarator "*head" * identifier))) )))) (compound_statement "{\n  undefined *puVar1;\n  llist_t *plVar2;\n  char *pcVar3;\n  \n  puVar1 = PTR_free_0012b168;\n  plVar2 = *head;\n  if (plVar2 != (llist_t *)0x0) {\n    pcVar3 = plVar2->data;\n    *head = plVar2->link;\n    (*(code *)puVar1)(plVar2);\n    return pcVar3;\n  }\n  return (void *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "llist_t *plVar2;" type_identifier (pointer_declarator "*plVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "puVar1 = PTR_free_0012b168;" (assignment_expression "puVar1 = PTR_free_0012b168" identifier = identifier) ;) (expression_statement "plVar2 = *head;" (assignment_expression "plVar2 = *head" identifier = (pointer_expression "*head" * identifier)) ;) (if_statement "if (plVar2 != (llist_t *)0x0) {\n    pcVar3 = plVar2->data;\n    *head = plVar2->link;\n    (*(code *)puVar1)(plVar2);\n    return pcVar3;\n  }" if (parenthesized_expression "(plVar2 != (llist_t *)0x0)" ( (binary_expression "plVar2 != (llist_t *)0x0" identifier != (cast_expression "(llist_t *)0x0" ( (type_descriptor "llist_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = plVar2->data;\n    *head = plVar2->link;\n    (*(code *)puVar1)(plVar2);\n    return pcVar3;\n  }" { (expression_statement "pcVar3 = plVar2->data;" (assignment_expression "pcVar3 = plVar2->data" identifier = (field_expression "plVar2->data" identifier -> field_identifier)) ;) (expression_statement "*head = plVar2->link;" (assignment_expression "*head = plVar2->link" (pointer_expression "*head" * identifier) = (field_expression "plVar2->link" identifier -> field_identifier)) ;) (expression_statement "(*(code *)puVar1)(plVar2);" (call_expression "(*(code *)puVar1)(plVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(plVar2)" ( identifier ))) ;) (return_statement "return pcVar3;" return identifier ;) })) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "undefined4 FUN_00018ad0(int *param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_free_0012b168;\n  piVar2 = (int *)*param_1;\n  if (piVar2 != (int *)0x0) {\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00018ad0(int *param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_free_0012b168;\n  piVar2 = (int *)*param_1;\n  if (piVar2 != (int *)0x0) {\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00018ad0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_free_0012b168;\n  piVar2 = (int *)*param_1;\n  if (piVar2 != (int *)0x0) {\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_free_0012b168;" (assignment_expression "puVar1 = PTR_free_0012b168" identifier = identifier) ;) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }" { (expression_statement "uVar3 = piVar2[1];" (assignment_expression "uVar3 = piVar2[1]" identifier = (subscript_expression "piVar2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = *piVar2;" (assignment_expression "*param_1 = *piVar2" (pointer_expression "*param_1" * identifier) = (pointer_expression "*piVar2" * identifier)) ;) (expression_statement "(*(code *)puVar1)(piVar2);" (call_expression "(*(code *)puVar1)(piVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar2)" ( identifier ))) ;) (return_statement "return uVar3;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00018ad0(int *param_1)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_free_0012b168;\n  piVar2 = (int *)*param_1;\n  if (piVar2 != (int *)0x0) {\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00018ad0(int *param_1)" (identifier "FUN_00018ad0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  \n  puVar1 = PTR_free_0012b168;\n  piVar2 = (int *)*param_1;\n  if (piVar2 != (int *)0x0) {\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (expression_statement "puVar1 = PTR_free_0012b168;" (assignment_expression "puVar1 = PTR_free_0012b168" (identifier "puVar1") (= "=") (identifier "PTR_free_0012b168")) (; ";")) (expression_statement "piVar2 = (int *)*param_1;" (assignment_expression "piVar2 = (int *)*param_1" (identifier "piVar2") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar3 = piVar2[1];\n    *param_1 = *piVar2;\n    (*(code *)puVar1)(piVar2);\n    return uVar3;\n  }" ({ "{") (expression_statement "uVar3 = piVar2[1];" (assignment_expression "uVar3 = piVar2[1]" (identifier "uVar3") (= "=") (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_1 = *piVar2;" (assignment_expression "*param_1 = *piVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (expression_statement "(*(code *)puVar1)(piVar2);" (call_expression "(*(code *)puVar1)(piVar2)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(piVar2)" (( "(") (identifier "piVar2") () ")"))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) 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: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (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 (identifier)))) (return_statement (identifier)))) (return_statement (number_literal)))))

undefined4 MASKED(int *param_1)

{
  undefined *puVar1;
  int *piVar2;
  undefined4 uVar3;
  
  puVar1 = PTR_free_0012b168;
  piVar2 = (int *)*param_1;
  if (piVar2 != (int *)0x0) {
    uVar3 = piVar2[1];
    *param_1 = *piVar2;
    (*(code *)puVar1)(piVar2);
    return uVar3;
  }
  return 0;
}

