
urlpos * append_url(char *link_uri,int position,int size,map_context *ctx)

{
  undefined *puVar1;
  undefined3 extraout_var;
  _Bool _Var11;
  iri *iri;
  char *url;
  url *puVar2;
  urlpos *puVar3;
  urlpos *puVar4;
  urlpos *puVar5;
  urlpos *puVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  undefined4 uVar10;
  char *pcVar12;
  
  _Var11 = url_has_scheme(link_uri);
  puVar1 = PTR_opt_000af488;
  pcVar12 = ctx->base;
  if (pcVar12 == (char *)0x0) {
    pcVar12 = ctx->parent_base;
    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();
    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);
    iri->utf8_encode = true;
    if (pcVar12 != (char *)0x0) goto LAB_000331a0;
    if (puVar1[0x16b] != '\0') {
      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,ctx->document_file,link_uri);
    }
    if (CONCAT31(extraout_var,_Var11) == 0) {
      pcVar12 = (char *)(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);
                    /* WARNING: Subroutine does not return */
      logprintf(LOG_NOTQUIET,pcVar12,ctx->document_file,link_uri);
    }
    puVar2 = url_parse(link_uri,(int *)0x0,iri,false);
    if (puVar2 == (url *)0x0) {
      if (puVar1[0x16b] != '\0') {
        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri);
      }
      (*(code *)PTR_iri_free_000af548)(iri);
      return (urlpos *)0x0;
    }
    (*(code *)PTR_iri_free_000af548)(iri);
    if (puVar1[0x16b] != '\0') goto LAB_000334e4;
    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);
    puVar3->url = puVar2;
    puVar3->pos = position;
    puVar3->size = size;
  }
  else {
    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();
    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);
    iri->utf8_encode = true;
LAB_000331a0:
    url = uri_merge(pcVar12,link_uri);
    if (puVar1[0x16b] != '\0') {
      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file);
      uVar7 = (*(code *)PTR_quote_n_000af824)(1,pcVar12);
      uVar8 = (*(code *)PTR_quote_n_000af824)(2,link_uri);
      uVar9 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,url);
      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar10,uVar7,uVar8,uVar9);
    }
    puVar2 = url_parse(url,(int *)0x0,iri,false);
    if (puVar2 == (url *)0x0) {
      if (puVar1[0x16b] != '\0') {
        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url);
      }
      (*(code *)PTR_free_000afd08)(url);
      (*(code *)PTR_iri_free_000af548)(iri);
      return (urlpos *)0x0;
    }
    (*(code *)PTR_free_000afd08)(url);
    (*(code *)PTR_iri_free_000af548)(iri);
    if (puVar1[0x16b] != '\0') {
LAB_000334e4:
      uVar10 = (*(code *)PTR_quote_000af590)(puVar2->url);
      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar10);
    }
    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);
    puVar3->url = puVar2;
    puVar3->pos = position;
    puVar3->size = size;
    if (CONCAT31(extraout_var,_Var11) == 0) {
      if (*link_uri != '/') {
        *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000;
      }
      puVar4 = ctx->head;
      goto joined_r0x00033378;
    }
  }
  *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xdfff | 0x2000;
  puVar4 = ctx->head;
joined_r0x00033378:
  if (puVar4 == (urlpos *)0x0) {
LAB_00033384:
    ctx->head = puVar3;
    return puVar3;
  }
  puVar6 = (urlpos *)0x0;
  do {
    puVar5 = puVar4;
    if (position <= puVar5->pos) {
      puVar3->next = puVar5;
      if (puVar6 == (urlpos *)0x0) goto LAB_00033384;
      goto LAB_0003328c;
    }
    puVar4 = puVar5->next;
    puVar6 = puVar5;
  } while (puVar5->next != (urlpos *)0x0);
  puVar3->next = (urlpos *)0x0;
LAB_0003328c:
  puVar6->next = puVar3;
  return puVar3;
}



int * append_url(char *param_1,int param_2,int param_3,int param_4)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  int *piVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  undefined4 uVar10;
  int iVar11;
  
  iVar2 = url_has_scheme();
  puVar1 = PTR_opt_000af488;
  iVar11 = *(int *)(param_4 + 4);
  if (iVar11 == 0) {
    iVar11 = *(int *)(param_4 + 8);
    iVar3 = (*(code *)PTR_iri_new_000af54c)();
    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);
    *(undefined1 *)(iVar3 + 0xc) = 1;
    if (iVar11 != 0) goto LAB_000331a0;
    if (puVar1[0x16b] != '\0') {
      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);
    }
    if (iVar2 == 0) {
      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);
      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);
      (*(code *)PTR_iri_free_000af548)(iVar3);
      return (int *)0x0;
    }
    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);
    if (puVar5 == (undefined4 *)0x0) {
      if (puVar1[0x16b] != '\0') {
        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);
      }
      (*(code *)PTR_iri_free_000af548)(iVar3);
      return (int *)0x0;
    }
    (*(code *)PTR_iri_free_000af548)(iVar3);
    if (puVar1[0x16b] != '\0') goto LAB_000334e4;
    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);
    *piVar6 = (int)puVar5;
    piVar6[5] = param_2;
    piVar6[6] = param_3;
  }
  else {
    iVar3 = (*(code *)PTR_iri_new_000af54c)();
    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);
    *(undefined1 *)(iVar3 + 0xc) = 1;
LAB_000331a0:
    uVar4 = uri_merge(iVar11,param_1);
    if (puVar1[0x16b] != '\0') {
      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));
      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);
      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);
      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);
      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);
    }
    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);
    if (puVar5 == (undefined4 *)0x0) {
      if (puVar1[0x16b] != '\0') {
        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);
      }
      (*(code *)PTR_free_000afd08)(uVar4);
      (*(code *)PTR_iri_free_000af548)(iVar3);
      return (int *)0x0;
    }
    (*(code *)PTR_free_000afd08)(uVar4);
    (*(code *)PTR_iri_free_000af548)(iVar3);
    if (puVar1[0x16b] != '\0') {
LAB_000334e4:
      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);
      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);
    }
    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);
    *piVar6 = (int)puVar5;
    piVar6[5] = param_2;
    piVar6[6] = param_3;
    if (iVar2 == 0) {
      if (*param_1 != '/') {
        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;
      }
      iVar2 = *(int *)(param_4 + 0x14);
      goto joined_r0x00033378;
    }
  }
  *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;
  iVar2 = *(int *)(param_4 + 0x14);
joined_r0x00033378:
  if (iVar2 == 0) {
LAB_00033384:
    *(int **)(param_4 + 0x14) = piVar6;
    return piVar6;
  }
  iVar11 = 0;
  do {
    iVar3 = iVar2;
    if (param_2 <= *(int *)(iVar3 + 0x14)) {
      piVar6[7] = iVar3;
      if (iVar11 == 0) goto LAB_00033384;
      goto LAB_0003328c;
    }
    iVar2 = *(int *)(iVar3 + 0x1c);
    iVar11 = iVar3;
  } while (*(int *)(iVar3 + 0x1c) != 0);
  piVar6[7] = 0;
LAB_0003328c:
  *(int **)(iVar11 + 0x1c) = piVar6;
  return piVar6;
}


lui gp,0x8
addiu gp,gp,0x432c
addu gp,gp,t9
addiu sp,sp,-0x50
lw t9,-0x7c14(gp)
sw gp,0x18(sp)
sw s8,0x48(sp)
sw s7,0x44(sp)
or s7,a2,zero
sw s6,0x40(sp)
or s6,a0,zero
sw s4,0x38(sp)
sw s3,0x34(sp)
or s3,a3,zero
sw s1,0x2c(sp)
or s1,a1,zero
sw s0,0x28(sp)
sw ra,0x4c(sp)
sw s5,0x3c(sp)
bal 0x0004f558
_sw s2,0x30(sp)
lw gp,0x18(sp)
or s8,v0,zero
lw s0,0x4(s3)
lw s4,-0x7fa8(gp)
beq s0,zero,0x000332c4
_lw t9,-0x7ee4(gp)
jalr t9
_nop
li a2,0x1
lw gp,0x18(sp)
or a0,v0,zero
lw a1,0x21c(s4)
lw t9,-0x7ee0(gp)
jalr t9
_or s2,v0,zero
li v0,0x1
lw gp,0x18(sp)
sb v0,0xc(s2)
lw t9,-0x7dc0(gp)
or a0,s0,zero
bal 0x00050524
_or a1,s6,zero
lbu a0,0x16b(s4)
or v1,v0,zero
bne a0,zero,0x000333fc
_lw gp,0x18(sp)
lw t9,-0x7edc(gp)
or a3,zero,zero
or a1,zero,zero
sw v1,0x20(sp)
or a0,v1,zero
bal 0x00050f48
_or a2,s2,zero
lw gp,0x18(sp)
or s5,v0,zero
beq v0,zero,0x000333c8
_lw v1,0x20(sp)
lw t9,-0x7728(gp)
jalr t9
_or a0,v1,zero
lw gp,0x18(sp)
lw t9,-0x7ee8(gp)
jalr t9
_or a0,s2,zero
lbu v0,0x16b(s4)
bne v0,zero,0x000334e4
_lw gp,0x18(sp)
lw t9,-0x7dbc(gp)
li a1,0x20
jalr t9
_li a0,0x1
or s0,v0,zero
sw s5,0x0(v0)
sw s1,0x14(v0)
bne s8,zero,0x00033364
_sw s7,0x18(v0)
lb v1,0x0(s6)
li v0,0x2f
beq v1,v0,0x00033254
_li v1,0x1
lhu v0,0x8(s0)
ins v0,v1,0xe,0x1
sh v0,0x8(s0)
lw v0,0x14(s3)
beq v0,zero,0x00033384
_lw ra,0x4c(sp)
b 0x0003326c
_or a0,zero,zero
or v0,v1,zero
lw v1,0x14(v0)
slt v1,v1,s1
beq v1,zero,0x000333b8
_nop
lw v1,0x1c(v0)
bne v1,zero,0x00033268
_or a0,v0,zero
sw zero,0x1c(s0)
sw s0,0x1c(v0)
lw ra,0x4c(sp)
or v0,s0,zero
lw s8,0x48(sp)
lw s7,0x44(sp)
lw s6,0x40(sp)
lw s5,0x3c(sp)
lw s4,0x38(sp)
lw s3,0x34(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x50
jalr t9
_lw s0,0x8(s3)
li a2,0x1
lw gp,0x18(sp)
or a0,v0,zero
lw a1,0x21c(s4)
lw t9,-0x7ee0(gp)
jalr t9
_or s2,v0,zero
li v0,0x1
lw gp,0x18(sp)
bne s0,zero,0x000331a0
_sb v0,0xc(s2)
lbu v0,0x16b(s4)
bne v0,zero,0x00033510
_lw a0,-0x7fc4(gp)
beq s8,zero,0x00033498
_lw t9,-0x7edc(gp)
or a3,zero,zero
or a1,zero,zero
or a2,s2,zero
bal 0x00050f48
_or a0,s6,zero
lw gp,0x18(sp)
beq v0,zero,0x0003352c
_or s5,v0,zero
lw t9,-0x7ee8(gp)
jalr t9
_or a0,s2,zero
lbu v0,0x16b(s4)
bne v0,zero,0x000334e4
_lw gp,0x18(sp)
lw t9,-0x7dbc(gp)
li a1,0x20
jalr t9
_li a0,0x1
or s0,v0,zero
sw s5,0x0(v0)
sw s1,0x14(v0)
sw s7,0x18(v0)
lhu v0,0x8(s0)
li v1,0x1
ins v0,v1,0xd,0x1
sh v0,0x8(s0)
lw v0,0x14(s3)
bne v0,zero,0x00033260
_nop
lw ra,0x4c(sp)
or v0,s0,zero
lw s8,0x48(sp)
lw s7,0x44(sp)
lw s6,0x40(sp)
lw s5,0x3c(sp)
lw s4,0x38(sp)
lw s2,0x30(sp)
lw s1,0x2c(sp)
sw s0,0x14(s3)
lw s3,0x34(sp)
lw s0,0x28(sp)
jr ra
_addiu sp,sp,0x50
beq a0,zero,0x00033380
_sw v0,0x1c(s0)
b 0x0003328c
_or v0,a0,zero
lbu v0,0x16b(s4)
bne v0,zero,0x00033550
_or a2,v1,zero
lw t9,-0x7728(gp)
or a0,v1,zero
jalr t9
_or s0,zero,zero
lw gp,0x18(sp)
lw t9,-0x7ee8(gp)
jalr t9
_or a0,s2,zero
b 0x00033294
_lw ra,0x4c(sp)
lw a2,0xc(s3)
li a1,0x7
lw t9,-0x7c10(gp)
or a0,zero,zero
jalr t9
_sw v0,0x20(sp)
li a0,0x1
lw gp,0x18(sp)
or a1,s0,zero
lw t9,-0x7c0c(gp)
jalr t9
_or s0,v0,zero
li a0,0x2
lw gp,0x18(sp)
or a1,s6,zero
lw t9,-0x7c0c(gp)
jalr t9
_or s5,v0,zero
li a1,0x7
lw gp,0x18(sp)
li a0,0x3
lw v1,0x20(sp)
sw v0,0x20(sp)
sw v1,0x24(sp)
lw t9,-0x7c10(gp)
jalr t9
_or a2,v1,zero
or a2,s5,zero
lw gp,0x18(sp)
or a1,s0,zero
lw a3,0x20(sp)
sw v0,0x10(sp)
lw a0,-0x7fc4(gp)
lw t9,-0x7ef4(gp)
bal 0x00043764
_addiu a0,a0,-0x7e4
lw gp,0x18(sp)
b 0x000331c0
_lw v1,0x24(sp)
lw a1,-0x7fc4(gp)
li a2,0x5
lw t9,-0x773c(gp)
or a0,zero,zero
jalr t9
_addiu a1,a1,-0x82c
li a0,0x1
lw gp,0x18(sp)
or a3,s6,zero
lw a2,0xc(s3)
lw t9,-0x7ef0(gp)
bal 0x000435b8
_or a1,v0,zero
lw gp,0x18(sp)
lw t9,-0x7ee8(gp)
jalr t9
_or a0,s2,zero
b 0x00033294
_lw ra,0x4c(sp)
lw t9,-0x7ea0(gp)
jalr t9
_lw a0,0x0(s5)
lw gp,0x18(sp)
or a1,v0,zero
lw a0,-0x7fc4(gp)
lw t9,-0x7ef4(gp)
bal 0x00043764
_addiu a0,a0,-0x7a0
b 0x00033214
_lw gp,0x18(sp)
or a2,s6,zero
lw t9,-0x7ef4(gp)
lw a1,0xc(s3)
bal 0x00043764
_addiu a0,a0,-0x850
b 0x00033304
_lw gp,0x18(sp)
lbu v0,0x16b(s4)
bne v0,zero,0x00033570
_or a2,s6,zero
lw t9,-0x7ee8(gp)
or a0,s2,zero
jalr t9
_or s0,zero,zero
b 0x00033294
_lw ra,0x4c(sp)
lw a0,-0x7fc4(gp)
lw t9,-0x7ef4(gp)
lw a1,0xc(s3)
bal 0x00043764
_addiu a0,a0,-0x7c8
lw gp,0x18(sp)
b 0x000333d4
_lw v1,0x20(sp)
lw a0,-0x7fc4(gp)
lw t9,-0x7ef4(gp)
lw a1,0xc(s3)
bal 0x00043764
_addiu a0,a0,-0x804
b 0x00033538
_lw gp,0x18(sp)
(translation_unit "int * append_url(char *param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  int iVar11;\n  \n  iVar2 = url_has_scheme();\n  puVar1 = PTR_opt_000af488;\n  iVar11 = *(int *)(param_4 + 4);\n  if (iVar11 == 0) {\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }\n  else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }\n  *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;\n  iVar2 = *(int *)(param_4 + 0x14);\njoined_r0x00033378:\n  if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }\n  iVar11 = 0;\n  do {\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  } while (*(int *)(iVar3 + 0x1c) != 0);\n  piVar6[7] = 0;\nLAB_0003328c:\n  *(int **)(iVar11 + 0x1c) = piVar6;\n  return piVar6;\n}\n\n" (function_definition "int * append_url(char *param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  int iVar11;\n  \n  iVar2 = url_has_scheme();\n  puVar1 = PTR_opt_000af488;\n  iVar11 = *(int *)(param_4 + 4);\n  if (iVar11 == 0) {\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }\n  else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }\n  *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;\n  iVar2 = *(int *)(param_4 + 0x14);\njoined_r0x00033378:\n  if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }\n  iVar11 = 0;\n  do {\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  } while (*(int *)(iVar3 + 0x1c) != 0);\n  piVar6[7] = 0;\nLAB_0003328c:\n  *(int **)(iVar11 + 0x1c) = piVar6;\n  return piVar6;\n}" primitive_type (pointer_declarator "* append_url(char *param_1,int param_2,int param_3,int param_4)" * (function_declarator "append_url(char *param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(char *param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  int iVar11;\n  \n  iVar2 = url_has_scheme();\n  puVar1 = PTR_opt_000af488;\n  iVar11 = *(int *)(param_4 + 4);\n  if (iVar11 == 0) {\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }\n  else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }\n  *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;\n  iVar2 = *(int *)(param_4 + 0x14);\njoined_r0x00033378:\n  if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }\n  iVar11 = 0;\n  do {\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  } while (*(int *)(iVar3 + 0x1c) != 0);\n  piVar6[7] = 0;\nLAB_0003328c:\n  *(int **)(iVar11 + 0x1c) = piVar6;\n  return piVar6;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (expression_statement "iVar2 = url_has_scheme();" (assignment_expression "iVar2 = url_has_scheme()" identifier = (call_expression "url_has_scheme()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar1 = PTR_opt_000af488;" (assignment_expression "puVar1 = PTR_opt_000af488" identifier = identifier) ;) (expression_statement "iVar11 = *(int *)(param_4 + 4);" (assignment_expression "iVar11 = *(int *)(param_4 + 4)" identifier = (pointer_expression "*(int *)(param_4 + 4)" * (cast_expression "(int *)(param_4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4)" ( (binary_expression "param_4 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar11 == 0) {\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }\n  else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }" { (expression_statement "iVar11 = *(int *)(param_4 + 8);" (assignment_expression "iVar11 = *(int *)(param_4 + 8)" identifier = (pointer_expression "*(int *)(param_4 + 8)" * (cast_expression "(int *)(param_4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = (*(code *)PTR_iri_new_000af54c)();" (assignment_expression "iVar3 = (*(code *)PTR_iri_new_000af54c)()" identifier = (call_expression "(*(code *)PTR_iri_new_000af54c)()" (parenthesized_expression "(*(code *)PTR_iri_new_000af54c)" ( (pointer_expression "*(code *)PTR_iri_new_000af54c" * (cast_expression "(code *)PTR_iri_new_000af54c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);" (call_expression "(*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1)" (parenthesized_expression "(*(code *)PTR_set_uri_encoding_000af550)" ( (pointer_expression "*(code *)PTR_set_uri_encoding_000af550" * (cast_expression "(code *)PTR_set_uri_encoding_000af550" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,*(undefined4 *)(puVar1 + 0x21c),1)" ( identifier , (pointer_expression "*(undefined4 *)(puVar1 + 0x21c)" * (cast_expression "(undefined4 *)(puVar1 + 0x21c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x21c)" ( (binary_expression "puVar1 + 0x21c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "*(undefined1 *)(iVar3 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(iVar3 + 0xc) = 1" (pointer_expression "*(undefined1 *)(iVar3 + 0xc)" * (cast_expression "(undefined1 *)(iVar3 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (iVar11 != 0) goto LAB_000331a0;" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000331a0;" goto statement_identifier ;)) (if_statement "if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }" { (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x850" identifier + number_literal) , (pointer_expression "*(undefined4 *)(param_4 + 0xc)" * (cast_expression "(undefined4 *)(param_4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) , identifier ))) ;) })) (if_statement "if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" { (expression_statement "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);" (assignment_expression "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000afcf4)" ( (pointer_expression "*(code *)PTR_dcgettext_000afcf4" * (cast_expression "(code *)PTR_dcgettext_000afcf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_hallenge__000af46c + -0x82c,5)" ( number_literal , (binary_expression "PTR_s_hallenge__000af46c + -0x82c" identifier + number_literal) , number_literal )))) ;) (expression_statement "logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);" (call_expression "logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1)" identifier (argument_list "(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1)" ( number_literal , identifier , (pointer_expression "*(undefined4 *)(param_4 + 0xc)" * (cast_expression "(undefined4 *)(param_4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);" (assignment_expression "puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0)" identifier = (cast_expression "(undefined4 *)url_parse(param_1,0,iVar3,0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "url_parse(param_1,0,iVar3,0)" identifier (argument_list "(param_1,0,iVar3,0)" ( identifier , number_literal , identifier , number_literal ))))) ;) (if_statement "if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" if (parenthesized_expression "(puVar5 == (undefined4 *)0x0)" ( (binary_expression "puVar5 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" { (if_statement "if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }" { (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x804" identifier + number_literal) , (pointer_expression "*(undefined4 *)(param_4 + 0xc)" * (cast_expression "(undefined4 *)(param_4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (if_statement "if (puVar1[0x16b] != '\0') goto LAB_000334e4;" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000334e4;" goto statement_identifier ;)) (expression_statement "piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);" (assignment_expression "piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" identifier = (cast_expression "(int *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xcalloc_000af674)(1,0x20)" (parenthesized_expression "(*(code *)PTR_xcalloc_000af674)" ( (pointer_expression "*(code *)PTR_xcalloc_000af674" * (cast_expression "(code *)PTR_xcalloc_000af674" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x20)" ( number_literal , number_literal ))))) ;) (expression_statement "*piVar6 = (int)puVar5;" (assignment_expression "*piVar6 = (int)puVar5" (pointer_expression "*piVar6" * identifier) = (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar6[5] = param_2;" (assignment_expression "piVar6[5] = param_2" (subscript_expression "piVar6[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar6[6] = param_3;" (assignment_expression "piVar6[6] = param_3" (subscript_expression "piVar6[6]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }" else (compound_statement "{\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_iri_new_000af54c)();" (assignment_expression "iVar3 = (*(code *)PTR_iri_new_000af54c)()" identifier = (call_expression "(*(code *)PTR_iri_new_000af54c)()" (parenthesized_expression "(*(code *)PTR_iri_new_000af54c)" ( (pointer_expression "*(code *)PTR_iri_new_000af54c" * (cast_expression "(code *)PTR_iri_new_000af54c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);" (call_expression "(*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1)" (parenthesized_expression "(*(code *)PTR_set_uri_encoding_000af550)" ( (pointer_expression "*(code *)PTR_set_uri_encoding_000af550" * (cast_expression "(code *)PTR_set_uri_encoding_000af550" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,*(undefined4 *)(puVar1 + 0x21c),1)" ( identifier , (pointer_expression "*(undefined4 *)(puVar1 + 0x21c)" * (cast_expression "(undefined4 *)(puVar1 + 0x21c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x21c)" ( (binary_expression "puVar1 + 0x21c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "*(undefined1 *)(iVar3 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(iVar3 + 0xc) = 1" (pointer_expression "*(undefined1 *)(iVar3 + 0xc)" * (cast_expression "(undefined1 *)(iVar3 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);" statement_identifier : (expression_statement "uVar4 = uri_merge(iVar11,param_1);" (assignment_expression "uVar4 = uri_merge(iVar11,param_1)" identifier = (call_expression "uri_merge(iVar11,param_1)" identifier (argument_list "(iVar11,param_1)" ( identifier , identifier )))) ;)) (if_statement "if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }" { (expression_statement "uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));" (assignment_expression "uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc))" identifier = (call_expression "(*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc))" (parenthesized_expression "(*(code *)PTR_quotearg_n_style_000af820)" ( (pointer_expression "*(code *)PTR_quotearg_n_style_000af820" * (cast_expression "(code *)PTR_quotearg_n_style_000af820" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,7,*(undefined4 *)(param_4 + 0xc))" ( number_literal , number_literal , (pointer_expression "*(undefined4 *)(param_4 + 0xc)" * (cast_expression "(undefined4 *)(param_4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);" (assignment_expression "uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11)" identifier = (call_expression "(*(code *)PTR_quote_n_000af824)(1,iVar11)" (parenthesized_expression "(*(code *)PTR_quote_n_000af824)" ( (pointer_expression "*(code *)PTR_quote_n_000af824" * (cast_expression "(code *)PTR_quote_n_000af824" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,iVar11)" ( number_literal , identifier )))) ;) (expression_statement "uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);" (assignment_expression "uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1)" identifier = (call_expression "(*(code *)PTR_quote_n_000af824)(2,param_1)" (parenthesized_expression "(*(code *)PTR_quote_n_000af824)" ( (pointer_expression "*(code *)PTR_quote_n_000af824" * (cast_expression "(code *)PTR_quote_n_000af824" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2,param_1)" ( number_literal , identifier )))) ;) (expression_statement "uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);" (assignment_expression "uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4)" identifier = (call_expression "(*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4)" (parenthesized_expression "(*(code *)PTR_quotearg_n_style_000af820)" ( (pointer_expression "*(code *)PTR_quotearg_n_style_000af820" * (cast_expression "(code *)PTR_quotearg_n_style_000af820" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,7,uVar4)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x7e4" identifier + number_literal) , identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);" (assignment_expression "puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0)" identifier = (cast_expression "(undefined4 *)url_parse(uVar4,0,iVar3,0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "url_parse(uVar4,0,iVar3,0)" identifier (argument_list "(uVar4,0,iVar3,0)" ( identifier , number_literal , identifier , number_literal ))))) ;) (if_statement "if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" if (parenthesized_expression "(puVar5 == (undefined4 *)0x0)" ( (binary_expression "puVar5 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" { (if_statement "if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }" { (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x7c8" identifier + number_literal) , (pointer_expression "*(undefined4 *)(param_4 + 0xc)" * (cast_expression "(undefined4 *)(param_4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_000afd08)(uVar4);" (call_expression "(*(code *)PTR_free_000afd08)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_000afd08)" ( (pointer_expression "*(code *)PTR_free_000afd08" * (cast_expression "(code *)PTR_free_000afd08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "(*(code *)PTR_free_000afd08)(uVar4);" (call_expression "(*(code *)PTR_free_000afd08)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_000afd08)" ( (pointer_expression "*(code *)PTR_free_000afd08" * (cast_expression "(code *)PTR_free_000afd08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (if_statement "if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }" { (labeled_statement "LAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);" statement_identifier : (expression_statement "uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);" (assignment_expression "uVar4 = (*(code *)PTR_quote_000af590)(*puVar5)" identifier = (call_expression "(*(code *)PTR_quote_000af590)(*puVar5)" (parenthesized_expression "(*(code *)PTR_quote_000af590)" ( (pointer_expression "*(code *)PTR_quote_000af590" * (cast_expression "(code *)PTR_quote_000af590" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar5)" ( (pointer_expression "*puVar5" * identifier) )))) ;)) (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x7a0,uVar4)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x7a0" identifier + number_literal) , identifier ))) ;) })) (expression_statement "piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);" (assignment_expression "piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" identifier = (cast_expression "(int *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xcalloc_000af674)(1,0x20)" (parenthesized_expression "(*(code *)PTR_xcalloc_000af674)" ( (pointer_expression "*(code *)PTR_xcalloc_000af674" * (cast_expression "(code *)PTR_xcalloc_000af674" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x20)" ( number_literal , number_literal ))))) ;) (expression_statement "*piVar6 = (int)puVar5;" (assignment_expression "*piVar6 = (int)puVar5" (pointer_expression "*piVar6" * identifier) = (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar6[5] = param_2;" (assignment_expression "piVar6[5] = param_2" (subscript_expression "piVar6[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar6[6] = param_3;" (assignment_expression "piVar6[6] = param_3" (subscript_expression "piVar6[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }" { (if_statement "if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }" if (parenthesized_expression "(*param_1 != '/')" ( (binary_expression "*param_1 != '/'" (pointer_expression "*param_1" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }" { (expression_statement "*(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;" (assignment_expression "*(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000" (pointer_expression "*(ushort *)(piVar6 + 2)" * (cast_expression "(ushort *)(piVar6 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar6 + 2)" ( (binary_expression "piVar6 + 2" identifier + number_literal) )))) = (binary_expression "*(ushort *)(piVar6 + 2) & 0xbfff | 0x4000" (binary_expression "*(ushort *)(piVar6 + 2) & 0xbfff" (pointer_expression "*(ushort *)(piVar6 + 2)" * (cast_expression "(ushort *)(piVar6 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar6 + 2)" ( (binary_expression "piVar6 + 2" identifier + number_literal) )))) & number_literal) | number_literal)) ;) })) (expression_statement "iVar2 = *(int *)(param_4 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_4 + 0x14)" identifier = (pointer_expression "*(int *)(param_4 + 0x14)" * (cast_expression "(int *)(param_4 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x14)" ( (binary_expression "param_4 + 0x14" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x00033378;" goto statement_identifier ;) })) }))) (expression_statement "*(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;" (assignment_expression "*(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000" (pointer_expression "*(ushort *)(piVar6 + 2)" * (cast_expression "(ushort *)(piVar6 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar6 + 2)" ( (binary_expression "piVar6 + 2" identifier + number_literal) )))) = (binary_expression "*(ushort *)(piVar6 + 2) & 0xdfff | 0x2000" (binary_expression "*(ushort *)(piVar6 + 2) & 0xdfff" (pointer_expression "*(ushort *)(piVar6 + 2)" * (cast_expression "(ushort *)(piVar6 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar6 + 2)" ( (binary_expression "piVar6 + 2" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (expression_statement "iVar2 = *(int *)(param_4 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_4 + 0x14)" identifier = (pointer_expression "*(int *)(param_4 + 0x14)" * (cast_expression "(int *)(param_4 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x14)" ( (binary_expression "param_4 + 0x14" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x00033378:\n  if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }" statement_identifier : (if_statement "if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }" { (labeled_statement "LAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;" statement_identifier : (expression_statement "*(int **)(param_4 + 0x14) = piVar6;" (assignment_expression "*(int **)(param_4 + 0x14) = piVar6" (pointer_expression "*(int **)(param_4 + 0x14)" * (cast_expression "(int **)(param_4 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_4 + 0x14)" ( (binary_expression "param_4 + 0x14" identifier + number_literal) )))) = identifier) ;)) (return_statement "return piVar6;" return identifier ;) }))) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  } while (*(int *)(iVar3 + 0x1c) != 0);" do (compound_statement "{\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  }" { (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" identifier = identifier) ;) (if_statement "if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }" if (parenthesized_expression "(param_2 <= *(int *)(iVar3 + 0x14))" ( (binary_expression "param_2 <= *(int *)(iVar3 + 0x14)" identifier <= (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }" { (expression_statement "piVar6[7] = iVar3;" (assignment_expression "piVar6[7] = iVar3" (subscript_expression "piVar6[7]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar11 == 0) goto LAB_00033384;" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00033384;" goto statement_identifier ;)) (goto_statement "goto LAB_0003328c;" goto statement_identifier ;) })) (expression_statement "iVar2 = *(int *)(iVar3 + 0x1c);" (assignment_expression "iVar2 = *(int *)(iVar3 + 0x1c)" identifier = (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar11 = iVar3;" (assignment_expression "iVar11 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*(int *)(iVar3 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar3 + 0x1c) != 0" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) != number_literal) )) ;) (expression_statement "piVar6[7] = 0;" (assignment_expression "piVar6[7] = 0" (subscript_expression "piVar6[7]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_0003328c:\n  *(int **)(iVar11 + 0x1c) = piVar6;" statement_identifier : (expression_statement "*(int **)(iVar11 + 0x1c) = piVar6;" (assignment_expression "*(int **)(iVar11 + 0x1c) = piVar6" (pointer_expression "*(int **)(iVar11 + 0x1c)" * (cast_expression "(int **)(iVar11 + 0x1c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x1c)" ( (binary_expression "iVar11 + 0x1c" identifier + number_literal) )))) = identifier) ;)) (return_statement "return piVar6;" return identifier ;) })))
(translation_unit "urlpos * append_url(char *link_uri,int position,int size,map_context *ctx)\n\n{\n  undefined *puVar1;\n  undefined3 extraout_var;\n  _Bool _Var11;\n  iri *iri;\n  char *url;\n  url *puVar2;\n  urlpos *puVar3;\n  urlpos *puVar4;\n  urlpos *puVar5;\n  urlpos *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  char *pcVar12;\n  \n  _Var11 = url_has_scheme(link_uri);\n  puVar1 = PTR_opt_000af488;\n  pcVar12 = ctx->base;\n  if (pcVar12 == (char *)0x0) {\n    pcVar12 = ctx->parent_base;\n    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);\n    iri->utf8_encode = true;\n    if (pcVar12 != (char *)0x0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,ctx->document_file,link_uri);\n    }\n    if (CONCAT31(extraout_var,_Var11) == 0) {\n      pcVar12 = (char *)(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n                    /* WARNING: Subroutine does not return */\n      logprintf(LOG_NOTQUIET,pcVar12,ctx->document_file,link_uri);\n    }\n    puVar2 = url_parse(link_uri,(int *)0x0,iri,false);\n    if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri);\n      }\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iri);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    puVar3->url = puVar2;\n    puVar3->pos = position;\n    puVar3->size = size;\n  }\n  else {\n    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);\n    iri->utf8_encode = true;\nLAB_000331a0:\n    url = uri_merge(pcVar12,link_uri);\n    if (puVar1[0x16b] != '\0') {\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file);\n      uVar7 = (*(code *)PTR_quote_n_000af824)(1,pcVar12);\n      uVar8 = (*(code *)PTR_quote_n_000af824)(2,link_uri);\n      uVar9 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar10,uVar7,uVar8,uVar9);\n    }\n    puVar2 = url_parse(url,(int *)0x0,iri,false);\n    if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url);\n      }\n      (*(code *)PTR_free_000afd08)(url);\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(url);\n    (*(code *)PTR_iri_free_000af548)(iri);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar10 = (*(code *)PTR_quote_000af590)(puVar2->url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar10);\n    }\n    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    puVar3->url = puVar2;\n    puVar3->pos = position;\n    puVar3->size = size;\n    if (CONCAT31(extraout_var,_Var11) == 0) {\n      if (*link_uri != '/') {\n        *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000;\n      }\n      puVar4 = ctx->head;\n      goto joined_r0x00033378;\n    }\n  }\n  *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xdfff | 0x2000;\n  puVar4 = ctx->head;\njoined_r0x00033378:\n  if (puVar4 == (urlpos *)0x0) {\nLAB_00033384:\n    ctx->head = puVar3;\n    return puVar3;\n  }\n  puVar6 = (urlpos *)0x0;\n  do {\n    puVar5 = puVar4;\n    if (position <= puVar5->pos) {\n      puVar3->next = puVar5;\n      if (puVar6 == (urlpos *)0x0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    puVar4 = puVar5->next;\n    puVar6 = puVar5;\n  } while (puVar5->next != (urlpos *)0x0);\n  puVar3->next = (urlpos *)0x0;\nLAB_0003328c:\n  puVar6->next = puVar3;\n  return puVar3;\n}\n\n" (function_definition "urlpos * append_url(char *link_uri,int position,int size,map_context *ctx)\n\n{\n  undefined *puVar1;\n  undefined3 extraout_var;\n  _Bool _Var11;\n  iri *iri;\n  char *url;\n  url *puVar2;\n  urlpos *puVar3;\n  urlpos *puVar4;\n  urlpos *puVar5;\n  urlpos *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  char *pcVar12;\n  \n  _Var11 = url_has_scheme(link_uri);\n  puVar1 = PTR_opt_000af488;\n  pcVar12 = ctx->base;\n  if (pcVar12 == (char *)0x0) {\n    pcVar12 = ctx->parent_base;\n    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);\n    iri->utf8_encode = true;\n    if (pcVar12 != (char *)0x0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,ctx->document_file,link_uri);\n    }\n    if (CONCAT31(extraout_var,_Var11) == 0) {\n      pcVar12 = (char *)(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n                    /* WARNING: Subroutine does not return */\n      logprintf(LOG_NOTQUIET,pcVar12,ctx->document_file,link_uri);\n    }\n    puVar2 = url_parse(link_uri,(int *)0x0,iri,false);\n    if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri);\n      }\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iri);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    puVar3->url = puVar2;\n    puVar3->pos = position;\n    puVar3->size = size;\n  }\n  else {\n    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);\n    iri->utf8_encode = true;\nLAB_000331a0:\n    url = uri_merge(pcVar12,link_uri);\n    if (puVar1[0x16b] != '\0') {\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file);\n      uVar7 = (*(code *)PTR_quote_n_000af824)(1,pcVar12);\n      uVar8 = (*(code *)PTR_quote_n_000af824)(2,link_uri);\n      uVar9 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar10,uVar7,uVar8,uVar9);\n    }\n    puVar2 = url_parse(url,(int *)0x0,iri,false);\n    if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url);\n      }\n      (*(code *)PTR_free_000afd08)(url);\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(url);\n    (*(code *)PTR_iri_free_000af548)(iri);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar10 = (*(code *)PTR_quote_000af590)(puVar2->url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar10);\n    }\n    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    puVar3->url = puVar2;\n    puVar3->pos = position;\n    puVar3->size = size;\n    if (CONCAT31(extraout_var,_Var11) == 0) {\n      if (*link_uri != '/') {\n        *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000;\n      }\n      puVar4 = ctx->head;\n      goto joined_r0x00033378;\n    }\n  }\n  *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xdfff | 0x2000;\n  puVar4 = ctx->head;\njoined_r0x00033378:\n  if (puVar4 == (urlpos *)0x0) {\nLAB_00033384:\n    ctx->head = puVar3;\n    return puVar3;\n  }\n  puVar6 = (urlpos *)0x0;\n  do {\n    puVar5 = puVar4;\n    if (position <= puVar5->pos) {\n      puVar3->next = puVar5;\n      if (puVar6 == (urlpos *)0x0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    puVar4 = puVar5->next;\n    puVar6 = puVar5;\n  } while (puVar5->next != (urlpos *)0x0);\n  puVar3->next = (urlpos *)0x0;\nLAB_0003328c:\n  puVar6->next = puVar3;\n  return puVar3;\n}" type_identifier (pointer_declarator "* append_url(char *link_uri,int position,int size,map_context *ctx)" * (function_declarator "append_url(char *link_uri,int position,int size,map_context *ctx)" identifier (parameter_list "(char *link_uri,int position,int size,map_context *ctx)" ( (parameter_declaration "char *link_uri" primitive_type (pointer_declarator "*link_uri" * identifier)) , (parameter_declaration "int position" primitive_type identifier) , (parameter_declaration "int size" primitive_type identifier) , (parameter_declaration "map_context *ctx" type_identifier (pointer_declarator "*ctx" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined3 extraout_var;\n  _Bool _Var11;\n  iri *iri;\n  char *url;\n  url *puVar2;\n  urlpos *puVar3;\n  urlpos *puVar4;\n  urlpos *puVar5;\n  urlpos *puVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  char *pcVar12;\n  \n  _Var11 = url_has_scheme(link_uri);\n  puVar1 = PTR_opt_000af488;\n  pcVar12 = ctx->base;\n  if (pcVar12 == (char *)0x0) {\n    pcVar12 = ctx->parent_base;\n    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);\n    iri->utf8_encode = true;\n    if (pcVar12 != (char *)0x0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,ctx->document_file,link_uri);\n    }\n    if (CONCAT31(extraout_var,_Var11) == 0) {\n      pcVar12 = (char *)(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n                    /* WARNING: Subroutine does not return */\n      logprintf(LOG_NOTQUIET,pcVar12,ctx->document_file,link_uri);\n    }\n    puVar2 = url_parse(link_uri,(int *)0x0,iri,false);\n    if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri);\n      }\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iri);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    puVar3->url = puVar2;\n    puVar3->pos = position;\n    puVar3->size = size;\n  }\n  else {\n    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);\n    iri->utf8_encode = true;\nLAB_000331a0:\n    url = uri_merge(pcVar12,link_uri);\n    if (puVar1[0x16b] != '\0') {\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file);\n      uVar7 = (*(code *)PTR_quote_n_000af824)(1,pcVar12);\n      uVar8 = (*(code *)PTR_quote_n_000af824)(2,link_uri);\n      uVar9 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar10,uVar7,uVar8,uVar9);\n    }\n    puVar2 = url_parse(url,(int *)0x0,iri,false);\n    if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url);\n      }\n      (*(code *)PTR_free_000afd08)(url);\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(url);\n    (*(code *)PTR_iri_free_000af548)(iri);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar10 = (*(code *)PTR_quote_000af590)(puVar2->url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar10);\n    }\n    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    puVar3->url = puVar2;\n    puVar3->pos = position;\n    puVar3->size = size;\n    if (CONCAT31(extraout_var,_Var11) == 0) {\n      if (*link_uri != '/') {\n        *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000;\n      }\n      puVar4 = ctx->head;\n      goto joined_r0x00033378;\n    }\n  }\n  *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xdfff | 0x2000;\n  puVar4 = ctx->head;\njoined_r0x00033378:\n  if (puVar4 == (urlpos *)0x0) {\nLAB_00033384:\n    ctx->head = puVar3;\n    return puVar3;\n  }\n  puVar6 = (urlpos *)0x0;\n  do {\n    puVar5 = puVar4;\n    if (position <= puVar5->pos) {\n      puVar3->next = puVar5;\n      if (puVar6 == (urlpos *)0x0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    puVar4 = puVar5->next;\n    puVar6 = puVar5;\n  } while (puVar5->next != (urlpos *)0x0);\n  puVar3->next = (urlpos *)0x0;\nLAB_0003328c:\n  puVar6->next = puVar3;\n  return puVar3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "_Bool _Var11;" type_identifier identifier ;) (declaration "iri *iri;" type_identifier (pointer_declarator "*iri" * identifier) ;) (declaration "char *url;" primitive_type (pointer_declarator "*url" * identifier) ;) (declaration "url *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "urlpos *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "urlpos *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "urlpos *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "urlpos *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "char *pcVar12;" primitive_type (pointer_declarator "*pcVar12" * identifier) ;) (expression_statement "_Var11 = url_has_scheme(link_uri);" (assignment_expression "_Var11 = url_has_scheme(link_uri)" identifier = (call_expression "url_has_scheme(link_uri)" identifier (argument_list "(link_uri)" ( identifier )))) ;) (expression_statement "puVar1 = PTR_opt_000af488;" (assignment_expression "puVar1 = PTR_opt_000af488" identifier = identifier) ;) (expression_statement "pcVar12 = ctx->base;" (assignment_expression "pcVar12 = ctx->base" identifier = (field_expression "ctx->base" identifier -> field_identifier)) ;) (if_statement "if (pcVar12 == (char *)0x0) {\n    pcVar12 = ctx->parent_base;\n    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);\n    iri->utf8_encode = true;\n    if (pcVar12 != (char *)0x0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,ctx->document_file,link_uri);\n    }\n    if (CONCAT31(extraout_var,_Var11) == 0) {\n      pcVar12 = (char *)(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n                    /* WARNING: Subroutine does not return */\n      logprintf(LOG_NOTQUIET,pcVar12,ctx->document_file,link_uri);\n    }\n    puVar2 = url_parse(link_uri,(int *)0x0,iri,false);\n    if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri);\n      }\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iri);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    puVar3->url = puVar2;\n    puVar3->pos = position;\n    puVar3->size = size;\n  }\n  else {\n    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);\n    iri->utf8_encode = true;\nLAB_000331a0:\n    url = uri_merge(pcVar12,link_uri);\n    if (puVar1[0x16b] != '\0') {\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file);\n      uVar7 = (*(code *)PTR_quote_n_000af824)(1,pcVar12);\n      uVar8 = (*(code *)PTR_quote_n_000af824)(2,link_uri);\n      uVar9 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar10,uVar7,uVar8,uVar9);\n    }\n    puVar2 = url_parse(url,(int *)0x0,iri,false);\n    if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url);\n      }\n      (*(code *)PTR_free_000afd08)(url);\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(url);\n    (*(code *)PTR_iri_free_000af548)(iri);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar10 = (*(code *)PTR_quote_000af590)(puVar2->url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar10);\n    }\n    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    puVar3->url = puVar2;\n    puVar3->pos = position;\n    puVar3->size = size;\n    if (CONCAT31(extraout_var,_Var11) == 0) {\n      if (*link_uri != '/') {\n        *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000;\n      }\n      puVar4 = ctx->head;\n      goto joined_r0x00033378;\n    }\n  }" if (parenthesized_expression "(pcVar12 == (char *)0x0)" ( (binary_expression "pcVar12 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar12 = ctx->parent_base;\n    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);\n    iri->utf8_encode = true;\n    if (pcVar12 != (char *)0x0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,ctx->document_file,link_uri);\n    }\n    if (CONCAT31(extraout_var,_Var11) == 0) {\n      pcVar12 = (char *)(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n                    /* WARNING: Subroutine does not return */\n      logprintf(LOG_NOTQUIET,pcVar12,ctx->document_file,link_uri);\n    }\n    puVar2 = url_parse(link_uri,(int *)0x0,iri,false);\n    if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri);\n      }\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iri);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    puVar3->url = puVar2;\n    puVar3->pos = position;\n    puVar3->size = size;\n  }" { (expression_statement "pcVar12 = ctx->parent_base;" (assignment_expression "pcVar12 = ctx->parent_base" identifier = (field_expression "ctx->parent_base" identifier -> field_identifier)) ;) (expression_statement "iri = (iri *)(*(code *)PTR_iri_new_000af54c)();" (assignment_expression "iri = (iri *)(*(code *)PTR_iri_new_000af54c)()" identifier = (cast_expression "(iri *)(*(code *)PTR_iri_new_000af54c)()" ( (type_descriptor "iri *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_iri_new_000af54c)()" (parenthesized_expression "(*(code *)PTR_iri_new_000af54c)" ( (pointer_expression "*(code *)PTR_iri_new_000af54c" * (cast_expression "(code *)PTR_iri_new_000af54c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "(*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);" (call_expression "(*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1)" (parenthesized_expression "(*(code *)PTR_set_uri_encoding_000af550)" ( (pointer_expression "*(code *)PTR_set_uri_encoding_000af550" * (cast_expression "(code *)PTR_set_uri_encoding_000af550" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iri,*(undefined4 *)(puVar1 + 0x21c),1)" ( identifier , (pointer_expression "*(undefined4 *)(puVar1 + 0x21c)" * (cast_expression "(undefined4 *)(puVar1 + 0x21c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x21c)" ( (binary_expression "puVar1 + 0x21c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "iri->utf8_encode = true;" (assignment_expression "iri->utf8_encode = true" (field_expression "iri->utf8_encode" identifier -> field_identifier) = true) ;) (if_statement "if (pcVar12 != (char *)0x0) goto LAB_000331a0;" if (parenthesized_expression "(pcVar12 != (char *)0x0)" ( (binary_expression "pcVar12 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000331a0;" goto statement_identifier ;)) (if_statement "if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,ctx->document_file,link_uri);\n    }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,ctx->document_file,link_uri);\n    }" { (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x850,ctx->document_file,link_uri);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x850,ctx->document_file,link_uri)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x850,ctx->document_file,link_uri)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x850" identifier + number_literal) , (field_expression "ctx->document_file" identifier -> field_identifier) , identifier ))) ;) })) (if_statement "if (CONCAT31(extraout_var,_Var11) == 0) {\n      pcVar12 = (char *)(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n                    /* WARNING: Subroutine does not return */\n      logprintf(LOG_NOTQUIET,pcVar12,ctx->document_file,link_uri);\n    }" if (parenthesized_expression "(CONCAT31(extraout_var,_Var11) == 0)" ( (binary_expression "CONCAT31(extraout_var,_Var11) == 0" (call_expression "CONCAT31(extraout_var,_Var11)" identifier (argument_list "(extraout_var,_Var11)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n      pcVar12 = (char *)(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n                    /* WARNING: Subroutine does not return */\n      logprintf(LOG_NOTQUIET,pcVar12,ctx->document_file,link_uri);\n    }" { (expression_statement "pcVar12 = (char *)(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);" (assignment_expression "pcVar12 = (char *)(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5)" identifier = (cast_expression "(char *)(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000afcf4)" ( (pointer_expression "*(code *)PTR_dcgettext_000afcf4" * (cast_expression "(code *)PTR_dcgettext_000afcf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_hallenge__000af46c + -0x82c,5)" ( number_literal , (binary_expression "PTR_s_hallenge__000af46c + -0x82c" identifier + number_literal) , number_literal ))))) ;) comment (expression_statement "logprintf(LOG_NOTQUIET,pcVar12,ctx->document_file,link_uri);" (call_expression "logprintf(LOG_NOTQUIET,pcVar12,ctx->document_file,link_uri)" identifier (argument_list "(LOG_NOTQUIET,pcVar12,ctx->document_file,link_uri)" ( identifier , identifier , (field_expression "ctx->document_file" identifier -> field_identifier) , identifier ))) ;) })) (expression_statement "puVar2 = url_parse(link_uri,(int *)0x0,iri,false);" (assignment_expression "puVar2 = url_parse(link_uri,(int *)0x0,iri,false)" identifier = (call_expression "url_parse(link_uri,(int *)0x0,iri,false)" identifier (argument_list "(link_uri,(int *)0x0,iri,false)" ( identifier , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , false )))) ;) (if_statement "if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri);\n      }\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }" if (parenthesized_expression "(puVar2 == (url *)0x0)" ( (binary_expression "puVar2 == (url *)0x0" identifier == (cast_expression "(url *)0x0" ( (type_descriptor "url *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri);\n      }\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }" { (if_statement "if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri);\n      }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri);\n      }" { (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x804,ctx->document_file,link_uri)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x804" identifier + number_literal) , (field_expression "ctx->document_file" identifier -> field_identifier) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_iri_free_000af548)(iri);" (call_expression "(*(code *)PTR_iri_free_000af548)(iri)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iri)" ( identifier ))) ;) (return_statement "return (urlpos *)0x0;" return (cast_expression "(urlpos *)0x0" ( (type_descriptor "urlpos *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "(*(code *)PTR_iri_free_000af548)(iri);" (call_expression "(*(code *)PTR_iri_free_000af548)(iri)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iri)" ( identifier ))) ;) (if_statement "if (puVar1[0x16b] != '\0') goto LAB_000334e4;" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000334e4;" goto statement_identifier ;)) (expression_statement "puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);" (assignment_expression "puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" identifier = (cast_expression "(urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" ( (type_descriptor "urlpos *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xcalloc_000af674)(1,0x20)" (parenthesized_expression "(*(code *)PTR_xcalloc_000af674)" ( (pointer_expression "*(code *)PTR_xcalloc_000af674" * (cast_expression "(code *)PTR_xcalloc_000af674" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x20)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar3->url = puVar2;" (assignment_expression "puVar3->url = puVar2" (field_expression "puVar3->url" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar3->pos = position;" (assignment_expression "puVar3->pos = position" (field_expression "puVar3->pos" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar3->size = size;" (assignment_expression "puVar3->size = size" (field_expression "puVar3->size" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);\n    iri->utf8_encode = true;\nLAB_000331a0:\n    url = uri_merge(pcVar12,link_uri);\n    if (puVar1[0x16b] != '\0') {\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file);\n      uVar7 = (*(code *)PTR_quote_n_000af824)(1,pcVar12);\n      uVar8 = (*(code *)PTR_quote_n_000af824)(2,link_uri);\n      uVar9 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar10,uVar7,uVar8,uVar9);\n    }\n    puVar2 = url_parse(url,(int *)0x0,iri,false);\n    if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url);\n      }\n      (*(code *)PTR_free_000afd08)(url);\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(url);\n    (*(code *)PTR_iri_free_000af548)(iri);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar10 = (*(code *)PTR_quote_000af590)(puVar2->url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar10);\n    }\n    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    puVar3->url = puVar2;\n    puVar3->pos = position;\n    puVar3->size = size;\n    if (CONCAT31(extraout_var,_Var11) == 0) {\n      if (*link_uri != '/') {\n        *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000;\n      }\n      puVar4 = ctx->head;\n      goto joined_r0x00033378;\n    }\n  }" else (compound_statement "{\n    iri = (iri *)(*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);\n    iri->utf8_encode = true;\nLAB_000331a0:\n    url = uri_merge(pcVar12,link_uri);\n    if (puVar1[0x16b] != '\0') {\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file);\n      uVar7 = (*(code *)PTR_quote_n_000af824)(1,pcVar12);\n      uVar8 = (*(code *)PTR_quote_n_000af824)(2,link_uri);\n      uVar9 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar10,uVar7,uVar8,uVar9);\n    }\n    puVar2 = url_parse(url,(int *)0x0,iri,false);\n    if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url);\n      }\n      (*(code *)PTR_free_000afd08)(url);\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(url);\n    (*(code *)PTR_iri_free_000af548)(iri);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar10 = (*(code *)PTR_quote_000af590)(puVar2->url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar10);\n    }\n    puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    puVar3->url = puVar2;\n    puVar3->pos = position;\n    puVar3->size = size;\n    if (CONCAT31(extraout_var,_Var11) == 0) {\n      if (*link_uri != '/') {\n        *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000;\n      }\n      puVar4 = ctx->head;\n      goto joined_r0x00033378;\n    }\n  }" { (expression_statement "iri = (iri *)(*(code *)PTR_iri_new_000af54c)();" (assignment_expression "iri = (iri *)(*(code *)PTR_iri_new_000af54c)()" identifier = (cast_expression "(iri *)(*(code *)PTR_iri_new_000af54c)()" ( (type_descriptor "iri *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_iri_new_000af54c)()" (parenthesized_expression "(*(code *)PTR_iri_new_000af54c)" ( (pointer_expression "*(code *)PTR_iri_new_000af54c" * (cast_expression "(code *)PTR_iri_new_000af54c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "(*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1);" (call_expression "(*(code *)PTR_set_uri_encoding_000af550)(iri,*(undefined4 *)(puVar1 + 0x21c),1)" (parenthesized_expression "(*(code *)PTR_set_uri_encoding_000af550)" ( (pointer_expression "*(code *)PTR_set_uri_encoding_000af550" * (cast_expression "(code *)PTR_set_uri_encoding_000af550" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iri,*(undefined4 *)(puVar1 + 0x21c),1)" ( identifier , (pointer_expression "*(undefined4 *)(puVar1 + 0x21c)" * (cast_expression "(undefined4 *)(puVar1 + 0x21c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x21c)" ( (binary_expression "puVar1 + 0x21c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "iri->utf8_encode = true;" (assignment_expression "iri->utf8_encode = true" (field_expression "iri->utf8_encode" identifier -> field_identifier) = true) ;) (labeled_statement "LAB_000331a0:\n    url = uri_merge(pcVar12,link_uri);" statement_identifier : (expression_statement "url = uri_merge(pcVar12,link_uri);" (assignment_expression "url = uri_merge(pcVar12,link_uri)" identifier = (call_expression "uri_merge(pcVar12,link_uri)" identifier (argument_list "(pcVar12,link_uri)" ( identifier , identifier )))) ;)) (if_statement "if (puVar1[0x16b] != '\0') {\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file);\n      uVar7 = (*(code *)PTR_quote_n_000af824)(1,pcVar12);\n      uVar8 = (*(code *)PTR_quote_n_000af824)(2,link_uri);\n      uVar9 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar10,uVar7,uVar8,uVar9);\n    }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file);\n      uVar7 = (*(code *)PTR_quote_n_000af824)(1,pcVar12);\n      uVar8 = (*(code *)PTR_quote_n_000af824)(2,link_uri);\n      uVar9 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar10,uVar7,uVar8,uVar9);\n    }" { (expression_statement "uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file);" (assignment_expression "uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file)" identifier = (call_expression "(*(code *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file)" (parenthesized_expression "(*(code *)PTR_quotearg_n_style_000af820)" ( (pointer_expression "*(code *)PTR_quotearg_n_style_000af820" * (cast_expression "(code *)PTR_quotearg_n_style_000af820" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,7,ctx->document_file)" ( number_literal , number_literal , (field_expression "ctx->document_file" identifier -> field_identifier) )))) ;) (expression_statement "uVar7 = (*(code *)PTR_quote_n_000af824)(1,pcVar12);" (assignment_expression "uVar7 = (*(code *)PTR_quote_n_000af824)(1,pcVar12)" identifier = (call_expression "(*(code *)PTR_quote_n_000af824)(1,pcVar12)" (parenthesized_expression "(*(code *)PTR_quote_n_000af824)" ( (pointer_expression "*(code *)PTR_quote_n_000af824" * (cast_expression "(code *)PTR_quote_n_000af824" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,pcVar12)" ( number_literal , identifier )))) ;) (expression_statement "uVar8 = (*(code *)PTR_quote_n_000af824)(2,link_uri);" (assignment_expression "uVar8 = (*(code *)PTR_quote_n_000af824)(2,link_uri)" identifier = (call_expression "(*(code *)PTR_quote_n_000af824)(2,link_uri)" (parenthesized_expression "(*(code *)PTR_quote_n_000af824)" ( (pointer_expression "*(code *)PTR_quote_n_000af824" * (cast_expression "(code *)PTR_quote_n_000af824" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2,link_uri)" ( number_literal , identifier )))) ;) (expression_statement "uVar9 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,url);" (assignment_expression "uVar9 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,url)" identifier = (call_expression "(*(code *)PTR_quotearg_n_style_000af820)(3,7,url)" (parenthesized_expression "(*(code *)PTR_quotearg_n_style_000af820)" ( (pointer_expression "*(code *)PTR_quotearg_n_style_000af820" * (cast_expression "(code *)PTR_quotearg_n_style_000af820" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,7,url)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar10,uVar7,uVar8,uVar9);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar10,uVar7,uVar8,uVar9)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x7e4,uVar10,uVar7,uVar8,uVar9)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x7e4" identifier + number_literal) , identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "puVar2 = url_parse(url,(int *)0x0,iri,false);" (assignment_expression "puVar2 = url_parse(url,(int *)0x0,iri,false)" identifier = (call_expression "url_parse(url,(int *)0x0,iri,false)" identifier (argument_list "(url,(int *)0x0,iri,false)" ( identifier , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , false )))) ;) (if_statement "if (puVar2 == (url *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url);\n      }\n      (*(code *)PTR_free_000afd08)(url);\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }" if (parenthesized_expression "(puVar2 == (url *)0x0)" ( (binary_expression "puVar2 == (url *)0x0" identifier == (cast_expression "(url *)0x0" ( (type_descriptor "url *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url);\n      }\n      (*(code *)PTR_free_000afd08)(url);\n      (*(code *)PTR_iri_free_000af548)(iri);\n      return (urlpos *)0x0;\n    }" { (if_statement "if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url);\n      }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url);\n      }" { (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x7c8,ctx->document_file,url)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x7c8" identifier + number_literal) , (field_expression "ctx->document_file" identifier -> field_identifier) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_000afd08)(url);" (call_expression "(*(code *)PTR_free_000afd08)(url)" (parenthesized_expression "(*(code *)PTR_free_000afd08)" ( (pointer_expression "*(code *)PTR_free_000afd08" * (cast_expression "(code *)PTR_free_000afd08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(url)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_iri_free_000af548)(iri);" (call_expression "(*(code *)PTR_iri_free_000af548)(iri)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iri)" ( identifier ))) ;) (return_statement "return (urlpos *)0x0;" return (cast_expression "(urlpos *)0x0" ( (type_descriptor "urlpos *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "(*(code *)PTR_free_000afd08)(url);" (call_expression "(*(code *)PTR_free_000afd08)(url)" (parenthesized_expression "(*(code *)PTR_free_000afd08)" ( (pointer_expression "*(code *)PTR_free_000afd08" * (cast_expression "(code *)PTR_free_000afd08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(url)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_iri_free_000af548)(iri);" (call_expression "(*(code *)PTR_iri_free_000af548)(iri)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iri)" ( identifier ))) ;) (if_statement "if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar10 = (*(code *)PTR_quote_000af590)(puVar2->url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar10);\n    }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000334e4:\n      uVar10 = (*(code *)PTR_quote_000af590)(puVar2->url);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar10);\n    }" { (labeled_statement "LAB_000334e4:\n      uVar10 = (*(code *)PTR_quote_000af590)(puVar2->url);" statement_identifier : (expression_statement "uVar10 = (*(code *)PTR_quote_000af590)(puVar2->url);" (assignment_expression "uVar10 = (*(code *)PTR_quote_000af590)(puVar2->url)" identifier = (call_expression "(*(code *)PTR_quote_000af590)(puVar2->url)" (parenthesized_expression "(*(code *)PTR_quote_000af590)" ( (pointer_expression "*(code *)PTR_quote_000af590" * (cast_expression "(code *)PTR_quote_000af590" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2->url)" ( (field_expression "puVar2->url" identifier -> field_identifier) )))) ;)) (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar10);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar10)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x7a0,uVar10)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x7a0" identifier + number_literal) , identifier ))) ;) })) (expression_statement "puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20);" (assignment_expression "puVar3 = (urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" identifier = (cast_expression "(urlpos *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" ( (type_descriptor "urlpos *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xcalloc_000af674)(1,0x20)" (parenthesized_expression "(*(code *)PTR_xcalloc_000af674)" ( (pointer_expression "*(code *)PTR_xcalloc_000af674" * (cast_expression "(code *)PTR_xcalloc_000af674" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x20)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar3->url = puVar2;" (assignment_expression "puVar3->url = puVar2" (field_expression "puVar3->url" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar3->pos = position;" (assignment_expression "puVar3->pos = position" (field_expression "puVar3->pos" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar3->size = size;" (assignment_expression "puVar3->size = size" (field_expression "puVar3->size" identifier -> field_identifier) = identifier) ;) (if_statement "if (CONCAT31(extraout_var,_Var11) == 0) {\n      if (*link_uri != '/') {\n        *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000;\n      }\n      puVar4 = ctx->head;\n      goto joined_r0x00033378;\n    }" if (parenthesized_expression "(CONCAT31(extraout_var,_Var11) == 0)" ( (binary_expression "CONCAT31(extraout_var,_Var11) == 0" (call_expression "CONCAT31(extraout_var,_Var11)" identifier (argument_list "(extraout_var,_Var11)" ( identifier , identifier ))) == number_literal) )) (compound_statement "{\n      if (*link_uri != '/') {\n        *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000;\n      }\n      puVar4 = ctx->head;\n      goto joined_r0x00033378;\n    }" { (if_statement "if (*link_uri != '/') {\n        *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000;\n      }" if (parenthesized_expression "(*link_uri != '/')" ( (binary_expression "*link_uri != '/'" (pointer_expression "*link_uri" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n        *(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000;\n      }" { (expression_statement "*(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000;" (assignment_expression "*(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000" (pointer_expression "*(ushort *)&puVar3->field_0x8" * (cast_expression "(ushort *)&puVar3->field_0x8" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&puVar3->field_0x8" & (field_expression "puVar3->field_0x8" identifier -> field_identifier)))) = (binary_expression "*(ushort *)&puVar3->field_0x8 & 0xbfff | 0x4000" (binary_expression "*(ushort *)&puVar3->field_0x8 & 0xbfff" (pointer_expression "*(ushort *)&puVar3->field_0x8" * (cast_expression "(ushort *)&puVar3->field_0x8" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&puVar3->field_0x8" & (field_expression "puVar3->field_0x8" identifier -> field_identifier)))) & number_literal) | number_literal)) ;) })) (expression_statement "puVar4 = ctx->head;" (assignment_expression "puVar4 = ctx->head" identifier = (field_expression "ctx->head" identifier -> field_identifier)) ;) (goto_statement "goto joined_r0x00033378;" goto statement_identifier ;) })) }))) (expression_statement "*(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xdfff | 0x2000;" (assignment_expression "*(ushort *)&puVar3->field_0x8 = *(ushort *)&puVar3->field_0x8 & 0xdfff | 0x2000" (pointer_expression "*(ushort *)&puVar3->field_0x8" * (cast_expression "(ushort *)&puVar3->field_0x8" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&puVar3->field_0x8" & (field_expression "puVar3->field_0x8" identifier -> field_identifier)))) = (binary_expression "*(ushort *)&puVar3->field_0x8 & 0xdfff | 0x2000" (binary_expression "*(ushort *)&puVar3->field_0x8 & 0xdfff" (pointer_expression "*(ushort *)&puVar3->field_0x8" * (cast_expression "(ushort *)&puVar3->field_0x8" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&puVar3->field_0x8" & (field_expression "puVar3->field_0x8" identifier -> field_identifier)))) & number_literal) | number_literal)) ;) (expression_statement "puVar4 = ctx->head;" (assignment_expression "puVar4 = ctx->head" identifier = (field_expression "ctx->head" identifier -> field_identifier)) ;) (labeled_statement "joined_r0x00033378:\n  if (puVar4 == (urlpos *)0x0) {\nLAB_00033384:\n    ctx->head = puVar3;\n    return puVar3;\n  }" statement_identifier : (if_statement "if (puVar4 == (urlpos *)0x0) {\nLAB_00033384:\n    ctx->head = puVar3;\n    return puVar3;\n  }" if (parenthesized_expression "(puVar4 == (urlpos *)0x0)" ( (binary_expression "puVar4 == (urlpos *)0x0" identifier == (cast_expression "(urlpos *)0x0" ( (type_descriptor "urlpos *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00033384:\n    ctx->head = puVar3;\n    return puVar3;\n  }" { (labeled_statement "LAB_00033384:\n    ctx->head = puVar3;" statement_identifier : (expression_statement "ctx->head = puVar3;" (assignment_expression "ctx->head = puVar3" (field_expression "ctx->head" identifier -> field_identifier) = identifier) ;)) (return_statement "return puVar3;" return identifier ;) }))) (expression_statement "puVar6 = (urlpos *)0x0;" (assignment_expression "puVar6 = (urlpos *)0x0" identifier = (cast_expression "(urlpos *)0x0" ( (type_descriptor "urlpos *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n    puVar5 = puVar4;\n    if (position <= puVar5->pos) {\n      puVar3->next = puVar5;\n      if (puVar6 == (urlpos *)0x0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    puVar4 = puVar5->next;\n    puVar6 = puVar5;\n  } while (puVar5->next != (urlpos *)0x0);" do (compound_statement "{\n    puVar5 = puVar4;\n    if (position <= puVar5->pos) {\n      puVar3->next = puVar5;\n      if (puVar6 == (urlpos *)0x0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    puVar4 = puVar5->next;\n    puVar6 = puVar5;\n  }" { (expression_statement "puVar5 = puVar4;" (assignment_expression "puVar5 = puVar4" identifier = identifier) ;) (if_statement "if (position <= puVar5->pos) {\n      puVar3->next = puVar5;\n      if (puVar6 == (urlpos *)0x0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }" if (parenthesized_expression "(position <= puVar5->pos)" ( (binary_expression "position <= puVar5->pos" identifier <= (field_expression "puVar5->pos" identifier -> field_identifier)) )) (compound_statement "{\n      puVar3->next = puVar5;\n      if (puVar6 == (urlpos *)0x0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }" { (expression_statement "puVar3->next = puVar5;" (assignment_expression "puVar3->next = puVar5" (field_expression "puVar3->next" identifier -> field_identifier) = identifier) ;) (if_statement "if (puVar6 == (urlpos *)0x0) goto LAB_00033384;" if (parenthesized_expression "(puVar6 == (urlpos *)0x0)" ( (binary_expression "puVar6 == (urlpos *)0x0" identifier == (cast_expression "(urlpos *)0x0" ( (type_descriptor "urlpos *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00033384;" goto statement_identifier ;)) (goto_statement "goto LAB_0003328c;" goto statement_identifier ;) })) (expression_statement "puVar4 = puVar5->next;" (assignment_expression "puVar4 = puVar5->next" identifier = (field_expression "puVar5->next" identifier -> field_identifier)) ;) (expression_statement "puVar6 = puVar5;" (assignment_expression "puVar6 = puVar5" identifier = identifier) ;) }) while (parenthesized_expression "(puVar5->next != (urlpos *)0x0)" ( (binary_expression "puVar5->next != (urlpos *)0x0" (field_expression "puVar5->next" identifier -> field_identifier) != (cast_expression "(urlpos *)0x0" ( (type_descriptor "urlpos *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "puVar3->next = (urlpos *)0x0;" (assignment_expression "puVar3->next = (urlpos *)0x0" (field_expression "puVar3->next" identifier -> field_identifier) = (cast_expression "(urlpos *)0x0" ( (type_descriptor "urlpos *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0003328c:\n  puVar6->next = puVar3;" statement_identifier : (expression_statement "puVar6->next = puVar3;" (assignment_expression "puVar6->next = puVar3" (field_expression "puVar6->next" identifier -> field_identifier) = identifier) ;)) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit "int * append_url(char *param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  int iVar11;\n  \n  iVar2 = url_has_scheme();\n  puVar1 = PTR_opt_000af488;\n  iVar11 = *(int *)(param_4 + 4);\n  if (iVar11 == 0) {\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }\n  else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }\n  *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;\n  iVar2 = *(int *)(param_4 + 0x14);\njoined_r0x00033378:\n  if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }\n  iVar11 = 0;\n  do {\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  } while (*(int *)(iVar3 + 0x1c) != 0);\n  piVar6[7] = 0;\nLAB_0003328c:\n  *(int **)(iVar11 + 0x1c) = piVar6;\n  return piVar6;\n}\n\n" (function_definition "int * append_url(char *param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  int iVar11;\n  \n  iVar2 = url_has_scheme();\n  puVar1 = PTR_opt_000af488;\n  iVar11 = *(int *)(param_4 + 4);\n  if (iVar11 == 0) {\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }\n  else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }\n  *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;\n  iVar2 = *(int *)(param_4 + 0x14);\njoined_r0x00033378:\n  if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }\n  iVar11 = 0;\n  do {\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  } while (*(int *)(iVar3 + 0x1c) != 0);\n  piVar6[7] = 0;\nLAB_0003328c:\n  *(int **)(iVar11 + 0x1c) = piVar6;\n  return piVar6;\n}" primitive_type (pointer_declarator "* append_url(char *param_1,int param_2,int param_3,int param_4)" * (function_declarator "append_url(char *param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(char *param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "char *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  int iVar11;\n  \n  iVar2 = url_has_scheme();\n  puVar1 = PTR_opt_000af488;\n  iVar11 = *(int *)(param_4 + 4);\n  if (iVar11 == 0) {\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }\n  else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }\n  *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;\n  iVar2 = *(int *)(param_4 + 0x14);\njoined_r0x00033378:\n  if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }\n  iVar11 = 0;\n  do {\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  } while (*(int *)(iVar3 + 0x1c) != 0);\n  piVar6[7] = 0;\nLAB_0003328c:\n  *(int **)(iVar11 + 0x1c) = piVar6;\n  return piVar6;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "undefined4 uVar8;" type_identifier identifier ;) (declaration "undefined4 uVar9;" type_identifier identifier ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (expression_statement "iVar2 = url_has_scheme();" (assignment_expression "iVar2 = url_has_scheme()" identifier = (call_expression "url_has_scheme()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar1 = PTR_opt_000af488;" (assignment_expression "puVar1 = PTR_opt_000af488" identifier = identifier) ;) (expression_statement "iVar11 = *(int *)(param_4 + 4);" (assignment_expression "iVar11 = *(int *)(param_4 + 4)" identifier = (pointer_expression "*(int *)(param_4 + 4)" * (cast_expression "(int *)(param_4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4)" ( (binary_expression "param_4 + 4" identifier + number_literal) ))))) ;) (if_statement "if (iVar11 == 0) {\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }\n  else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }" { (expression_statement "iVar11 = *(int *)(param_4 + 8);" (assignment_expression "iVar11 = *(int *)(param_4 + 8)" identifier = (pointer_expression "*(int *)(param_4 + 8)" * (cast_expression "(int *)(param_4 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 8)" ( (binary_expression "param_4 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = (*(code *)PTR_iri_new_000af54c)();" (assignment_expression "iVar3 = (*(code *)PTR_iri_new_000af54c)()" identifier = (call_expression "(*(code *)PTR_iri_new_000af54c)()" (parenthesized_expression "(*(code *)PTR_iri_new_000af54c)" ( (pointer_expression "*(code *)PTR_iri_new_000af54c" * (cast_expression "(code *)PTR_iri_new_000af54c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);" (call_expression "(*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1)" (parenthesized_expression "(*(code *)PTR_set_uri_encoding_000af550)" ( (pointer_expression "*(code *)PTR_set_uri_encoding_000af550" * (cast_expression "(code *)PTR_set_uri_encoding_000af550" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,*(undefined4 *)(puVar1 + 0x21c),1)" ( identifier , (pointer_expression "*(undefined4 *)(puVar1 + 0x21c)" * (cast_expression "(undefined4 *)(puVar1 + 0x21c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x21c)" ( (binary_expression "puVar1 + 0x21c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "*(undefined1 *)(iVar3 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(iVar3 + 0xc) = 1" (pointer_expression "*(undefined1 *)(iVar3 + 0xc)" * (cast_expression "(undefined1 *)(iVar3 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (iVar11 != 0) goto LAB_000331a0;" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000331a0;" goto statement_identifier ;)) (if_statement "if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }" { (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x850" identifier + number_literal) , (pointer_expression "*(undefined4 *)(param_4 + 0xc)" * (cast_expression "(undefined4 *)(param_4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) , identifier ))) ;) })) (if_statement "if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" { (expression_statement "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);" (assignment_expression "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5)" identifier = (call_expression "(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000afcf4)" ( (pointer_expression "*(code *)PTR_dcgettext_000afcf4" * (cast_expression "(code *)PTR_dcgettext_000afcf4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,PTR_s_hallenge__000af46c + -0x82c,5)" ( number_literal , (binary_expression "PTR_s_hallenge__000af46c + -0x82c" identifier + number_literal) , number_literal )))) ;) (expression_statement "logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);" (call_expression "logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1)" identifier (argument_list "(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1)" ( number_literal , identifier , (pointer_expression "*(undefined4 *)(param_4 + 0xc)" * (cast_expression "(undefined4 *)(param_4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);" (assignment_expression "puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0)" identifier = (cast_expression "(undefined4 *)url_parse(param_1,0,iVar3,0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "url_parse(param_1,0,iVar3,0)" identifier (argument_list "(param_1,0,iVar3,0)" ( identifier , number_literal , identifier , number_literal ))))) ;) (if_statement "if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" if (parenthesized_expression "(puVar5 == (undefined4 *)0x0)" ( (binary_expression "puVar5 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" { (if_statement "if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }" { (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x804" identifier + number_literal) , (pointer_expression "*(undefined4 *)(param_4 + 0xc)" * (cast_expression "(undefined4 *)(param_4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (if_statement "if (puVar1[0x16b] != '\0') goto LAB_000334e4;" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000334e4;" goto statement_identifier ;)) (expression_statement "piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);" (assignment_expression "piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" identifier = (cast_expression "(int *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xcalloc_000af674)(1,0x20)" (parenthesized_expression "(*(code *)PTR_xcalloc_000af674)" ( (pointer_expression "*(code *)PTR_xcalloc_000af674" * (cast_expression "(code *)PTR_xcalloc_000af674" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x20)" ( number_literal , number_literal ))))) ;) (expression_statement "*piVar6 = (int)puVar5;" (assignment_expression "*piVar6 = (int)puVar5" (pointer_expression "*piVar6" * identifier) = (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar6[5] = param_2;" (assignment_expression "piVar6[5] = param_2" (subscript_expression "piVar6[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar6[6] = param_3;" (assignment_expression "piVar6[6] = param_3" (subscript_expression "piVar6[6]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }" else (compound_statement "{\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_iri_new_000af54c)();" (assignment_expression "iVar3 = (*(code *)PTR_iri_new_000af54c)()" identifier = (call_expression "(*(code *)PTR_iri_new_000af54c)()" (parenthesized_expression "(*(code *)PTR_iri_new_000af54c)" ( (pointer_expression "*(code *)PTR_iri_new_000af54c" * (cast_expression "(code *)PTR_iri_new_000af54c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "(*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);" (call_expression "(*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1)" (parenthesized_expression "(*(code *)PTR_set_uri_encoding_000af550)" ( (pointer_expression "*(code *)PTR_set_uri_encoding_000af550" * (cast_expression "(code *)PTR_set_uri_encoding_000af550" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,*(undefined4 *)(puVar1 + 0x21c),1)" ( identifier , (pointer_expression "*(undefined4 *)(puVar1 + 0x21c)" * (cast_expression "(undefined4 *)(puVar1 + 0x21c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x21c)" ( (binary_expression "puVar1 + 0x21c" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "*(undefined1 *)(iVar3 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(iVar3 + 0xc) = 1" (pointer_expression "*(undefined1 *)(iVar3 + 0xc)" * (cast_expression "(undefined1 *)(iVar3 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "LAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);" statement_identifier : (expression_statement "uVar4 = uri_merge(iVar11,param_1);" (assignment_expression "uVar4 = uri_merge(iVar11,param_1)" identifier = (call_expression "uri_merge(iVar11,param_1)" identifier (argument_list "(iVar11,param_1)" ( identifier , identifier )))) ;)) (if_statement "if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }" { (expression_statement "uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));" (assignment_expression "uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc))" identifier = (call_expression "(*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc))" (parenthesized_expression "(*(code *)PTR_quotearg_n_style_000af820)" ( (pointer_expression "*(code *)PTR_quotearg_n_style_000af820" * (cast_expression "(code *)PTR_quotearg_n_style_000af820" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0,7,*(undefined4 *)(param_4 + 0xc))" ( number_literal , number_literal , (pointer_expression "*(undefined4 *)(param_4 + 0xc)" * (cast_expression "(undefined4 *)(param_4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);" (assignment_expression "uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11)" identifier = (call_expression "(*(code *)PTR_quote_n_000af824)(1,iVar11)" (parenthesized_expression "(*(code *)PTR_quote_n_000af824)" ( (pointer_expression "*(code *)PTR_quote_n_000af824" * (cast_expression "(code *)PTR_quote_n_000af824" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,iVar11)" ( number_literal , identifier )))) ;) (expression_statement "uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);" (assignment_expression "uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1)" identifier = (call_expression "(*(code *)PTR_quote_n_000af824)(2,param_1)" (parenthesized_expression "(*(code *)PTR_quote_n_000af824)" ( (pointer_expression "*(code *)PTR_quote_n_000af824" * (cast_expression "(code *)PTR_quote_n_000af824" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(2,param_1)" ( number_literal , identifier )))) ;) (expression_statement "uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);" (assignment_expression "uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4)" identifier = (call_expression "(*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4)" (parenthesized_expression "(*(code *)PTR_quotearg_n_style_000af820)" ( (pointer_expression "*(code *)PTR_quotearg_n_style_000af820" * (cast_expression "(code *)PTR_quotearg_n_style_000af820" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,7,uVar4)" ( number_literal , number_literal , identifier )))) ;) (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x7e4" identifier + number_literal) , identifier , identifier , identifier , identifier ))) ;) })) (expression_statement "puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);" (assignment_expression "puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0)" identifier = (cast_expression "(undefined4 *)url_parse(uVar4,0,iVar3,0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "url_parse(uVar4,0,iVar3,0)" identifier (argument_list "(uVar4,0,iVar3,0)" ( identifier , number_literal , identifier , number_literal ))))) ;) (if_statement "if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" if (parenthesized_expression "(puVar5 == (undefined4 *)0x0)" ( (binary_expression "puVar5 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" { (if_statement "if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }" { (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x7c8" identifier + number_literal) , (pointer_expression "*(undefined4 *)(param_4 + 0xc)" * (cast_expression "(undefined4 *)(param_4 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xc)" ( (binary_expression "param_4 + 0xc" identifier + number_literal) )))) , identifier ))) ;) })) (expression_statement "(*(code *)PTR_free_000afd08)(uVar4);" (call_expression "(*(code *)PTR_free_000afd08)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_000afd08)" ( (pointer_expression "*(code *)PTR_free_000afd08" * (cast_expression "(code *)PTR_free_000afd08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "(*(code *)PTR_free_000afd08)(uVar4);" (call_expression "(*(code *)PTR_free_000afd08)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_000afd08)" ( (pointer_expression "*(code *)PTR_free_000afd08" * (cast_expression "(code *)PTR_free_000afd08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" ( (pointer_expression "*(code *)PTR_iri_free_000af548" * (cast_expression "(code *)PTR_iri_free_000af548" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (if_statement "if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }" if (parenthesized_expression "(puVar1[0x16b] != '\0')" ( (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }" { (labeled_statement "LAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);" statement_identifier : (expression_statement "uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);" (assignment_expression "uVar4 = (*(code *)PTR_quote_000af590)(*puVar5)" identifier = (call_expression "(*(code *)PTR_quote_000af590)(*puVar5)" (parenthesized_expression "(*(code *)PTR_quote_000af590)" ( (pointer_expression "*(code *)PTR_quote_000af590" * (cast_expression "(code *)PTR_quote_000af590" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar5)" ( (pointer_expression "*puVar5" * identifier) )))) ;)) (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4)" identifier (argument_list "(PTR_s_hallenge__000af46c + -0x7a0,uVar4)" ( (binary_expression "PTR_s_hallenge__000af46c + -0x7a0" identifier + number_literal) , identifier ))) ;) })) (expression_statement "piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);" (assignment_expression "piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" identifier = (cast_expression "(int *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xcalloc_000af674)(1,0x20)" (parenthesized_expression "(*(code *)PTR_xcalloc_000af674)" ( (pointer_expression "*(code *)PTR_xcalloc_000af674" * (cast_expression "(code *)PTR_xcalloc_000af674" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x20)" ( number_literal , number_literal ))))) ;) (expression_statement "*piVar6 = (int)puVar5;" (assignment_expression "*piVar6 = (int)puVar5" (pointer_expression "*piVar6" * identifier) = (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "piVar6[5] = param_2;" (assignment_expression "piVar6[5] = param_2" (subscript_expression "piVar6[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar6[6] = param_3;" (assignment_expression "piVar6[6] = param_3" (subscript_expression "piVar6[6]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }" { (if_statement "if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }" if (parenthesized_expression "(*param_1 != '/')" ( (binary_expression "*param_1 != '/'" (pointer_expression "*param_1" * identifier) != (char_literal "'/'" ' character ')) )) (compound_statement "{\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }" { (expression_statement "*(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;" (assignment_expression "*(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000" (pointer_expression "*(ushort *)(piVar6 + 2)" * (cast_expression "(ushort *)(piVar6 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar6 + 2)" ( (binary_expression "piVar6 + 2" identifier + number_literal) )))) = (binary_expression "*(ushort *)(piVar6 + 2) & 0xbfff | 0x4000" (binary_expression "*(ushort *)(piVar6 + 2) & 0xbfff" (pointer_expression "*(ushort *)(piVar6 + 2)" * (cast_expression "(ushort *)(piVar6 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar6 + 2)" ( (binary_expression "piVar6 + 2" identifier + number_literal) )))) & number_literal) | number_literal)) ;) })) (expression_statement "iVar2 = *(int *)(param_4 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_4 + 0x14)" identifier = (pointer_expression "*(int *)(param_4 + 0x14)" * (cast_expression "(int *)(param_4 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x14)" ( (binary_expression "param_4 + 0x14" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x00033378;" goto statement_identifier ;) })) }))) (expression_statement "*(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;" (assignment_expression "*(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000" (pointer_expression "*(ushort *)(piVar6 + 2)" * (cast_expression "(ushort *)(piVar6 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar6 + 2)" ( (binary_expression "piVar6 + 2" identifier + number_literal) )))) = (binary_expression "*(ushort *)(piVar6 + 2) & 0xdfff | 0x2000" (binary_expression "*(ushort *)(piVar6 + 2) & 0xdfff" (pointer_expression "*(ushort *)(piVar6 + 2)" * (cast_expression "(ushort *)(piVar6 + 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar6 + 2)" ( (binary_expression "piVar6 + 2" identifier + number_literal) )))) & number_literal) | number_literal)) ;) (expression_statement "iVar2 = *(int *)(param_4 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_4 + 0x14)" identifier = (pointer_expression "*(int *)(param_4 + 0x14)" * (cast_expression "(int *)(param_4 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0x14)" ( (binary_expression "param_4 + 0x14" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x00033378:\n  if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }" statement_identifier : (if_statement "if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }" { (labeled_statement "LAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;" statement_identifier : (expression_statement "*(int **)(param_4 + 0x14) = piVar6;" (assignment_expression "*(int **)(param_4 + 0x14) = piVar6" (pointer_expression "*(int **)(param_4 + 0x14)" * (cast_expression "(int **)(param_4 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_4 + 0x14)" ( (binary_expression "param_4 + 0x14" identifier + number_literal) )))) = identifier) ;)) (return_statement "return piVar6;" return identifier ;) }))) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (do_statement "do {\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  } while (*(int *)(iVar3 + 0x1c) != 0);" do (compound_statement "{\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  }" { (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" identifier = identifier) ;) (if_statement "if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }" if (parenthesized_expression "(param_2 <= *(int *)(iVar3 + 0x14))" ( (binary_expression "param_2 <= *(int *)(iVar3 + 0x14)" identifier <= (pointer_expression "*(int *)(iVar3 + 0x14)" * (cast_expression "(int *)(iVar3 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }" { (expression_statement "piVar6[7] = iVar3;" (assignment_expression "piVar6[7] = iVar3" (subscript_expression "piVar6[7]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar11 == 0) goto LAB_00033384;" if (parenthesized_expression "(iVar11 == 0)" ( (binary_expression "iVar11 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00033384;" goto statement_identifier ;)) (goto_statement "goto LAB_0003328c;" goto statement_identifier ;) })) (expression_statement "iVar2 = *(int *)(iVar3 + 0x1c);" (assignment_expression "iVar2 = *(int *)(iVar3 + 0x1c)" identifier = (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar11 = iVar3;" (assignment_expression "iVar11 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(*(int *)(iVar3 + 0x1c) != 0)" ( (binary_expression "*(int *)(iVar3 + 0x1c) != 0" (pointer_expression "*(int *)(iVar3 + 0x1c)" * (cast_expression "(int *)(iVar3 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x1c)" ( (binary_expression "iVar3 + 0x1c" identifier + number_literal) )))) != number_literal) )) ;) (expression_statement "piVar6[7] = 0;" (assignment_expression "piVar6[7] = 0" (subscript_expression "piVar6[7]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_0003328c:\n  *(int **)(iVar11 + 0x1c) = piVar6;" statement_identifier : (expression_statement "*(int **)(iVar11 + 0x1c) = piVar6;" (assignment_expression "*(int **)(iVar11 + 0x1c) = piVar6" (pointer_expression "*(int **)(iVar11 + 0x1c)" * (cast_expression "(int **)(iVar11 + 0x1c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar11 + 0x1c)" ( (binary_expression "iVar11 + 0x1c" identifier + number_literal) )))) = identifier) ;)) (return_statement "return piVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) })) (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) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (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 ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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 ( )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (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 , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;)) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) })) (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 ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (return_statement return IDENT ;) })))
(function_definition "int * append_url(char *param_1,int param_2,int param_3,int param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  int iVar11;\n  \n  iVar2 = url_has_scheme();\n  puVar1 = PTR_opt_000af488;\n  iVar11 = *(int *)(param_4 + 4);\n  if (iVar11 == 0) {\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }\n  else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }\n  *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;\n  iVar2 = *(int *)(param_4 + 0x14);\njoined_r0x00033378:\n  if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }\n  iVar11 = 0;\n  do {\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  } while (*(int *)(iVar3 + 0x1c) != 0);\n  piVar6[7] = 0;\nLAB_0003328c:\n  *(int **)(iVar11 + 0x1c) = piVar6;\n  return piVar6;\n}" (primitive_type "int") (pointer_declarator "* append_url(char *param_1,int param_2,int param_3,int param_4)" (* "*") (function_declarator "append_url(char *param_1,int param_2,int param_3,int param_4)" (identifier "append_url") (parameter_list "(char *param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "char *param_1" (primitive_type "char") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined4 uVar7;\n  undefined4 uVar8;\n  undefined4 uVar9;\n  undefined4 uVar10;\n  int iVar11;\n  \n  iVar2 = url_has_scheme();\n  puVar1 = PTR_opt_000af488;\n  iVar11 = *(int *)(param_4 + 4);\n  if (iVar11 == 0) {\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }\n  else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }\n  *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;\n  iVar2 = *(int *)(param_4 + 0x14);\njoined_r0x00033378:\n  if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }\n  iVar11 = 0;\n  do {\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  } while (*(int *)(iVar3 + 0x1c) != 0);\n  piVar6[7] = 0;\nLAB_0003328c:\n  *(int **)(iVar11 + 0x1c) = piVar6;\n  return piVar6;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "undefined4 uVar8;" (type_identifier "undefined4") (identifier "uVar8") (; ";")) (declaration "undefined4 uVar9;" (type_identifier "undefined4") (identifier "uVar9") (; ";")) (declaration "undefined4 uVar10;" (type_identifier "undefined4") (identifier "uVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (expression_statement "iVar2 = url_has_scheme();" (assignment_expression "iVar2 = url_has_scheme()" (identifier "iVar2") (= "=") (call_expression "url_has_scheme()" (identifier "url_has_scheme") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_opt_000af488;" (assignment_expression "puVar1 = PTR_opt_000af488" (identifier "puVar1") (= "=") (identifier "PTR_opt_000af488")) (; ";")) (expression_statement "iVar11 = *(int *)(param_4 + 4);" (assignment_expression "iVar11 = *(int *)(param_4 + 4)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)(param_4 + 4)" (* "*") (cast_expression "(int *)(param_4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 4)" (( "(") (binary_expression "param_4 + 4" (identifier "param_4") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (iVar11 == 0) {\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }\n  else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }" (if "if") (parenthesized_expression "(iVar11 == 0)" (( "(") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar11 = *(int *)(param_4 + 8);\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\n    if (iVar11 != 0) goto LAB_000331a0;\n    if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }\n    if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') goto LAB_000334e4;\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n  }" ({ "{") (expression_statement "iVar11 = *(int *)(param_4 + 8);" (assignment_expression "iVar11 = *(int *)(param_4 + 8)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)(param_4 + 8)" (* "*") (cast_expression "(int *)(param_4 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 8)" (( "(") (binary_expression "param_4 + 8" (identifier "param_4") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_iri_new_000af54c)();" (assignment_expression "iVar3 = (*(code *)PTR_iri_new_000af54c)()" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_iri_new_000af54c)()" (parenthesized_expression "(*(code *)PTR_iri_new_000af54c)" (( "(") (pointer_expression "*(code *)PTR_iri_new_000af54c" (* "*") (cast_expression "(code *)PTR_iri_new_000af54c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iri_new_000af54c"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);" (call_expression "(*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1)" (parenthesized_expression "(*(code *)PTR_set_uri_encoding_000af550)" (( "(") (pointer_expression "*(code *)PTR_set_uri_encoding_000af550" (* "*") (cast_expression "(code *)PTR_set_uri_encoding_000af550" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_set_uri_encoding_000af550"))) () ")")) (argument_list "(iVar3,*(undefined4 *)(puVar1 + 0x21c),1)" (( "(") (identifier "iVar3") (, ",") (pointer_expression "*(undefined4 *)(puVar1 + 0x21c)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x21c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x21c)" (( "(") (binary_expression "puVar1 + 0x21c" (identifier "puVar1") (+ "+") (number_literal "0x21c")) () ")")))) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(iVar3 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(iVar3 + 0xc) = 1" (pointer_expression "*(undefined1 *)(iVar3 + 0xc)" (* "*") (cast_expression "(undefined1 *)(iVar3 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if (iVar11 != 0) goto LAB_000331a0;" (if "if") (parenthesized_expression "(iVar11 != 0)" (( "(") (binary_expression "iVar11 != 0" (identifier "iVar11") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000331a0;" (goto "goto") (statement_identifier "LAB_000331a0") (; ";"))) (if_statement "if (puVar1[0x16b] != '\0') {\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }" (if "if") (parenthesized_expression "(puVar1[0x16b] != '\0')" (( "(") (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" (identifier "puVar1") ([ "[") (number_literal "0x16b") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);\n    }" ({ "{") (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1)" (identifier "debug_logprintf") (argument_list "(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1)" (( "(") (binary_expression "PTR_s_hallenge__000af46c + -0x850" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "-0x850")) (, ",") (pointer_expression "*(undefined4 *)(param_4 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_4 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (if_statement "if (iVar2 == 0) {\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);\n      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" ({ "{") (expression_statement "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);" (assignment_expression "uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5)" (parenthesized_expression "(*(code *)PTR_dcgettext_000afcf4)" (( "(") (pointer_expression "*(code *)PTR_dcgettext_000afcf4" (* "*") (cast_expression "(code *)PTR_dcgettext_000afcf4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dcgettext_000afcf4"))) () ")")) (argument_list "(0,PTR_s_hallenge__000af46c + -0x82c,5)" (( "(") (number_literal "0") (, ",") (binary_expression "PTR_s_hallenge__000af46c + -0x82c" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "-0x82c")) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);" (call_expression "logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1)" (identifier "logprintf") (argument_list "(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1)" (( "(") (number_literal "1") (, ",") (identifier "uVar4") (, ",") (pointer_expression "*(undefined4 *)(param_4 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_4 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (identifier "param_1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" (( "(") (pointer_expression "*(code *)PTR_iri_free_000af548" (* "*") (cast_expression "(code *)PTR_iri_free_000af548" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iri_free_000af548"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);" (assignment_expression "puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)url_parse(param_1,0,iVar3,0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "url_parse(param_1,0,iVar3,0)" (identifier "url_parse") (argument_list "(param_1,0,iVar3,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (identifier "iVar3") (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" (if "if") (parenthesized_expression "(puVar5 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar5 == (undefined4 *)0x0" (identifier "puVar5") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" ({ "{") (if_statement "if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }" (if "if") (parenthesized_expression "(puVar1[0x16b] != '\0')" (( "(") (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" (identifier "puVar1") ([ "[") (number_literal "0x16b") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);\n      }" ({ "{") (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1)" (identifier "debug_logprintf") (argument_list "(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1)" (( "(") (binary_expression "PTR_s_hallenge__000af46c + -0x804" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "-0x804")) (, ",") (pointer_expression "*(undefined4 *)(param_4 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_4 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" (( "(") (pointer_expression "*(code *)PTR_iri_free_000af548" (* "*") (cast_expression "(code *)PTR_iri_free_000af548" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iri_free_000af548"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" (( "(") (pointer_expression "*(code *)PTR_iri_free_000af548" (* "*") (cast_expression "(code *)PTR_iri_free_000af548" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iri_free_000af548"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (if_statement "if (puVar1[0x16b] != '\0') goto LAB_000334e4;" (if "if") (parenthesized_expression "(puVar1[0x16b] != '\0')" (( "(") (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" (identifier "puVar1") ([ "[") (number_literal "0x16b") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000334e4;" (goto "goto") (statement_identifier "LAB_000334e4") (; ";"))) (expression_statement "piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);" (assignment_expression "piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" (identifier "piVar6") (= "=") (cast_expression "(int *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_xcalloc_000af674)(1,0x20)" (parenthesized_expression "(*(code *)PTR_xcalloc_000af674)" (( "(") (pointer_expression "*(code *)PTR_xcalloc_000af674" (* "*") (cast_expression "(code *)PTR_xcalloc_000af674" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xcalloc_000af674"))) () ")")) (argument_list "(1,0x20)" (( "(") (number_literal "1") (, ",") (number_literal "0x20") () ")"))))) (; ";")) (expression_statement "*piVar6 = (int)puVar5;" (assignment_expression "*piVar6 = (int)puVar5" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5"))) (; ";")) (expression_statement "piVar6[5] = param_2;" (assignment_expression "piVar6[5] = param_2" (subscript_expression "piVar6[5]" (identifier "piVar6") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar6[6] = param_3;" (assignment_expression "piVar6[6] = param_3" (subscript_expression "piVar6[6]" (identifier "piVar6") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "param_3")) (; ";")) (} "}")) (else_clause "else {\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }" (else "else") (compound_statement "{\n    iVar3 = (*(code *)PTR_iri_new_000af54c)();\n    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);\n    *(undefined1 *)(iVar3 + 0xc) = 1;\nLAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);\n    if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }\n    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);\n    if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }\n    (*(code *)PTR_free_000afd08)(uVar4);\n    (*(code *)PTR_iri_free_000af548)(iVar3);\n    if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }\n    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);\n    *piVar6 = (int)puVar5;\n    piVar6[5] = param_2;\n    piVar6[6] = param_3;\n    if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }\n  }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_iri_new_000af54c)();" (assignment_expression "iVar3 = (*(code *)PTR_iri_new_000af54c)()" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_iri_new_000af54c)()" (parenthesized_expression "(*(code *)PTR_iri_new_000af54c)" (( "(") (pointer_expression "*(code *)PTR_iri_new_000af54c" (* "*") (cast_expression "(code *)PTR_iri_new_000af54c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iri_new_000af54c"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);" (call_expression "(*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1)" (parenthesized_expression "(*(code *)PTR_set_uri_encoding_000af550)" (( "(") (pointer_expression "*(code *)PTR_set_uri_encoding_000af550" (* "*") (cast_expression "(code *)PTR_set_uri_encoding_000af550" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_set_uri_encoding_000af550"))) () ")")) (argument_list "(iVar3,*(undefined4 *)(puVar1 + 0x21c),1)" (( "(") (identifier "iVar3") (, ",") (pointer_expression "*(undefined4 *)(puVar1 + 0x21c)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x21c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x21c)" (( "(") (binary_expression "puVar1 + 0x21c" (identifier "puVar1") (+ "+") (number_literal "0x21c")) () ")")))) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(iVar3 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(iVar3 + 0xc) = 1" (pointer_expression "*(undefined1 *)(iVar3 + 0xc)" (* "*") (cast_expression "(undefined1 *)(iVar3 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_000331a0:\n    uVar4 = uri_merge(iVar11,param_1);" (statement_identifier "LAB_000331a0") (: ":") (expression_statement "uVar4 = uri_merge(iVar11,param_1);" (assignment_expression "uVar4 = uri_merge(iVar11,param_1)" (identifier "uVar4") (= "=") (call_expression "uri_merge(iVar11,param_1)" (identifier "uri_merge") (argument_list "(iVar11,param_1)" (( "(") (identifier "iVar11") (, ",") (identifier "param_1") () ")")))) (; ";"))) (if_statement "if (puVar1[0x16b] != '\0') {\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }" (if "if") (parenthesized_expression "(puVar1[0x16b] != '\0')" (( "(") (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" (identifier "puVar1") ([ "[") (number_literal "0x16b") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));\n      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);\n      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);\n      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);\n    }" ({ "{") (expression_statement "uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));" (assignment_expression "uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc))" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc))" (parenthesized_expression "(*(code *)PTR_quotearg_n_style_000af820)" (( "(") (pointer_expression "*(code *)PTR_quotearg_n_style_000af820" (* "*") (cast_expression "(code *)PTR_quotearg_n_style_000af820" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_quotearg_n_style_000af820"))) () ")")) (argument_list "(0,7,*(undefined4 *)(param_4 + 0xc))" (( "(") (number_literal "0") (, ",") (number_literal "7") (, ",") (pointer_expression "*(undefined4 *)(param_4 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_4 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);" (assignment_expression "uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11)" (identifier "uVar8") (= "=") (call_expression "(*(code *)PTR_quote_n_000af824)(1,iVar11)" (parenthesized_expression "(*(code *)PTR_quote_n_000af824)" (( "(") (pointer_expression "*(code *)PTR_quote_n_000af824" (* "*") (cast_expression "(code *)PTR_quote_n_000af824" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_quote_n_000af824"))) () ")")) (argument_list "(1,iVar11)" (( "(") (number_literal "1") (, ",") (identifier "iVar11") () ")")))) (; ";")) (expression_statement "uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);" (assignment_expression "uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1)" (identifier "uVar9") (= "=") (call_expression "(*(code *)PTR_quote_n_000af824)(2,param_1)" (parenthesized_expression "(*(code *)PTR_quote_n_000af824)" (( "(") (pointer_expression "*(code *)PTR_quote_n_000af824" (* "*") (cast_expression "(code *)PTR_quote_n_000af824" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_quote_n_000af824"))) () ")")) (argument_list "(2,param_1)" (( "(") (number_literal "2") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);" (assignment_expression "uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4)" (identifier "uVar10") (= "=") (call_expression "(*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4)" (parenthesized_expression "(*(code *)PTR_quotearg_n_style_000af820)" (( "(") (pointer_expression "*(code *)PTR_quotearg_n_style_000af820" (* "*") (cast_expression "(code *)PTR_quotearg_n_style_000af820" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_quotearg_n_style_000af820"))) () ")")) (argument_list "(3,7,uVar4)" (( "(") (number_literal "3") (, ",") (number_literal "7") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10)" (identifier "debug_logprintf") (argument_list "(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10)" (( "(") (binary_expression "PTR_s_hallenge__000af46c + -0x7e4" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "-0x7e4")) (, ",") (identifier "uVar7") (, ",") (identifier "uVar8") (, ",") (identifier "uVar9") (, ",") (identifier "uVar10") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);" (assignment_expression "puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)url_parse(uVar4,0,iVar3,0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "url_parse(uVar4,0,iVar3,0)" (identifier "url_parse") (argument_list "(uVar4,0,iVar3,0)" (( "(") (identifier "uVar4") (, ",") (number_literal "0") (, ",") (identifier "iVar3") (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (puVar5 == (undefined4 *)0x0) {\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" (if "if") (parenthesized_expression "(puVar5 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar5 == (undefined4 *)0x0" (identifier "puVar5") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }\n      (*(code *)PTR_free_000afd08)(uVar4);\n      (*(code *)PTR_iri_free_000af548)(iVar3);\n      return (int *)0x0;\n    }" ({ "{") (if_statement "if (puVar1[0x16b] != '\0') {\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }" (if "if") (parenthesized_expression "(puVar1[0x16b] != '\0')" (( "(") (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" (identifier "puVar1") ([ "[") (number_literal "0x16b") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);\n      }" ({ "{") (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4)" (identifier "debug_logprintf") (argument_list "(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4)" (( "(") (binary_expression "PTR_s_hallenge__000af46c + -0x7c8" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "-0x7c8")) (, ",") (pointer_expression "*(undefined4 *)(param_4 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_4 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xc)" (( "(") (binary_expression "param_4 + 0xc" (identifier "param_4") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_000afd08)(uVar4);" (call_expression "(*(code *)PTR_free_000afd08)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_000afd08)" (( "(") (pointer_expression "*(code *)PTR_free_000afd08" (* "*") (cast_expression "(code *)PTR_free_000afd08" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_000afd08"))) () ")")) (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" (( "(") (pointer_expression "*(code *)PTR_iri_free_000af548" (* "*") (cast_expression "(code *)PTR_iri_free_000af548" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iri_free_000af548"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_000afd08)(uVar4);" (call_expression "(*(code *)PTR_free_000afd08)(uVar4)" (parenthesized_expression "(*(code *)PTR_free_000afd08)" (( "(") (pointer_expression "*(code *)PTR_free_000afd08" (* "*") (cast_expression "(code *)PTR_free_000afd08" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_000afd08"))) () ")")) (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_iri_free_000af548)(iVar3);" (call_expression "(*(code *)PTR_iri_free_000af548)(iVar3)" (parenthesized_expression "(*(code *)PTR_iri_free_000af548)" (( "(") (pointer_expression "*(code *)PTR_iri_free_000af548" (* "*") (cast_expression "(code *)PTR_iri_free_000af548" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_iri_free_000af548"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (if_statement "if (puVar1[0x16b] != '\0') {\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }" (if "if") (parenthesized_expression "(puVar1[0x16b] != '\0')" (( "(") (binary_expression "puVar1[0x16b] != '\0'" (subscript_expression "puVar1[0x16b]" (identifier "puVar1") ([ "[") (number_literal "0x16b") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);\n      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);\n    }" ({ "{") (labeled_statement "LAB_000334e4:\n      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);" (statement_identifier "LAB_000334e4") (: ":") (expression_statement "uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);" (assignment_expression "uVar4 = (*(code *)PTR_quote_000af590)(*puVar5)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_quote_000af590)(*puVar5)" (parenthesized_expression "(*(code *)PTR_quote_000af590)" (( "(") (pointer_expression "*(code *)PTR_quote_000af590" (* "*") (cast_expression "(code *)PTR_quote_000af590" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_quote_000af590"))) () ")")) (argument_list "(*puVar5)" (( "(") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) () ")")))) (; ";"))) (expression_statement "debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);" (call_expression "debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4)" (identifier "debug_logprintf") (argument_list "(PTR_s_hallenge__000af46c + -0x7a0,uVar4)" (( "(") (binary_expression "PTR_s_hallenge__000af46c + -0x7a0" (identifier "PTR_s_hallenge__000af46c") (+ "+") (number_literal "-0x7a0")) (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);" (assignment_expression "piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" (identifier "piVar6") (= "=") (cast_expression "(int *)(*(code *)PTR_xcalloc_000af674)(1,0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_xcalloc_000af674)(1,0x20)" (parenthesized_expression "(*(code *)PTR_xcalloc_000af674)" (( "(") (pointer_expression "*(code *)PTR_xcalloc_000af674" (* "*") (cast_expression "(code *)PTR_xcalloc_000af674" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xcalloc_000af674"))) () ")")) (argument_list "(1,0x20)" (( "(") (number_literal "1") (, ",") (number_literal "0x20") () ")"))))) (; ";")) (expression_statement "*piVar6 = (int)puVar5;" (assignment_expression "*piVar6 = (int)puVar5" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (= "=") (cast_expression "(int)puVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar5"))) (; ";")) (expression_statement "piVar6[5] = param_2;" (assignment_expression "piVar6[5] = param_2" (subscript_expression "piVar6[5]" (identifier "piVar6") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar6[6] = param_3;" (assignment_expression "piVar6[6] = param_3" (subscript_expression "piVar6[6]" (identifier "piVar6") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (iVar2 == 0) {\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }\n      iVar2 = *(int *)(param_4 + 0x14);\n      goto joined_r0x00033378;\n    }" ({ "{") (if_statement "if (*param_1 != '/') {\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }" (if "if") (parenthesized_expression "(*param_1 != '/')" (( "(") (binary_expression "*param_1 != '/'" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (char_literal "'/'" (' "'") (character "/") (' "'"))) () ")")) (compound_statement "{\n        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;\n      }" ({ "{") (expression_statement "*(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;" (assignment_expression "*(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000" (pointer_expression "*(ushort *)(piVar6 + 2)" (* "*") (cast_expression "(ushort *)(piVar6 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar6 + 2)" (( "(") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "*(ushort *)(piVar6 + 2) & 0xbfff | 0x4000" (binary_expression "*(ushort *)(piVar6 + 2) & 0xbfff" (pointer_expression "*(ushort *)(piVar6 + 2)" (* "*") (cast_expression "(ushort *)(piVar6 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar6 + 2)" (( "(") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2")) () ")")))) (& "&") (number_literal "0xbfff")) (| "|") (number_literal "0x4000"))) (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(param_4 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_4 + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_4 + 0x14)" (* "*") (cast_expression "(int *)(param_4 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x14)" (( "(") (binary_expression "param_4 + 0x14" (identifier "param_4") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (goto_statement "goto joined_r0x00033378;" (goto "goto") (statement_identifier "joined_r0x00033378") (; ";")) (} "}"))) (} "}")))) (expression_statement "*(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;" (assignment_expression "*(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000" (pointer_expression "*(ushort *)(piVar6 + 2)" (* "*") (cast_expression "(ushort *)(piVar6 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar6 + 2)" (( "(") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2")) () ")")))) (= "=") (binary_expression "*(ushort *)(piVar6 + 2) & 0xdfff | 0x2000" (binary_expression "*(ushort *)(piVar6 + 2) & 0xdfff" (pointer_expression "*(ushort *)(piVar6 + 2)" (* "*") (cast_expression "(ushort *)(piVar6 + 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar6 + 2)" (( "(") (binary_expression "piVar6 + 2" (identifier "piVar6") (+ "+") (number_literal "2")) () ")")))) (& "&") (number_literal "0xdfff")) (| "|") (number_literal "0x2000"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_4 + 0x14);" (assignment_expression "iVar2 = *(int *)(param_4 + 0x14)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_4 + 0x14)" (* "*") (cast_expression "(int *)(param_4 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0x14)" (( "(") (binary_expression "param_4 + 0x14" (identifier "param_4") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (labeled_statement "joined_r0x00033378:\n  if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }" (statement_identifier "joined_r0x00033378") (: ":") (if_statement "if (iVar2 == 0) {\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;\n    return piVar6;\n  }" ({ "{") (labeled_statement "LAB_00033384:\n    *(int **)(param_4 + 0x14) = piVar6;" (statement_identifier "LAB_00033384") (: ":") (expression_statement "*(int **)(param_4 + 0x14) = piVar6;" (assignment_expression "*(int **)(param_4 + 0x14) = piVar6" (pointer_expression "*(int **)(param_4 + 0x14)" (* "*") (cast_expression "(int **)(param_4 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_4 + 0x14)" (( "(") (binary_expression "param_4 + 0x14" (identifier "param_4") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "piVar6")) (; ";"))) (return_statement "return piVar6;" (return "return") (identifier "piVar6") (; ";")) (} "}")))) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  } while (*(int *)(iVar3 + 0x1c) != 0);" (do "do") (compound_statement "{\n    iVar3 = iVar2;\n    if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }\n    iVar2 = *(int *)(iVar3 + 0x1c);\n    iVar11 = iVar3;\n  }" ({ "{") (expression_statement "iVar3 = iVar2;" (assignment_expression "iVar3 = iVar2" (identifier "iVar3") (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (param_2 <= *(int *)(iVar3 + 0x14)) {\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }" (if "if") (parenthesized_expression "(param_2 <= *(int *)(iVar3 + 0x14))" (( "(") (binary_expression "param_2 <= *(int *)(iVar3 + 0x14)" (identifier "param_2") (<= "<=") (pointer_expression "*(int *)(iVar3 + 0x14)" (* "*") (cast_expression "(int *)(iVar3 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n      piVar6[7] = iVar3;\n      if (iVar11 == 0) goto LAB_00033384;\n      goto LAB_0003328c;\n    }" ({ "{") (expression_statement "piVar6[7] = iVar3;" (assignment_expression "piVar6[7] = iVar3" (subscript_expression "piVar6[7]" (identifier "piVar6") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar11 == 0) goto LAB_00033384;" (if "if") (parenthesized_expression "(iVar11 == 0)" (( "(") (binary_expression "iVar11 == 0" (identifier "iVar11") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00033384;" (goto "goto") (statement_identifier "LAB_00033384") (; ";"))) (goto_statement "goto LAB_0003328c;" (goto "goto") (statement_identifier "LAB_0003328c") (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(iVar3 + 0x1c);" (assignment_expression "iVar2 = *(int *)(iVar3 + 0x1c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar3 + 0x1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "iVar11 = iVar3;" (assignment_expression "iVar11 = iVar3" (identifier "iVar11") (= "=") (identifier "iVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int *)(iVar3 + 0x1c) != 0)" (( "(") (binary_expression "*(int *)(iVar3 + 0x1c) != 0" (pointer_expression "*(int *)(iVar3 + 0x1c)" (* "*") (cast_expression "(int *)(iVar3 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x1c)" (( "(") (binary_expression "iVar3 + 0x1c" (identifier "iVar3") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "piVar6[7] = 0;" (assignment_expression "piVar6[7] = 0" (subscript_expression "piVar6[7]" (identifier "piVar6") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0003328c:\n  *(int **)(iVar11 + 0x1c) = piVar6;" (statement_identifier "LAB_0003328c") (: ":") (expression_statement "*(int **)(iVar11 + 0x1c) = piVar6;" (assignment_expression "*(int **)(iVar11 + 0x1c) = piVar6" (pointer_expression "*(int **)(iVar11 + 0x1c)" (* "*") (cast_expression "(int **)(iVar11 + 0x1c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar11 + 0x1c)" (( "(") (binary_expression "iVar11 + 0x1c" (identifier "iVar11") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "piVar6")) (; ";"))) (return_statement "return piVar6;" (return "return") (identifier "piVar6") (; ";")) (} "}")))

type_1 * function_1(char *link_uri,int var_12,int size,type_2 *ctx)

{
  type_3 *var_3;
  type_4 extraout_var;
  type_5 _Var11;
  type_6 *type_6;
  char *type_7;
  type_7 *var_9;
  type_1 *puVar3;
  type_1 *var_11;
  type_1 *puVar5;
  type_1 *var_13;
  type_8 uVar7;
  type_8 uVar8;
  type_8 uVar9;
  type_8 uVar10;
  char *var_2;
  
  _Var11 = var_1(link_uri);
  var_3 = PTR_opt_000af488;
  var_2 = ctx->base;
  if (var_2 == (char *)0x0) {
    var_2 = ctx->parent_base;
    type_6 = (type_6 *)(*(type_9 *)PTR_iri_new_000af54c)();
    (*(type_9 *)PTR_set_uri_encoding_000af550)(type_6,*(type_8 *)(var_3 + 0x21c),1);
    type_6->utf8_encode = true;
    if (var_2 != (char *)0x0) goto LAB_000331a0;
    if (var_3[0x16b] != '\0') {
      var_4(var_5 + -0x850,ctx->document_file,link_uri);
    }
    if (var_6(extraout_var,_Var11) == 0) {
      var_2 = (char *)(*(type_9 *)PTR_dcgettext_000afcf4)(0,var_5 + -0x82c,5);
                    /* WARNING: Subroutine does not return */
      var_7(LOG_NOTQUIET,var_2,ctx->document_file,link_uri);
    }
    var_9 = var_8(link_uri,(int *)0x0,type_6,false);
    if (var_9 == (type_7 *)0x0) {
      if (var_3[0x16b] != '\0') {
        var_4(var_5 + -0x804,ctx->document_file,link_uri);
      }
      (*(type_9 *)PTR_iri_free_000af548)(type_6);
      return (type_1 *)0x0;
    }
    (*(type_9 *)PTR_iri_free_000af548)(type_6);
    if (var_3[0x16b] != '\0') goto LAB_000334e4;
    puVar3 = (type_1 *)(*(type_9 *)PTR_xcalloc_000af674)(1,0x20);
    puVar3->type_7 = var_9;
    puVar3->pos = var_12;
    puVar3->size = size;
  }
  else {
    type_6 = (type_6 *)(*(type_9 *)PTR_iri_new_000af54c)();
    (*(type_9 *)PTR_set_uri_encoding_000af550)(type_6,*(type_8 *)(var_3 + 0x21c),1);
    type_6->utf8_encode = true;
LAB_000331a0:
    type_7 = var_10(var_2,link_uri);
    if (var_3[0x16b] != '\0') {
      uVar10 = (*(type_9 *)PTR_quotearg_n_style_000af820)(0,7,ctx->document_file);
      uVar7 = (*(type_9 *)PTR_quote_n_000af824)(1,var_2);
      uVar8 = (*(type_9 *)PTR_quote_n_000af824)(2,link_uri);
      uVar9 = (*(type_9 *)PTR_quotearg_n_style_000af820)(3,7,type_7);
      var_4(var_5 + -0x7e4,uVar10,uVar7,uVar8,uVar9);
    }
    var_9 = var_8(type_7,(int *)0x0,type_6,false);
    if (var_9 == (type_7 *)0x0) {
      if (var_3[0x16b] != '\0') {
        var_4(var_5 + -0x7c8,ctx->document_file,type_7);
      }
      (*(type_9 *)PTR_free_000afd08)(type_7);
      (*(type_9 *)PTR_iri_free_000af548)(type_6);
      return (type_1 *)0x0;
    }
    (*(type_9 *)PTR_free_000afd08)(type_7);
    (*(type_9 *)PTR_iri_free_000af548)(type_6);
    if (var_3[0x16b] != '\0') {
LAB_000334e4:
      uVar10 = (*(type_9 *)PTR_quote_000af590)(var_9->type_7);
      var_4(var_5 + -0x7a0,uVar10);
    }
    puVar3 = (type_1 *)(*(type_9 *)PTR_xcalloc_000af674)(1,0x20);
    puVar3->type_7 = var_9;
    puVar3->pos = var_12;
    puVar3->size = size;
    if (var_6(extraout_var,_Var11) == 0) {
      if (*link_uri != '/') {
        *(type_10 *)&puVar3->field_0x8 = *(type_10 *)&puVar3->field_0x8 & 0xbfff | 0x4000;
      }
      var_11 = ctx->head;
      goto joined_r0x00033378;
    }
  }
  *(type_10 *)&puVar3->field_0x8 = *(type_10 *)&puVar3->field_0x8 & 0xdfff | 0x2000;
  var_11 = ctx->head;
joined_r0x00033378:
  if (var_11 == (type_1 *)0x0) {
LAB_00033384:
    ctx->head = puVar3;
    return puVar3;
  }
  var_13 = (type_1 *)0x0;
  do {
    puVar5 = var_11;
    if (var_12 <= puVar5->pos) {
      puVar3->next = puVar5;
      if (var_13 == (type_1 *)0x0) goto LAB_00033384;
      goto LAB_0003328c;
    }
    var_11 = puVar5->next;
    var_13 = puVar5;
  } while (puVar5->next != (type_1 *)0x0);
  puVar3->next = (type_1 *)0x0;
LAB_0003328c:
  var_13->next = puVar3;
  return puVar3;
}


(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))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (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)))) (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) (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))))) (number_literal)))) (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: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (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))))) (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: (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 (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (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))))) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (number_literal)))))) (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 (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (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))))) (identifier)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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)))) (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) (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))))) (number_literal)))) (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: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) 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) (number_literal) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (identifier))))) (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) (identifier))))) (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) (number_literal) (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (number_literal)))))) (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 (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (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))))) (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)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (return_statement (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (char_literal (escape_sequence)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (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 (pointer_expression argument: (identifier))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) 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 (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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 (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (char_literal (character)))) consequence: (compound_statement (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: (binary_expression left: (binary_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: (number_literal)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_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: (binary_expression left: (binary_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: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (return_statement (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (return_statement (identifier)))))

int * MASKED(char *param_1,int param_2,int param_3,int param_4)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  int *piVar6;
  undefined4 uVar7;
  undefined4 uVar8;
  undefined4 uVar9;
  undefined4 uVar10;
  int iVar11;
  
  iVar2 = url_has_scheme();
  puVar1 = PTR_opt_000af488;
  iVar11 = *(int *)(param_4 + 4);
  if (iVar11 == 0) {
    iVar11 = *(int *)(param_4 + 8);
    iVar3 = (*(code *)PTR_iri_new_000af54c)();
    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);
    *(undefined1 *)(iVar3 + 0xc) = 1;
    if (iVar11 != 0) goto LAB_000331a0;
    if (puVar1[0x16b] != '\0') {
      debug_logprintf(PTR_s_hallenge__000af46c + -0x850,*(undefined4 *)(param_4 + 0xc),param_1);
    }
    if (iVar2 == 0) {
      uVar4 = (*(code *)PTR_dcgettext_000afcf4)(0,PTR_s_hallenge__000af46c + -0x82c,5);
      logprintf(1,uVar4,*(undefined4 *)(param_4 + 0xc),param_1);
      (*(code *)PTR_iri_free_000af548)(iVar3);
      return (int *)0x0;
    }
    puVar5 = (undefined4 *)url_parse(param_1,0,iVar3,0);
    if (puVar5 == (undefined4 *)0x0) {
      if (puVar1[0x16b] != '\0') {
        debug_logprintf(PTR_s_hallenge__000af46c + -0x804,*(undefined4 *)(param_4 + 0xc),param_1);
      }
      (*(code *)PTR_iri_free_000af548)(iVar3);
      return (int *)0x0;
    }
    (*(code *)PTR_iri_free_000af548)(iVar3);
    if (puVar1[0x16b] != '\0') goto LAB_000334e4;
    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);
    *piVar6 = (int)puVar5;
    piVar6[5] = param_2;
    piVar6[6] = param_3;
  }
  else {
    iVar3 = (*(code *)PTR_iri_new_000af54c)();
    (*(code *)PTR_set_uri_encoding_000af550)(iVar3,*(undefined4 *)(puVar1 + 0x21c),1);
    *(undefined1 *)(iVar3 + 0xc) = 1;
LAB_000331a0:
    uVar4 = uri_merge(iVar11,param_1);
    if (puVar1[0x16b] != '\0') {
      uVar7 = (*(code *)PTR_quotearg_n_style_000af820)(0,7,*(undefined4 *)(param_4 + 0xc));
      uVar8 = (*(code *)PTR_quote_n_000af824)(1,iVar11);
      uVar9 = (*(code *)PTR_quote_n_000af824)(2,param_1);
      uVar10 = (*(code *)PTR_quotearg_n_style_000af820)(3,7,uVar4);
      debug_logprintf(PTR_s_hallenge__000af46c + -0x7e4,uVar7,uVar8,uVar9,uVar10);
    }
    puVar5 = (undefined4 *)url_parse(uVar4,0,iVar3,0);
    if (puVar5 == (undefined4 *)0x0) {
      if (puVar1[0x16b] != '\0') {
        debug_logprintf(PTR_s_hallenge__000af46c + -0x7c8,*(undefined4 *)(param_4 + 0xc),uVar4);
      }
      (*(code *)PTR_free_000afd08)(uVar4);
      (*(code *)PTR_iri_free_000af548)(iVar3);
      return (int *)0x0;
    }
    (*(code *)PTR_free_000afd08)(uVar4);
    (*(code *)PTR_iri_free_000af548)(iVar3);
    if (puVar1[0x16b] != '\0') {
LAB_000334e4:
      uVar4 = (*(code *)PTR_quote_000af590)(*puVar5);
      debug_logprintf(PTR_s_hallenge__000af46c + -0x7a0,uVar4);
    }
    piVar6 = (int *)(*(code *)PTR_xcalloc_000af674)(1,0x20);
    *piVar6 = (int)puVar5;
    piVar6[5] = param_2;
    piVar6[6] = param_3;
    if (iVar2 == 0) {
      if (*param_1 != '/') {
        *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xbfff | 0x4000;
      }
      iVar2 = *(int *)(param_4 + 0x14);
      goto joined_r0x00033378;
    }
  }
  *(ushort *)(piVar6 + 2) = *(ushort *)(piVar6 + 2) & 0xdfff | 0x2000;
  iVar2 = *(int *)(param_4 + 0x14);
joined_r0x00033378:
  if (iVar2 == 0) {
LAB_00033384:
    *(int **)(param_4 + 0x14) = piVar6;
    return piVar6;
  }
  iVar11 = 0;
  do {
    iVar3 = iVar2;
    if (param_2 <= *(int *)(iVar3 + 0x14)) {
      piVar6[7] = iVar3;
      if (iVar11 == 0) goto LAB_00033384;
      goto LAB_0003328c;
    }
    iVar2 = *(int *)(iVar3 + 0x1c);
    iVar11 = iVar3;
  } while (*(int *)(iVar3 + 0x1c) != 0);
  piVar6[7] = 0;
LAB_0003328c:
  *(int **)(iVar11 + 0x1c) = piVar6;
  return piVar6;
}

