
downloaded_file_t downloaded_file(downloaded_file_t mode,char *file)

{
  undefined *puVar1;
  downloaded_file_t *pdVar2;
  void *key;
  hash_table *phVar3;
  undefined *value;
  
  puVar1 = PTR_host_name_addresses_map_000af458;
  phVar3 = *(hash_table **)(PTR_host_name_addresses_map_000af458 + -0xac);
  if (mode == CHECK_FOR_FILE) {
    if ((phVar3 != (hash_table *)0x0) &&
       (pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file),
       pdVar2 != (downloaded_file_t *)0x0)) {
      return *pdVar2;
    }
    return FILE_NOT_ALREADY_DOWNLOADED;
  }
  if (phVar3 == (hash_table *)0x0) {
    phVar3 = make_string_hash_table(0);
    *(hash_table **)(puVar1 + -0xac) = phVar3;
  }
  pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file);
  if (pdVar2 != (downloaded_file_t *)0x0) {
    return *pdVar2;
  }
  if (mode == FILE_DOWNLOADED_NORMALLY) {
    value = PTR_host_name_addresses_map_000af458 + -0x2fdc;
  }
  else if (mode == FILE_NOT_ALREADY_DOWNLOADED) {
    value = PTR_host_name_addresses_map_000af458 + -0xb0;
  }
  else {
    value = (undefined *)0x0;
    if (mode == FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED) {
      value = PTR_host_name_addresses_map_000af458 + -0x2fe0;
    }
  }
  phVar3 = *(hash_table **)(puVar1 + -0xac);
  key = (void *)(*(code *)PTR_xstrdup_000af48c)(file);
  hash_table_put(phVar3,key,value);
  return FILE_NOT_ALREADY_DOWNLOADED;
}



undefined4 downloaded_file(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  undefined *puVar5;
  undefined4 uVar6;
  
  puVar1 = PTR_DAT_000af458;
  iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);
  if (param_1 == 3) {
    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {
      return *puVar2;
    }
    return 0;
  }
  if (iVar4 == 0) {
    iVar4 = make_string_hash_table();
    *(int *)(puVar1 + -0xac) = iVar4;
  }
  puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);
  if (puVar2 != (undefined4 *)0x0) {
    return *puVar2;
  }
  if (param_1 == 1) {
    puVar5 = PTR_DAT_000af458 + -0x2fdc;
  }
  else if (param_1 == 0) {
    puVar5 = PTR_DAT_000af458 + -0xb0;
  }
  else {
    puVar5 = (undefined *)0x0;
    if (param_1 == 2) {
      puVar5 = PTR_DAT_000af458 + -0x2fe0;
    }
  }
  uVar6 = *(undefined4 *)(puVar1 + -0xac);
  uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);
  hash_table_put(uVar6,uVar3,puVar5);
  return 0;
}


lui gp,0xa
addiu gp,gp,-0x68bc
addu gp,gp,t9
addiu sp,sp,-0x30
li v0,0x3
sw s2,0x24(sp)
sw s1,0x20(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s0,0x1c(sp)
lw s2,-0x7fd8(gp)
beq s1,v0,0x0001ddcc
_lw a0,-0xac(s2)
beq a0,zero,0x0001de38
_or s3,a1,zero
lw t9,-0x7e60(gp)
bal 0x0002e824
_or a1,s3,zero
lw gp,0x10(sp)
beq v0,zero,0x0001dd68
_or s0,v0,zero
lw ra,0x2c(sp)
lw v0,0x0(v0)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
li v0,0x1
beq s1,v0,0x0001de54
_nop
beq s1,zero,0x0001de0c
_li v0,0x2
beq s1,v0,0x0001de00
_nop
lw t9,-0x7fa4(gp)
or a0,s3,zero
jalr t9
_lw s1,-0xac(s2)
or a2,s0,zero
lw gp,0x10(sp)
or a1,v0,zero
lw t9,-0x7e68(gp)
bal 0x0002eb8c
_or a0,s1,zero
or v0,zero,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
beq a0,zero,0x0001de18
_lw t9,-0x7e60(gp)
bal 0x0002e824
_nop
beq v0,zero,0x0001de18
_lw ra,0x2c(sp)
lw v0,0x0(v0)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw s0,-0x7fd8(gp)
b 0x0001dd84
_addiu s0,s0,-0x2fe0
lw s0,-0x7fd8(gp)
b 0x0001dd84
_addiu s0,s0,-0xb0
lw ra,0x2c(sp)
or v0,zero,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7e28(gp)
bal 0x0002f26c
_nop
lw gp,0x10(sp)
or a0,v0,zero
b 0x0001dd30
_sw v0,-0xac(s2)
lw s0,-0x7fd8(gp)
b 0x0001dd84
_addiu s0,s0,-0x2fdc
(translation_unit "undefined4 downloaded_file(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_DAT_000af458;\n  iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);\n  if (param_1 == 3) {\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }\n  if (iVar4 == 0) {\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }\n  puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);\n  if (puVar2 != (undefined4 *)0x0) {\n    return *puVar2;\n  }\n  if (param_1 == 1) {\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }\n  else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }\n  uVar6 = *(undefined4 *)(puVar1 + -0xac);\n  uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);\n  hash_table_put(uVar6,uVar3,puVar5);\n  return 0;\n}\n\n" (function_definition "undefined4 downloaded_file(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_DAT_000af458;\n  iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);\n  if (param_1 == 3) {\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }\n  if (iVar4 == 0) {\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }\n  puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);\n  if (puVar2 != (undefined4 *)0x0) {\n    return *puVar2;\n  }\n  if (param_1 == 1) {\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }\n  else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }\n  uVar6 = *(undefined4 *)(puVar1 + -0xac);\n  uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);\n  hash_table_put(uVar6,uVar3,puVar5);\n  return 0;\n}" type_identifier (function_declarator "downloaded_file(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_DAT_000af458;\n  iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);\n  if (param_1 == 3) {\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }\n  if (iVar4 == 0) {\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }\n  puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);\n  if (puVar2 != (undefined4 *)0x0) {\n    return *puVar2;\n  }\n  if (param_1 == 1) {\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }\n  else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }\n  uVar6 = *(undefined4 *)(puVar1 + -0xac);\n  uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);\n  hash_table_put(uVar6,uVar3,puVar5);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_000af458;" (assignment_expression "puVar1 = PTR_DAT_000af458" identifier = identifier) ;) (expression_statement "iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);" (assignment_expression "iVar4 = *(int *)(PTR_DAT_000af458 + -0xac)" identifier = (pointer_expression "*(int *)(PTR_DAT_000af458 + -0xac)" * (cast_expression "(int *)(PTR_DAT_000af458 + -0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000af458 + -0xac)" ( (binary_expression "PTR_DAT_000af458 + -0xac" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 3) {\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 3)" ( (binary_expression "param_1 == 3" identifier == number_literal) )) (compound_statement "{\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }" { (if_statement "if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }" if (parenthesized_expression "((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0))" ( (binary_expression "(iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)" ( (comma_expression "puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0" (assignment_expression "puVar2 = (undefined4 *)hash_table_get()" identifier = (cast_expression "(undefined4 *)hash_table_get()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_table_get()" identifier (argument_list "()" ( ))))) , (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      return *puVar2;\n    }" { (return_statement "return *puVar2;" return (pointer_expression "*puVar2" * identifier) ;) })) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar4 == 0) {\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }" { (expression_statement "iVar4 = make_string_hash_table();" (assignment_expression "iVar4 = make_string_hash_table()" identifier = (call_expression "make_string_hash_table()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(puVar1 + -0xac) = iVar4;" (assignment_expression "*(int *)(puVar1 + -0xac) = iVar4" (pointer_expression "*(int *)(puVar1 + -0xac)" * (cast_expression "(int *)(puVar1 + -0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xac)" ( (binary_expression "puVar1 + -0xac" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);" (assignment_expression "puVar2 = (undefined4 *)hash_table_get(iVar4,param_2)" identifier = (cast_expression "(undefined4 *)hash_table_get(iVar4,param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_table_get(iVar4,param_2)" identifier (argument_list "(iVar4,param_2)" ( identifier , identifier ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    return *puVar2;\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return *puVar2;\n  }" { (return_statement "return *puVar2;" return (pointer_expression "*puVar2" * identifier) ;) })) (if_statement "if (param_1 == 1) {\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }\n  else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }" { (expression_statement "puVar5 = PTR_DAT_000af458 + -0x2fdc;" (assignment_expression "puVar5 = PTR_DAT_000af458 + -0x2fdc" identifier = (binary_expression "PTR_DAT_000af458 + -0x2fdc" identifier + number_literal)) ;) }) (else_clause "else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" else (if_statement "if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }" { (expression_statement "puVar5 = PTR_DAT_000af458 + -0xb0;" (assignment_expression "puVar5 = PTR_DAT_000af458 + -0xb0" identifier = (binary_expression "PTR_DAT_000af458 + -0xb0" identifier + number_literal)) ;) }) (else_clause "else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" else (compound_statement "{\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" { (expression_statement "puVar5 = (undefined *)0x0;" (assignment_expression "puVar5 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }" if (parenthesized_expression "(param_1 == 2)" ( (binary_expression "param_1 == 2" identifier == number_literal) )) (compound_statement "{\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }" { (expression_statement "puVar5 = PTR_DAT_000af458 + -0x2fe0;" (assignment_expression "puVar5 = PTR_DAT_000af458 + -0x2fe0" identifier = (binary_expression "PTR_DAT_000af458 + -0x2fe0" identifier + number_literal)) ;) })) }))))) (expression_statement "uVar6 = *(undefined4 *)(puVar1 + -0xac);" (assignment_expression "uVar6 = *(undefined4 *)(puVar1 + -0xac)" identifier = (pointer_expression "*(undefined4 *)(puVar1 + -0xac)" * (cast_expression "(undefined4 *)(puVar1 + -0xac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xac)" ( (binary_expression "puVar1 + -0xac" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);" (assignment_expression "uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2)" identifier = (call_expression "(*(code *)PTR_xstrdup_000af48c)(param_2)" (parenthesized_expression "(*(code *)PTR_xstrdup_000af48c)" ( (pointer_expression "*(code *)PTR_xstrdup_000af48c" * (cast_expression "(code *)PTR_xstrdup_000af48c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "hash_table_put(uVar6,uVar3,puVar5);" (call_expression "hash_table_put(uVar6,uVar3,puVar5)" identifier (argument_list "(uVar6,uVar3,puVar5)" ( identifier , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "downloaded_file_t downloaded_file(downloaded_file_t mode,char *file)\n\n{\n  undefined *puVar1;\n  downloaded_file_t *pdVar2;\n  void *key;\n  hash_table *phVar3;\n  undefined *value;\n  \n  puVar1 = PTR_host_name_addresses_map_000af458;\n  phVar3 = *(hash_table **)(PTR_host_name_addresses_map_000af458 + -0xac);\n  if (mode == CHECK_FOR_FILE) {\n    if ((phVar3 != (hash_table *)0x0) &&\n       (pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file),\n       pdVar2 != (downloaded_file_t *)0x0)) {\n      return *pdVar2;\n    }\n    return FILE_NOT_ALREADY_DOWNLOADED;\n  }\n  if (phVar3 == (hash_table *)0x0) {\n    phVar3 = make_string_hash_table(0);\n    *(hash_table **)(puVar1 + -0xac) = phVar3;\n  }\n  pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file);\n  if (pdVar2 != (downloaded_file_t *)0x0) {\n    return *pdVar2;\n  }\n  if (mode == FILE_DOWNLOADED_NORMALLY) {\n    value = PTR_host_name_addresses_map_000af458 + -0x2fdc;\n  }\n  else if (mode == FILE_NOT_ALREADY_DOWNLOADED) {\n    value = PTR_host_name_addresses_map_000af458 + -0xb0;\n  }\n  else {\n    value = (undefined *)0x0;\n    if (mode == FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED) {\n      value = PTR_host_name_addresses_map_000af458 + -0x2fe0;\n    }\n  }\n  phVar3 = *(hash_table **)(puVar1 + -0xac);\n  key = (void *)(*(code *)PTR_xstrdup_000af48c)(file);\n  hash_table_put(phVar3,key,value);\n  return FILE_NOT_ALREADY_DOWNLOADED;\n}\n\n" (function_definition "downloaded_file_t downloaded_file(downloaded_file_t mode,char *file)\n\n{\n  undefined *puVar1;\n  downloaded_file_t *pdVar2;\n  void *key;\n  hash_table *phVar3;\n  undefined *value;\n  \n  puVar1 = PTR_host_name_addresses_map_000af458;\n  phVar3 = *(hash_table **)(PTR_host_name_addresses_map_000af458 + -0xac);\n  if (mode == CHECK_FOR_FILE) {\n    if ((phVar3 != (hash_table *)0x0) &&\n       (pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file),\n       pdVar2 != (downloaded_file_t *)0x0)) {\n      return *pdVar2;\n    }\n    return FILE_NOT_ALREADY_DOWNLOADED;\n  }\n  if (phVar3 == (hash_table *)0x0) {\n    phVar3 = make_string_hash_table(0);\n    *(hash_table **)(puVar1 + -0xac) = phVar3;\n  }\n  pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file);\n  if (pdVar2 != (downloaded_file_t *)0x0) {\n    return *pdVar2;\n  }\n  if (mode == FILE_DOWNLOADED_NORMALLY) {\n    value = PTR_host_name_addresses_map_000af458 + -0x2fdc;\n  }\n  else if (mode == FILE_NOT_ALREADY_DOWNLOADED) {\n    value = PTR_host_name_addresses_map_000af458 + -0xb0;\n  }\n  else {\n    value = (undefined *)0x0;\n    if (mode == FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED) {\n      value = PTR_host_name_addresses_map_000af458 + -0x2fe0;\n    }\n  }\n  phVar3 = *(hash_table **)(puVar1 + -0xac);\n  key = (void *)(*(code *)PTR_xstrdup_000af48c)(file);\n  hash_table_put(phVar3,key,value);\n  return FILE_NOT_ALREADY_DOWNLOADED;\n}" type_identifier (function_declarator "downloaded_file(downloaded_file_t mode,char *file)" identifier (parameter_list "(downloaded_file_t mode,char *file)" ( (parameter_declaration "downloaded_file_t mode" type_identifier identifier) , (parameter_declaration "char *file" primitive_type (pointer_declarator "*file" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  downloaded_file_t *pdVar2;\n  void *key;\n  hash_table *phVar3;\n  undefined *value;\n  \n  puVar1 = PTR_host_name_addresses_map_000af458;\n  phVar3 = *(hash_table **)(PTR_host_name_addresses_map_000af458 + -0xac);\n  if (mode == CHECK_FOR_FILE) {\n    if ((phVar3 != (hash_table *)0x0) &&\n       (pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file),\n       pdVar2 != (downloaded_file_t *)0x0)) {\n      return *pdVar2;\n    }\n    return FILE_NOT_ALREADY_DOWNLOADED;\n  }\n  if (phVar3 == (hash_table *)0x0) {\n    phVar3 = make_string_hash_table(0);\n    *(hash_table **)(puVar1 + -0xac) = phVar3;\n  }\n  pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file);\n  if (pdVar2 != (downloaded_file_t *)0x0) {\n    return *pdVar2;\n  }\n  if (mode == FILE_DOWNLOADED_NORMALLY) {\n    value = PTR_host_name_addresses_map_000af458 + -0x2fdc;\n  }\n  else if (mode == FILE_NOT_ALREADY_DOWNLOADED) {\n    value = PTR_host_name_addresses_map_000af458 + -0xb0;\n  }\n  else {\n    value = (undefined *)0x0;\n    if (mode == FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED) {\n      value = PTR_host_name_addresses_map_000af458 + -0x2fe0;\n    }\n  }\n  phVar3 = *(hash_table **)(puVar1 + -0xac);\n  key = (void *)(*(code *)PTR_xstrdup_000af48c)(file);\n  hash_table_put(phVar3,key,value);\n  return FILE_NOT_ALREADY_DOWNLOADED;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "downloaded_file_t *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "void *key;" primitive_type (pointer_declarator "*key" * identifier) ;) (declaration "hash_table *phVar3;" type_identifier (pointer_declarator "*phVar3" * identifier) ;) (declaration "undefined *value;" type_identifier (pointer_declarator "*value" * identifier) ;) (expression_statement "puVar1 = PTR_host_name_addresses_map_000af458;" (assignment_expression "puVar1 = PTR_host_name_addresses_map_000af458" identifier = identifier) ;) (expression_statement "phVar3 = *(hash_table **)(PTR_host_name_addresses_map_000af458 + -0xac);" (assignment_expression "phVar3 = *(hash_table **)(PTR_host_name_addresses_map_000af458 + -0xac)" identifier = (pointer_expression "*(hash_table **)(PTR_host_name_addresses_map_000af458 + -0xac)" * (cast_expression "(hash_table **)(PTR_host_name_addresses_map_000af458 + -0xac)" ( (type_descriptor "hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_host_name_addresses_map_000af458 + -0xac)" ( (binary_expression "PTR_host_name_addresses_map_000af458 + -0xac" identifier + number_literal) ))))) ;) (if_statement "if (mode == CHECK_FOR_FILE) {\n    if ((phVar3 != (hash_table *)0x0) &&\n       (pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file),\n       pdVar2 != (downloaded_file_t *)0x0)) {\n      return *pdVar2;\n    }\n    return FILE_NOT_ALREADY_DOWNLOADED;\n  }" if (parenthesized_expression "(mode == CHECK_FOR_FILE)" ( (binary_expression "mode == CHECK_FOR_FILE" identifier == identifier) )) (compound_statement "{\n    if ((phVar3 != (hash_table *)0x0) &&\n       (pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file),\n       pdVar2 != (downloaded_file_t *)0x0)) {\n      return *pdVar2;\n    }\n    return FILE_NOT_ALREADY_DOWNLOADED;\n  }" { (if_statement "if ((phVar3 != (hash_table *)0x0) &&\n       (pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file),\n       pdVar2 != (downloaded_file_t *)0x0)) {\n      return *pdVar2;\n    }" if (parenthesized_expression "((phVar3 != (hash_table *)0x0) &&\n       (pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file),\n       pdVar2 != (downloaded_file_t *)0x0))" ( (binary_expression "(phVar3 != (hash_table *)0x0) &&\n       (pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file),\n       pdVar2 != (downloaded_file_t *)0x0)" (parenthesized_expression "(phVar3 != (hash_table *)0x0)" ( (binary_expression "phVar3 != (hash_table *)0x0" identifier != (cast_expression "(hash_table *)0x0" ( (type_descriptor "hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file),\n       pdVar2 != (downloaded_file_t *)0x0)" ( (comma_expression "pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file),\n       pdVar2 != (downloaded_file_t *)0x0" (assignment_expression "pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file)" identifier = (cast_expression "(downloaded_file_t *)hash_table_get(phVar3,file)" ( (type_descriptor "downloaded_file_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_table_get(phVar3,file)" identifier (argument_list "(phVar3,file)" ( identifier , identifier ))))) , (binary_expression "pdVar2 != (downloaded_file_t *)0x0" identifier != (cast_expression "(downloaded_file_t *)0x0" ( (type_descriptor "downloaded_file_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      return *pdVar2;\n    }" { (return_statement "return *pdVar2;" return (pointer_expression "*pdVar2" * identifier) ;) })) (return_statement "return FILE_NOT_ALREADY_DOWNLOADED;" return identifier ;) })) (if_statement "if (phVar3 == (hash_table *)0x0) {\n    phVar3 = make_string_hash_table(0);\n    *(hash_table **)(puVar1 + -0xac) = phVar3;\n  }" if (parenthesized_expression "(phVar3 == (hash_table *)0x0)" ( (binary_expression "phVar3 == (hash_table *)0x0" identifier == (cast_expression "(hash_table *)0x0" ( (type_descriptor "hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    phVar3 = make_string_hash_table(0);\n    *(hash_table **)(puVar1 + -0xac) = phVar3;\n  }" { (expression_statement "phVar3 = make_string_hash_table(0);" (assignment_expression "phVar3 = make_string_hash_table(0)" identifier = (call_expression "make_string_hash_table(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (expression_statement "*(hash_table **)(puVar1 + -0xac) = phVar3;" (assignment_expression "*(hash_table **)(puVar1 + -0xac) = phVar3" (pointer_expression "*(hash_table **)(puVar1 + -0xac)" * (cast_expression "(hash_table **)(puVar1 + -0xac)" ( (type_descriptor "hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + -0xac)" ( (binary_expression "puVar1 + -0xac" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file);" (assignment_expression "pdVar2 = (downloaded_file_t *)hash_table_get(phVar3,file)" identifier = (cast_expression "(downloaded_file_t *)hash_table_get(phVar3,file)" ( (type_descriptor "downloaded_file_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_table_get(phVar3,file)" identifier (argument_list "(phVar3,file)" ( identifier , identifier ))))) ;) (if_statement "if (pdVar2 != (downloaded_file_t *)0x0) {\n    return *pdVar2;\n  }" if (parenthesized_expression "(pdVar2 != (downloaded_file_t *)0x0)" ( (binary_expression "pdVar2 != (downloaded_file_t *)0x0" identifier != (cast_expression "(downloaded_file_t *)0x0" ( (type_descriptor "downloaded_file_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return *pdVar2;\n  }" { (return_statement "return *pdVar2;" return (pointer_expression "*pdVar2" * identifier) ;) })) (if_statement "if (mode == FILE_DOWNLOADED_NORMALLY) {\n    value = PTR_host_name_addresses_map_000af458 + -0x2fdc;\n  }\n  else if (mode == FILE_NOT_ALREADY_DOWNLOADED) {\n    value = PTR_host_name_addresses_map_000af458 + -0xb0;\n  }\n  else {\n    value = (undefined *)0x0;\n    if (mode == FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED) {\n      value = PTR_host_name_addresses_map_000af458 + -0x2fe0;\n    }\n  }" if (parenthesized_expression "(mode == FILE_DOWNLOADED_NORMALLY)" ( (binary_expression "mode == FILE_DOWNLOADED_NORMALLY" identifier == identifier) )) (compound_statement "{\n    value = PTR_host_name_addresses_map_000af458 + -0x2fdc;\n  }" { (expression_statement "value = PTR_host_name_addresses_map_000af458 + -0x2fdc;" (assignment_expression "value = PTR_host_name_addresses_map_000af458 + -0x2fdc" identifier = (binary_expression "PTR_host_name_addresses_map_000af458 + -0x2fdc" identifier + number_literal)) ;) }) (else_clause "else if (mode == FILE_NOT_ALREADY_DOWNLOADED) {\n    value = PTR_host_name_addresses_map_000af458 + -0xb0;\n  }\n  else {\n    value = (undefined *)0x0;\n    if (mode == FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED) {\n      value = PTR_host_name_addresses_map_000af458 + -0x2fe0;\n    }\n  }" else (if_statement "if (mode == FILE_NOT_ALREADY_DOWNLOADED) {\n    value = PTR_host_name_addresses_map_000af458 + -0xb0;\n  }\n  else {\n    value = (undefined *)0x0;\n    if (mode == FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED) {\n      value = PTR_host_name_addresses_map_000af458 + -0x2fe0;\n    }\n  }" if (parenthesized_expression "(mode == FILE_NOT_ALREADY_DOWNLOADED)" ( (binary_expression "mode == FILE_NOT_ALREADY_DOWNLOADED" identifier == identifier) )) (compound_statement "{\n    value = PTR_host_name_addresses_map_000af458 + -0xb0;\n  }" { (expression_statement "value = PTR_host_name_addresses_map_000af458 + -0xb0;" (assignment_expression "value = PTR_host_name_addresses_map_000af458 + -0xb0" identifier = (binary_expression "PTR_host_name_addresses_map_000af458 + -0xb0" identifier + number_literal)) ;) }) (else_clause "else {\n    value = (undefined *)0x0;\n    if (mode == FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED) {\n      value = PTR_host_name_addresses_map_000af458 + -0x2fe0;\n    }\n  }" else (compound_statement "{\n    value = (undefined *)0x0;\n    if (mode == FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED) {\n      value = PTR_host_name_addresses_map_000af458 + -0x2fe0;\n    }\n  }" { (expression_statement "value = (undefined *)0x0;" (assignment_expression "value = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (mode == FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED) {\n      value = PTR_host_name_addresses_map_000af458 + -0x2fe0;\n    }" if (parenthesized_expression "(mode == FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED)" ( (binary_expression "mode == FILE_DOWNLOADED_AND_HTML_EXTENSION_ADDED" identifier == identifier) )) (compound_statement "{\n      value = PTR_host_name_addresses_map_000af458 + -0x2fe0;\n    }" { (expression_statement "value = PTR_host_name_addresses_map_000af458 + -0x2fe0;" (assignment_expression "value = PTR_host_name_addresses_map_000af458 + -0x2fe0" identifier = (binary_expression "PTR_host_name_addresses_map_000af458 + -0x2fe0" identifier + number_literal)) ;) })) }))))) (expression_statement "phVar3 = *(hash_table **)(puVar1 + -0xac);" (assignment_expression "phVar3 = *(hash_table **)(puVar1 + -0xac)" identifier = (pointer_expression "*(hash_table **)(puVar1 + -0xac)" * (cast_expression "(hash_table **)(puVar1 + -0xac)" ( (type_descriptor "hash_table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar1 + -0xac)" ( (binary_expression "puVar1 + -0xac" identifier + number_literal) ))))) ;) (expression_statement "key = (void *)(*(code *)PTR_xstrdup_000af48c)(file);" (assignment_expression "key = (void *)(*(code *)PTR_xstrdup_000af48c)(file)" identifier = (cast_expression "(void *)(*(code *)PTR_xstrdup_000af48c)(file)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xstrdup_000af48c)(file)" (parenthesized_expression "(*(code *)PTR_xstrdup_000af48c)" ( (pointer_expression "*(code *)PTR_xstrdup_000af48c" * (cast_expression "(code *)PTR_xstrdup_000af48c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(file)" ( identifier ))))) ;) (expression_statement "hash_table_put(phVar3,key,value);" (call_expression "hash_table_put(phVar3,key,value)" identifier (argument_list "(phVar3,key,value)" ( identifier , identifier , identifier ))) ;) (return_statement "return FILE_NOT_ALREADY_DOWNLOADED;" return identifier ;) })))
(translation_unit "undefined4 downloaded_file(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_DAT_000af458;\n  iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);\n  if (param_1 == 3) {\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }\n  if (iVar4 == 0) {\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }\n  puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);\n  if (puVar2 != (undefined4 *)0x0) {\n    return *puVar2;\n  }\n  if (param_1 == 1) {\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }\n  else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }\n  uVar6 = *(undefined4 *)(puVar1 + -0xac);\n  uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);\n  hash_table_put(uVar6,uVar3,puVar5);\n  return 0;\n}\n\n" (function_definition "undefined4 downloaded_file(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_DAT_000af458;\n  iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);\n  if (param_1 == 3) {\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }\n  if (iVar4 == 0) {\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }\n  puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);\n  if (puVar2 != (undefined4 *)0x0) {\n    return *puVar2;\n  }\n  if (param_1 == 1) {\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }\n  else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }\n  uVar6 = *(undefined4 *)(puVar1 + -0xac);\n  uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);\n  hash_table_put(uVar6,uVar3,puVar5);\n  return 0;\n}" type_identifier (function_declarator "downloaded_file(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_DAT_000af458;\n  iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);\n  if (param_1 == 3) {\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }\n  if (iVar4 == 0) {\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }\n  puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);\n  if (puVar2 != (undefined4 *)0x0) {\n    return *puVar2;\n  }\n  if (param_1 == 1) {\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }\n  else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }\n  uVar6 = *(undefined4 *)(puVar1 + -0xac);\n  uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);\n  hash_table_put(uVar6,uVar3,puVar5);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_000af458;" (assignment_expression "puVar1 = PTR_DAT_000af458" identifier = identifier) ;) (expression_statement "iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);" (assignment_expression "iVar4 = *(int *)(PTR_DAT_000af458 + -0xac)" identifier = (pointer_expression "*(int *)(PTR_DAT_000af458 + -0xac)" * (cast_expression "(int *)(PTR_DAT_000af458 + -0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000af458 + -0xac)" ( (binary_expression "PTR_DAT_000af458 + -0xac" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 3) {\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }" if (parenthesized_expression "(param_1 == 3)" ( (binary_expression "param_1 == 3" identifier == number_literal) )) (compound_statement "{\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }" { (if_statement "if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }" if (parenthesized_expression "((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0))" ( (binary_expression "(iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)" ( (comma_expression "puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0" (assignment_expression "puVar2 = (undefined4 *)hash_table_get()" identifier = (cast_expression "(undefined4 *)hash_table_get()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_table_get()" identifier (argument_list "()" ( ))))) , (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n      return *puVar2;\n    }" { (return_statement "return *puVar2;" return (pointer_expression "*puVar2" * identifier) ;) })) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (iVar4 == 0) {\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }" { (expression_statement "iVar4 = make_string_hash_table();" (assignment_expression "iVar4 = make_string_hash_table()" identifier = (call_expression "make_string_hash_table()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(int *)(puVar1 + -0xac) = iVar4;" (assignment_expression "*(int *)(puVar1 + -0xac) = iVar4" (pointer_expression "*(int *)(puVar1 + -0xac)" * (cast_expression "(int *)(puVar1 + -0xac)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xac)" ( (binary_expression "puVar1 + -0xac" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);" (assignment_expression "puVar2 = (undefined4 *)hash_table_get(iVar4,param_2)" identifier = (cast_expression "(undefined4 *)hash_table_get(iVar4,param_2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_table_get(iVar4,param_2)" identifier (argument_list "(iVar4,param_2)" ( identifier , identifier ))))) ;) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    return *puVar2;\n  }" if (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" ( (binary_expression "puVar2 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return *puVar2;\n  }" { (return_statement "return *puVar2;" return (pointer_expression "*puVar2" * identifier) ;) })) (if_statement "if (param_1 == 1) {\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }\n  else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }" { (expression_statement "puVar5 = PTR_DAT_000af458 + -0x2fdc;" (assignment_expression "puVar5 = PTR_DAT_000af458 + -0x2fdc" identifier = (binary_expression "PTR_DAT_000af458 + -0x2fdc" identifier + number_literal)) ;) }) (else_clause "else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" else (if_statement "if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }" { (expression_statement "puVar5 = PTR_DAT_000af458 + -0xb0;" (assignment_expression "puVar5 = PTR_DAT_000af458 + -0xb0" identifier = (binary_expression "PTR_DAT_000af458 + -0xb0" identifier + number_literal)) ;) }) (else_clause "else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" else (compound_statement "{\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" { (expression_statement "puVar5 = (undefined *)0x0;" (assignment_expression "puVar5 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }" if (parenthesized_expression "(param_1 == 2)" ( (binary_expression "param_1 == 2" identifier == number_literal) )) (compound_statement "{\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }" { (expression_statement "puVar5 = PTR_DAT_000af458 + -0x2fe0;" (assignment_expression "puVar5 = PTR_DAT_000af458 + -0x2fe0" identifier = (binary_expression "PTR_DAT_000af458 + -0x2fe0" identifier + number_literal)) ;) })) }))))) (expression_statement "uVar6 = *(undefined4 *)(puVar1 + -0xac);" (assignment_expression "uVar6 = *(undefined4 *)(puVar1 + -0xac)" identifier = (pointer_expression "*(undefined4 *)(puVar1 + -0xac)" * (cast_expression "(undefined4 *)(puVar1 + -0xac)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xac)" ( (binary_expression "puVar1 + -0xac" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);" (assignment_expression "uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2)" identifier = (call_expression "(*(code *)PTR_xstrdup_000af48c)(param_2)" (parenthesized_expression "(*(code *)PTR_xstrdup_000af48c)" ( (pointer_expression "*(code *)PTR_xstrdup_000af48c" * (cast_expression "(code *)PTR_xstrdup_000af48c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "hash_table_put(uVar6,uVar3,puVar5);" (call_expression "hash_table_put(uVar6,uVar3,puVar5)" identifier (argument_list "(uVar6,uVar3,puVar5)" ( identifier , identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) , (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (return_statement return (pointer_expression * IDENT) ;) })) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (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 { (return_statement return (pointer_expression * IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }))))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 downloaded_file(int param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_DAT_000af458;\n  iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);\n  if (param_1 == 3) {\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }\n  if (iVar4 == 0) {\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }\n  puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);\n  if (puVar2 != (undefined4 *)0x0) {\n    return *puVar2;\n  }\n  if (param_1 == 1) {\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }\n  else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }\n  uVar6 = *(undefined4 *)(puVar1 + -0xac);\n  uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);\n  hash_table_put(uVar6,uVar3,puVar5);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "downloaded_file(int param_1,undefined4 param_2)" (identifier "downloaded_file") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 uVar6;\n  \n  puVar1 = PTR_DAT_000af458;\n  iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);\n  if (param_1 == 3) {\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }\n  if (iVar4 == 0) {\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }\n  puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);\n  if (puVar2 != (undefined4 *)0x0) {\n    return *puVar2;\n  }\n  if (param_1 == 1) {\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }\n  else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }\n  uVar6 = *(undefined4 *)(puVar1 + -0xac);\n  uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);\n  hash_table_put(uVar6,uVar3,puVar5);\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (expression_statement "puVar1 = PTR_DAT_000af458;" (assignment_expression "puVar1 = PTR_DAT_000af458" (identifier "puVar1") (= "=") (identifier "PTR_DAT_000af458")) (; ";")) (expression_statement "iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);" (assignment_expression "iVar4 = *(int *)(PTR_DAT_000af458 + -0xac)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(PTR_DAT_000af458 + -0xac)" (* "*") (cast_expression "(int *)(PTR_DAT_000af458 + -0xac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000af458 + -0xac)" (( "(") (binary_expression "PTR_DAT_000af458 + -0xac" (identifier "PTR_DAT_000af458") (+ "+") (number_literal "-0xac")) () ")"))))) (; ";")) (if_statement "if (param_1 == 3) {\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == 3)" (( "(") (binary_expression "param_1 == 3" (identifier "param_1") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }\n    return 0;\n  }" ({ "{") (if_statement "if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {\n      return *puVar2;\n    }" (if "if") (parenthesized_expression "((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0))" (( "(") (binary_expression "(iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)" (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)" (( "(") (comma_expression "puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0" (assignment_expression "puVar2 = (undefined4 *)hash_table_get()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)hash_table_get()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "hash_table_get()" (identifier "hash_table_get") (argument_list "()" (( "(") () ")"))))) (, ",") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n      return *puVar2;\n    }" ({ "{") (return_statement "return *puVar2;" (return "return") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (iVar4 == 0) {\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = make_string_hash_table();\n    *(int *)(puVar1 + -0xac) = iVar4;\n  }" ({ "{") (expression_statement "iVar4 = make_string_hash_table();" (assignment_expression "iVar4 = make_string_hash_table()" (identifier "iVar4") (= "=") (call_expression "make_string_hash_table()" (identifier "make_string_hash_table") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(int *)(puVar1 + -0xac) = iVar4;" (assignment_expression "*(int *)(puVar1 + -0xac) = iVar4" (pointer_expression "*(int *)(puVar1 + -0xac)" (* "*") (cast_expression "(int *)(puVar1 + -0xac)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0xac)" (( "(") (binary_expression "puVar1 + -0xac" (identifier "puVar1") (+ "+") (number_literal "-0xac")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);" (assignment_expression "puVar2 = (undefined4 *)hash_table_get(iVar4,param_2)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)hash_table_get(iVar4,param_2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "hash_table_get(iVar4,param_2)" (identifier "hash_table_get") (argument_list "(iVar4,param_2)" (( "(") (identifier "iVar4") (, ",") (identifier "param_2") () ")"))))) (; ";")) (if_statement "if (puVar2 != (undefined4 *)0x0) {\n    return *puVar2;\n  }" (if "if") (parenthesized_expression "(puVar2 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined4 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return *puVar2;\n  }" ({ "{") (return_statement "return *puVar2;" (return "return") (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (} "}"))) (if_statement "if (param_1 == 1) {\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }\n  else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 1)" (( "(") (binary_expression "param_1 == 1" (identifier "param_1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    puVar5 = PTR_DAT_000af458 + -0x2fdc;\n  }" ({ "{") (expression_statement "puVar5 = PTR_DAT_000af458 + -0x2fdc;" (assignment_expression "puVar5 = PTR_DAT_000af458 + -0x2fdc" (identifier "puVar5") (= "=") (binary_expression "PTR_DAT_000af458 + -0x2fdc" (identifier "PTR_DAT_000af458") (+ "+") (number_literal "-0x2fdc"))) (; ";")) (} "}")) (else_clause "else if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" (else "else") (if_statement "if (param_1 == 0) {\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }\n  else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    puVar5 = PTR_DAT_000af458 + -0xb0;\n  }" ({ "{") (expression_statement "puVar5 = PTR_DAT_000af458 + -0xb0;" (assignment_expression "puVar5 = PTR_DAT_000af458 + -0xb0" (identifier "puVar5") (= "=") (binary_expression "PTR_DAT_000af458 + -0xb0" (identifier "PTR_DAT_000af458") (+ "+") (number_literal "-0xb0"))) (; ";")) (} "}")) (else_clause "else {\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" (else "else") (compound_statement "{\n    puVar5 = (undefined *)0x0;\n    if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }\n  }" ({ "{") (expression_statement "puVar5 = (undefined *)0x0;" (assignment_expression "puVar5 = (undefined *)0x0" (identifier "puVar5") (= "=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if (param_1 == 2) {\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }" (if "if") (parenthesized_expression "(param_1 == 2)" (( "(") (binary_expression "param_1 == 2" (identifier "param_1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      puVar5 = PTR_DAT_000af458 + -0x2fe0;\n    }" ({ "{") (expression_statement "puVar5 = PTR_DAT_000af458 + -0x2fe0;" (assignment_expression "puVar5 = PTR_DAT_000af458 + -0x2fe0" (identifier "puVar5") (= "=") (binary_expression "PTR_DAT_000af458 + -0x2fe0" (identifier "PTR_DAT_000af458") (+ "+") (number_literal "-0x2fe0"))) (; ";")) (} "}"))) (} "}")))))) (expression_statement "uVar6 = *(undefined4 *)(puVar1 + -0xac);" (assignment_expression "uVar6 = *(undefined4 *)(puVar1 + -0xac)" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)(puVar1 + -0xac)" (* "*") (cast_expression "(undefined4 *)(puVar1 + -0xac)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0xac)" (( "(") (binary_expression "puVar1 + -0xac" (identifier "puVar1") (+ "+") (number_literal "-0xac")) () ")"))))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);" (assignment_expression "uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_xstrdup_000af48c)(param_2)" (parenthesized_expression "(*(code *)PTR_xstrdup_000af48c)" (( "(") (pointer_expression "*(code *)PTR_xstrdup_000af48c" (* "*") (cast_expression "(code *)PTR_xstrdup_000af48c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xstrdup_000af48c"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "hash_table_put(uVar6,uVar3,puVar5);" (call_expression "hash_table_put(uVar6,uVar3,puVar5)" (identifier "hash_table_put") (argument_list "(uVar6,uVar3,puVar5)" (( "(") (identifier "uVar6") (, ",") (identifier "uVar3") (, ",") (identifier "puVar5") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1 function_1(type_1 var_2,char *file)

{
  type_2 *var_8;
  type_1 *var_6;
  void *key;
  type_3 *var_4;
  type_2 *value;
  
  var_8 = var_1;
  var_4 = *(type_3 **)(var_1 + -0xac);
  if (var_2 == var_3) {
    if ((var_4 != (type_3 *)0x0) &&
       (var_6 = (type_1 *)var_5(var_4,file),
       var_6 != (type_1 *)0x0)) {
      return *var_6;
    }
    return var_10;
  }
  if (var_4 == (type_3 *)0x0) {
    var_4 = var_7(0);
    *(type_3 **)(var_8 + -0xac) = var_4;
  }
  var_6 = (type_1 *)var_5(var_4,file);
  if (var_6 != (type_1 *)0x0) {
    return *var_6;
  }
  if (var_2 == var_9) {
    value = var_1 + -0x2fdc;
  }
  else if (var_2 == var_10) {
    value = var_1 + -0xb0;
  }
  else {
    value = (type_2 *)0x0;
    if (var_2 == var_11) {
      value = var_1 + -0x2fe0;
    }
  }
  var_4 = *(type_3 **)(var_8 + -0xac);
  key = (void *)(*(type_4 *)PTR_xstrdup_000af48c)(file);
  var_12(var_4,key,value);
  return var_10;
}


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

undefined4 MASKED(int param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  int iVar4;
  undefined *puVar5;
  undefined4 uVar6;
  
  puVar1 = PTR_DAT_000af458;
  iVar4 = *(int *)(PTR_DAT_000af458 + -0xac);
  if (param_1 == 3) {
    if ((iVar4 != 0) && (puVar2 = (undefined4 *)hash_table_get(), puVar2 != (undefined4 *)0x0)) {
      return *puVar2;
    }
    return 0;
  }
  if (iVar4 == 0) {
    iVar4 = make_string_hash_table();
    *(int *)(puVar1 + -0xac) = iVar4;
  }
  puVar2 = (undefined4 *)hash_table_get(iVar4,param_2);
  if (puVar2 != (undefined4 *)0x0) {
    return *puVar2;
  }
  if (param_1 == 1) {
    puVar5 = PTR_DAT_000af458 + -0x2fdc;
  }
  else if (param_1 == 0) {
    puVar5 = PTR_DAT_000af458 + -0xb0;
  }
  else {
    puVar5 = (undefined *)0x0;
    if (param_1 == 2) {
      puVar5 = PTR_DAT_000af458 + -0x2fe0;
    }
  }
  uVar6 = *(undefined4 *)(puVar1 + -0xac);
  uVar3 = (*(code *)PTR_xstrdup_000af48c)(param_2);
  hash_table_put(uVar6,uVar3,puVar5);
  return 0;
}

