
WildcardMatcher * begin_wildcard_matching(char *name)

{
  WildcardMatcher *pWVar1;
  int iVar2;
  WildcardMatcher *pWVar3;
  
  pWVar1 = (WildcardMatcher *)(*(code *)PTR_safemalloc_000b2408)(1,0x28);
  iVar2 = (*(code *)PTR_glob64_000b2e6c)(name,0,0,pWVar1);
  if (iVar2 < 0) {
    pWVar3 = (WildcardMatcher *)0x0;
    (*(code *)PTR_safefree_000b23d0)(pWVar1);
  }
  else {
    pWVar1->i = 0;
    pWVar3 = pWVar1;
  }
  return pWVar3;
}



int begin_wildcard_matching(undefined4 param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);
  iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);
  if (iVar2 < 0) {
    iVar2 = 0;
    (*(code *)PTR_safefree_000b23d0)(iVar1);
  }
  else {
    *(undefined4 *)(iVar1 + 0x24) = 0;
    iVar2 = iVar1;
  }
  return iVar2;
}


lui gp,0x3
addiu gp,gp,0x2b2c
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7f68(gp)
li a1,0x28
sw s1,0x20(sp)
or s1,a0,zero
li a0,0x1
sw gp,0x10(sp)
sw ra,0x24(sp)
jalr t9
_sw s0,0x1c(sp)
or a2,zero,zero
lw gp,0x10(sp)
or a1,zero,zero
or a3,v0,zero
or a0,s1,zero
lw t9,-0x7504(gp)
jalr t9
_or s0,v0,zero
bltz v0,0x000878bc
_lw gp,0x10(sp)
sw zero,0x24(s0)
lw ra,0x24(sp)
or v0,s0,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7fa0(gp)
or a0,s0,zero
jalr t9
_or s0,zero,zero
b 0x000878a8
_lw ra,0x24(sp)
(translation_unit "int begin_wildcard_matching(undefined4 param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);\n  iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);\n  if (iVar2 < 0) {\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }\n  return iVar2;\n}\n\n" (function_definition "int begin_wildcard_matching(undefined4 param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);\n  iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);\n  if (iVar2 < 0) {\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "begin_wildcard_matching(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);\n  iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);\n  if (iVar2 < 0) {\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);" (assignment_expression "iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28)" identifier = (call_expression "(*(code *)PTR_safemalloc_000b2408)(1,0x28)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b2408)" ( (pointer_expression "*(code *)PTR_safemalloc_000b2408" * (cast_expression "(code *)PTR_safemalloc_000b2408" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x28)" ( number_literal , number_literal )))) ;) (expression_statement "iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);" (assignment_expression "iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1)" identifier = (call_expression "(*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1)" (parenthesized_expression "(*(code *)PTR_glob64_000b2e6c)" ( (pointer_expression "*(code *)PTR_glob64_000b2e6c" * (cast_expression "(code *)PTR_glob64_000b2e6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0,0,iVar1)" ( identifier , number_literal , number_literal , identifier )))) ;) (if_statement "if (iVar2 < 0) {\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_safefree_000b23d0)(iVar1);" (call_expression "(*(code *)PTR_safefree_000b23d0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" ( (pointer_expression "*(code *)PTR_safefree_000b23d0" * (cast_expression "(code *)PTR_safefree_000b23d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) }) (else_clause "else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }" else (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "WildcardMatcher * begin_wildcard_matching(char *name)\n\n{\n  WildcardMatcher *pWVar1;\n  int iVar2;\n  WildcardMatcher *pWVar3;\n  \n  pWVar1 = (WildcardMatcher *)(*(code *)PTR_safemalloc_000b2408)(1,0x28);\n  iVar2 = (*(code *)PTR_glob64_000b2e6c)(name,0,0,pWVar1);\n  if (iVar2 < 0) {\n    pWVar3 = (WildcardMatcher *)0x0;\n    (*(code *)PTR_safefree_000b23d0)(pWVar1);\n  }\n  else {\n    pWVar1->i = 0;\n    pWVar3 = pWVar1;\n  }\n  return pWVar3;\n}\n\n" (function_definition "WildcardMatcher * begin_wildcard_matching(char *name)\n\n{\n  WildcardMatcher *pWVar1;\n  int iVar2;\n  WildcardMatcher *pWVar3;\n  \n  pWVar1 = (WildcardMatcher *)(*(code *)PTR_safemalloc_000b2408)(1,0x28);\n  iVar2 = (*(code *)PTR_glob64_000b2e6c)(name,0,0,pWVar1);\n  if (iVar2 < 0) {\n    pWVar3 = (WildcardMatcher *)0x0;\n    (*(code *)PTR_safefree_000b23d0)(pWVar1);\n  }\n  else {\n    pWVar1->i = 0;\n    pWVar3 = pWVar1;\n  }\n  return pWVar3;\n}" type_identifier (pointer_declarator "* begin_wildcard_matching(char *name)" * (function_declarator "begin_wildcard_matching(char *name)" identifier (parameter_list "(char *name)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) )))) (compound_statement "{\n  WildcardMatcher *pWVar1;\n  int iVar2;\n  WildcardMatcher *pWVar3;\n  \n  pWVar1 = (WildcardMatcher *)(*(code *)PTR_safemalloc_000b2408)(1,0x28);\n  iVar2 = (*(code *)PTR_glob64_000b2e6c)(name,0,0,pWVar1);\n  if (iVar2 < 0) {\n    pWVar3 = (WildcardMatcher *)0x0;\n    (*(code *)PTR_safefree_000b23d0)(pWVar1);\n  }\n  else {\n    pWVar1->i = 0;\n    pWVar3 = pWVar1;\n  }\n  return pWVar3;\n}" { (declaration "WildcardMatcher *pWVar1;" type_identifier (pointer_declarator "*pWVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "WildcardMatcher *pWVar3;" type_identifier (pointer_declarator "*pWVar3" * identifier) ;) (expression_statement "pWVar1 = (WildcardMatcher *)(*(code *)PTR_safemalloc_000b2408)(1,0x28);" (assignment_expression "pWVar1 = (WildcardMatcher *)(*(code *)PTR_safemalloc_000b2408)(1,0x28)" identifier = (cast_expression "(WildcardMatcher *)(*(code *)PTR_safemalloc_000b2408)(1,0x28)" ( (type_descriptor "WildcardMatcher *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b2408)(1,0x28)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b2408)" ( (pointer_expression "*(code *)PTR_safemalloc_000b2408" * (cast_expression "(code *)PTR_safemalloc_000b2408" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x28)" ( number_literal , number_literal ))))) ;) (expression_statement "iVar2 = (*(code *)PTR_glob64_000b2e6c)(name,0,0,pWVar1);" (assignment_expression "iVar2 = (*(code *)PTR_glob64_000b2e6c)(name,0,0,pWVar1)" identifier = (call_expression "(*(code *)PTR_glob64_000b2e6c)(name,0,0,pWVar1)" (parenthesized_expression "(*(code *)PTR_glob64_000b2e6c)" ( (pointer_expression "*(code *)PTR_glob64_000b2e6c" * (cast_expression "(code *)PTR_glob64_000b2e6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(name,0,0,pWVar1)" ( identifier , number_literal , number_literal , identifier )))) ;) (if_statement "if (iVar2 < 0) {\n    pWVar3 = (WildcardMatcher *)0x0;\n    (*(code *)PTR_safefree_000b23d0)(pWVar1);\n  }\n  else {\n    pWVar1->i = 0;\n    pWVar3 = pWVar1;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    pWVar3 = (WildcardMatcher *)0x0;\n    (*(code *)PTR_safefree_000b23d0)(pWVar1);\n  }" { (expression_statement "pWVar3 = (WildcardMatcher *)0x0;" (assignment_expression "pWVar3 = (WildcardMatcher *)0x0" identifier = (cast_expression "(WildcardMatcher *)0x0" ( (type_descriptor "WildcardMatcher *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_safefree_000b23d0)(pWVar1);" (call_expression "(*(code *)PTR_safefree_000b23d0)(pWVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" ( (pointer_expression "*(code *)PTR_safefree_000b23d0" * (cast_expression "(code *)PTR_safefree_000b23d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pWVar1)" ( identifier ))) ;) }) (else_clause "else {\n    pWVar1->i = 0;\n    pWVar3 = pWVar1;\n  }" else (compound_statement "{\n    pWVar1->i = 0;\n    pWVar3 = pWVar1;\n  }" { (expression_statement "pWVar1->i = 0;" (assignment_expression "pWVar1->i = 0" (field_expression "pWVar1->i" identifier -> field_identifier) = number_literal) ;) (expression_statement "pWVar3 = pWVar1;" (assignment_expression "pWVar3 = pWVar1" identifier = identifier) ;) }))) (return_statement "return pWVar3;" return identifier ;) })))
(translation_unit "int begin_wildcard_matching(undefined4 param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);\n  iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);\n  if (iVar2 < 0) {\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }\n  return iVar2;\n}\n\n" (function_definition "int begin_wildcard_matching(undefined4 param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);\n  iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);\n  if (iVar2 < 0) {\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }\n  return iVar2;\n}" primitive_type (function_declarator "begin_wildcard_matching(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);\n  iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);\n  if (iVar2 < 0) {\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);" (assignment_expression "iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28)" identifier = (call_expression "(*(code *)PTR_safemalloc_000b2408)(1,0x28)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b2408)" ( (pointer_expression "*(code *)PTR_safemalloc_000b2408" * (cast_expression "(code *)PTR_safemalloc_000b2408" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x28)" ( number_literal , number_literal )))) ;) (expression_statement "iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);" (assignment_expression "iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1)" identifier = (call_expression "(*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1)" (parenthesized_expression "(*(code *)PTR_glob64_000b2e6c)" ( (pointer_expression "*(code *)PTR_glob64_000b2e6c" * (cast_expression "(code *)PTR_glob64_000b2e6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,0,0,iVar1)" ( identifier , number_literal , number_literal , identifier )))) ;) (if_statement "if (iVar2 < 0) {\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_safefree_000b23d0)(iVar1);" (call_expression "(*(code *)PTR_safefree_000b23d0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" ( (pointer_expression "*(code *)PTR_safefree_000b23d0" * (cast_expression "(code *)PTR_safefree_000b23d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) }) (else_clause "else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }" else (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }" { (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" * (cast_expression "(undefined4 *)(iVar1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x24)" ( (binary_expression "iVar1 + 0x24" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" identifier = identifier) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int begin_wildcard_matching(undefined4 param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);\n  iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);\n  if (iVar2 < 0) {\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "begin_wildcard_matching(undefined4 param_1)" (identifier "begin_wildcard_matching") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);\n  iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);\n  if (iVar2 < 0) {\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);" (assignment_expression "iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_safemalloc_000b2408)(1,0x28)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b2408)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000b2408" (* "*") (cast_expression "(code *)PTR_safemalloc_000b2408" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000b2408"))) () ")")) (argument_list "(1,0x28)" (( "(") (number_literal "1") (, ",") (number_literal "0x28") () ")")))) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);" (assignment_expression "iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1)" (parenthesized_expression "(*(code *)PTR_glob64_000b2e6c)" (( "(") (pointer_expression "*(code *)PTR_glob64_000b2e6c" (* "*") (cast_expression "(code *)PTR_glob64_000b2e6c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_glob64_000b2e6c"))) () ")")) (argument_list "(param_1,0,0,iVar1)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar2 < 0) {\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }\n  else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }" (if "if") (parenthesized_expression "(iVar2 < 0)" (( "(") (binary_expression "iVar2 < 0" (identifier "iVar2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = 0;\n    (*(code *)PTR_safefree_000b23d0)(iVar1);\n  }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR_safefree_000b23d0)(iVar1);" (call_expression "(*(code *)PTR_safefree_000b23d0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b23d0" (* "*") (cast_expression "(code *)PTR_safefree_000b23d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b23d0"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }" (else "else") (compound_statement "{\n    *(undefined4 *)(iVar1 + 0x24) = 0;\n    iVar2 = iVar1;\n  }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x24) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x24) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x24)" (( "(") (binary_expression "iVar1 + 0x24" (identifier "iVar1") (+ "+") (number_literal "0x24")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = iVar1;" (assignment_expression "iVar2 = iVar1" (identifier "iVar2") (= "=") (identifier "iVar1")) (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

type_1 * function_1(char *name)

{
  type_1 *pWVar1;
  int var_1;
  type_1 *pWVar3;
  
  pWVar1 = (type_1 *)(*(type_2 *)PTR_safemalloc_000b2408)(1,0x28);
  var_1 = (*(type_2 *)PTR_glob64_000b2e6c)(name,0,0,pWVar1);
  if (var_1 < 0) {
    pWVar3 = (type_1 *)0x0;
    (*(type_2 *)PTR_safefree_000b23d0)(pWVar1);
  }
  else {
    pWVar1->i = 0;
    pWVar3 = pWVar1;
  }
  return pWVar3;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (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 (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (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) (number_literal) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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))))) alternative: (else_clause (compound_statement (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))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (return_statement (identifier)))))

int MASKED(undefined4 param_1)

{
  int iVar1;
  int iVar2;
  
  iVar1 = (*(code *)PTR_safemalloc_000b2408)(1,0x28);
  iVar2 = (*(code *)PTR_glob64_000b2e6c)(param_1,0,0,iVar1);
  if (iVar2 < 0) {
    iVar2 = 0;
    (*(code *)PTR_safefree_000b23d0)(iVar1);
  }
  else {
    *(undefined4 *)(iVar1 + 0x24) = 0;
    iVar2 = iVar1;
  }
  return iVar2;
}

