
iri * iri_dup(iri *src)

{
  _Bool _Var1;
  iri *piVar2;
  char *string;
  char *pcVar3;
  
  piVar2 = (iri *)xmalloc(0x10);
  pcVar3 = src->uri_encoding;
  if (pcVar3 != (char *)0x0) {
    pcVar3 = xstrdup(pcVar3);
  }
  string = src->content_encoding;
  piVar2->uri_encoding = pcVar3;
  if (string != (char *)0x0) {
    string = xstrdup(string);
  }
  pcVar3 = src->orig_url;
  piVar2->content_encoding = string;
  if (pcVar3 != (char *)0x0) {
    pcVar3 = xstrdup(pcVar3);
  }
  _Var1 = src->utf8_encode;
  piVar2->orig_url = pcVar3;
  piVar2->utf8_encode = _Var1;
  return piVar2;
}



int * iri_dup(int *param_1)

{
  undefined1 uVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  
  piVar2 = (int *)xmalloc(0x10);
  iVar4 = *param_1;
  if (iVar4 != 0) {
    iVar4 = xstrdup();
  }
  iVar3 = param_1[1];
  *piVar2 = iVar4;
  if (iVar3 != 0) {
    iVar3 = xstrdup(iVar3);
  }
  iVar4 = param_1[2];
  piVar2[1] = iVar3;
  if (iVar4 != 0) {
    iVar4 = xstrdup();
  }
  uVar1 = *(undefined1 *)(param_1 + 3);
  piVar2[2] = iVar4;
  *(undefined1 *)(piVar2 + 3) = uVar1;
  return piVar2;
}


lui gp,0x6
addiu gp,gp,-0x6654
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7e6c(gp)
sw s1,0x20(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw s0,0x1c(sp)
sw ra,0x24(sp)
bal 0x0006b280
_li a0,0x10
lw a0,0x0(s1)
or s0,v0,zero
beq a0,zero,0x0005dad8
_lw gp,0x10(sp)
lw t9,-0x7fa4(gp)
bal 0x0006b64c
_nop
lw gp,0x10(sp)
or a0,v0,zero
lw v0,0x4(s1)
beq v0,zero,0x0005daf4
_sw a0,0x0(s0)
lw t9,-0x7fa4(gp)
bal 0x0006b64c
_or a0,v0,zero
lw gp,0x10(sp)
lw a0,0x8(s1)
beq a0,zero,0x0005db10
_sw v0,0x4(s0)
lw t9,-0x7fa4(gp)
bal 0x0006b64c
_nop
or a0,v0,zero
lbu v1,0xc(s1)
or v0,s0,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
sw a0,0x8(s0)
sb v1,0xc(s0)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int * iri_dup(int *param_1)\n\n{\n  undefined1 uVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)xmalloc(0x10);\n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  iVar3 = param_1[1];\n  *piVar2 = iVar4;\n  if (iVar3 != 0) {\n    iVar3 = xstrdup(iVar3);\n  }\n  iVar4 = param_1[2];\n  piVar2[1] = iVar3;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  uVar1 = *(undefined1 *)(param_1 + 3);\n  piVar2[2] = iVar4;\n  *(undefined1 *)(piVar2 + 3) = uVar1;\n  return piVar2;\n}\n\n" (function_definition "int * iri_dup(int *param_1)\n\n{\n  undefined1 uVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)xmalloc(0x10);\n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  iVar3 = param_1[1];\n  *piVar2 = iVar4;\n  if (iVar3 != 0) {\n    iVar3 = xstrdup(iVar3);\n  }\n  iVar4 = param_1[2];\n  piVar2[1] = iVar3;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  uVar1 = *(undefined1 *)(param_1 + 3);\n  piVar2[2] = iVar4;\n  *(undefined1 *)(piVar2 + 3) = uVar1;\n  return piVar2;\n}" primitive_type (pointer_declarator "* iri_dup(int *param_1)" * (function_declarator "iri_dup(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined1 uVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)xmalloc(0x10);\n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  iVar3 = param_1[1];\n  *piVar2 = iVar4;\n  if (iVar3 != 0) {\n    iVar3 = xstrdup(iVar3);\n  }\n  iVar4 = param_1[2];\n  piVar2[1] = iVar3;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  uVar1 = *(undefined1 *)(param_1 + 3);\n  piVar2[2] = iVar4;\n  *(undefined1 *)(piVar2 + 3) = uVar1;\n  return piVar2;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)xmalloc(0x10);" (assignment_expression "piVar2 = (int *)xmalloc(0x10)" identifier = (cast_expression "(int *)xmalloc(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = xstrdup();\n  }" { (expression_statement "iVar4 = xstrdup();" (assignment_expression "iVar4 = xstrdup()" identifier = (call_expression "xstrdup()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar2 = iVar4;" (assignment_expression "*piVar2 = iVar4" (pointer_expression "*piVar2" * identifier) = identifier) ;) (if_statement "if (iVar3 != 0) {\n    iVar3 = xstrdup(iVar3);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = xstrdup(iVar3);\n  }" { (expression_statement "iVar3 = xstrdup(iVar3);" (assignment_expression "iVar3 = xstrdup(iVar3)" identifier = (call_expression "xstrdup(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) })) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar3;" (assignment_expression "piVar2[1] = iVar3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = xstrdup();\n  }" { (expression_statement "iVar4 = xstrdup();" (assignment_expression "iVar4 = xstrdup()" identifier = (call_expression "xstrdup()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "uVar1 = *(undefined1 *)(param_1 + 3);" (assignment_expression "uVar1 = *(undefined1 *)(param_1 + 3)" identifier = (pointer_expression "*(undefined1 *)(param_1 + 3)" * (cast_expression "(undefined1 *)(param_1 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) ;) (expression_statement "piVar2[2] = iVar4;" (assignment_expression "piVar2[2] = iVar4" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(piVar2 + 3) = uVar1;" (assignment_expression "*(undefined1 *)(piVar2 + 3) = uVar1" (pointer_expression "*(undefined1 *)(piVar2 + 3)" * (cast_expression "(undefined1 *)(piVar2 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 3)" ( (binary_expression "piVar2 + 3" identifier + number_literal) )))) = identifier) ;) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit "iri * iri_dup(iri *src)\n\n{\n  _Bool _Var1;\n  iri *piVar2;\n  char *string;\n  char *pcVar3;\n  \n  piVar2 = (iri *)xmalloc(0x10);\n  pcVar3 = src->uri_encoding;\n  if (pcVar3 != (char *)0x0) {\n    pcVar3 = xstrdup(pcVar3);\n  }\n  string = src->content_encoding;\n  piVar2->uri_encoding = pcVar3;\n  if (string != (char *)0x0) {\n    string = xstrdup(string);\n  }\n  pcVar3 = src->orig_url;\n  piVar2->content_encoding = string;\n  if (pcVar3 != (char *)0x0) {\n    pcVar3 = xstrdup(pcVar3);\n  }\n  _Var1 = src->utf8_encode;\n  piVar2->orig_url = pcVar3;\n  piVar2->utf8_encode = _Var1;\n  return piVar2;\n}\n\n" (function_definition "iri * iri_dup(iri *src)\n\n{\n  _Bool _Var1;\n  iri *piVar2;\n  char *string;\n  char *pcVar3;\n  \n  piVar2 = (iri *)xmalloc(0x10);\n  pcVar3 = src->uri_encoding;\n  if (pcVar3 != (char *)0x0) {\n    pcVar3 = xstrdup(pcVar3);\n  }\n  string = src->content_encoding;\n  piVar2->uri_encoding = pcVar3;\n  if (string != (char *)0x0) {\n    string = xstrdup(string);\n  }\n  pcVar3 = src->orig_url;\n  piVar2->content_encoding = string;\n  if (pcVar3 != (char *)0x0) {\n    pcVar3 = xstrdup(pcVar3);\n  }\n  _Var1 = src->utf8_encode;\n  piVar2->orig_url = pcVar3;\n  piVar2->utf8_encode = _Var1;\n  return piVar2;\n}" type_identifier (pointer_declarator "* iri_dup(iri *src)" * (function_declarator "iri_dup(iri *src)" identifier (parameter_list "(iri *src)" ( (parameter_declaration "iri *src" type_identifier (pointer_declarator "*src" * identifier)) )))) (compound_statement "{\n  _Bool _Var1;\n  iri *piVar2;\n  char *string;\n  char *pcVar3;\n  \n  piVar2 = (iri *)xmalloc(0x10);\n  pcVar3 = src->uri_encoding;\n  if (pcVar3 != (char *)0x0) {\n    pcVar3 = xstrdup(pcVar3);\n  }\n  string = src->content_encoding;\n  piVar2->uri_encoding = pcVar3;\n  if (string != (char *)0x0) {\n    string = xstrdup(string);\n  }\n  pcVar3 = src->orig_url;\n  piVar2->content_encoding = string;\n  if (pcVar3 != (char *)0x0) {\n    pcVar3 = xstrdup(pcVar3);\n  }\n  _Var1 = src->utf8_encode;\n  piVar2->orig_url = pcVar3;\n  piVar2->utf8_encode = _Var1;\n  return piVar2;\n}" { (declaration "_Bool _Var1;" type_identifier identifier ;) (declaration "iri *piVar2;" type_identifier (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *string;" primitive_type (pointer_declarator "*string" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "piVar2 = (iri *)xmalloc(0x10);" (assignment_expression "piVar2 = (iri *)xmalloc(0x10)" identifier = (cast_expression "(iri *)xmalloc(0x10)" ( (type_descriptor "iri *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "pcVar3 = src->uri_encoding;" (assignment_expression "pcVar3 = src->uri_encoding" identifier = (field_expression "src->uri_encoding" identifier -> field_identifier)) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    pcVar3 = xstrdup(pcVar3);\n  }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = xstrdup(pcVar3);\n  }" { (expression_statement "pcVar3 = xstrdup(pcVar3);" (assignment_expression "pcVar3 = xstrdup(pcVar3)" identifier = (call_expression "xstrdup(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) })) (expression_statement "string = src->content_encoding;" (assignment_expression "string = src->content_encoding" identifier = (field_expression "src->content_encoding" identifier -> field_identifier)) ;) (expression_statement "piVar2->uri_encoding = pcVar3;" (assignment_expression "piVar2->uri_encoding = pcVar3" (field_expression "piVar2->uri_encoding" identifier -> field_identifier) = identifier) ;) (if_statement "if (string != (char *)0x0) {\n    string = xstrdup(string);\n  }" if (parenthesized_expression "(string != (char *)0x0)" ( (binary_expression "string != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    string = xstrdup(string);\n  }" { (expression_statement "string = xstrdup(string);" (assignment_expression "string = xstrdup(string)" identifier = (call_expression "xstrdup(string)" identifier (argument_list "(string)" ( identifier )))) ;) })) (expression_statement "pcVar3 = src->orig_url;" (assignment_expression "pcVar3 = src->orig_url" identifier = (field_expression "src->orig_url" identifier -> field_identifier)) ;) (expression_statement "piVar2->content_encoding = string;" (assignment_expression "piVar2->content_encoding = string" (field_expression "piVar2->content_encoding" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    pcVar3 = xstrdup(pcVar3);\n  }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar3 = xstrdup(pcVar3);\n  }" { (expression_statement "pcVar3 = xstrdup(pcVar3);" (assignment_expression "pcVar3 = xstrdup(pcVar3)" identifier = (call_expression "xstrdup(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier )))) ;) })) (expression_statement "_Var1 = src->utf8_encode;" (assignment_expression "_Var1 = src->utf8_encode" identifier = (field_expression "src->utf8_encode" identifier -> field_identifier)) ;) (expression_statement "piVar2->orig_url = pcVar3;" (assignment_expression "piVar2->orig_url = pcVar3" (field_expression "piVar2->orig_url" identifier -> field_identifier) = identifier) ;) (expression_statement "piVar2->utf8_encode = _Var1;" (assignment_expression "piVar2->utf8_encode = _Var1" (field_expression "piVar2->utf8_encode" identifier -> field_identifier) = identifier) ;) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit "int * iri_dup(int *param_1)\n\n{\n  undefined1 uVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)xmalloc(0x10);\n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  iVar3 = param_1[1];\n  *piVar2 = iVar4;\n  if (iVar3 != 0) {\n    iVar3 = xstrdup(iVar3);\n  }\n  iVar4 = param_1[2];\n  piVar2[1] = iVar3;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  uVar1 = *(undefined1 *)(param_1 + 3);\n  piVar2[2] = iVar4;\n  *(undefined1 *)(piVar2 + 3) = uVar1;\n  return piVar2;\n}\n\n" (function_definition "int * iri_dup(int *param_1)\n\n{\n  undefined1 uVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)xmalloc(0x10);\n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  iVar3 = param_1[1];\n  *piVar2 = iVar4;\n  if (iVar3 != 0) {\n    iVar3 = xstrdup(iVar3);\n  }\n  iVar4 = param_1[2];\n  piVar2[1] = iVar3;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  uVar1 = *(undefined1 *)(param_1 + 3);\n  piVar2[2] = iVar4;\n  *(undefined1 *)(piVar2 + 3) = uVar1;\n  return piVar2;\n}" primitive_type (pointer_declarator "* iri_dup(int *param_1)" * (function_declarator "iri_dup(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  undefined1 uVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)xmalloc(0x10);\n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  iVar3 = param_1[1];\n  *piVar2 = iVar4;\n  if (iVar3 != 0) {\n    iVar3 = xstrdup(iVar3);\n  }\n  iVar4 = param_1[2];\n  piVar2[1] = iVar3;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  uVar1 = *(undefined1 *)(param_1 + 3);\n  piVar2[2] = iVar4;\n  *(undefined1 *)(piVar2 + 3) = uVar1;\n  return piVar2;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)xmalloc(0x10);" (assignment_expression "piVar2 = (int *)xmalloc(0x10)" identifier = (cast_expression "(int *)xmalloc(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = xstrdup();\n  }" { (expression_statement "iVar4 = xstrdup();" (assignment_expression "iVar4 = xstrdup()" identifier = (call_expression "xstrdup()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) (expression_statement "*piVar2 = iVar4;" (assignment_expression "*piVar2 = iVar4" (pointer_expression "*piVar2" * identifier) = identifier) ;) (if_statement "if (iVar3 != 0) {\n    iVar3 = xstrdup(iVar3);\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = xstrdup(iVar3);\n  }" { (expression_statement "iVar3 = xstrdup(iVar3);" (assignment_expression "iVar3 = xstrdup(iVar3)" identifier = (call_expression "xstrdup(iVar3)" identifier (argument_list "(iVar3)" ( identifier )))) ;) })) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "piVar2[1] = iVar3;" (assignment_expression "piVar2[1] = iVar3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = xstrdup();\n  }" { (expression_statement "iVar4 = xstrdup();" (assignment_expression "iVar4 = xstrdup()" identifier = (call_expression "xstrdup()" identifier (argument_list "()" ( )))) ;) })) (expression_statement "uVar1 = *(undefined1 *)(param_1 + 3);" (assignment_expression "uVar1 = *(undefined1 *)(param_1 + 3)" identifier = (pointer_expression "*(undefined1 *)(param_1 + 3)" * (cast_expression "(undefined1 *)(param_1 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))))) ;) (expression_statement "piVar2[2] = iVar4;" (assignment_expression "piVar2[2] = iVar4" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(piVar2 + 3) = uVar1;" (assignment_expression "*(undefined1 *)(piVar2 + 3) = uVar1" (pointer_expression "*(undefined1 *)(piVar2 + 3)" * (cast_expression "(undefined1 *)(piVar2 + 3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 3)" ( (binary_expression "piVar2 + 3" identifier + number_literal) )))) = identifier) ;) (return_statement "return piVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * 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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int * iri_dup(int *param_1)\n\n{\n  undefined1 uVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)xmalloc(0x10);\n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  iVar3 = param_1[1];\n  *piVar2 = iVar4;\n  if (iVar3 != 0) {\n    iVar3 = xstrdup(iVar3);\n  }\n  iVar4 = param_1[2];\n  piVar2[1] = iVar3;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  uVar1 = *(undefined1 *)(param_1 + 3);\n  piVar2[2] = iVar4;\n  *(undefined1 *)(piVar2 + 3) = uVar1;\n  return piVar2;\n}" (primitive_type "int") (pointer_declarator "* iri_dup(int *param_1)" (* "*") (function_declarator "iri_dup(int *param_1)" (identifier "iri_dup") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  undefined1 uVar1;\n  int *piVar2;\n  int iVar3;\n  int iVar4;\n  \n  piVar2 = (int *)xmalloc(0x10);\n  iVar4 = *param_1;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  iVar3 = param_1[1];\n  *piVar2 = iVar4;\n  if (iVar3 != 0) {\n    iVar3 = xstrdup(iVar3);\n  }\n  iVar4 = param_1[2];\n  piVar2[1] = iVar3;\n  if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }\n  uVar1 = *(undefined1 *)(param_1 + 3);\n  piVar2[2] = iVar4;\n  *(undefined1 *)(piVar2 + 3) = uVar1;\n  return piVar2;\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "piVar2 = (int *)xmalloc(0x10);" (assignment_expression "piVar2 = (int *)xmalloc(0x10)" (identifier "piVar2") (= "=") (cast_expression "(int *)xmalloc(0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x10)" (identifier "xmalloc") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "iVar4 = *param_1;" (assignment_expression "iVar4 = *param_1" (identifier "iVar4") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = xstrdup();\n  }" ({ "{") (expression_statement "iVar4 = xstrdup();" (assignment_expression "iVar4 = xstrdup()" (identifier "iVar4") (= "=") (call_expression "xstrdup()" (identifier "xstrdup") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (expression_statement "iVar3 = param_1[1];" (assignment_expression "iVar3 = param_1[1]" (identifier "iVar3") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*piVar2 = iVar4;" (assignment_expression "*piVar2 = iVar4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar3 != 0) {\n    iVar3 = xstrdup(iVar3);\n  }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = xstrdup(iVar3);\n  }" ({ "{") (expression_statement "iVar3 = xstrdup(iVar3);" (assignment_expression "iVar3 = xstrdup(iVar3)" (identifier "iVar3") (= "=") (call_expression "xstrdup(iVar3)" (identifier "xstrdup") (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (} "}"))) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" (identifier "iVar4") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "piVar2[1] = iVar3;" (assignment_expression "piVar2[1] = iVar3" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar4 != 0) {\n    iVar4 = xstrdup();\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = xstrdup();\n  }" ({ "{") (expression_statement "iVar4 = xstrdup();" (assignment_expression "iVar4 = xstrdup()" (identifier "iVar4") (= "=") (call_expression "xstrdup()" (identifier "xstrdup") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}"))) (expression_statement "uVar1 = *(undefined1 *)(param_1 + 3);" (assignment_expression "uVar1 = *(undefined1 *)(param_1 + 3)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined1 *)(param_1 + 3)" (* "*") (cast_expression "(undefined1 *)(param_1 + 3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))))) (; ";")) (expression_statement "piVar2[2] = iVar4;" (assignment_expression "piVar2[2] = iVar4" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "*(undefined1 *)(piVar2 + 3) = uVar1;" (assignment_expression "*(undefined1 *)(piVar2 + 3) = uVar1" (pointer_expression "*(undefined1 *)(piVar2 + 3)" (* "*") (cast_expression "(undefined1 *)(piVar2 + 3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 3)" (( "(") (binary_expression "piVar2 + 3" (identifier "piVar2") (+ "+") (number_literal "3")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}")))

type_1 * function_1(type_1 *src)

{
  type_2 _Var1;
  type_1 *piVar2;
  char *var_4;
  char *var_2;
  
  piVar2 = (type_1 *)var_1(0x10);
  var_2 = src->uri_encoding;
  if (var_2 != (char *)0x0) {
    var_2 = var_3(var_2);
  }
  var_4 = src->content_encoding;
  piVar2->uri_encoding = var_2;
  if (var_4 != (char *)0x0) {
    var_4 = var_3(var_4);
  }
  var_2 = src->orig_url;
  piVar2->content_encoding = var_4;
  if (var_2 != (char *)0x0) {
    var_2 = var_3(var_2);
  }
  _Var1 = src->utf8_encode;
  piVar2->orig_url = var_2;
  piVar2->utf8_encode = _Var1;
  return piVar2;
}


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

int * MASKED(int *param_1)

{
  undefined1 uVar1;
  int *piVar2;
  int iVar3;
  int iVar4;
  
  piVar2 = (int *)xmalloc(0x10);
  iVar4 = *param_1;
  if (iVar4 != 0) {
    iVar4 = xstrdup();
  }
  iVar3 = param_1[1];
  *piVar2 = iVar4;
  if (iVar3 != 0) {
    iVar3 = xstrdup(iVar3);
  }
  iVar4 = param_1[2];
  piVar2[1] = iVar3;
  if (iVar4 != 0) {
    iVar4 = xstrdup();
  }
  uVar1 = *(undefined1 *)(param_1 + 3);
  piVar2[2] = iVar4;
  *(undefined1 *)(piVar2 + 3) = uVar1;
  return piVar2;
}

