
char * url_error(char *url,int error_code)

{
  undefined *puVar1;
  char *pcVar2;
  char *pcVar3;
  undefined1 *puVar4;
  int iVar5;
  char *pcVar6;
  
  if (error_code == 1) {
    pcVar2 = xstrdup(url);
    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(pcVar2,0x3a);
    puVar1 = PTR_DAT_000b758c;
    if (puVar4 != (undefined1 *)0x0) {
      *puVar4 = 0;
    }
    iVar5 = c_strcasecmp(pcVar2,puVar1 + -0xc60);
    if (iVar5 == 0) {
      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);
      pcVar3 = aprintf(pcVar3);
    }
    else {
      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);
      pcVar6 = quote(pcVar2);
      pcVar3 = aprintf(pcVar3,pcVar6);
    }
    (*(code *)PTR_free_000b7d34)(pcVar2);
  }
  else {
    pcVar2 = (char *)(*(code *)PTR_dcgettext_000b7d20)
                               (0,*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0),5);
    pcVar3 = xstrdup(pcVar2);
  }
  return pcVar3;
}



undefined4 url_error(undefined4 param_1,int param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined1 *puVar4;
  int iVar5;
  undefined4 uVar6;
  
  if (param_2 == 1) {
    uVar2 = xstrdup();
    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);
    puVar1 = PTR_DAT_000b758c;
    if (puVar4 != (undefined1 *)0x0) {
      *puVar4 = 0;
    }
    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);
    if (iVar5 == 0) {
      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);
      uVar3 = aprintf(uVar3);
    }
    else {
      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);
      uVar6 = quote(uVar2);
      uVar3 = aprintf(uVar3,uVar6);
    }
    (*(code *)PTR_free_000b7d34)(uVar2);
  }
  else {
    uVar2 = (*(code *)PTR_dcgettext_000b7d20)
                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);
    uVar3 = xstrdup(uVar2);
  }
  return uVar3;
}


lui gp,0x7
addiu gp,gp,-0x57bc
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
sw gp,0x10(sp)
li v0,0x1
beq a1,v0,0x00054c70
_sll a1,a1,0x2
lw v0,-0x7fd8(gp)
addiu v0,v0,0x47d0
addu a1,a1,v0
li a2,0x5
lw a1,0x0(a1)
or a0,zero,zero
lw t9,-0x7710(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x7f3c(gp)
bal 0x00072050
_nop
lw gp,0x10(sp)
or s0,v0,zero
or v0,s0,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7f3c(gp)
bal 0x00072050
_nop
lw gp,0x10(sp)
or s1,v0,zero
li a1,0x3a
or a0,v0,zero
lw t9,-0x763c(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x00054ca8
_lw a1,-0x7ea4(gp)
sb zero,0x0(v0)
addiu a1,a1,-0xc60
or a0,s1,zero
lw t9,-0x7d34(gp)
bal 0x000686b0
_nop
lw gp,0x10(sp)
bne v0,zero,0x00054d18
_li a2,0x5
lw a1,-0x7ea4(gp)
addiu a1,a1,-0xc58
or a0,zero,zero
lw t9,-0x7710(gp)
jalr t9
_nop
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x7f90(gp)
bal 0x0005b3b4
_nop
lw gp,0x10(sp)
or s0,v0,zero
or a0,s1,zero
lw t9,-0x76fc(gp)
jalr t9
_nop
lw gp,0x10(sp)
b 0x00054c5c
_or v0,s0,zero
lw a1,-0x7ea4(gp)
addiu a1,a1,-0xc38
or a0,zero,zero
lw t9,-0x7710(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s0,v0,zero
or a0,s1,zero
lw t9,-0x7f78(gp)
bal 0x000718e0
_nop
lw gp,0x10(sp)
or a1,v0,zero
or a0,s0,zero
lw t9,-0x7f90(gp)
bal 0x0005b3b4
_nop
lw gp,0x10(sp)
b 0x00054cfc
_or s0,v0,zero
(translation_unit "undefined4 url_error(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  if (param_2 == 1) {\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }\n  else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 url_error(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  if (param_2 == 1) {\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }\n  else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }\n  return uVar3;\n}" type_identifier (function_declarator "url_error(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  if (param_2 == 1) {\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }\n  else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }\n  return uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (if_statement "if (param_2 == 1) {\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }\n  else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }" { (expression_statement "uVar2 = xstrdup();" (assignment_expression "uVar2 = xstrdup()" identifier = (call_expression "xstrdup()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);" (assignment_expression "puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a)" (parenthesized_expression "(*(code *)PTR_strchr_000b7df4)" ( (pointer_expression "*(code *)PTR_strchr_000b7df4" * (cast_expression "(code *)PTR_strchr_000b7df4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,0x3a)" ( identifier , number_literal ))))) ;) (expression_statement "puVar1 = PTR_DAT_000b758c;" (assignment_expression "puVar1 = PTR_DAT_000b758c" identifier = identifier) ;) (if_statement "if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }" if (parenthesized_expression "(puVar4 != (undefined1 *)0x0)" ( (binary_expression "puVar4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *puVar4 = 0;\n    }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) })) (expression_statement "iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);" (assignment_expression "iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60)" identifier = (call_expression "c_strcasecmp(uVar2,puVar1 + -0xc60)" identifier (argument_list "(uVar2,puVar1 + -0xc60)" ( identifier , (binary_expression "puVar1 + -0xc60" identifier + number_literal) )))) ;) (if_statement "if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58)" identifier = (call_expression "(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58)" (parenthesized_expression "(*(code *)PTR_dcgettext_000b7d20)" ( (pointer_expression "*(code *)PTR_dcgettext_000b7d20" * (cast_expression "(code *)PTR_dcgettext_000b7d20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_000b758c + -0xc58)" ( number_literal , (binary_expression "PTR_DAT_000b758c + -0xc58" identifier + number_literal) )))) ;) (expression_statement "uVar3 = aprintf(uVar3);" (assignment_expression "uVar3 = aprintf(uVar3)" identifier = (call_expression "aprintf(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) }) (else_clause "else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }" else (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000b7d20)" ( (pointer_expression "*(code *)PTR_dcgettext_000b7d20" * (cast_expression "(code *)PTR_dcgettext_000b7d20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_000b758c + -0xc38,5)" ( number_literal , (binary_expression "PTR_DAT_000b758c + -0xc38" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar6 = quote(uVar2);" (assignment_expression "uVar6 = quote(uVar2)" identifier = (call_expression "quote(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar3 = aprintf(uVar3,uVar6);" (assignment_expression "uVar3 = aprintf(uVar3,uVar6)" identifier = (call_expression "aprintf(uVar3,uVar6)" identifier (argument_list "(uVar3,uVar6)" ( identifier , identifier )))) ;) }))) (expression_statement "(*(code *)PTR_free_000b7d34)(uVar2);" (call_expression "(*(code *)PTR_free_000b7d34)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_000b7d34)" ( (pointer_expression "*(code *)PTR_free_000b7d34" * (cast_expression "(code *)PTR_free_000b7d34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) }) (else_clause "else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }" else (compound_statement "{\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }" { (expression_statement "uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000b7d20)" ( (pointer_expression "*(code *)PTR_dcgettext_000b7d20" * (cast_expression "(code *)PTR_dcgettext_000b7d20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5)" ( number_literal , (pointer_expression "*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0)" ( (binary_expression "PTR_DAT_000b7458 + param_2 * 4 + 0x47d0" (binary_expression "PTR_DAT_000b7458 + param_2 * 4" identifier + (binary_expression "param_2 * 4" identifier * number_literal)) + number_literal) )))) , number_literal )))) ;) (expression_statement "uVar3 = xstrdup(uVar2);" (assignment_expression "uVar3 = xstrdup(uVar2)" identifier = (call_expression "xstrdup(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "char * url_error(char *url,int error_code)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  if (error_code == 1) {\n    pcVar2 = xstrdup(url);\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(pcVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(pcVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      pcVar3 = aprintf(pcVar3);\n    }\n    else {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      pcVar6 = quote(pcVar2);\n      pcVar3 = aprintf(pcVar3,pcVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(pcVar2);\n  }\n  else {\n    pcVar2 = (char *)(*(code *)PTR_dcgettext_000b7d20)\n                               (0,*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0),5);\n    pcVar3 = xstrdup(pcVar2);\n  }\n  return pcVar3;\n}\n\n" (function_definition "char * url_error(char *url,int error_code)\n\n{\n  undefined *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  if (error_code == 1) {\n    pcVar2 = xstrdup(url);\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(pcVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(pcVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      pcVar3 = aprintf(pcVar3);\n    }\n    else {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      pcVar6 = quote(pcVar2);\n      pcVar3 = aprintf(pcVar3,pcVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(pcVar2);\n  }\n  else {\n    pcVar2 = (char *)(*(code *)PTR_dcgettext_000b7d20)\n                               (0,*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0),5);\n    pcVar3 = xstrdup(pcVar2);\n  }\n  return pcVar3;\n}" primitive_type (pointer_declarator "* url_error(char *url,int error_code)" * (function_declarator "url_error(char *url,int error_code)" identifier (parameter_list "(char *url,int error_code)" ( (parameter_declaration "char *url" primitive_type (pointer_declarator "*url" * identifier)) , (parameter_declaration "int error_code" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  char *pcVar2;\n  char *pcVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  char *pcVar6;\n  \n  if (error_code == 1) {\n    pcVar2 = xstrdup(url);\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(pcVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(pcVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      pcVar3 = aprintf(pcVar3);\n    }\n    else {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      pcVar6 = quote(pcVar2);\n      pcVar3 = aprintf(pcVar3,pcVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(pcVar2);\n  }\n  else {\n    pcVar2 = (char *)(*(code *)PTR_dcgettext_000b7d20)\n                               (0,*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0),5);\n    pcVar3 = xstrdup(pcVar2);\n  }\n  return pcVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (if_statement "if (error_code == 1) {\n    pcVar2 = xstrdup(url);\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(pcVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(pcVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      pcVar3 = aprintf(pcVar3);\n    }\n    else {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      pcVar6 = quote(pcVar2);\n      pcVar3 = aprintf(pcVar3,pcVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(pcVar2);\n  }\n  else {\n    pcVar2 = (char *)(*(code *)PTR_dcgettext_000b7d20)\n                               (0,*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0),5);\n    pcVar3 = xstrdup(pcVar2);\n  }" if (parenthesized_expression "(error_code == 1)" ( (binary_expression "error_code == 1" identifier == number_literal) )) (compound_statement "{\n    pcVar2 = xstrdup(url);\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(pcVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(pcVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      pcVar3 = aprintf(pcVar3);\n    }\n    else {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      pcVar6 = quote(pcVar2);\n      pcVar3 = aprintf(pcVar3,pcVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(pcVar2);\n  }" { (expression_statement "pcVar2 = xstrdup(url);" (assignment_expression "pcVar2 = xstrdup(url)" identifier = (call_expression "xstrdup(url)" identifier (argument_list "(url)" ( identifier )))) ;) (expression_statement "puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(pcVar2,0x3a);" (assignment_expression "puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(pcVar2,0x3a)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_strchr_000b7df4)(pcVar2,0x3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_000b7df4)(pcVar2,0x3a)" (parenthesized_expression "(*(code *)PTR_strchr_000b7df4)" ( (pointer_expression "*(code *)PTR_strchr_000b7df4" * (cast_expression "(code *)PTR_strchr_000b7df4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2,0x3a)" ( identifier , number_literal ))))) ;) (expression_statement "puVar1 = PTR_DAT_000b758c;" (assignment_expression "puVar1 = PTR_DAT_000b758c" identifier = identifier) ;) (if_statement "if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }" if (parenthesized_expression "(puVar4 != (undefined1 *)0x0)" ( (binary_expression "puVar4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *puVar4 = 0;\n    }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) })) (expression_statement "iVar5 = c_strcasecmp(pcVar2,puVar1 + -0xc60);" (assignment_expression "iVar5 = c_strcasecmp(pcVar2,puVar1 + -0xc60)" identifier = (call_expression "c_strcasecmp(pcVar2,puVar1 + -0xc60)" identifier (argument_list "(pcVar2,puVar1 + -0xc60)" ( identifier , (binary_expression "puVar1 + -0xc60" identifier + number_literal) )))) ;) (if_statement "if (iVar5 == 0) {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      pcVar3 = aprintf(pcVar3);\n    }\n    else {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      pcVar6 = quote(pcVar2);\n      pcVar3 = aprintf(pcVar3,pcVar6);\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      pcVar3 = aprintf(pcVar3);\n    }" { (expression_statement "pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58)" (parenthesized_expression "(*(code *)PTR_dcgettext_000b7d20)" ( (pointer_expression "*(code *)PTR_dcgettext_000b7d20" * (cast_expression "(code *)PTR_dcgettext_000b7d20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_000b758c + -0xc58)" ( number_literal , (binary_expression "PTR_DAT_000b758c + -0xc58" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = aprintf(pcVar3);" (assignment_expression "pcVar3 = aprintf(pcVar3)" identifier = (call_expression "aprintf(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) }) (else_clause "else {\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      pcVar6 = quote(pcVar2);\n      pcVar3 = aprintf(pcVar3,pcVar6);\n    }" else (compound_statement "{\n      pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      pcVar6 = quote(pcVar2);\n      pcVar3 = aprintf(pcVar3,pcVar6);\n    }" { (expression_statement "pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);" (assignment_expression "pcVar3 = (char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000b7d20)" ( (pointer_expression "*(code *)PTR_dcgettext_000b7d20" * (cast_expression "(code *)PTR_dcgettext_000b7d20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_000b758c + -0xc38,5)" ( number_literal , (binary_expression "PTR_DAT_000b758c + -0xc38" identifier + number_literal) , number_literal ))))) ;) (expression_statement "pcVar6 = quote(pcVar2);" (assignment_expression "pcVar6 = quote(pcVar2)" identifier = (call_expression "quote(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "pcVar3 = aprintf(pcVar3,pcVar6);" (assignment_expression "pcVar3 = aprintf(pcVar3,pcVar6)" identifier = (call_expression "aprintf(pcVar3,pcVar6)" identifier (argument_list "(pcVar3,pcVar6)" ( identifier , identifier )))) ;) }))) (expression_statement "(*(code *)PTR_free_000b7d34)(pcVar2);" (call_expression "(*(code *)PTR_free_000b7d34)(pcVar2)" (parenthesized_expression "(*(code *)PTR_free_000b7d34)" ( (pointer_expression "*(code *)PTR_free_000b7d34" * (cast_expression "(code *)PTR_free_000b7d34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier ))) ;) }) (else_clause "else {\n    pcVar2 = (char *)(*(code *)PTR_dcgettext_000b7d20)\n                               (0,*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0),5);\n    pcVar3 = xstrdup(pcVar2);\n  }" else (compound_statement "{\n    pcVar2 = (char *)(*(code *)PTR_dcgettext_000b7d20)\n                               (0,*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0),5);\n    pcVar3 = xstrdup(pcVar2);\n  }" { (expression_statement "pcVar2 = (char *)(*(code *)PTR_dcgettext_000b7d20)\n                               (0,*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0),5);" (assignment_expression "pcVar2 = (char *)(*(code *)PTR_dcgettext_000b7d20)\n                               (0,*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0),5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_000b7d20)\n                               (0,*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0),5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_000b7d20)\n                               (0,*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0),5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000b7d20)" ( (pointer_expression "*(code *)PTR_dcgettext_000b7d20" * (cast_expression "(code *)PTR_dcgettext_000b7d20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0),5)" ( number_literal , (pointer_expression "*(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7458 + error_code * 4 + 0x47d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7458 + error_code * 4 + 0x47d0)" ( (binary_expression "PTR_DAT_000b7458 + error_code * 4 + 0x47d0" (binary_expression "PTR_DAT_000b7458 + error_code * 4" identifier + (binary_expression "error_code * 4" identifier * number_literal)) + number_literal) )))) , number_literal ))))) ;) (expression_statement "pcVar3 = xstrdup(pcVar2);" (assignment_expression "pcVar3 = xstrdup(pcVar2)" identifier = (call_expression "xstrdup(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) }))) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "undefined4 url_error(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  if (param_2 == 1) {\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }\n  else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }\n  return uVar3;\n}\n\n" (function_definition "undefined4 url_error(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  if (param_2 == 1) {\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }\n  else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }\n  return uVar3;\n}" type_identifier (function_declarator "url_error(undefined4 param_1,int param_2)" identifier (parameter_list "(undefined4 param_1,int param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  if (param_2 == 1) {\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }\n  else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }\n  return uVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (if_statement "if (param_2 == 1) {\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }\n  else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }" { (expression_statement "uVar2 = xstrdup();" (assignment_expression "uVar2 = xstrdup()" identifier = (call_expression "xstrdup()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);" (assignment_expression "puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a)" (parenthesized_expression "(*(code *)PTR_strchr_000b7df4)" ( (pointer_expression "*(code *)PTR_strchr_000b7df4" * (cast_expression "(code *)PTR_strchr_000b7df4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2,0x3a)" ( identifier , number_literal ))))) ;) (expression_statement "puVar1 = PTR_DAT_000b758c;" (assignment_expression "puVar1 = PTR_DAT_000b758c" identifier = identifier) ;) (if_statement "if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }" if (parenthesized_expression "(puVar4 != (undefined1 *)0x0)" ( (binary_expression "puVar4 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *puVar4 = 0;\n    }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) })) (expression_statement "iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);" (assignment_expression "iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60)" identifier = (call_expression "c_strcasecmp(uVar2,puVar1 + -0xc60)" identifier (argument_list "(uVar2,puVar1 + -0xc60)" ( identifier , (binary_expression "puVar1 + -0xc60" identifier + number_literal) )))) ;) (if_statement "if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58)" identifier = (call_expression "(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58)" (parenthesized_expression "(*(code *)PTR_dcgettext_000b7d20)" ( (pointer_expression "*(code *)PTR_dcgettext_000b7d20" * (cast_expression "(code *)PTR_dcgettext_000b7d20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_000b758c + -0xc58)" ( number_literal , (binary_expression "PTR_DAT_000b758c + -0xc58" identifier + number_literal) )))) ;) (expression_statement "uVar3 = aprintf(uVar3);" (assignment_expression "uVar3 = aprintf(uVar3)" identifier = (call_expression "aprintf(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) }) (else_clause "else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }" else (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }" { (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000b7d20)" ( (pointer_expression "*(code *)PTR_dcgettext_000b7d20" * (cast_expression "(code *)PTR_dcgettext_000b7d20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_DAT_000b758c + -0xc38,5)" ( number_literal , (binary_expression "PTR_DAT_000b758c + -0xc38" identifier + number_literal) , number_literal )))) ;) (expression_statement "uVar6 = quote(uVar2);" (assignment_expression "uVar6 = quote(uVar2)" identifier = (call_expression "quote(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar3 = aprintf(uVar3,uVar6);" (assignment_expression "uVar3 = aprintf(uVar3,uVar6)" identifier = (call_expression "aprintf(uVar3,uVar6)" identifier (argument_list "(uVar3,uVar6)" ( identifier , identifier )))) ;) }))) (expression_statement "(*(code *)PTR_free_000b7d34)(uVar2);" (call_expression "(*(code *)PTR_free_000b7d34)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_000b7d34)" ( (pointer_expression "*(code *)PTR_free_000b7d34" * (cast_expression "(code *)PTR_free_000b7d34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier ))) ;) }) (else_clause "else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }" else (compound_statement "{\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }" { (expression_statement "uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000b7d20)" ( (pointer_expression "*(code *)PTR_dcgettext_000b7d20" * (cast_expression "(code *)PTR_dcgettext_000b7d20" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5)" ( number_literal , (pointer_expression "*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0)" * (cast_expression "(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0)" ( (binary_expression "PTR_DAT_000b7458 + param_2 * 4 + 0x47d0" (binary_expression "PTR_DAT_000b7458 + param_2 * 4" identifier + (binary_expression "param_2 * 4" identifier * number_literal)) + number_literal) )))) , number_literal )))) ;) (expression_statement "uVar3 = xstrdup(uVar2);" (assignment_expression "uVar3 = xstrdup(uVar2)" identifier = (call_expression "xstrdup(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 url_error(undefined4 param_1,int param_2)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  if (param_2 == 1) {\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }\n  else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "url_error(undefined4 param_1,int param_2)" (identifier "url_error") (parameter_list "(undefined4 param_1,int param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 *puVar4;\n  int iVar5;\n  undefined4 uVar6;\n  \n  if (param_2 == 1) {\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }\n  else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }\n  return uVar3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (if_statement "if (param_2 == 1) {\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }\n  else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }" (if "if") (parenthesized_expression "(param_2 == 1)" (( "(") (binary_expression "param_2 == 1" (identifier "param_2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    uVar2 = xstrdup();\n    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);\n    puVar1 = PTR_DAT_000b758c;\n    if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }\n    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);\n    if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }\n    (*(code *)PTR_free_000b7d34)(uVar2);\n  }" ({ "{") (expression_statement "uVar2 = xstrdup();" (assignment_expression "uVar2 = xstrdup()" (identifier "uVar2") (= "=") (call_expression "xstrdup()" (identifier "xstrdup") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);" (assignment_expression "puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a)" (parenthesized_expression "(*(code *)PTR_strchr_000b7df4)" (( "(") (pointer_expression "*(code *)PTR_strchr_000b7df4" (* "*") (cast_expression "(code *)PTR_strchr_000b7df4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_000b7df4"))) () ")")) (argument_list "(uVar2,0x3a)" (( "(") (identifier "uVar2") (, ",") (number_literal "0x3a") () ")"))))) (; ";")) (expression_statement "puVar1 = PTR_DAT_000b758c;" (assignment_expression "puVar1 = PTR_DAT_000b758c" (identifier "puVar1") (= "=") (identifier "PTR_DAT_000b758c")) (; ";")) (if_statement "if (puVar4 != (undefined1 *)0x0) {\n      *puVar4 = 0;\n    }" (if "if") (parenthesized_expression "(puVar4 != (undefined1 *)0x0)" (( "(") (binary_expression "puVar4 != (undefined1 *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *puVar4 = 0;\n    }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);" (assignment_expression "iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60)" (identifier "iVar5") (= "=") (call_expression "c_strcasecmp(uVar2,puVar1 + -0xc60)" (identifier "c_strcasecmp") (argument_list "(uVar2,puVar1 + -0xc60)" (( "(") (identifier "uVar2") (, ",") (binary_expression "puVar1 + -0xc60" (identifier "puVar1") (+ "+") (number_literal "-0xc60")) () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }\n    else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);\n      uVar3 = aprintf(uVar3);\n    }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58)" (parenthesized_expression "(*(code *)PTR_dcgettext_000b7d20)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_000b7d20" (* "*") (cast_expression "(code *)PTR_dcgettext_000b7d20" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_000b7d20"))) () ")")) (argument_list "(0,PTR_DAT_000b758c + -0xc58)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_DAT_000b758c + -0xc58" (identifier "PTR_DAT_000b758c") (+ "+") (number_literal "-0xc58")) () ")")))) (; ";")) (expression_statement "uVar3 = aprintf(uVar3);" (assignment_expression "uVar3 = aprintf(uVar3)" (identifier "uVar3") (= "=") (call_expression "aprintf(uVar3)" (identifier "aprintf") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }" (else "else") (compound_statement "{\n      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);\n      uVar6 = quote(uVar2);\n      uVar3 = aprintf(uVar3,uVar6);\n    }" ({ "{") (expression_statement "uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);" (assignment_expression "uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000b7d20)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_000b7d20" (* "*") (cast_expression "(code *)PTR_dcgettext_000b7d20" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_000b7d20"))) () ")")) (argument_list "(0,PTR_DAT_000b758c + -0xc38,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_DAT_000b758c + -0xc38" (identifier "PTR_DAT_000b758c") (+ "+") (number_literal "-0xc38")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "uVar6 = quote(uVar2);" (assignment_expression "uVar6 = quote(uVar2)" (identifier "uVar6") (= "=") (call_expression "quote(uVar2)" (identifier "quote") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "uVar3 = aprintf(uVar3,uVar6);" (assignment_expression "uVar3 = aprintf(uVar3,uVar6)" (identifier "uVar3") (= "=") (call_expression "aprintf(uVar3,uVar6)" (identifier "aprintf") (argument_list "(uVar3,uVar6)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar6") () ")")))) (; ";")) (} "}")))) (expression_statement "(*(code *)PTR_free_000b7d34)(uVar2);" (call_expression "(*(code *)PTR_free_000b7d34)(uVar2)" (parenthesized_expression "(*(code *)PTR_free_000b7d34)" (( "(") (pointer_expression "*(code *)PTR_free_000b7d34" (* "*") (cast_expression "(code *)PTR_free_000b7d34" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_000b7d34"))) () ")")) (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }" (else "else") (compound_statement "{\n    uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);\n    uVar3 = xstrdup(uVar2);\n  }" ({ "{") (expression_statement "uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);" (assignment_expression "uVar2 = (*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_dcgettext_000b7d20)\n                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000b7d20)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_000b7d20" (* "*") (cast_expression "(code *)PTR_dcgettext_000b7d20" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_000b7d20"))) () ")")) (argument_list "(0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5)" (( "(") (number_literal "0") (, ",") (pointer_expression "*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0)" (( "(") (binary_expression "PTR_DAT_000b7458 + param_2 * 4 + 0x47d0" (binary_expression "PTR_DAT_000b7458 + param_2 * 4" (identifier "PTR_DAT_000b7458") (+ "+") (binary_expression "param_2 * 4" (identifier "param_2") (* "*") (number_literal "4"))) (+ "+") (number_literal "0x47d0")) () ")")))) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "uVar3 = xstrdup(uVar2);" (assignment_expression "uVar3 = xstrdup(uVar2)" (identifier "uVar3") (= "=") (call_expression "xstrdup(uVar2)" (identifier "xstrdup") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

char * function_1(char *url,int var_1)

{
  type_1 *var_5;
  char *pcVar2;
  char *pcVar3;
  type_2 *var_3;
  int var_6;
  char *pcVar6;
  
  if (var_1 == 1) {
    pcVar2 = var_2(url);
    var_3 = (type_2 *)(*(type_3 *)PTR_strchr_000b7df4)(pcVar2,0x3a);
    var_5 = var_7;
    if (var_3 != (type_2 *)0x0) {
      *var_3 = 0;
    }
    var_6 = var_4(pcVar2,var_5 + -0xc60);
    if (var_6 == 0) {
      pcVar3 = (char *)(*(type_3 *)PTR_dcgettext_000b7d20)(0,var_7 + -0xc58);
      pcVar3 = var_8(pcVar3);
    }
    else {
      pcVar3 = (char *)(*(type_3 *)PTR_dcgettext_000b7d20)(0,var_7 + -0xc38,5);
      pcVar6 = var_9(pcVar2);
      pcVar3 = var_8(pcVar3,pcVar6);
    }
    (*(type_3 *)PTR_free_000b7d34)(pcVar2);
  }
  else {
    pcVar2 = (char *)(*(type_3 *)PTR_dcgettext_000b7d20)
                               (0,*(type_4 *)(var_10 + var_1 * 4 + 0x47d0),5);
    pcVar3 = var_2(pcVar2);
  }
  return pcVar3;
}


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

undefined4 MASKED(undefined4 param_1,int param_2)

{
  undefined *puVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined1 *puVar4;
  int iVar5;
  undefined4 uVar6;
  
  if (param_2 == 1) {
    uVar2 = xstrdup();
    puVar4 = (undefined1 *)(*(code *)PTR_strchr_000b7df4)(uVar2,0x3a);
    puVar1 = PTR_DAT_000b758c;
    if (puVar4 != (undefined1 *)0x0) {
      *puVar4 = 0;
    }
    iVar5 = c_strcasecmp(uVar2,puVar1 + -0xc60);
    if (iVar5 == 0) {
      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc58);
      uVar3 = aprintf(uVar3);
    }
    else {
      uVar3 = (*(code *)PTR_dcgettext_000b7d20)(0,PTR_DAT_000b758c + -0xc38,5);
      uVar6 = quote(uVar2);
      uVar3 = aprintf(uVar3,uVar6);
    }
    (*(code *)PTR_free_000b7d34)(uVar2);
  }
  else {
    uVar2 = (*(code *)PTR_dcgettext_000b7d20)
                      (0,*(undefined4 *)(PTR_DAT_000b7458 + param_2 * 4 + 0x47d0),5);
    uVar3 = xstrdup(uVar2);
  }
  return uVar3;
}

