
Symbol * add_reference(char *name,int line)

{
  Symbol *pSVar1;
  int *data;
  linked_list *plVar2;
  int iVar3;
  
  pSVar1 = get_symbol(name);
  if ((pSVar1->storage != AutoStorage) &&
     ((pSVar1->storage != StaticStorage || (iVar3 = globals_only(), iVar3 == 0)))) {
    data = (int *)xmalloc(8);
    plVar2 = pSVar1->ref_line;
    *data = line;
    data[1] = *(int *)PTR_filename_000459a4;
    if (plVar2 == (linked_list *)0x0) {
      plVar2 = linked_list_create((linked_list_free_data_fp)PTR_free_00045cd8);
      pSVar1->ref_line = plVar2;
    }
    linked_list_append(&pSVar1->ref_line,data);
    return pSVar1;
  }
  return (Symbol *)0x0;
}



int add_reference(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  
  iVar1 = get_symbol();
  if ((*(int *)(iVar1 + 0x3c) != 3) &&
     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {
    puVar2 = (undefined4 *)xmalloc(8);
    iVar3 = *(int *)(iVar1 + 0x30);
    *puVar2 = param_2;
    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;
    if (iVar3 == 0) {
      uVar4 = linked_list_create(PTR_free_00045cd8);
      *(undefined4 *)(iVar1 + 0x30) = uVar4;
    }
    linked_list_append(iVar1 + 0x30,puVar2);
    return iVar1;
  }
  return 0;
}


lui gp,0x3
addiu gp,gp,0x1004
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7de4(gp)
sw gp,0x10(sp)
sw s1,0x28(sp)
sw s0,0x24(sp)
sw ra,0x2c(sp)
bal 0x0001c77c
_or s1,a1,zero
li v1,0x3
or s0,v0,zero
lw v0,0x3c(v0)
beq v0,v1,0x0001c8d8
_lw gp,0x10(sp)
li v1,0x2
beq v0,v1,0x0001c8c8
_lw t9,-0x7de0(gp)
lw t9,-0x7fc0(gp)
bal 0x00029050
_li a0,0x8
lw gp,0x10(sp)
or a1,v0,zero
lw v0,0x30(s0)
sw s1,0x0(a1)
lw v1,-0x7e8c(gp)
lw v1,0x0(v1)
beq v0,zero,0x0001c8f4
_sw v1,0x4(a1)
lw t9,-0x7f50(gp)
bal 0x000184b8
_addiu a0,s0,0x30
or v0,s0,zero
lw ra,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
bal 0x000197bc
_nop
beq v0,zero,0x0001c878
_lw gp,0x10(sp)
lw ra,0x2c(sp)
or s0,zero,zero
lw s1,0x28(sp)
or v0,s0,zero
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7ddc(gp)
lw a0,-0x7b58(gp)
bal 0x00018470
_sw a1,0x1c(sp)
lw gp,0x10(sp)
lw a1,0x1c(sp)
b 0x0001c8a4
_sw v0,0x30(s0)
(translation_unit "int add_reference(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar1 = get_symbol();\n  if ((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int add_reference(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar1 = get_symbol();\n  if ((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "add_reference(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar1 = get_symbol();\n  if ((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = get_symbol();" (assignment_expression "iVar1 = get_symbol()" identifier = (call_expression "get_symbol()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }" if (parenthesized_expression "((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0))))" ( (binary_expression "(*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))" (parenthesized_expression "(*(int *)(iVar1 + 0x3c) != 3)" ( (binary_expression "*(int *)(iVar1 + 0x3c) != 3" (pointer_expression "*(int *)(iVar1 + 0x3c)" * (cast_expression "(int *)(iVar1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3c)" ( (binary_expression "iVar1 + 0x3c" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))" ( (parenthesized_expression "(*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0))" ( (binary_expression "*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)" (binary_expression "*(int *)(iVar1 + 0x3c) != 2" (pointer_expression "*(int *)(iVar1 + 0x3c)" * (cast_expression "(int *)(iVar1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3c)" ( (binary_expression "iVar1 + 0x3c" identifier + number_literal) )))) != number_literal) || (parenthesized_expression "(iVar3 = globals_only(), iVar3 == 0)" ( (comma_expression "iVar3 = globals_only(), iVar3 == 0" (assignment_expression "iVar3 = globals_only()" identifier = (call_expression "globals_only()" identifier (argument_list "()" ( )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }" { (expression_statement "puVar2 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 0x30);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x30)" identifier = (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*puVar2 = param_2;" (assignment_expression "*puVar2 = param_2" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2[1] = *(undefined4 *)PTR_filename_000459a4;" (assignment_expression "puVar2[1] = *(undefined4 *)PTR_filename_000459a4" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)PTR_filename_000459a4" * (cast_expression "(undefined4 *)PTR_filename_000459a4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }" { (expression_statement "uVar4 = linked_list_create(PTR_free_00045cd8);" (assignment_expression "uVar4 = linked_list_create(PTR_free_00045cd8)" identifier = (call_expression "linked_list_create(PTR_free_00045cd8)" identifier (argument_list "(PTR_free_00045cd8)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x30) = uVar4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x30) = uVar4" (pointer_expression "*(undefined4 *)(iVar1 + 0x30)" * (cast_expression "(undefined4 *)(iVar1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "linked_list_append(iVar1 + 0x30,puVar2);" (call_expression "linked_list_append(iVar1 + 0x30,puVar2)" identifier (argument_list "(iVar1 + 0x30,puVar2)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) , identifier ))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "Symbol * add_reference(char *name,int line)\n\n{\n  Symbol *pSVar1;\n  int *data;\n  linked_list *plVar2;\n  int iVar3;\n  \n  pSVar1 = get_symbol(name);\n  if ((pSVar1->storage != AutoStorage) &&\n     ((pSVar1->storage != StaticStorage || (iVar3 = globals_only(), iVar3 == 0)))) {\n    data = (int *)xmalloc(8);\n    plVar2 = pSVar1->ref_line;\n    *data = line;\n    data[1] = *(int *)PTR_filename_000459a4;\n    if (plVar2 == (linked_list *)0x0) {\n      plVar2 = linked_list_create((linked_list_free_data_fp)PTR_free_00045cd8);\n      pSVar1->ref_line = plVar2;\n    }\n    linked_list_append(&pSVar1->ref_line,data);\n    return pSVar1;\n  }\n  return (Symbol *)0x0;\n}\n\n" (function_definition "Symbol * add_reference(char *name,int line)\n\n{\n  Symbol *pSVar1;\n  int *data;\n  linked_list *plVar2;\n  int iVar3;\n  \n  pSVar1 = get_symbol(name);\n  if ((pSVar1->storage != AutoStorage) &&\n     ((pSVar1->storage != StaticStorage || (iVar3 = globals_only(), iVar3 == 0)))) {\n    data = (int *)xmalloc(8);\n    plVar2 = pSVar1->ref_line;\n    *data = line;\n    data[1] = *(int *)PTR_filename_000459a4;\n    if (plVar2 == (linked_list *)0x0) {\n      plVar2 = linked_list_create((linked_list_free_data_fp)PTR_free_00045cd8);\n      pSVar1->ref_line = plVar2;\n    }\n    linked_list_append(&pSVar1->ref_line,data);\n    return pSVar1;\n  }\n  return (Symbol *)0x0;\n}" type_identifier (pointer_declarator "* add_reference(char *name,int line)" * (function_declarator "add_reference(char *name,int line)" identifier (parameter_list "(char *name,int line)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int line" primitive_type identifier) )))) (compound_statement "{\n  Symbol *pSVar1;\n  int *data;\n  linked_list *plVar2;\n  int iVar3;\n  \n  pSVar1 = get_symbol(name);\n  if ((pSVar1->storage != AutoStorage) &&\n     ((pSVar1->storage != StaticStorage || (iVar3 = globals_only(), iVar3 == 0)))) {\n    data = (int *)xmalloc(8);\n    plVar2 = pSVar1->ref_line;\n    *data = line;\n    data[1] = *(int *)PTR_filename_000459a4;\n    if (plVar2 == (linked_list *)0x0) {\n      plVar2 = linked_list_create((linked_list_free_data_fp)PTR_free_00045cd8);\n      pSVar1->ref_line = plVar2;\n    }\n    linked_list_append(&pSVar1->ref_line,data);\n    return pSVar1;\n  }\n  return (Symbol *)0x0;\n}" { (declaration "Symbol *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "int *data;" primitive_type (pointer_declarator "*data" * identifier) ;) (declaration "linked_list *plVar2;" type_identifier (pointer_declarator "*plVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pSVar1 = get_symbol(name);" (assignment_expression "pSVar1 = get_symbol(name)" identifier = (call_expression "get_symbol(name)" identifier (argument_list "(name)" ( identifier )))) ;) (if_statement "if ((pSVar1->storage != AutoStorage) &&\n     ((pSVar1->storage != StaticStorage || (iVar3 = globals_only(), iVar3 == 0)))) {\n    data = (int *)xmalloc(8);\n    plVar2 = pSVar1->ref_line;\n    *data = line;\n    data[1] = *(int *)PTR_filename_000459a4;\n    if (plVar2 == (linked_list *)0x0) {\n      plVar2 = linked_list_create((linked_list_free_data_fp)PTR_free_00045cd8);\n      pSVar1->ref_line = plVar2;\n    }\n    linked_list_append(&pSVar1->ref_line,data);\n    return pSVar1;\n  }" if (parenthesized_expression "((pSVar1->storage != AutoStorage) &&\n     ((pSVar1->storage != StaticStorage || (iVar3 = globals_only(), iVar3 == 0))))" ( (binary_expression "(pSVar1->storage != AutoStorage) &&\n     ((pSVar1->storage != StaticStorage || (iVar3 = globals_only(), iVar3 == 0)))" (parenthesized_expression "(pSVar1->storage != AutoStorage)" ( (binary_expression "pSVar1->storage != AutoStorage" (field_expression "pSVar1->storage" identifier -> field_identifier) != identifier) )) && (parenthesized_expression "((pSVar1->storage != StaticStorage || (iVar3 = globals_only(), iVar3 == 0)))" ( (parenthesized_expression "(pSVar1->storage != StaticStorage || (iVar3 = globals_only(), iVar3 == 0))" ( (binary_expression "pSVar1->storage != StaticStorage || (iVar3 = globals_only(), iVar3 == 0)" (binary_expression "pSVar1->storage != StaticStorage" (field_expression "pSVar1->storage" identifier -> field_identifier) != identifier) || (parenthesized_expression "(iVar3 = globals_only(), iVar3 == 0)" ( (comma_expression "iVar3 = globals_only(), iVar3 == 0" (assignment_expression "iVar3 = globals_only()" identifier = (call_expression "globals_only()" identifier (argument_list "()" ( )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n    data = (int *)xmalloc(8);\n    plVar2 = pSVar1->ref_line;\n    *data = line;\n    data[1] = *(int *)PTR_filename_000459a4;\n    if (plVar2 == (linked_list *)0x0) {\n      plVar2 = linked_list_create((linked_list_free_data_fp)PTR_free_00045cd8);\n      pSVar1->ref_line = plVar2;\n    }\n    linked_list_append(&pSVar1->ref_line,data);\n    return pSVar1;\n  }" { (expression_statement "data = (int *)xmalloc(8);" (assignment_expression "data = (int *)xmalloc(8)" identifier = (cast_expression "(int *)xmalloc(8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "plVar2 = pSVar1->ref_line;" (assignment_expression "plVar2 = pSVar1->ref_line" identifier = (field_expression "pSVar1->ref_line" identifier -> field_identifier)) ;) (expression_statement "*data = line;" (assignment_expression "*data = line" (pointer_expression "*data" * identifier) = identifier) ;) (expression_statement "data[1] = *(int *)PTR_filename_000459a4;" (assignment_expression "data[1] = *(int *)PTR_filename_000459a4" (subscript_expression "data[1]" identifier [ number_literal ]) = (pointer_expression "*(int *)PTR_filename_000459a4" * (cast_expression "(int *)PTR_filename_000459a4" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (plVar2 == (linked_list *)0x0) {\n      plVar2 = linked_list_create((linked_list_free_data_fp)PTR_free_00045cd8);\n      pSVar1->ref_line = plVar2;\n    }" if (parenthesized_expression "(plVar2 == (linked_list *)0x0)" ( (binary_expression "plVar2 == (linked_list *)0x0" identifier == (cast_expression "(linked_list *)0x0" ( (type_descriptor "linked_list *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      plVar2 = linked_list_create((linked_list_free_data_fp)PTR_free_00045cd8);\n      pSVar1->ref_line = plVar2;\n    }" { (expression_statement "plVar2 = linked_list_create((linked_list_free_data_fp)PTR_free_00045cd8);" (assignment_expression "plVar2 = linked_list_create((linked_list_free_data_fp)PTR_free_00045cd8)" identifier = (call_expression "linked_list_create((linked_list_free_data_fp)PTR_free_00045cd8)" identifier (argument_list "((linked_list_free_data_fp)PTR_free_00045cd8)" ( (cast_expression "(linked_list_free_data_fp)PTR_free_00045cd8" ( (type_descriptor "linked_list_free_data_fp" type_identifier) ) identifier) )))) ;) (expression_statement "pSVar1->ref_line = plVar2;" (assignment_expression "pSVar1->ref_line = plVar2" (field_expression "pSVar1->ref_line" identifier -> field_identifier) = identifier) ;) })) (expression_statement "linked_list_append(&pSVar1->ref_line,data);" (call_expression "linked_list_append(&pSVar1->ref_line,data)" identifier (argument_list "(&pSVar1->ref_line,data)" ( (pointer_expression "&pSVar1->ref_line" & (field_expression "pSVar1->ref_line" identifier -> field_identifier)) , identifier ))) ;) (return_statement "return pSVar1;" return identifier ;) })) (return_statement "return (Symbol *)0x0;" return (cast_expression "(Symbol *)0x0" ( (type_descriptor "Symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int add_reference(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar1 = get_symbol();\n  if ((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }\n  return 0;\n}\n\n" (function_definition "int add_reference(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar1 = get_symbol();\n  if ((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }\n  return 0;\n}" primitive_type (function_declarator "add_reference(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar1 = get_symbol();\n  if ((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (expression_statement "iVar1 = get_symbol();" (assignment_expression "iVar1 = get_symbol()" identifier = (call_expression "get_symbol()" identifier (argument_list "()" ( )))) ;) (if_statement "if ((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }" if (parenthesized_expression "((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0))))" ( (binary_expression "(*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))" (parenthesized_expression "(*(int *)(iVar1 + 0x3c) != 3)" ( (binary_expression "*(int *)(iVar1 + 0x3c) != 3" (pointer_expression "*(int *)(iVar1 + 0x3c)" * (cast_expression "(int *)(iVar1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3c)" ( (binary_expression "iVar1 + 0x3c" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))" ( (parenthesized_expression "(*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0))" ( (binary_expression "*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)" (binary_expression "*(int *)(iVar1 + 0x3c) != 2" (pointer_expression "*(int *)(iVar1 + 0x3c)" * (cast_expression "(int *)(iVar1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3c)" ( (binary_expression "iVar1 + 0x3c" identifier + number_literal) )))) != number_literal) || (parenthesized_expression "(iVar3 = globals_only(), iVar3 == 0)" ( (comma_expression "iVar3 = globals_only(), iVar3 == 0" (assignment_expression "iVar3 = globals_only()" identifier = (call_expression "globals_only()" identifier (argument_list "()" ( )))) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) ))) )) (compound_statement "{\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }" { (expression_statement "puVar2 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(8)" identifier = (cast_expression "(undefined4 *)xmalloc(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 0x30);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x30)" identifier = (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "*puVar2 = param_2;" (assignment_expression "*puVar2 = param_2" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "puVar2[1] = *(undefined4 *)PTR_filename_000459a4;" (assignment_expression "puVar2[1] = *(undefined4 *)PTR_filename_000459a4" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)PTR_filename_000459a4" * (cast_expression "(undefined4 *)PTR_filename_000459a4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (if_statement "if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }" { (expression_statement "uVar4 = linked_list_create(PTR_free_00045cd8);" (assignment_expression "uVar4 = linked_list_create(PTR_free_00045cd8)" identifier = (call_expression "linked_list_create(PTR_free_00045cd8)" identifier (argument_list "(PTR_free_00045cd8)" ( identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x30) = uVar4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x30) = uVar4" (pointer_expression "*(undefined4 *)(iVar1 + 0x30)" * (cast_expression "(undefined4 *)(iVar1 + 0x30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "linked_list_append(iVar1 + 0x30,puVar2);" (call_expression "linked_list_append(iVar1 + 0x30,puVar2)" identifier (argument_list "(iVar1 + 0x30,puVar2)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) , identifier ))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "int add_reference(undefined4 param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar1 = get_symbol();\n  if ((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "add_reference(undefined4 param_1,undefined4 param_2)" (identifier "add_reference") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  \n  iVar1 = get_symbol();\n  if ((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (expression_statement "iVar1 = get_symbol();" (assignment_expression "iVar1 = get_symbol()" (identifier "iVar1") (= "=") (call_expression "get_symbol()" (identifier "get_symbol") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if ((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }" (if "if") (parenthesized_expression "((*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0))))" (( "(") (binary_expression "(*(int *)(iVar1 + 0x3c) != 3) &&\n     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))" (parenthesized_expression "(*(int *)(iVar1 + 0x3c) != 3)" (( "(") (binary_expression "*(int *)(iVar1 + 0x3c) != 3" (pointer_expression "*(int *)(iVar1 + 0x3c)" (* "*") (cast_expression "(int *)(iVar1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x3c)" (( "(") (binary_expression "iVar1 + 0x3c" (identifier "iVar1") (+ "+") (number_literal "0x3c")) () ")")))) (!= "!=") (number_literal "3")) () ")")) (&& "&&") (parenthesized_expression "((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))" (( "(") (parenthesized_expression "(*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0))" (( "(") (binary_expression "*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)" (binary_expression "*(int *)(iVar1 + 0x3c) != 2" (pointer_expression "*(int *)(iVar1 + 0x3c)" (* "*") (cast_expression "(int *)(iVar1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x3c)" (( "(") (binary_expression "iVar1 + 0x3c" (identifier "iVar1") (+ "+") (number_literal "0x3c")) () ")")))) (!= "!=") (number_literal "2")) (|| "||") (parenthesized_expression "(iVar3 = globals_only(), iVar3 == 0)" (( "(") (comma_expression "iVar3 = globals_only(), iVar3 == 0" (assignment_expression "iVar3 = globals_only()" (identifier "iVar3") (= "=") (call_expression "globals_only()" (identifier "globals_only") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    puVar2 = (undefined4 *)xmalloc(8);\n    iVar3 = *(int *)(iVar1 + 0x30);\n    *puVar2 = param_2;\n    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;\n    if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }\n    linked_list_append(iVar1 + 0x30,puVar2);\n    return iVar1;\n  }" ({ "{") (expression_statement "puVar2 = (undefined4 *)xmalloc(8);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(8)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)xmalloc(8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(8)" (identifier "xmalloc") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar1 + 0x30);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x30)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar1 + 0x30)" (* "*") (cast_expression "(int *)(iVar1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "*puVar2 = param_2;" (assignment_expression "*puVar2 = param_2" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar2[1] = *(undefined4 *)PTR_filename_000459a4;" (assignment_expression "puVar2[1] = *(undefined4 *)PTR_filename_000459a4" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(undefined4 *)PTR_filename_000459a4" (* "*") (cast_expression "(undefined4 *)PTR_filename_000459a4" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_filename_000459a4")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = linked_list_create(PTR_free_00045cd8);\n      *(undefined4 *)(iVar1 + 0x30) = uVar4;\n    }" ({ "{") (expression_statement "uVar4 = linked_list_create(PTR_free_00045cd8);" (assignment_expression "uVar4 = linked_list_create(PTR_free_00045cd8)" (identifier "uVar4") (= "=") (call_expression "linked_list_create(PTR_free_00045cd8)" (identifier "linked_list_create") (argument_list "(PTR_free_00045cd8)" (( "(") (identifier "PTR_free_00045cd8") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x30) = uVar4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x30) = uVar4" (pointer_expression "*(undefined4 *)(iVar1 + 0x30)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (expression_statement "linked_list_append(iVar1 + 0x30,puVar2);" (call_expression "linked_list_append(iVar1 + 0x30,puVar2)" (identifier "linked_list_append") (argument_list "(iVar1 + 0x30,puVar2)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) (, ",") (identifier "puVar2") () ")"))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (number_literal))))))))) consequence: (compound_statement (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 (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (return_statement (identifier)))) (return_statement (number_literal)))))

int MASKED(undefined4 param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  
  iVar1 = get_symbol();
  if ((*(int *)(iVar1 + 0x3c) != 3) &&
     ((*(int *)(iVar1 + 0x3c) != 2 || (iVar3 = globals_only(), iVar3 == 0)))) {
    puVar2 = (undefined4 *)xmalloc(8);
    iVar3 = *(int *)(iVar1 + 0x30);
    *puVar2 = param_2;
    puVar2[1] = *(undefined4 *)PTR_filename_000459a4;
    if (iVar3 == 0) {
      uVar4 = linked_list_create(PTR_free_00045cd8);
      *(undefined4 *)(iVar1 + 0x30) = uVar4;
    }
    linked_list_append(iVar1 + 0x30,puVar2);
    return iVar1;
  }
  return 0;
}

