
Symbol * install(char *name,int flags)

{
  Symbol *sp;
  table_entry *entry;
  int iVar1;
  table_entry *ptVar2;
  Hash_table *table;
  undefined *puVar3;
  
  sp = (Symbol *)xmalloc(0x54);
  (*(code *)PTR_memset_00045c50)(sp,0,0x54);
  sp->type = SymUndefined;
  sp->name = name;
  entry = (table_entry *)xmalloc(4);
  entry->sym = sp;
  if (((((flags & 2U) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||
      (iVar1 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar1 == 0)) &&
     (puVar3 = PTR_DAT_00045858, (flags & 4U) == 0)) {
    sp->flag = symbol_none;
    table = *(Hash_table **)(puVar3 + 0x5f60);
    if (table == (Hash_table *)0x0) {
      table = (Hash_table *)0x0;
      goto LAB_0001fd60;
    }
  }
  else {
    puVar3 = PTR_DAT_00045858;
    sp->flag = symbol_local;
    append_symbol((linked_list **)(puVar3 + 0x5f5c),sp);
    table = *(Hash_table **)(PTR_DAT_00045858 + 0x5f60);
    puVar3 = PTR_DAT_00045858;
    if (table == (Hash_table *)0x0) {
LAB_0001fd60:
      table = hash_initialize((size_t)table,(Hash_tuning *)0x0,
                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),
                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0);
      *(Hash_table **)(puVar3 + 0x5f60) = table;
      if (table == (Hash_table *)0x0) goto LAB_0001fd8c;
    }
  }
  ptVar2 = (table_entry *)hash_insert(table,entry);
  if (ptVar2 != (table_entry *)0x0) {
    if (entry != ptVar2) {
      if ((flags & 1U) != 0) {
        (*(code *)PTR_free_00045cd8)(sp);
        (*(code *)PTR_free_00045cd8)(entry);
        return ptVar2->sym;
      }
      if (ptVar2->sym->type != SymUndefined) {
        sp->next = ptVar2->sym;
      }
      puVar3 = PTR_free_00045cd8;
      ptVar2->sym = sp;
      (*(code *)puVar3)(entry);
    }
    sp->owner = ptVar2;
    return sp;
  }
LAB_0001fd8c:
                    /* WARNING: Subroutine does not return */
  xalloc_die();
}



undefined4 * install(undefined4 param_1,uint param_2)

{
  undefined *puVar1;
  undefined4 *puVar2;
  int *piVar3;
  int iVar4;
  int *piVar5;
  code *pcVar6;
  
  puVar2 = (undefined4 *)xmalloc(0x54);
  (*(code *)PTR_memset_00045c50)(puVar2,0,0x54);
  puVar2[3] = 0;
  puVar2[4] = param_1;
  piVar3 = (int *)xmalloc(4);
  *piVar3 = (int)puVar2;
  if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||
      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&
     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {
    puVar2[5] = 0;
    iVar4 = *(int *)((int)piVar5 + 0x5f60);
    if (iVar4 == 0) {
      iVar4 = 0;
      goto LAB_0001fd60;
    }
LAB_0001fcd4:
    piVar5 = (int *)hash_insert(iVar4,piVar3);
    if (piVar5 != (int *)0x0) {
      if (piVar3 == piVar5) {
LAB_0001fd18:
        *puVar2 = piVar5;
        return puVar2;
      }
      pcVar6 = (code *)PTR_free_00045cd8;
      if ((param_2 & 1) == 0) {
        if (*(int *)(*piVar5 + 0xc) != 0) {
          puVar2[1] = *piVar5;
        }
        puVar1 = PTR_free_00045cd8;
        *piVar5 = (int)puVar2;
        (*(code *)puVar1)(piVar3);
        goto LAB_0001fd18;
      }
      goto LAB_0001fd98;
    }
  }
  else {
    puVar1 = PTR_DAT_00045858;
    puVar2[5] = 1;
    FUN_0001f714(puVar1 + 0x5f5c,puVar2);
    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);
    piVar5 = (int *)PTR_DAT_00045858;
    if (iVar4 != 0) goto LAB_0001fcd4;
LAB_0001fd60:
    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);
    piVar5[0x17d8] = iVar4;
    if (iVar4 != 0) goto LAB_0001fcd4;
  }
  pcVar6 = (code *)PTR_xalloc_die_00045aec;
  xalloc_die();
LAB_0001fd98:
  (*pcVar6)(puVar2);
  (*(code *)PTR_free_00045cd8)(piVar3);
  return (undefined4 *)*piVar5;
}


lui gp,0x3
addiu gp,gp,-0x23c4
addu gp,gp,t9
addiu sp,sp,-0x38
lw t9,-0x7fc0(gp)
sw s1,0x28(sp)
or s1,a0,zero
li a0,0x54
sw ra,0x34(sp)
sw gp,0x18(sp)
sw s3,0x30(sp)
sw s2,0x2c(sp)
or s2,a1,zero
bal 0x00029050
_sw s0,0x24(sp)
li a2,0x54
lw gp,0x18(sp)
or a1,zero,zero
or a0,v0,zero
lw t9,-0x7be0(gp)
jalr t9
_or s0,v0,zero
li a0,0x4
lw gp,0x18(sp)
sw zero,0xc(s0)
lw t9,-0x7fc0(gp)
bal 0x00029050
_sw s1,0x10(s0)
andi v1,s2,0x2
lw gp,0x18(sp)
or s3,v0,zero
beq v1,zero,0x0001fd3c
_sw s0,0x0(v0)
lw v0,-0x7e88(gp)
lw a1,0x0(v0)
beq a1,zero,0x0001fd3c
_lw v0,-0x7e8c(gp)
lw t9,-0x7b3c(gp)
jalr t9
_lw a0,0x0(v0)
beq v0,zero,0x0001fd3c
_lw gp,0x18(sp)
lw a0,-0x7fd8(gp)
li v0,0x1
lw t9,-0x7fc4(gp)
or a1,s0,zero
sw v0,0x14(s0)
addiu t9,t9,-0x8ec
bal 0x0001f714
_addiu a0,a0,0x5f5c
lw gp,0x18(sp)
lw s1,-0x7fd8(gp)
lw a0,0x5f60(s1)
beq a0,zero,0x0001fd60
_lw a3,-0x7fc4(gp)
lw t9,-0x7d4c(gp)
bal 0x0002851c
_or a1,s3,zero
lw gp,0x18(sp)
beq v0,zero,0x0001fd8c
_or s1,v0,zero
beq s3,v0,0x0001fd18
_andi s2,s2,0x1
bne s2,zero,0x0001fd98
_lw t9,-0x7b58(gp)
lw v0,0x0(v0)
lw v1,0xc(v0)
beq v1,zero,0x0001fd10
_or a0,s3,zero
sw v0,0x4(s0)
lw t9,-0x7b58(gp)
jalr t9
_sw s0,0x0(s1)
lw ra,0x34(sp)
or v0,s0,zero
lw s3,0x30(sp)
lw s2,0x2c(sp)
sw s1,0x0(s0)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x38
andi v0,s2,0x4
bne v0,zero,0x0001fca0
_lw a0,-0x7fd8(gp)
lw s1,-0x7fd8(gp)
sw zero,0x14(s0)
lw a0,0x5f60(s1)
bne a0,zero,0x0001fcd4
_lw t9,-0x7d4c(gp)
lw a3,-0x7fc4(gp)
or a1,zero,zero
lw a2,-0x7fc4(gp)
lw t9,-0x7d48(gp)
addiu a3,a3,-0xa4c
sw zero,0x10(sp)
bal 0x00027be4
_addiu a2,a2,-0x9ec
lw gp,0x18(sp)
or a0,v0,zero
bne v0,zero,0x0001fcd0
_sw v0,0x5f60(s1)
lw t9,-0x7d44(gp)
bal 0x000198e0
_nop
jalr t9
_or a0,s0,zero
lw gp,0x18(sp)
lw t9,-0x7b58(gp)
jalr t9
_or a0,s3,zero
lw s0,0x0(s1)
lw ra,0x34(sp)
lw s3,0x30(sp)
or v0,s0,zero
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x38
(translation_unit "undefined4 * install(undefined4 param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  code *pcVar6;\n  \n  puVar2 = (undefined4 *)xmalloc(0x54);\n  (*(code *)PTR_memset_00045c50)(puVar2,0,0x54);\n  puVar2[3] = 0;\n  puVar2[4] = param_1;\n  piVar3 = (int *)xmalloc(4);\n  *piVar3 = (int)puVar2;\n  if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }\n  else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }\n  pcVar6 = (code *)PTR_xalloc_die_00045aec;\n  xalloc_die();\nLAB_0001fd98:\n  (*pcVar6)(puVar2);\n  (*(code *)PTR_free_00045cd8)(piVar3);\n  return (undefined4 *)*piVar5;\n}\n\n" (function_definition "undefined4 * install(undefined4 param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  code *pcVar6;\n  \n  puVar2 = (undefined4 *)xmalloc(0x54);\n  (*(code *)PTR_memset_00045c50)(puVar2,0,0x54);\n  puVar2[3] = 0;\n  puVar2[4] = param_1;\n  piVar3 = (int *)xmalloc(4);\n  *piVar3 = (int)puVar2;\n  if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }\n  else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }\n  pcVar6 = (code *)PTR_xalloc_die_00045aec;\n  xalloc_die();\nLAB_0001fd98:\n  (*pcVar6)(puVar2);\n  (*(code *)PTR_free_00045cd8)(piVar3);\n  return (undefined4 *)*piVar5;\n}" type_identifier (pointer_declarator "* install(undefined4 param_1,uint param_2)" * (function_declarator "install(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  code *pcVar6;\n  \n  puVar2 = (undefined4 *)xmalloc(0x54);\n  (*(code *)PTR_memset_00045c50)(puVar2,0,0x54);\n  puVar2[3] = 0;\n  puVar2[4] = param_1;\n  piVar3 = (int *)xmalloc(4);\n  *piVar3 = (int)puVar2;\n  if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }\n  else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }\n  pcVar6 = (code *)PTR_xalloc_die_00045aec;\n  xalloc_die();\nLAB_0001fd98:\n  (*pcVar6)(puVar2);\n  (*(code *)PTR_free_00045cd8)(piVar3);\n  return (undefined4 *)*piVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(0x54);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0x54)" identifier = (cast_expression "(undefined4 *)xmalloc(0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x54)" identifier (argument_list "(0x54)" ( number_literal ))))) ;) (expression_statement "(*(code *)PTR_memset_00045c50)(puVar2,0,0x54);" (call_expression "(*(code *)PTR_memset_00045c50)(puVar2,0,0x54)" (parenthesized_expression "(*(code *)PTR_memset_00045c50)" ( (pointer_expression "*(code *)PTR_memset_00045c50" * (cast_expression "(code *)PTR_memset_00045c50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,0,0x54)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[4] = param_1;" (assignment_expression "puVar2[4] = param_1" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar3 = (int *)xmalloc(4);" (assignment_expression "piVar3 = (int *)xmalloc(4)" identifier = (cast_expression "(int *)xmalloc(4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*piVar3 = (int)puVar2;" (assignment_expression "*piVar3 = (int)puVar2" (pointer_expression "*piVar3" * identifier) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }\n  else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }" if (parenthesized_expression "(((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0))" ( (binary_expression "((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)" (parenthesized_expression "((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0))" ( (binary_expression "(((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)" (parenthesized_expression "(((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0))" ( (binary_expression "((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)" (parenthesized_expression "((param_2 & 2) == 0)" ( (binary_expression "(param_2 & 2) == 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(*(int *)PTR_canonical_filename_000459a8 == 0)" ( (binary_expression "*(int *)PTR_canonical_filename_000459a8 == 0" (pointer_expression "*(int *)PTR_canonical_filename_000459a8" * (cast_expression "(int *)PTR_canonical_filename_000459a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) ))) )) || (parenthesized_expression "(iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)" ( (comma_expression "iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0" (assignment_expression "iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4)" identifier = (call_expression "(*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4)" (parenthesized_expression "(*(code *)PTR_strcmp_00045cf4)" ( (pointer_expression "*(code *)PTR_strcmp_00045cf4" * (cast_expression "(code *)PTR_strcmp_00045cf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_filename_000459a4)" ( (pointer_expression "*(undefined4 *)PTR_filename_000459a4" * (cast_expression "(undefined4 *)PTR_filename_000459a4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)" ( (comma_expression "piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0" (assignment_expression "piVar5 = (int *)PTR_DAT_00045858" identifier = (cast_expression "(int *)PTR_DAT_00045858" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "(param_2 & 4) == 0" (parenthesized_expression "(param_2 & 4)" ( (binary_expression "param_2 & 4" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }" { (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = *(int *)((int)piVar5 + 0x5f60);" (assignment_expression "iVar4 = *(int *)((int)piVar5 + 0x5f60)" identifier = (pointer_expression "*(int *)((int)piVar5 + 0x5f60)" * (cast_expression "(int *)((int)piVar5 + 0x5f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar5 + 0x5f60)" ( (binary_expression "(int)piVar5 + 0x5f60" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001fd60;" goto statement_identifier ;) })) (labeled_statement "LAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);" statement_identifier : (expression_statement "piVar5 = (int *)hash_insert(iVar4,piVar3);" (assignment_expression "piVar5 = (int *)hash_insert(iVar4,piVar3)" identifier = (cast_expression "(int *)hash_insert(iVar4,piVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "hash_insert(iVar4,piVar3)" identifier (argument_list "(iVar4,piVar3)" ( identifier , identifier ))))) ;)) (if_statement "if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }" { (if_statement "if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }" if (parenthesized_expression "(piVar3 == piVar5)" ( (binary_expression "piVar3 == piVar5" identifier == identifier) )) (compound_statement "{\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }" { (labeled_statement "LAB_0001fd18:\n        *puVar2 = piVar5;" statement_identifier : (expression_statement "*puVar2 = piVar5;" (assignment_expression "*puVar2 = piVar5" (pointer_expression "*puVar2" * identifier) = identifier) ;)) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "pcVar6 = (code *)PTR_free_00045cd8;" (assignment_expression "pcVar6 = (code *)PTR_free_00045cd8" identifier = (cast_expression "(code *)PTR_free_00045cd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }" if (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }" { (if_statement "if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }" if (parenthesized_expression "(*(int *)(*piVar5 + 0xc) != 0)" ( (binary_expression "*(int *)(*piVar5 + 0xc) != 0" (pointer_expression "*(int *)(*piVar5 + 0xc)" * (cast_expression "(int *)(*piVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar5 + 0xc)" ( (binary_expression "*piVar5 + 0xc" (pointer_expression "*piVar5" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n          puVar2[1] = *piVar5;\n        }" { (expression_statement "puVar2[1] = *piVar5;" (assignment_expression "puVar2[1] = *piVar5" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (pointer_expression "*piVar5" * identifier)) ;) })) (expression_statement "puVar1 = PTR_free_00045cd8;" (assignment_expression "puVar1 = PTR_free_00045cd8" identifier = identifier) ;) (expression_statement "*piVar5 = (int)puVar2;" (assignment_expression "*piVar5 = (int)puVar2" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "(*(code *)puVar1)(piVar3);" (call_expression "(*(code *)puVar1)(piVar3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3)" ( identifier ))) ;) (goto_statement "goto LAB_0001fd18;" goto statement_identifier ;) })) (goto_statement "goto LAB_0001fd98;" goto statement_identifier ;) })) }) (else_clause "else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }" else (compound_statement "{\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }" { (expression_statement "puVar1 = PTR_DAT_00045858;" (assignment_expression "puVar1 = PTR_DAT_00045858" identifier = identifier) ;) (expression_statement "puVar2[5] = 1;" (assignment_expression "puVar2[5] = 1" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0001f714(puVar1 + 0x5f5c,puVar2);" (call_expression "FUN_0001f714(puVar1 + 0x5f5c,puVar2)" identifier (argument_list "(puVar1 + 0x5f5c,puVar2)" ( (binary_expression "puVar1 + 0x5f5c" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);" (assignment_expression "iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60)" identifier = (pointer_expression "*(int *)(PTR_DAT_00045858 + 0x5f60)" * (cast_expression "(int *)(PTR_DAT_00045858 + 0x5f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00045858 + 0x5f60)" ( (binary_expression "PTR_DAT_00045858 + 0x5f60" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = (int *)PTR_DAT_00045858;" (assignment_expression "piVar5 = (int *)PTR_DAT_00045858" identifier = (cast_expression "(int *)PTR_DAT_00045858" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar4 != 0) goto LAB_0001fcd4;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001fcd4;" goto statement_identifier ;)) (labeled_statement "LAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);" statement_identifier : (expression_statement "iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);" (assignment_expression "iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0)" identifier = (call_expression "hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0)" identifier (argument_list "(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0)" ( identifier , number_literal , (binary_expression "PTR_LAB_0004586c + -0x9ec" identifier + number_literal) , (binary_expression "PTR_LAB_0004586c + -0xa4c" identifier + number_literal) , number_literal )))) ;)) (expression_statement "piVar5[0x17d8] = iVar4;" (assignment_expression "piVar5[0x17d8] = iVar4" (subscript_expression "piVar5[0x17d8]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 != 0) goto LAB_0001fcd4;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001fcd4;" goto statement_identifier ;)) }))) (expression_statement "pcVar6 = (code *)PTR_xalloc_die_00045aec;" (assignment_expression "pcVar6 = (code *)PTR_xalloc_die_00045aec" identifier = (cast_expression "(code *)PTR_xalloc_die_00045aec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_0001fd98:\n  (*pcVar6)(puVar2);" statement_identifier : (expression_statement "(*pcVar6)(puVar2);" (call_expression "(*pcVar6)(puVar2)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(puVar2)" ( identifier ))) ;)) (expression_statement "(*(code *)PTR_free_00045cd8)(piVar3);" (call_expression "(*(code *)PTR_free_00045cd8)(piVar3)" (parenthesized_expression "(*(code *)PTR_free_00045cd8)" ( (pointer_expression "*(code *)PTR_free_00045cd8" * (cast_expression "(code *)PTR_free_00045cd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3)" ( identifier ))) ;) (return_statement "return (undefined4 *)*piVar5;" return (cast_expression "(undefined4 *)*piVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier)) ;) })))
(translation_unit "Symbol * install(char *name,int flags)\n\n{\n  Symbol *sp;\n  table_entry *entry;\n  int iVar1;\n  table_entry *ptVar2;\n  Hash_table *table;\n  undefined *puVar3;\n  \n  sp = (Symbol *)xmalloc(0x54);\n  (*(code *)PTR_memset_00045c50)(sp,0,0x54);\n  sp->type = SymUndefined;\n  sp->name = name;\n  entry = (table_entry *)xmalloc(4);\n  entry->sym = sp;\n  if (((((flags & 2U) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar1 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar1 == 0)) &&\n     (puVar3 = PTR_DAT_00045858, (flags & 4U) == 0)) {\n    sp->flag = symbol_none;\n    table = *(Hash_table **)(puVar3 + 0x5f60);\n    if (table == (Hash_table *)0x0) {\n      table = (Hash_table *)0x0;\n      goto LAB_0001fd60;\n    }\n  }\n  else {\n    puVar3 = PTR_DAT_00045858;\n    sp->flag = symbol_local;\n    append_symbol((linked_list **)(puVar3 + 0x5f5c),sp);\n    table = *(Hash_table **)(PTR_DAT_00045858 + 0x5f60);\n    puVar3 = PTR_DAT_00045858;\n    if (table == (Hash_table *)0x0) {\nLAB_0001fd60:\n      table = hash_initialize((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0);\n      *(Hash_table **)(puVar3 + 0x5f60) = table;\n      if (table == (Hash_table *)0x0) goto LAB_0001fd8c;\n    }\n  }\n  ptVar2 = (table_entry *)hash_insert(table,entry);\n  if (ptVar2 != (table_entry *)0x0) {\n    if (entry != ptVar2) {\n      if ((flags & 1U) != 0) {\n        (*(code *)PTR_free_00045cd8)(sp);\n        (*(code *)PTR_free_00045cd8)(entry);\n        return ptVar2->sym;\n      }\n      if (ptVar2->sym->type != SymUndefined) {\n        sp->next = ptVar2->sym;\n      }\n      puVar3 = PTR_free_00045cd8;\n      ptVar2->sym = sp;\n      (*(code *)puVar3)(entry);\n    }\n    sp->owner = ptVar2;\n    return sp;\n  }\nLAB_0001fd8c:\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}\n\n" (function_definition "Symbol * install(char *name,int flags)\n\n{\n  Symbol *sp;\n  table_entry *entry;\n  int iVar1;\n  table_entry *ptVar2;\n  Hash_table *table;\n  undefined *puVar3;\n  \n  sp = (Symbol *)xmalloc(0x54);\n  (*(code *)PTR_memset_00045c50)(sp,0,0x54);\n  sp->type = SymUndefined;\n  sp->name = name;\n  entry = (table_entry *)xmalloc(4);\n  entry->sym = sp;\n  if (((((flags & 2U) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar1 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar1 == 0)) &&\n     (puVar3 = PTR_DAT_00045858, (flags & 4U) == 0)) {\n    sp->flag = symbol_none;\n    table = *(Hash_table **)(puVar3 + 0x5f60);\n    if (table == (Hash_table *)0x0) {\n      table = (Hash_table *)0x0;\n      goto LAB_0001fd60;\n    }\n  }\n  else {\n    puVar3 = PTR_DAT_00045858;\n    sp->flag = symbol_local;\n    append_symbol((linked_list **)(puVar3 + 0x5f5c),sp);\n    table = *(Hash_table **)(PTR_DAT_00045858 + 0x5f60);\n    puVar3 = PTR_DAT_00045858;\n    if (table == (Hash_table *)0x0) {\nLAB_0001fd60:\n      table = hash_initialize((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0);\n      *(Hash_table **)(puVar3 + 0x5f60) = table;\n      if (table == (Hash_table *)0x0) goto LAB_0001fd8c;\n    }\n  }\n  ptVar2 = (table_entry *)hash_insert(table,entry);\n  if (ptVar2 != (table_entry *)0x0) {\n    if (entry != ptVar2) {\n      if ((flags & 1U) != 0) {\n        (*(code *)PTR_free_00045cd8)(sp);\n        (*(code *)PTR_free_00045cd8)(entry);\n        return ptVar2->sym;\n      }\n      if (ptVar2->sym->type != SymUndefined) {\n        sp->next = ptVar2->sym;\n      }\n      puVar3 = PTR_free_00045cd8;\n      ptVar2->sym = sp;\n      (*(code *)puVar3)(entry);\n    }\n    sp->owner = ptVar2;\n    return sp;\n  }\nLAB_0001fd8c:\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}" type_identifier (pointer_declarator "* install(char *name,int flags)" * (function_declarator "install(char *name,int flags)" identifier (parameter_list "(char *name,int flags)" ( (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "int flags" primitive_type identifier) )))) (compound_statement "{\n  Symbol *sp;\n  table_entry *entry;\n  int iVar1;\n  table_entry *ptVar2;\n  Hash_table *table;\n  undefined *puVar3;\n  \n  sp = (Symbol *)xmalloc(0x54);\n  (*(code *)PTR_memset_00045c50)(sp,0,0x54);\n  sp->type = SymUndefined;\n  sp->name = name;\n  entry = (table_entry *)xmalloc(4);\n  entry->sym = sp;\n  if (((((flags & 2U) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar1 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar1 == 0)) &&\n     (puVar3 = PTR_DAT_00045858, (flags & 4U) == 0)) {\n    sp->flag = symbol_none;\n    table = *(Hash_table **)(puVar3 + 0x5f60);\n    if (table == (Hash_table *)0x0) {\n      table = (Hash_table *)0x0;\n      goto LAB_0001fd60;\n    }\n  }\n  else {\n    puVar3 = PTR_DAT_00045858;\n    sp->flag = symbol_local;\n    append_symbol((linked_list **)(puVar3 + 0x5f5c),sp);\n    table = *(Hash_table **)(PTR_DAT_00045858 + 0x5f60);\n    puVar3 = PTR_DAT_00045858;\n    if (table == (Hash_table *)0x0) {\nLAB_0001fd60:\n      table = hash_initialize((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0);\n      *(Hash_table **)(puVar3 + 0x5f60) = table;\n      if (table == (Hash_table *)0x0) goto LAB_0001fd8c;\n    }\n  }\n  ptVar2 = (table_entry *)hash_insert(table,entry);\n  if (ptVar2 != (table_entry *)0x0) {\n    if (entry != ptVar2) {\n      if ((flags & 1U) != 0) {\n        (*(code *)PTR_free_00045cd8)(sp);\n        (*(code *)PTR_free_00045cd8)(entry);\n        return ptVar2->sym;\n      }\n      if (ptVar2->sym->type != SymUndefined) {\n        sp->next = ptVar2->sym;\n      }\n      puVar3 = PTR_free_00045cd8;\n      ptVar2->sym = sp;\n      (*(code *)puVar3)(entry);\n    }\n    sp->owner = ptVar2;\n    return sp;\n  }\nLAB_0001fd8c:\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();\n}" { (declaration "Symbol *sp;" type_identifier (pointer_declarator "*sp" * identifier) ;) (declaration "table_entry *entry;" type_identifier (pointer_declarator "*entry" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "table_entry *ptVar2;" type_identifier (pointer_declarator "*ptVar2" * identifier) ;) (declaration "Hash_table *table;" type_identifier (pointer_declarator "*table" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (expression_statement "sp = (Symbol *)xmalloc(0x54);" (assignment_expression "sp = (Symbol *)xmalloc(0x54)" identifier = (cast_expression "(Symbol *)xmalloc(0x54)" ( (type_descriptor "Symbol *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x54)" identifier (argument_list "(0x54)" ( number_literal ))))) ;) (expression_statement "(*(code *)PTR_memset_00045c50)(sp,0,0x54);" (call_expression "(*(code *)PTR_memset_00045c50)(sp,0,0x54)" (parenthesized_expression "(*(code *)PTR_memset_00045c50)" ( (pointer_expression "*(code *)PTR_memset_00045c50" * (cast_expression "(code *)PTR_memset_00045c50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sp,0,0x54)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "sp->type = SymUndefined;" (assignment_expression "sp->type = SymUndefined" (field_expression "sp->type" identifier -> field_identifier) = identifier) ;) (expression_statement "sp->name = name;" (assignment_expression "sp->name = name" (field_expression "sp->name" identifier -> field_identifier) = identifier) ;) (expression_statement "entry = (table_entry *)xmalloc(4);" (assignment_expression "entry = (table_entry *)xmalloc(4)" identifier = (cast_expression "(table_entry *)xmalloc(4)" ( (type_descriptor "table_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "entry->sym = sp;" (assignment_expression "entry->sym = sp" (field_expression "entry->sym" identifier -> field_identifier) = identifier) ;) (if_statement "if (((((flags & 2U) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar1 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar1 == 0)) &&\n     (puVar3 = PTR_DAT_00045858, (flags & 4U) == 0)) {\n    sp->flag = symbol_none;\n    table = *(Hash_table **)(puVar3 + 0x5f60);\n    if (table == (Hash_table *)0x0) {\n      table = (Hash_table *)0x0;\n      goto LAB_0001fd60;\n    }\n  }\n  else {\n    puVar3 = PTR_DAT_00045858;\n    sp->flag = symbol_local;\n    append_symbol((linked_list **)(puVar3 + 0x5f5c),sp);\n    table = *(Hash_table **)(PTR_DAT_00045858 + 0x5f60);\n    puVar3 = PTR_DAT_00045858;\n    if (table == (Hash_table *)0x0) {\nLAB_0001fd60:\n      table = hash_initialize((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0);\n      *(Hash_table **)(puVar3 + 0x5f60) = table;\n      if (table == (Hash_table *)0x0) goto LAB_0001fd8c;\n    }\n  }" if (parenthesized_expression "(((((flags & 2U) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar1 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar1 == 0)) &&\n     (puVar3 = PTR_DAT_00045858, (flags & 4U) == 0))" ( (binary_expression "((((flags & 2U) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar1 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar1 == 0)) &&\n     (puVar3 = PTR_DAT_00045858, (flags & 4U) == 0)" (parenthesized_expression "((((flags & 2U) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar1 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar1 == 0))" ( (binary_expression "(((flags & 2U) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar1 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar1 == 0)" (parenthesized_expression "(((flags & 2U) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0))" ( (binary_expression "((flags & 2U) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)" (parenthesized_expression "((flags & 2U) == 0)" ( (binary_expression "(flags & 2U) == 0" (parenthesized_expression "(flags & 2U)" ( (binary_expression "flags & 2U" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(*(int *)PTR_canonical_filename_000459a8 == 0)" ( (binary_expression "*(int *)PTR_canonical_filename_000459a8 == 0" (pointer_expression "*(int *)PTR_canonical_filename_000459a8" * (cast_expression "(int *)PTR_canonical_filename_000459a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) ))) )) || (parenthesized_expression "(iVar1 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar1 == 0)" ( (comma_expression "iVar1 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar1 == 0" (assignment_expression "iVar1 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4)" identifier = (call_expression "(*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4)" (parenthesized_expression "(*(code *)PTR_strcmp_00045cf4)" ( (pointer_expression "*(code *)PTR_strcmp_00045cf4" * (cast_expression "(code *)PTR_strcmp_00045cf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_filename_000459a4)" ( (pointer_expression "*(undefined4 *)PTR_filename_000459a4" * (cast_expression "(undefined4 *)PTR_filename_000459a4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(puVar3 = PTR_DAT_00045858, (flags & 4U) == 0)" ( (comma_expression "puVar3 = PTR_DAT_00045858, (flags & 4U) == 0" (assignment_expression "puVar3 = PTR_DAT_00045858" identifier = identifier) , (binary_expression "(flags & 4U) == 0" (parenthesized_expression "(flags & 4U)" ( (binary_expression "flags & 4U" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n    sp->flag = symbol_none;\n    table = *(Hash_table **)(puVar3 + 0x5f60);\n    if (table == (Hash_table *)0x0) {\n      table = (Hash_table *)0x0;\n      goto LAB_0001fd60;\n    }\n  }" { (expression_statement "sp->flag = symbol_none;" (assignment_expression "sp->flag = symbol_none" (field_expression "sp->flag" identifier -> field_identifier) = identifier) ;) (expression_statement "table = *(Hash_table **)(puVar3 + 0x5f60);" (assignment_expression "table = *(Hash_table **)(puVar3 + 0x5f60)" identifier = (pointer_expression "*(Hash_table **)(puVar3 + 0x5f60)" * (cast_expression "(Hash_table **)(puVar3 + 0x5f60)" ( (type_descriptor "Hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x5f60)" ( (binary_expression "puVar3 + 0x5f60" identifier + number_literal) ))))) ;) (if_statement "if (table == (Hash_table *)0x0) {\n      table = (Hash_table *)0x0;\n      goto LAB_0001fd60;\n    }" if (parenthesized_expression "(table == (Hash_table *)0x0)" ( (binary_expression "table == (Hash_table *)0x0" identifier == (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      table = (Hash_table *)0x0;\n      goto LAB_0001fd60;\n    }" { (expression_statement "table = (Hash_table *)0x0;" (assignment_expression "table = (Hash_table *)0x0" identifier = (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_0001fd60;" goto statement_identifier ;) })) }) (else_clause "else {\n    puVar3 = PTR_DAT_00045858;\n    sp->flag = symbol_local;\n    append_symbol((linked_list **)(puVar3 + 0x5f5c),sp);\n    table = *(Hash_table **)(PTR_DAT_00045858 + 0x5f60);\n    puVar3 = PTR_DAT_00045858;\n    if (table == (Hash_table *)0x0) {\nLAB_0001fd60:\n      table = hash_initialize((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0);\n      *(Hash_table **)(puVar3 + 0x5f60) = table;\n      if (table == (Hash_table *)0x0) goto LAB_0001fd8c;\n    }\n  }" else (compound_statement "{\n    puVar3 = PTR_DAT_00045858;\n    sp->flag = symbol_local;\n    append_symbol((linked_list **)(puVar3 + 0x5f5c),sp);\n    table = *(Hash_table **)(PTR_DAT_00045858 + 0x5f60);\n    puVar3 = PTR_DAT_00045858;\n    if (table == (Hash_table *)0x0) {\nLAB_0001fd60:\n      table = hash_initialize((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0);\n      *(Hash_table **)(puVar3 + 0x5f60) = table;\n      if (table == (Hash_table *)0x0) goto LAB_0001fd8c;\n    }\n  }" { (expression_statement "puVar3 = PTR_DAT_00045858;" (assignment_expression "puVar3 = PTR_DAT_00045858" identifier = identifier) ;) (expression_statement "sp->flag = symbol_local;" (assignment_expression "sp->flag = symbol_local" (field_expression "sp->flag" identifier -> field_identifier) = identifier) ;) (expression_statement "append_symbol((linked_list **)(puVar3 + 0x5f5c),sp);" (call_expression "append_symbol((linked_list **)(puVar3 + 0x5f5c),sp)" identifier (argument_list "((linked_list **)(puVar3 + 0x5f5c),sp)" ( (cast_expression "(linked_list **)(puVar3 + 0x5f5c)" ( (type_descriptor "linked_list **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x5f5c)" ( (binary_expression "puVar3 + 0x5f5c" identifier + number_literal) ))) , identifier ))) ;) (expression_statement "table = *(Hash_table **)(PTR_DAT_00045858 + 0x5f60);" (assignment_expression "table = *(Hash_table **)(PTR_DAT_00045858 + 0x5f60)" identifier = (pointer_expression "*(Hash_table **)(PTR_DAT_00045858 + 0x5f60)" * (cast_expression "(Hash_table **)(PTR_DAT_00045858 + 0x5f60)" ( (type_descriptor "Hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_00045858 + 0x5f60)" ( (binary_expression "PTR_DAT_00045858 + 0x5f60" identifier + number_literal) ))))) ;) (expression_statement "puVar3 = PTR_DAT_00045858;" (assignment_expression "puVar3 = PTR_DAT_00045858" identifier = identifier) ;) (if_statement "if (table == (Hash_table *)0x0) {\nLAB_0001fd60:\n      table = hash_initialize((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0);\n      *(Hash_table **)(puVar3 + 0x5f60) = table;\n      if (table == (Hash_table *)0x0) goto LAB_0001fd8c;\n    }" if (parenthesized_expression "(table == (Hash_table *)0x0)" ( (binary_expression "table == (Hash_table *)0x0" identifier == (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_0001fd60:\n      table = hash_initialize((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0);\n      *(Hash_table **)(puVar3 + 0x5f60) = table;\n      if (table == (Hash_table *)0x0) goto LAB_0001fd8c;\n    }" { (labeled_statement "LAB_0001fd60:\n      table = hash_initialize((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0);" statement_identifier : (expression_statement "table = hash_initialize((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0);" (assignment_expression "table = hash_initialize((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0)" identifier = (call_expression "hash_initialize((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0)" identifier (argument_list "((size_t)table,(Hash_tuning *)0x0,\n                              (Hash_hasher)(PTR_LAB_0004586c + -0x9ec),\n                              (Hash_comparator)(PTR_LAB_0004586c + -0xa4c),(Hash_data_freer)0x0)" ( (cast_expression "(size_t)table" ( (type_descriptor "size_t" primitive_type) ) identifier) , (cast_expression "(Hash_tuning *)0x0" ( (type_descriptor "Hash_tuning *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , (call_expression "(Hash_hasher)(PTR_LAB_0004586c + -0x9ec)" (parenthesized_expression "(Hash_hasher)" ( identifier )) (argument_list "(PTR_LAB_0004586c + -0x9ec)" ( (binary_expression "PTR_LAB_0004586c + -0x9ec" identifier + number_literal) ))) , (call_expression "(Hash_comparator)(PTR_LAB_0004586c + -0xa4c)" (parenthesized_expression "(Hash_comparator)" ( identifier )) (argument_list "(PTR_LAB_0004586c + -0xa4c)" ( (binary_expression "PTR_LAB_0004586c + -0xa4c" identifier + number_literal) ))) , (cast_expression "(Hash_data_freer)0x0" ( (type_descriptor "Hash_data_freer" type_identifier) ) number_literal) )))) ;)) (expression_statement "*(Hash_table **)(puVar3 + 0x5f60) = table;" (assignment_expression "*(Hash_table **)(puVar3 + 0x5f60) = table" (pointer_expression "*(Hash_table **)(puVar3 + 0x5f60)" * (cast_expression "(Hash_table **)(puVar3 + 0x5f60)" ( (type_descriptor "Hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar3 + 0x5f60)" ( (binary_expression "puVar3 + 0x5f60" identifier + number_literal) )))) = identifier) ;) (if_statement "if (table == (Hash_table *)0x0) goto LAB_0001fd8c;" if (parenthesized_expression "(table == (Hash_table *)0x0)" ( (binary_expression "table == (Hash_table *)0x0" identifier == (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0001fd8c;" goto statement_identifier ;)) })) }))) (expression_statement "ptVar2 = (table_entry *)hash_insert(table,entry);" (assignment_expression "ptVar2 = (table_entry *)hash_insert(table,entry)" identifier = (cast_expression "(table_entry *)hash_insert(table,entry)" ( (type_descriptor "table_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_insert(table,entry)" identifier (argument_list "(table,entry)" ( identifier , identifier ))))) ;) (if_statement "if (ptVar2 != (table_entry *)0x0) {\n    if (entry != ptVar2) {\n      if ((flags & 1U) != 0) {\n        (*(code *)PTR_free_00045cd8)(sp);\n        (*(code *)PTR_free_00045cd8)(entry);\n        return ptVar2->sym;\n      }\n      if (ptVar2->sym->type != SymUndefined) {\n        sp->next = ptVar2->sym;\n      }\n      puVar3 = PTR_free_00045cd8;\n      ptVar2->sym = sp;\n      (*(code *)puVar3)(entry);\n    }\n    sp->owner = ptVar2;\n    return sp;\n  }" if (parenthesized_expression "(ptVar2 != (table_entry *)0x0)" ( (binary_expression "ptVar2 != (table_entry *)0x0" identifier != (cast_expression "(table_entry *)0x0" ( (type_descriptor "table_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (entry != ptVar2) {\n      if ((flags & 1U) != 0) {\n        (*(code *)PTR_free_00045cd8)(sp);\n        (*(code *)PTR_free_00045cd8)(entry);\n        return ptVar2->sym;\n      }\n      if (ptVar2->sym->type != SymUndefined) {\n        sp->next = ptVar2->sym;\n      }\n      puVar3 = PTR_free_00045cd8;\n      ptVar2->sym = sp;\n      (*(code *)puVar3)(entry);\n    }\n    sp->owner = ptVar2;\n    return sp;\n  }" { (if_statement "if (entry != ptVar2) {\n      if ((flags & 1U) != 0) {\n        (*(code *)PTR_free_00045cd8)(sp);\n        (*(code *)PTR_free_00045cd8)(entry);\n        return ptVar2->sym;\n      }\n      if (ptVar2->sym->type != SymUndefined) {\n        sp->next = ptVar2->sym;\n      }\n      puVar3 = PTR_free_00045cd8;\n      ptVar2->sym = sp;\n      (*(code *)puVar3)(entry);\n    }" if (parenthesized_expression "(entry != ptVar2)" ( (binary_expression "entry != ptVar2" identifier != identifier) )) (compound_statement "{\n      if ((flags & 1U) != 0) {\n        (*(code *)PTR_free_00045cd8)(sp);\n        (*(code *)PTR_free_00045cd8)(entry);\n        return ptVar2->sym;\n      }\n      if (ptVar2->sym->type != SymUndefined) {\n        sp->next = ptVar2->sym;\n      }\n      puVar3 = PTR_free_00045cd8;\n      ptVar2->sym = sp;\n      (*(code *)puVar3)(entry);\n    }" { (if_statement "if ((flags & 1U) != 0) {\n        (*(code *)PTR_free_00045cd8)(sp);\n        (*(code *)PTR_free_00045cd8)(entry);\n        return ptVar2->sym;\n      }" if (parenthesized_expression "((flags & 1U) != 0)" ( (binary_expression "(flags & 1U) != 0" (parenthesized_expression "(flags & 1U)" ( (binary_expression "flags & 1U" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        (*(code *)PTR_free_00045cd8)(sp);\n        (*(code *)PTR_free_00045cd8)(entry);\n        return ptVar2->sym;\n      }" { (expression_statement "(*(code *)PTR_free_00045cd8)(sp);" (call_expression "(*(code *)PTR_free_00045cd8)(sp)" (parenthesized_expression "(*(code *)PTR_free_00045cd8)" ( (pointer_expression "*(code *)PTR_free_00045cd8" * (cast_expression "(code *)PTR_free_00045cd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sp)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_free_00045cd8)(entry);" (call_expression "(*(code *)PTR_free_00045cd8)(entry)" (parenthesized_expression "(*(code *)PTR_free_00045cd8)" ( (pointer_expression "*(code *)PTR_free_00045cd8" * (cast_expression "(code *)PTR_free_00045cd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(entry)" ( identifier ))) ;) (return_statement "return ptVar2->sym;" return (field_expression "ptVar2->sym" identifier -> field_identifier) ;) })) (if_statement "if (ptVar2->sym->type != SymUndefined) {\n        sp->next = ptVar2->sym;\n      }" if (parenthesized_expression "(ptVar2->sym->type != SymUndefined)" ( (binary_expression "ptVar2->sym->type != SymUndefined" (field_expression "ptVar2->sym->type" (field_expression "ptVar2->sym" identifier -> field_identifier) -> field_identifier) != identifier) )) (compound_statement "{\n        sp->next = ptVar2->sym;\n      }" { (expression_statement "sp->next = ptVar2->sym;" (assignment_expression "sp->next = ptVar2->sym" (field_expression "sp->next" identifier -> field_identifier) = (field_expression "ptVar2->sym" identifier -> field_identifier)) ;) })) (expression_statement "puVar3 = PTR_free_00045cd8;" (assignment_expression "puVar3 = PTR_free_00045cd8" identifier = identifier) ;) (expression_statement "ptVar2->sym = sp;" (assignment_expression "ptVar2->sym = sp" (field_expression "ptVar2->sym" identifier -> field_identifier) = identifier) ;) (expression_statement "(*(code *)puVar3)(entry);" (call_expression "(*(code *)puVar3)(entry)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(entry)" ( identifier ))) ;) })) (expression_statement "sp->owner = ptVar2;" (assignment_expression "sp->owner = ptVar2" (field_expression "sp->owner" identifier -> field_identifier) = identifier) ;) (return_statement "return sp;" return identifier ;) })) (labeled_statement "LAB_0001fd8c:\n                    /* WARNING: Subroutine does not return */\n  xalloc_die();" statement_identifier : comment (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;)) })))
(translation_unit "undefined4 * install(undefined4 param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  code *pcVar6;\n  \n  puVar2 = (undefined4 *)xmalloc(0x54);\n  (*(code *)PTR_memset_00045c50)(puVar2,0,0x54);\n  puVar2[3] = 0;\n  puVar2[4] = param_1;\n  piVar3 = (int *)xmalloc(4);\n  *piVar3 = (int)puVar2;\n  if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }\n  else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }\n  pcVar6 = (code *)PTR_xalloc_die_00045aec;\n  xalloc_die();\nLAB_0001fd98:\n  (*pcVar6)(puVar2);\n  (*(code *)PTR_free_00045cd8)(piVar3);\n  return (undefined4 *)*piVar5;\n}\n\n" (function_definition "undefined4 * install(undefined4 param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  code *pcVar6;\n  \n  puVar2 = (undefined4 *)xmalloc(0x54);\n  (*(code *)PTR_memset_00045c50)(puVar2,0,0x54);\n  puVar2[3] = 0;\n  puVar2[4] = param_1;\n  piVar3 = (int *)xmalloc(4);\n  *piVar3 = (int)puVar2;\n  if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }\n  else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }\n  pcVar6 = (code *)PTR_xalloc_die_00045aec;\n  xalloc_die();\nLAB_0001fd98:\n  (*pcVar6)(puVar2);\n  (*(code *)PTR_free_00045cd8)(piVar3);\n  return (undefined4 *)*piVar5;\n}" type_identifier (pointer_declarator "* install(undefined4 param_1,uint param_2)" * (function_declarator "install(undefined4 param_1,uint param_2)" identifier (parameter_list "(undefined4 param_1,uint param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "uint param_2" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  code *pcVar6;\n  \n  puVar2 = (undefined4 *)xmalloc(0x54);\n  (*(code *)PTR_memset_00045c50)(puVar2,0,0x54);\n  puVar2[3] = 0;\n  puVar2[4] = param_1;\n  piVar3 = (int *)xmalloc(4);\n  *piVar3 = (int)puVar2;\n  if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }\n  else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }\n  pcVar6 = (code *)PTR_xalloc_die_00045aec;\n  xalloc_die();\nLAB_0001fd98:\n  (*pcVar6)(puVar2);\n  (*(code *)PTR_free_00045cd8)(piVar3);\n  return (undefined4 *)*piVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(0x54);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0x54)" identifier = (cast_expression "(undefined4 *)xmalloc(0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x54)" identifier (argument_list "(0x54)" ( number_literal ))))) ;) (expression_statement "(*(code *)PTR_memset_00045c50)(puVar2,0,0x54);" (call_expression "(*(code *)PTR_memset_00045c50)(puVar2,0,0x54)" (parenthesized_expression "(*(code *)PTR_memset_00045c50)" ( (pointer_expression "*(code *)PTR_memset_00045c50" * (cast_expression "(code *)PTR_memset_00045c50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2,0,0x54)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[4] = param_1;" (assignment_expression "puVar2[4] = param_1" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar3 = (int *)xmalloc(4);" (assignment_expression "piVar3 = (int *)xmalloc(4)" identifier = (cast_expression "(int *)xmalloc(4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*piVar3 = (int)puVar2;" (assignment_expression "*piVar3 = (int)puVar2" (pointer_expression "*piVar3" * identifier) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (if_statement "if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }\n  else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }" if (parenthesized_expression "(((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0))" ( (binary_expression "((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)" (parenthesized_expression "((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0))" ( (binary_expression "(((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)" (parenthesized_expression "(((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0))" ( (binary_expression "((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)" (parenthesized_expression "((param_2 & 2) == 0)" ( (binary_expression "(param_2 & 2) == 0" (parenthesized_expression "(param_2 & 2)" ( (binary_expression "param_2 & 2" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(*(int *)PTR_canonical_filename_000459a8 == 0)" ( (binary_expression "*(int *)PTR_canonical_filename_000459a8 == 0" (pointer_expression "*(int *)PTR_canonical_filename_000459a8" * (cast_expression "(int *)PTR_canonical_filename_000459a8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) ))) )) || (parenthesized_expression "(iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)" ( (comma_expression "iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0" (assignment_expression "iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4)" identifier = (call_expression "(*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4)" (parenthesized_expression "(*(code *)PTR_strcmp_00045cf4)" ( (pointer_expression "*(code *)PTR_strcmp_00045cf4" * (cast_expression "(code *)PTR_strcmp_00045cf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_filename_000459a4)" ( (pointer_expression "*(undefined4 *)PTR_filename_000459a4" * (cast_expression "(undefined4 *)PTR_filename_000459a4" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )))) , (binary_expression "iVar4 == 0" identifier == number_literal)) ))) )) && (parenthesized_expression "(piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)" ( (comma_expression "piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0" (assignment_expression "piVar5 = (int *)PTR_DAT_00045858" identifier = (cast_expression "(int *)PTR_DAT_00045858" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) , (binary_expression "(param_2 & 4) == 0" (parenthesized_expression "(param_2 & 4)" ( (binary_expression "param_2 & 4" identifier & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }" { (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = *(int *)((int)piVar5 + 0x5f60);" (assignment_expression "iVar4 = *(int *)((int)piVar5 + 0x5f60)" identifier = (pointer_expression "*(int *)((int)piVar5 + 0x5f60)" * (cast_expression "(int *)((int)piVar5 + 0x5f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar5 + 0x5f60)" ( (binary_expression "(int)piVar5 + 0x5f60" (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_0001fd60;" goto statement_identifier ;) })) (labeled_statement "LAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);" statement_identifier : (expression_statement "piVar5 = (int *)hash_insert(iVar4,piVar3);" (assignment_expression "piVar5 = (int *)hash_insert(iVar4,piVar3)" identifier = (cast_expression "(int *)hash_insert(iVar4,piVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "hash_insert(iVar4,piVar3)" identifier (argument_list "(iVar4,piVar3)" ( identifier , identifier ))))) ;)) (if_statement "if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }" { (if_statement "if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }" if (parenthesized_expression "(piVar3 == piVar5)" ( (binary_expression "piVar3 == piVar5" identifier == identifier) )) (compound_statement "{\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }" { (labeled_statement "LAB_0001fd18:\n        *puVar2 = piVar5;" statement_identifier : (expression_statement "*puVar2 = piVar5;" (assignment_expression "*puVar2 = piVar5" (pointer_expression "*puVar2" * identifier) = identifier) ;)) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "pcVar6 = (code *)PTR_free_00045cd8;" (assignment_expression "pcVar6 = (code *)PTR_free_00045cd8" identifier = (cast_expression "(code *)PTR_free_00045cd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }" if (parenthesized_expression "((param_2 & 1) == 0)" ( (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" ( (binary_expression "param_2 & 1" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }" { (if_statement "if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }" if (parenthesized_expression "(*(int *)(*piVar5 + 0xc) != 0)" ( (binary_expression "*(int *)(*piVar5 + 0xc) != 0" (pointer_expression "*(int *)(*piVar5 + 0xc)" * (cast_expression "(int *)(*piVar5 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar5 + 0xc)" ( (binary_expression "*piVar5 + 0xc" (pointer_expression "*piVar5" * identifier) + number_literal) )))) != number_literal) )) (compound_statement "{\n          puVar2[1] = *piVar5;\n        }" { (expression_statement "puVar2[1] = *piVar5;" (assignment_expression "puVar2[1] = *piVar5" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (pointer_expression "*piVar5" * identifier)) ;) })) (expression_statement "puVar1 = PTR_free_00045cd8;" (assignment_expression "puVar1 = PTR_free_00045cd8" identifier = identifier) ;) (expression_statement "*piVar5 = (int)puVar2;" (assignment_expression "*piVar5 = (int)puVar2" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "(*(code *)puVar1)(piVar3);" (call_expression "(*(code *)puVar1)(piVar3)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3)" ( identifier ))) ;) (goto_statement "goto LAB_0001fd18;" goto statement_identifier ;) })) (goto_statement "goto LAB_0001fd98;" goto statement_identifier ;) })) }) (else_clause "else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }" else (compound_statement "{\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }" { (expression_statement "puVar1 = PTR_DAT_00045858;" (assignment_expression "puVar1 = PTR_DAT_00045858" identifier = identifier) ;) (expression_statement "puVar2[5] = 1;" (assignment_expression "puVar2[5] = 1" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0001f714(puVar1 + 0x5f5c,puVar2);" (call_expression "FUN_0001f714(puVar1 + 0x5f5c,puVar2)" identifier (argument_list "(puVar1 + 0x5f5c,puVar2)" ( (binary_expression "puVar1 + 0x5f5c" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);" (assignment_expression "iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60)" identifier = (pointer_expression "*(int *)(PTR_DAT_00045858 + 0x5f60)" * (cast_expression "(int *)(PTR_DAT_00045858 + 0x5f60)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00045858 + 0x5f60)" ( (binary_expression "PTR_DAT_00045858 + 0x5f60" identifier + number_literal) ))))) ;) (expression_statement "piVar5 = (int *)PTR_DAT_00045858;" (assignment_expression "piVar5 = (int *)PTR_DAT_00045858" identifier = (cast_expression "(int *)PTR_DAT_00045858" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar4 != 0) goto LAB_0001fcd4;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001fcd4;" goto statement_identifier ;)) (labeled_statement "LAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);" statement_identifier : (expression_statement "iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);" (assignment_expression "iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0)" identifier = (call_expression "hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0)" identifier (argument_list "(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0)" ( identifier , number_literal , (binary_expression "PTR_LAB_0004586c + -0x9ec" identifier + number_literal) , (binary_expression "PTR_LAB_0004586c + -0xa4c" identifier + number_literal) , number_literal )))) ;)) (expression_statement "piVar5[0x17d8] = iVar4;" (assignment_expression "piVar5[0x17d8] = iVar4" (subscript_expression "piVar5[0x17d8]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 != 0) goto LAB_0001fcd4;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0001fcd4;" goto statement_identifier ;)) }))) (expression_statement "pcVar6 = (code *)PTR_xalloc_die_00045aec;" (assignment_expression "pcVar6 = (code *)PTR_xalloc_die_00045aec" identifier = (cast_expression "(code *)PTR_xalloc_die_00045aec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" identifier (argument_list "()" ( ))) ;) (labeled_statement "LAB_0001fd98:\n  (*pcVar6)(puVar2);" statement_identifier : (expression_statement "(*pcVar6)(puVar2);" (call_expression "(*pcVar6)(puVar2)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(puVar2)" ( identifier ))) ;)) (expression_statement "(*(code *)PTR_free_00045cd8)(piVar3);" (call_expression "(*(code *)PTR_free_00045cd8)(piVar3)" (parenthesized_expression "(*(code *)PTR_free_00045cd8)" ( (pointer_expression "*(code *)PTR_free_00045cd8" * (cast_expression "(code *)PTR_free_00045cd8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar3)" ( identifier ))) ;) (return_statement "return (undefined4 *)*piVar5;" return (cast_expression "(undefined4 *)*piVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier)) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) ))) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )))) , (binary_expression IDENT == LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) , (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;)) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (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 IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT )))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ;) })))
(function_definition "undefined4 * install(undefined4 param_1,uint param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  code *pcVar6;\n  \n  puVar2 = (undefined4 *)xmalloc(0x54);\n  (*(code *)PTR_memset_00045c50)(puVar2,0,0x54);\n  puVar2[3] = 0;\n  puVar2[4] = param_1;\n  piVar3 = (int *)xmalloc(4);\n  *piVar3 = (int)puVar2;\n  if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }\n  else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }\n  pcVar6 = (code *)PTR_xalloc_die_00045aec;\n  xalloc_die();\nLAB_0001fd98:\n  (*pcVar6)(puVar2);\n  (*(code *)PTR_free_00045cd8)(piVar3);\n  return (undefined4 *)*piVar5;\n}" (type_identifier "undefined4") (pointer_declarator "* install(undefined4 param_1,uint param_2)" (* "*") (function_declarator "install(undefined4 param_1,uint param_2)" (identifier "install") (parameter_list "(undefined4 param_1,uint param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int *piVar3;\n  int iVar4;\n  int *piVar5;\n  code *pcVar6;\n  \n  puVar2 = (undefined4 *)xmalloc(0x54);\n  (*(code *)PTR_memset_00045c50)(puVar2,0,0x54);\n  puVar2[3] = 0;\n  puVar2[4] = param_1;\n  piVar3 = (int *)xmalloc(4);\n  *piVar3 = (int)puVar2;\n  if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }\n  else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }\n  pcVar6 = (code *)PTR_xalloc_die_00045aec;\n  xalloc_die();\nLAB_0001fd98:\n  (*pcVar6)(puVar2);\n  (*(code *)PTR_free_00045cd8)(piVar3);\n  return (undefined4 *)*piVar5;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "code *pcVar6;" (type_identifier "code") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (expression_statement "puVar2 = (undefined4 *)xmalloc(0x54);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0x54)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)xmalloc(0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x54)" (identifier "xmalloc") (argument_list "(0x54)" (( "(") (number_literal "0x54") () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_memset_00045c50)(puVar2,0,0x54);" (call_expression "(*(code *)PTR_memset_00045c50)(puVar2,0,0x54)" (parenthesized_expression "(*(code *)PTR_memset_00045c50)" (( "(") (pointer_expression "*(code *)PTR_memset_00045c50" (* "*") (cast_expression "(code *)PTR_memset_00045c50" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_00045c50"))) () ")")) (argument_list "(puVar2,0,0x54)" (( "(") (identifier "puVar2") (, ",") (number_literal "0") (, ",") (number_literal "0x54") () ")"))) (; ";")) (expression_statement "puVar2[3] = 0;" (assignment_expression "puVar2[3] = 0" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[4] = param_1;" (assignment_expression "puVar2[4] = param_1" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "piVar3 = (int *)xmalloc(4);" (assignment_expression "piVar3 = (int *)xmalloc(4)" (identifier "piVar3") (= "=") (cast_expression "(int *)xmalloc(4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(4)" (identifier "xmalloc") (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "*piVar3 = (int)puVar2;" (assignment_expression "*piVar3 = (int)puVar2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (= "=") (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2"))) (; ";")) (if_statement "if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }\n  else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }" (if "if") (parenthesized_expression "(((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0))" (( "(") (binary_expression "((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&\n     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)" (parenthesized_expression "((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0))" (( "(") (binary_expression "(((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||\n      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)" (parenthesized_expression "(((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0))" (( "(") (binary_expression "((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)" (parenthesized_expression "((param_2 & 2) == 0)" (( "(") (binary_expression "(param_2 & 2) == 0" (parenthesized_expression "(param_2 & 2)" (( "(") (binary_expression "param_2 & 2" (identifier "param_2") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)PTR_canonical_filename_000459a8 == 0)" (( "(") (binary_expression "*(int *)PTR_canonical_filename_000459a8 == 0" (pointer_expression "*(int *)PTR_canonical_filename_000459a8" (* "*") (cast_expression "(int *)PTR_canonical_filename_000459a8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_canonical_filename_000459a8"))) (== "==") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)" (( "(") (comma_expression "iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0" (assignment_expression "iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4)" (parenthesized_expression "(*(code *)PTR_strcmp_00045cf4)" (( "(") (pointer_expression "*(code *)PTR_strcmp_00045cf4" (* "*") (cast_expression "(code *)PTR_strcmp_00045cf4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_00045cf4"))) () ")")) (argument_list "(*(undefined4 *)PTR_filename_000459a4)" (( "(") (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"))) () ")")))) (, ",") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)" (( "(") (comma_expression "piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0" (assignment_expression "piVar5 = (int *)PTR_DAT_00045858" (identifier "piVar5") (= "=") (cast_expression "(int *)PTR_DAT_00045858" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_00045858"))) (, ",") (binary_expression "(param_2 & 4) == 0" (parenthesized_expression "(param_2 & 4)" (( "(") (binary_expression "param_2 & 4" (identifier "param_2") (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    puVar2[5] = 0;\n    iVar4 = *(int *)((int)piVar5 + 0x5f60);\n    if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }\nLAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);\n    if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }\n  }" ({ "{") (expression_statement "puVar2[5] = 0;" (assignment_expression "puVar2[5] = 0" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = *(int *)((int)piVar5 + 0x5f60);" (assignment_expression "iVar4 = *(int *)((int)piVar5 + 0x5f60)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)((int)piVar5 + 0x5f60)" (* "*") (cast_expression "(int *)((int)piVar5 + 0x5f60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar5 + 0x5f60)" (( "(") (binary_expression "(int)piVar5 + 0x5f60" (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5")) (+ "+") (number_literal "0x5f60")) () ")"))))) (; ";")) (if_statement "if (iVar4 == 0) {\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = 0;\n      goto LAB_0001fd60;\n    }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0001fd60;" (goto "goto") (statement_identifier "LAB_0001fd60") (; ";")) (} "}"))) (labeled_statement "LAB_0001fcd4:\n    piVar5 = (int *)hash_insert(iVar4,piVar3);" (statement_identifier "LAB_0001fcd4") (: ":") (expression_statement "piVar5 = (int *)hash_insert(iVar4,piVar3);" (assignment_expression "piVar5 = (int *)hash_insert(iVar4,piVar3)" (identifier "piVar5") (= "=") (cast_expression "(int *)hash_insert(iVar4,piVar3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "hash_insert(iVar4,piVar3)" (identifier "hash_insert") (argument_list "(iVar4,piVar3)" (( "(") (identifier "iVar4") (, ",") (identifier "piVar3") () ")"))))) (; ";"))) (if_statement "if (piVar5 != (int *)0x0) {\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }" (if "if") (parenthesized_expression "(piVar5 != (int *)0x0)" (( "(") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }\n      pcVar6 = (code *)PTR_free_00045cd8;\n      if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }\n      goto LAB_0001fd98;\n    }" ({ "{") (if_statement "if (piVar3 == piVar5) {\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }" (if "if") (parenthesized_expression "(piVar3 == piVar5)" (( "(") (binary_expression "piVar3 == piVar5" (identifier "piVar3") (== "==") (identifier "piVar5")) () ")")) (compound_statement "{\nLAB_0001fd18:\n        *puVar2 = piVar5;\n        return puVar2;\n      }" ({ "{") (labeled_statement "LAB_0001fd18:\n        *puVar2 = piVar5;" (statement_identifier "LAB_0001fd18") (: ":") (expression_statement "*puVar2 = piVar5;" (assignment_expression "*puVar2 = piVar5" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "piVar5")) (; ";"))) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "pcVar6 = (code *)PTR_free_00045cd8;" (assignment_expression "pcVar6 = (code *)PTR_free_00045cd8" (identifier "pcVar6") (= "=") (cast_expression "(code *)PTR_free_00045cd8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00045cd8"))) (; ";")) (if_statement "if ((param_2 & 1) == 0) {\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }" (if "if") (parenthesized_expression "((param_2 & 1) == 0)" (( "(") (binary_expression "(param_2 & 1) == 0" (parenthesized_expression "(param_2 & 1)" (( "(") (binary_expression "param_2 & 1" (identifier "param_2") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }\n        puVar1 = PTR_free_00045cd8;\n        *piVar5 = (int)puVar2;\n        (*(code *)puVar1)(piVar3);\n        goto LAB_0001fd18;\n      }" ({ "{") (if_statement "if (*(int *)(*piVar5 + 0xc) != 0) {\n          puVar2[1] = *piVar5;\n        }" (if "if") (parenthesized_expression "(*(int *)(*piVar5 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(*piVar5 + 0xc) != 0" (pointer_expression "*(int *)(*piVar5 + 0xc)" (* "*") (cast_expression "(int *)(*piVar5 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar5 + 0xc)" (( "(") (binary_expression "*piVar5 + 0xc" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          puVar2[1] = *piVar5;\n        }" ({ "{") (expression_statement "puVar2[1] = *piVar5;" (assignment_expression "puVar2[1] = *piVar5" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (} "}"))) (expression_statement "puVar1 = PTR_free_00045cd8;" (assignment_expression "puVar1 = PTR_free_00045cd8" (identifier "puVar1") (= "=") (identifier "PTR_free_00045cd8")) (; ";")) (expression_statement "*piVar5 = (int)puVar2;" (assignment_expression "*piVar5 = (int)puVar2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2"))) (; ";")) (expression_statement "(*(code *)puVar1)(piVar3);" (call_expression "(*(code *)puVar1)(piVar3)" (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 "(piVar3)" (( "(") (identifier "piVar3") () ")"))) (; ";")) (goto_statement "goto LAB_0001fd18;" (goto "goto") (statement_identifier "LAB_0001fd18") (; ";")) (} "}"))) (goto_statement "goto LAB_0001fd98;" (goto "goto") (statement_identifier "LAB_0001fd98") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }" (else "else") (compound_statement "{\n    puVar1 = PTR_DAT_00045858;\n    puVar2[5] = 1;\n    FUN_0001f714(puVar1 + 0x5f5c,puVar2);\n    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);\n    piVar5 = (int *)PTR_DAT_00045858;\n    if (iVar4 != 0) goto LAB_0001fcd4;\nLAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);\n    piVar5[0x17d8] = iVar4;\n    if (iVar4 != 0) goto LAB_0001fcd4;\n  }" ({ "{") (expression_statement "puVar1 = PTR_DAT_00045858;" (assignment_expression "puVar1 = PTR_DAT_00045858" (identifier "puVar1") (= "=") (identifier "PTR_DAT_00045858")) (; ";")) (expression_statement "puVar2[5] = 1;" (assignment_expression "puVar2[5] = 1" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "FUN_0001f714(puVar1 + 0x5f5c,puVar2);" (call_expression "FUN_0001f714(puVar1 + 0x5f5c,puVar2)" (identifier "FUN_0001f714") (argument_list "(puVar1 + 0x5f5c,puVar2)" (( "(") (binary_expression "puVar1 + 0x5f5c" (identifier "puVar1") (+ "+") (number_literal "0x5f5c")) (, ",") (identifier "puVar2") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);" (assignment_expression "iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(PTR_DAT_00045858 + 0x5f60)" (* "*") (cast_expression "(int *)(PTR_DAT_00045858 + 0x5f60)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00045858 + 0x5f60)" (( "(") (binary_expression "PTR_DAT_00045858 + 0x5f60" (identifier "PTR_DAT_00045858") (+ "+") (number_literal "0x5f60")) () ")"))))) (; ";")) (expression_statement "piVar5 = (int *)PTR_DAT_00045858;" (assignment_expression "piVar5 = (int *)PTR_DAT_00045858" (identifier "piVar5") (= "=") (cast_expression "(int *)PTR_DAT_00045858" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_DAT_00045858"))) (; ";")) (if_statement "if (iVar4 != 0) goto LAB_0001fcd4;" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001fcd4;" (goto "goto") (statement_identifier "LAB_0001fcd4") (; ";"))) (labeled_statement "LAB_0001fd60:\n    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);" (statement_identifier "LAB_0001fd60") (: ":") (expression_statement "iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);" (assignment_expression "iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0)" (identifier "iVar4") (= "=") (call_expression "hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0)" (identifier "hash_initialize") (argument_list "(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0)" (( "(") (identifier "iVar4") (, ",") (number_literal "0") (, ",") (binary_expression "PTR_LAB_0004586c + -0x9ec" (identifier "PTR_LAB_0004586c") (+ "+") (number_literal "-0x9ec")) (, ",") (binary_expression "PTR_LAB_0004586c + -0xa4c" (identifier "PTR_LAB_0004586c") (+ "+") (number_literal "-0xa4c")) (, ",") (number_literal "0") () ")")))) (; ";"))) (expression_statement "piVar5[0x17d8] = iVar4;" (assignment_expression "piVar5[0x17d8] = iVar4" (subscript_expression "piVar5[0x17d8]" (identifier "piVar5") ([ "[") (number_literal "0x17d8") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 != 0) goto LAB_0001fcd4;" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0001fcd4;" (goto "goto") (statement_identifier "LAB_0001fcd4") (; ";"))) (} "}")))) (expression_statement "pcVar6 = (code *)PTR_xalloc_die_00045aec;" (assignment_expression "pcVar6 = (code *)PTR_xalloc_die_00045aec" (identifier "pcVar6") (= "=") (cast_expression "(code *)PTR_xalloc_die_00045aec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xalloc_die_00045aec"))) (; ";")) (expression_statement "xalloc_die();" (call_expression "xalloc_die()" (identifier "xalloc_die") (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_0001fd98:\n  (*pcVar6)(puVar2);" (statement_identifier "LAB_0001fd98") (: ":") (expression_statement "(*pcVar6)(puVar2);" (call_expression "(*pcVar6)(puVar2)" (parenthesized_expression "(*pcVar6)" (( "(") (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) () ")")) (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";"))) (expression_statement "(*(code *)PTR_free_00045cd8)(piVar3);" (call_expression "(*(code *)PTR_free_00045cd8)(piVar3)" (parenthesized_expression "(*(code *)PTR_free_00045cd8)" (( "(") (pointer_expression "*(code *)PTR_free_00045cd8" (* "*") (cast_expression "(code *)PTR_free_00045cd8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00045cd8"))) () ")")) (argument_list "(piVar3)" (( "(") (identifier "piVar3") () ")"))) (; ";")) (return_statement "return (undefined4 *)*piVar5;" (return "return") (cast_expression "(undefined4 *)*piVar5" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5"))) (; ";")) (} "}")))

type_1 * function_1(char *name,int var_2)

{
  type_1 *sp;
  type_2 *var_12;
  int var_3;
  type_2 *var_11;
  type_3 *var_5;
  type_4 *var_4;
  
  sp = (type_1 *)var_1(0x54);
  (*(type_5 *)PTR_memset_00045c50)(sp,0,0x54);
  sp->type = var_13;
  sp->name = name;
  var_12 = (type_2 *)var_1(4);
  var_12->sym = sp;
  if (((((var_2 & 2U) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||
      (var_3 = (*(type_5 *)PTR_strcmp_00045cf4)(*(type_6 *)PTR_filename_000459a4), var_3 == 0)) &&
     (var_4 = var_7, (var_2 & 4U) == 0)) {
    sp->flag = symbol_none;
    var_5 = *(type_3 **)(var_4 + 0x5f60);
    if (var_5 == (type_3 *)0x0) {
      var_5 = (type_3 *)0x0;
      goto LAB_0001fd60;
    }
  }
  else {
    var_4 = var_7;
    sp->flag = symbol_local;
    var_6((type_7 **)(var_4 + 0x5f5c),sp);
    var_5 = *(type_3 **)(var_7 + 0x5f60);
    var_4 = var_7;
    if (var_5 == (type_3 *)0x0) {
LAB_0001fd60:
      var_5 = var_8((size_t)var_5,(type_8 *)0x0,
                              (Hash_hasher)(var_9 + -0x9ec),
                              (Hash_comparator)(var_9 + -0xa4c),(type_9)0x0);
      *(type_3 **)(var_4 + 0x5f60) = var_5;
      if (var_5 == (type_3 *)0x0) goto LAB_0001fd8c;
    }
  }
  var_11 = (type_2 *)var_10(var_5,var_12);
  if (var_11 != (type_2 *)0x0) {
    if (var_12 != var_11) {
      if ((var_2 & 1U) != 0) {
        (*(type_5 *)PTR_free_00045cd8)(sp);
        (*(type_5 *)PTR_free_00045cd8)(var_12);
        return var_11->sym;
      }
      if (var_11->sym->type != var_13) {
        sp->next = var_11->sym;
      }
      var_4 = PTR_free_00045cd8;
      var_11->sym = sp;
      (*(type_5 *)var_4)(var_12);
    }
    sp->owner = var_11;
    return sp;
  }
LAB_0001fd8c:
                    /* WARNING: Subroutine does not return */
  var_14();
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator 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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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 (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)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))))) right: (parenthesized_expression (comma_expression left: (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 (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) right: (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: (identifier))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (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 (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier)))) (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (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: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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)))) (goto_statement label: (statement_identifier)))) (goto_statement label: (statement_identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (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: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (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 (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))))))

undefined4 * MASKED(undefined4 param_1,uint param_2)

{
  undefined *puVar1;
  undefined4 *puVar2;
  int *piVar3;
  int iVar4;
  int *piVar5;
  code *pcVar6;
  
  puVar2 = (undefined4 *)xmalloc(0x54);
  (*(code *)PTR_memset_00045c50)(puVar2,0,0x54);
  puVar2[3] = 0;
  puVar2[4] = param_1;
  piVar3 = (int *)xmalloc(4);
  *piVar3 = (int)puVar2;
  if (((((param_2 & 2) == 0) || (*(int *)PTR_canonical_filename_000459a8 == 0)) ||
      (iVar4 = (*(code *)PTR_strcmp_00045cf4)(*(undefined4 *)PTR_filename_000459a4), iVar4 == 0)) &&
     (piVar5 = (int *)PTR_DAT_00045858, (param_2 & 4) == 0)) {
    puVar2[5] = 0;
    iVar4 = *(int *)((int)piVar5 + 0x5f60);
    if (iVar4 == 0) {
      iVar4 = 0;
      goto LAB_0001fd60;
    }
LAB_0001fcd4:
    piVar5 = (int *)hash_insert(iVar4,piVar3);
    if (piVar5 != (int *)0x0) {
      if (piVar3 == piVar5) {
LAB_0001fd18:
        *puVar2 = piVar5;
        return puVar2;
      }
      pcVar6 = (code *)PTR_free_00045cd8;
      if ((param_2 & 1) == 0) {
        if (*(int *)(*piVar5 + 0xc) != 0) {
          puVar2[1] = *piVar5;
        }
        puVar1 = PTR_free_00045cd8;
        *piVar5 = (int)puVar2;
        (*(code *)puVar1)(piVar3);
        goto LAB_0001fd18;
      }
      goto LAB_0001fd98;
    }
  }
  else {
    puVar1 = PTR_DAT_00045858;
    puVar2[5] = 1;
    FUN_0001f714(puVar1 + 0x5f5c,puVar2);
    iVar4 = *(int *)(PTR_DAT_00045858 + 0x5f60);
    piVar5 = (int *)PTR_DAT_00045858;
    if (iVar4 != 0) goto LAB_0001fcd4;
LAB_0001fd60:
    iVar4 = hash_initialize(iVar4,0,PTR_LAB_0004586c + -0x9ec,PTR_LAB_0004586c + -0xa4c,0);
    piVar5[0x17d8] = iVar4;
    if (iVar4 != 0) goto LAB_0001fcd4;
  }
  pcVar6 = (code *)PTR_xalloc_die_00045aec;
  xalloc_die();
LAB_0001fd98:
  (*pcVar6)(puVar2);
  (*(code *)PTR_free_00045cd8)(piVar3);
  return (undefined4 *)*piVar5;
}

