
char * strcreplace(char *string,int c,char *text,int do_glob)

{
  int iVar1;
  int local_30;
  
  if ((text == (char *)0x0) || (*text == '\0')) {
    local_30 = 0;
  }
  else if (text[1] == '\0') {
    local_30 = 1;
  }
  else if (text[2] == '\0') {
    local_30 = 2;
  }
  else {
    local_30 = (*(code *)PTR_strlen_00146390)(text);
  }
  iVar1 = (*(code *)PTR_strlen_00146390)(string);
                    /* WARNING: Subroutine does not return */
  xmalloc(iVar1 + local_30 + 2);
}



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

{
  char *pcVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  char *pcVar7;
  char *pcVar8;
  char *pcVar9;
  int local_30;
  
  if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {
    local_30 = 0;
  }
  else if (param_3[1] == '\0') {
    local_30 = 1;
  }
  else if (param_3[2] == '\0') {
    local_30 = 2;
  }
  else {
    local_30 = (*(code *)PTR_strlen_00146390)(param_3);
  }
  iVar2 = (*(code *)PTR_strlen_00146390)(param_1);
  iVar2 = iVar2 + local_30 + 2;
  pcVar3 = (char *)xmalloc(iVar2);
  pcVar8 = pcVar3;
  do {
    while( true ) {
      iVar4 = (int)*param_1;
      pcVar7 = pcVar8;
      if (iVar4 == 0) goto LAB_000a3fa4;
      pcVar9 = param_1 + 1;
      if (iVar4 == param_2) break;
      pcVar1 = pcVar9;
      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {
        pcVar1 = param_1 + 2;
        param_1 = pcVar9;
      }
      pcVar9 = pcVar3;
      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {
        do {
          iVar2 = iVar2 << 1;
        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));
        pcVar9 = (char *)xrealloc(pcVar3,iVar2);
        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);
      }
      *pcVar7 = *param_1;
      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));
      param_1 = pcVar1;
      pcVar3 = pcVar9;
      pcVar8 = pcVar7;
      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;
    }
    if (local_30 != 0) {
      iVar4 = (int)pcVar8 - (int)pcVar3;
      if ((param_4 == 0) ||
         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&
          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {
        if (local_30 + iVar4 < iVar2) {
          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);
        }
        else {
          do {
            iVar2 = iVar2 << 1;
          } while (iVar2 <= local_30 + iVar4);
          pcVar3 = (char *)xrealloc(pcVar3,iVar2);
          pcVar8 = pcVar3 + iVar4;
          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);
        }
        pcVar7 = pcVar8 + local_30;
      }
      else {
        uVar6 = quote_globbing_chars(param_3);
        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);
        if (iVar2 <= iVar5 + iVar4) {
          do {
            iVar2 = iVar2 << 1;
          } while (iVar2 <= iVar5 + iVar4);
          pcVar3 = (char *)xrealloc(pcVar3,iVar2);
          pcVar8 = pcVar3 + iVar4;
        }
        pcVar7 = pcVar8 + iVar5;
        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);
        (*(code *)PTR_free_001464fc)(uVar6);
      }
    }
    param_1 = pcVar9;
    pcVar8 = pcVar7;
  } while (pcVar9 != (char *)0x0);
LAB_000a3fa4:
  *pcVar7 = '\0';
  return pcVar3;
}


lui gp,0xb
addiu gp,gp,-0x78d4
addu gp,gp,t9
addiu sp,sp,-0x50
sw gp,0x10(sp)
sw s4,0x38(sp)
or s4,a1,zero
sw s3,0x34(sp)
or s3,a2,zero
sw s1,0x2c(sp)
or s1,a0,zero
sw ra,0x4c(sp)
sw s8,0x48(sp)
sw s7,0x44(sp)
sw s6,0x40(sp)
sw s5,0x3c(sp)
sw s2,0x30(sp)
sw s0,0x28(sp)
beq a2,zero,0x000a3e70
_sw a3,0x5c(sp)
lb v0,0x0(a2)
bne v0,zero,0x000a4024
_nop
sw zero,0x20(sp)
sw zero,0x1c(sp)
lw t9,-0x61b0(gp)
or a0,s1,zero
jalr t9
_li s5,0x5c
lw v1,0x20(sp)
lw gp,0x10(sp)
addu v0,v0,v1
lw t9,-0x7f90(gp)
addiu s0,v0,0x2
bal 0x000ad290
_or a0,s0,zero
lw gp,0x10(sp)
or s6,v0,zero
b 0x000a3edc
_or s7,v0,zero
addiu v1,s2,0x2
slt v0,v1,s0
beq v0,zero,0x000a3f24
_nop
lb v0,0x0(s1)
addiu s2,s2,0x1
or s1,s8,zero
sb v0,0x0(s7)
beq s8,zero,0x000a3fa4
_addu s7,s6,s2
lb v0,0x0(s1)
beq v0,zero,0x000a3fa4
_nop
beq v0,s4,0x000a3f54
_addiu s8,s1,0x1
bne v0,s5,0x000a3eb4
_subu s2,s7,s6
lb v0,0x1(s1)
bne v0,s4,0x000a3eb8
_addiu v1,s2,0x2
subu s2,s7,s6
addiu v0,s1,0x2
addiu v1,s2,0x2
or s1,s8,zero
or s8,v0,zero
slt v0,v1,s0
bne v0,zero,0x000a3ec4
_nop
sll s0,s0,0x1
slt v0,v1,s0
beq v0,zero,0x000a3f24
_nop
lw t9,-0x7e04(gp)
or a0,s6,zero
bal 0x000ad32c
_or a1,s0,zero
lw gp,0x10(sp)
or s6,v0,zero
b 0x000a3ec4
_addu s7,v0,s2
lw v0,0x1c(sp)
beq v0,zero,0x000a3f9c
_or s1,s8,zero
lw v0,0x5c(sp)
bne v0,zero,0x000a4058
_subu s2,s7,s6
lw v0,0x1c(sp)
addu v1,v0,s2
slt v0,v1,s0
beq v0,zero,0x000a3fdc
_lw t9,-0x6128(gp)
or a0,s7,zero
lw v0,0x20(sp)
or a1,s3,zero
jalr t9
_addu s7,s7,v0
lw gp,0x10(sp)
or s1,s8,zero
bne s8,zero,0x000a3edc
_nop
sb zero,0x0(s7)
or v0,s6,zero
lw ra,0x4c(sp)
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
sll s0,s0,0x1
slt v0,v1,s0
beq v0,zero,0x000a3fdc
_lw t9,-0x7e04(gp)
or a0,s6,zero
bal 0x000ad32c
_or a1,s0,zero
or a1,s3,zero
lw gp,0x10(sp)
addu s7,v0,s2
or s6,v0,zero
lw v0,0x20(sp)
or a0,s7,zero
lw t9,-0x6128(gp)
jalr t9
_addu s7,s7,v0
b 0x000a3f98
_lw gp,0x10(sp)
lb v0,0x1(a2)
beq v0,zero,0x000a411c
_li v0,0x1
lb v0,0x2(a2)
beq v0,zero,0x000a4128
_li v0,0x2
lw t9,-0x61b0(gp)
jalr t9
_or a0,a2,zero
lw gp,0x10(sp)
sw v0,0x20(sp)
b 0x000a3e78
_sw v0,0x1c(sp)
lw t9,-0x6e30(gp)
jalr t9
_or a0,s3,zero
bne v0,zero,0x000a4084
_lw gp,0x10(sp)
lw t9,-0x61a8(gp)
li a1,0x5c
jalr t9
_or a0,s3,zero
beq v0,zero,0x000a3f6c
_lw gp,0x10(sp)
lw t9,-0x6e2c(gp)
bal 0x0008c360
_or a0,s3,zero
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x61b0(gp)
jalr t9
_or s1,v0,zero
addu v1,v0,s2
or t1,v0,zero
slt v0,v1,s0
beq v0,zero,0x000a40e8
_lw gp,0x10(sp)
lw t9,-0x6128(gp)
or a0,s7,zero
or a1,s1,zero
jalr t9
_addu s7,s7,t1
or a0,s1,zero
lw gp,0x10(sp)
lw t9,-0x6044(gp)
jalr t9
_or s1,s8,zero
b 0x000a3f9c
_lw gp,0x10(sp)
sll s0,s0,0x1
slt v0,v1,s0
beq v0,zero,0x000a40e8
_lw t9,-0x7e04(gp)
or a0,s6,zero
sw t1,0x24(sp)
bal 0x000ad32c
_or a1,s0,zero
lw gp,0x10(sp)
or s6,v0,zero
addu s7,v0,s2
b 0x000a40b8
_lw t1,0x24(sp)
sw v0,0x20(sp)
b 0x000a3e78
_sw v0,0x1c(sp)
sw v0,0x20(sp)
b 0x000a3e78
_sw v0,0x1c(sp)
(translation_unit "char * strcreplace(char *param_1,int param_2,char *param_3,int param_4)\n\n{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int local_30;\n  \n  if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n    local_30 = 0;\n  }\n  else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }\n  iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n  iVar2 = iVar2 + local_30 + 2;\n  pcVar3 = (char *)xmalloc(iVar2);\n  pcVar8 = pcVar3;\n  do {\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  } while (pcVar9 != (char *)0x0);\nLAB_000a3fa4:\n  *pcVar7 = '\0';\n  return pcVar3;\n}\n\n" (function_definition "char * strcreplace(char *param_1,int param_2,char *param_3,int param_4)\n\n{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int local_30;\n  \n  if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n    local_30 = 0;\n  }\n  else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }\n  iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n  iVar2 = iVar2 + local_30 + 2;\n  pcVar3 = (char *)xmalloc(iVar2);\n  pcVar8 = pcVar3;\n  do {\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  } while (pcVar9 != (char *)0x0);\nLAB_000a3fa4:\n  *pcVar7 = '\0';\n  return pcVar3;\n}" primitive_type (pointer_declarator "* strcreplace(char *param_1,int param_2,char *param_3,int param_4)" * (function_declarator "strcreplace(char *param_1,int param_2,char *param_3,int param_4)" identifier (parameter_list "(char *param_1,int param_2,char *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 "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int local_30;\n  \n  if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n    local_30 = 0;\n  }\n  else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }\n  iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n  iVar2 = iVar2 + local_30 + 2;\n  pcVar3 = (char *)xmalloc(iVar2);\n  pcVar8 = pcVar3;\n  do {\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  } while (pcVar9 != (char *)0x0);\nLAB_000a3fa4:\n  *pcVar7 = '\0';\n  return pcVar3;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (if_statement "if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n    local_30 = 0;\n  }\n  else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" if (parenthesized_expression "((param_3 == (char *)0x0) || (*param_3 == '\0'))" ( (binary_expression "(param_3 == (char *)0x0) || (*param_3 == '\0')" (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_3 == '\0')" ( (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    local_30 = 0;\n  }" { (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" else (if_statement "if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" if (parenthesized_expression "(param_3[1] == '\0')" ( (binary_expression "param_3[1] == '\0'" (subscript_expression "param_3[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_30 = 1;\n  }" { (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) }) (else_clause "else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" else (if_statement "if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" if (parenthesized_expression "(param_3[2] == '\0')" ( (binary_expression "param_3[2] == '\0'" (subscript_expression "param_3[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_30 = 2;\n  }" { (expression_statement "local_30 = 2;" (assignment_expression "local_30 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" else (compound_statement "{\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" { (expression_statement "local_30 = (*(code *)PTR_strlen_00146390)(param_3);" (assignment_expression "local_30 = (*(code *)PTR_strlen_00146390)(param_3)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_3)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier )))) ;) }))))))) (expression_statement "iVar2 = (*(code *)PTR_strlen_00146390)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00146390)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar2 = iVar2 + local_30 + 2;" (assignment_expression "iVar2 = iVar2 + local_30 + 2" identifier = (binary_expression "iVar2 + local_30 + 2" (binary_expression "iVar2 + local_30" identifier + identifier) + number_literal)) ;) (expression_statement "pcVar3 = (char *)xmalloc(iVar2);" (assignment_expression "pcVar3 = (char *)xmalloc(iVar2)" identifier = (cast_expression "(char *)xmalloc(iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))))) ;) (expression_statement "pcVar8 = pcVar3;" (assignment_expression "pcVar8 = pcVar3" identifier = identifier) ;) (do_statement "do {\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  } while (pcVar9 != (char *)0x0);" do (compound_statement "{\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  }" { (while_statement "while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }" { (expression_statement "iVar4 = (int)*param_1;" (assignment_expression "iVar4 = (int)*param_1" identifier = (cast_expression "(int)*param_1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "pcVar7 = pcVar8;" (assignment_expression "pcVar7 = pcVar8" identifier = identifier) ;) (if_statement "if (iVar4 == 0) goto LAB_000a3fa4;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a3fa4;" goto statement_identifier ;)) (expression_statement "pcVar9 = param_1 + 1;" (assignment_expression "pcVar9 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 == param_2) break;" if (parenthesized_expression "(iVar4 == param_2)" ( (binary_expression "iVar4 == param_2" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar1 = pcVar9;" (assignment_expression "pcVar1 = pcVar9" identifier = identifier) ;) (if_statement "if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }" if (parenthesized_expression "((iVar4 == 0x5c) && (param_1[1] == param_2))" ( (binary_expression "(iVar4 == 0x5c) && (param_1[1] == param_2)" (parenthesized_expression "(iVar4 == 0x5c)" ( (binary_expression "iVar4 == 0x5c" identifier == number_literal) )) && (parenthesized_expression "(param_1[1] == param_2)" ( (binary_expression "param_1[1] == param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) == identifier) ))) )) (compound_statement "{\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }" { (expression_statement "pcVar1 = param_1 + 2;" (assignment_expression "pcVar1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "param_1 = pcVar9;" (assignment_expression "param_1 = pcVar9" identifier = identifier) ;) })) (expression_statement "pcVar9 = pcVar3;" (assignment_expression "pcVar9 = pcVar3" identifier = identifier) ;) (if_statement "if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }" if (parenthesized_expression "(iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)))" ( (binary_expression "iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))" identifier <= (cast_expression "(int)(pcVar8 + (2 - (int)pcVar3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar8 + (2 - (int)pcVar3))" ( (binary_expression "pcVar8 + (2 - (int)pcVar3)" identifier + (parenthesized_expression "(2 - (int)pcVar3)" ( (binary_expression "2 - (int)pcVar3" number_literal - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )))) )) (compound_statement "{\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }" { (do_statement "do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));" do (compound_statement "{\n          iVar2 = iVar2 << 1;\n        }" { (expression_statement "iVar2 = iVar2 << 1;" (assignment_expression "iVar2 = iVar2 << 1" identifier = (binary_expression "iVar2 << 1" identifier << number_literal)) ;) }) while (parenthesized_expression "(iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)))" ( (binary_expression "iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))" identifier <= (cast_expression "(int)(pcVar8 + (2 - (int)pcVar3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar8 + (2 - (int)pcVar3))" ( (binary_expression "pcVar8 + (2 - (int)pcVar3)" identifier + (parenthesized_expression "(2 - (int)pcVar3)" ( (binary_expression "2 - (int)pcVar3" number_literal - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )))) )) ;) (expression_statement "pcVar9 = (char *)xrealloc(pcVar3,iVar2);" (assignment_expression "pcVar9 = (char *)xrealloc(pcVar3,iVar2)" identifier = (cast_expression "(char *)xrealloc(pcVar3,iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(pcVar3,iVar2)" identifier (argument_list "(pcVar3,iVar2)" ( identifier , identifier ))))) ;) (expression_statement "pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);" (assignment_expression "pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3)" identifier = (binary_expression "pcVar9 + ((int)pcVar8 - (int)pcVar3)" identifier + (parenthesized_expression "((int)pcVar8 - (int)pcVar3)" ( (binary_expression "(int)pcVar8 - (int)pcVar3" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) })) (expression_statement "*pcVar7 = *param_1;" (assignment_expression "*pcVar7 = *param_1" (pointer_expression "*pcVar7" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));" (assignment_expression "pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3))" identifier = (binary_expression "pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3))" identifier + (cast_expression "(int)(pcVar8 + (1 - (int)pcVar3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar8 + (1 - (int)pcVar3))" ( (binary_expression "pcVar8 + (1 - (int)pcVar3)" identifier + (parenthesized_expression "(1 - (int)pcVar3)" ( (binary_expression "1 - (int)pcVar3" number_literal - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))))) ;) (expression_statement "param_1 = pcVar1;" (assignment_expression "param_1 = pcVar1" identifier = identifier) ;) (expression_statement "pcVar3 = pcVar9;" (assignment_expression "pcVar3 = pcVar9" identifier = identifier) ;) (expression_statement "pcVar8 = pcVar7;" (assignment_expression "pcVar8 = pcVar7" identifier = identifier) ;) (if_statement "if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000a3fa4;" goto statement_identifier ;)) })) (if_statement "if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }" { (expression_statement "iVar4 = (int)pcVar8 - (int)pcVar3;" (assignment_expression "iVar4 = (int)pcVar8 - (int)pcVar3" identifier = (binary_expression "(int)pcVar8 - (int)pcVar3" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }" if (parenthesized_expression "((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0))))" ( (binary_expression "(param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))" (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) || (parenthesized_expression "((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))" ( (parenthesized_expression "(iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0))" ( (comma_expression "iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)" (assignment_expression "iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3)" identifier = (call_expression "(*(code *)PTR_glob_pattern_p_00145710)(param_3)" (parenthesized_expression "(*(code *)PTR_glob_pattern_p_00145710)" ( (pointer_expression "*(code *)PTR_glob_pattern_p_00145710" * (cast_expression "(code *)PTR_glob_pattern_p_00145710" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier )))) , (binary_expression "iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)" (binary_expression "iVar5 == 0" identifier == number_literal) && (parenthesized_expression "(iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)" ( (comma_expression "iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0" (assignment_expression "iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c)" identifier = (call_expression "(*(code *)PTR_strchr_00146398)(param_3,0x5c)" (parenthesized_expression "(*(code *)PTR_strchr_00146398)" ( (pointer_expression "*(code *)PTR_strchr_00146398" * (cast_expression "(code *)PTR_strchr_00146398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0x5c)" ( identifier , number_literal )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) )))) )) ))) )) (compound_statement "{\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }" { (if_statement "if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }" if (parenthesized_expression "(local_30 + iVar4 < iVar2)" ( (binary_expression "local_30 + iVar4 < iVar2" (binary_expression "local_30 + iVar4" identifier + identifier) < identifier) )) (compound_statement "{\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }" { (expression_statement "(*(code *)PTR_strcpy_00146418)(pcVar8,param_3);" (call_expression "(*(code *)PTR_strcpy_00146418)(pcVar8,param_3)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8,param_3)" ( identifier , identifier ))) ;) }) (else_clause "else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }" else (compound_statement "{\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }" { (do_statement "do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);" do (compound_statement "{\n            iVar2 = iVar2 << 1;\n          }" { (expression_statement "iVar2 = iVar2 << 1;" (assignment_expression "iVar2 = iVar2 << 1" identifier = (binary_expression "iVar2 << 1" identifier << number_literal)) ;) }) while (parenthesized_expression "(iVar2 <= local_30 + iVar4)" ( (binary_expression "iVar2 <= local_30 + iVar4" identifier <= (binary_expression "local_30 + iVar4" identifier + identifier)) )) ;) (expression_statement "pcVar3 = (char *)xrealloc(pcVar3,iVar2);" (assignment_expression "pcVar3 = (char *)xrealloc(pcVar3,iVar2)" identifier = (cast_expression "(char *)xrealloc(pcVar3,iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(pcVar3,iVar2)" identifier (argument_list "(pcVar3,iVar2)" ( identifier , identifier ))))) ;) (expression_statement "pcVar8 = pcVar3 + iVar4;" (assignment_expression "pcVar8 = pcVar3 + iVar4" identifier = (binary_expression "pcVar3 + iVar4" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strcpy_00146418)(pcVar8,param_3);" (call_expression "(*(code *)PTR_strcpy_00146418)(pcVar8,param_3)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8,param_3)" ( identifier , identifier ))) ;) }))) (expression_statement "pcVar7 = pcVar8 + local_30;" (assignment_expression "pcVar7 = pcVar8 + local_30" identifier = (binary_expression "pcVar8 + local_30" identifier + identifier)) ;) }) (else_clause "else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }" else (compound_statement "{\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }" { (expression_statement "uVar6 = quote_globbing_chars(param_3);" (assignment_expression "uVar6 = quote_globbing_chars(param_3)" identifier = (call_expression "quote_globbing_chars(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00146390)(uVar6)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(uVar6)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6)" ( identifier )))) ;) (if_statement "if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }" if (parenthesized_expression "(iVar2 <= iVar5 + iVar4)" ( (binary_expression "iVar2 <= iVar5 + iVar4" identifier <= (binary_expression "iVar5 + iVar4" identifier + identifier)) )) (compound_statement "{\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }" { (do_statement "do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);" do (compound_statement "{\n            iVar2 = iVar2 << 1;\n          }" { (expression_statement "iVar2 = iVar2 << 1;" (assignment_expression "iVar2 = iVar2 << 1" identifier = (binary_expression "iVar2 << 1" identifier << number_literal)) ;) }) while (parenthesized_expression "(iVar2 <= iVar5 + iVar4)" ( (binary_expression "iVar2 <= iVar5 + iVar4" identifier <= (binary_expression "iVar5 + iVar4" identifier + identifier)) )) ;) (expression_statement "pcVar3 = (char *)xrealloc(pcVar3,iVar2);" (assignment_expression "pcVar3 = (char *)xrealloc(pcVar3,iVar2)" identifier = (cast_expression "(char *)xrealloc(pcVar3,iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(pcVar3,iVar2)" identifier (argument_list "(pcVar3,iVar2)" ( identifier , identifier ))))) ;) (expression_statement "pcVar8 = pcVar3 + iVar4;" (assignment_expression "pcVar8 = pcVar3 + iVar4" identifier = (binary_expression "pcVar3 + iVar4" identifier + identifier)) ;) })) (expression_statement "pcVar7 = pcVar8 + iVar5;" (assignment_expression "pcVar7 = pcVar8 + iVar5" identifier = (binary_expression "pcVar8 + iVar5" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);" (call_expression "(*(code *)PTR_strcpy_00146418)(pcVar8,uVar6)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8,uVar6)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(uVar6);" (call_expression "(*(code *)PTR_free_001464fc)(uVar6)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6)" ( identifier ))) ;) }))) })) (expression_statement "param_1 = pcVar9;" (assignment_expression "param_1 = pcVar9" identifier = identifier) ;) (expression_statement "pcVar8 = pcVar7;" (assignment_expression "pcVar8 = pcVar7" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar9 != (char *)0x0)" ( (binary_expression "pcVar9 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_000a3fa4:\n  *pcVar7 = '\0';" statement_identifier : (expression_statement "*pcVar7 = '\0';" (assignment_expression "*pcVar7 = '\0'" (pointer_expression "*pcVar7" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (return_statement "return pcVar3;" return identifier ;) })))
(translation_unit "char * strcreplace(char *string,int c,char *text,int do_glob)\n\n{\n  int iVar1;\n  int local_30;\n  \n  if ((text == (char *)0x0) || (*text == '\0')) {\n    local_30 = 0;\n  }\n  else if (text[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (text[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(text);\n  }\n  iVar1 = (*(code *)PTR_strlen_00146390)(string);\n                    /* WARNING: Subroutine does not return */\n  xmalloc(iVar1 + local_30 + 2);\n}\n\n" (function_definition "char * strcreplace(char *string,int c,char *text,int do_glob)\n\n{\n  int iVar1;\n  int local_30;\n  \n  if ((text == (char *)0x0) || (*text == '\0')) {\n    local_30 = 0;\n  }\n  else if (text[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (text[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(text);\n  }\n  iVar1 = (*(code *)PTR_strlen_00146390)(string);\n                    /* WARNING: Subroutine does not return */\n  xmalloc(iVar1 + local_30 + 2);\n}" primitive_type (pointer_declarator "* strcreplace(char *string,int c,char *text,int do_glob)" * (function_declarator "strcreplace(char *string,int c,char *text,int do_glob)" identifier (parameter_list "(char *string,int c,char *text,int do_glob)" ( (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) , (parameter_declaration "int c" primitive_type identifier) , (parameter_declaration "char *text" primitive_type (pointer_declarator "*text" * identifier)) , (parameter_declaration "int do_glob" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int local_30;\n  \n  if ((text == (char *)0x0) || (*text == '\0')) {\n    local_30 = 0;\n  }\n  else if (text[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (text[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(text);\n  }\n  iVar1 = (*(code *)PTR_strlen_00146390)(string);\n                    /* WARNING: Subroutine does not return */\n  xmalloc(iVar1 + local_30 + 2);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (if_statement "if ((text == (char *)0x0) || (*text == '\0')) {\n    local_30 = 0;\n  }\n  else if (text[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (text[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(text);\n  }" if (parenthesized_expression "((text == (char *)0x0) || (*text == '\0'))" ( (binary_expression "(text == (char *)0x0) || (*text == '\0')" (parenthesized_expression "(text == (char *)0x0)" ( (binary_expression "text == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*text == '\0')" ( (binary_expression "*text == '\0'" (pointer_expression "*text" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    local_30 = 0;\n  }" { (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else if (text[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (text[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(text);\n  }" else (if_statement "if (text[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (text[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(text);\n  }" if (parenthesized_expression "(text[1] == '\0')" ( (binary_expression "text[1] == '\0'" (subscript_expression "text[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_30 = 1;\n  }" { (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) }) (else_clause "else if (text[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(text);\n  }" else (if_statement "if (text[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(text);\n  }" if (parenthesized_expression "(text[2] == '\0')" ( (binary_expression "text[2] == '\0'" (subscript_expression "text[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_30 = 2;\n  }" { (expression_statement "local_30 = 2;" (assignment_expression "local_30 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    local_30 = (*(code *)PTR_strlen_00146390)(text);\n  }" else (compound_statement "{\n    local_30 = (*(code *)PTR_strlen_00146390)(text);\n  }" { (expression_statement "local_30 = (*(code *)PTR_strlen_00146390)(text);" (assignment_expression "local_30 = (*(code *)PTR_strlen_00146390)(text)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(text)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(text)" ( identifier )))) ;) }))))))) (expression_statement "iVar1 = (*(code *)PTR_strlen_00146390)(string);" (assignment_expression "iVar1 = (*(code *)PTR_strlen_00146390)(string)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(string)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(string)" ( identifier )))) ;) comment (expression_statement "xmalloc(iVar1 + local_30 + 2);" (call_expression "xmalloc(iVar1 + local_30 + 2)" identifier (argument_list "(iVar1 + local_30 + 2)" ( (binary_expression "iVar1 + local_30 + 2" (binary_expression "iVar1 + local_30" identifier + identifier) + number_literal) ))) ;) })))
(translation_unit "char * strcreplace(char *param_1,int param_2,char *param_3,int param_4)\n\n{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int local_30;\n  \n  if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n    local_30 = 0;\n  }\n  else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }\n  iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n  iVar2 = iVar2 + local_30 + 2;\n  pcVar3 = (char *)xmalloc(iVar2);\n  pcVar8 = pcVar3;\n  do {\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  } while (pcVar9 != (char *)0x0);\nLAB_000a3fa4:\n  *pcVar7 = '\0';\n  return pcVar3;\n}\n\n" (function_definition "char * strcreplace(char *param_1,int param_2,char *param_3,int param_4)\n\n{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int local_30;\n  \n  if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n    local_30 = 0;\n  }\n  else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }\n  iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n  iVar2 = iVar2 + local_30 + 2;\n  pcVar3 = (char *)xmalloc(iVar2);\n  pcVar8 = pcVar3;\n  do {\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  } while (pcVar9 != (char *)0x0);\nLAB_000a3fa4:\n  *pcVar7 = '\0';\n  return pcVar3;\n}" primitive_type (pointer_declarator "* strcreplace(char *param_1,int param_2,char *param_3,int param_4)" * (function_declarator "strcreplace(char *param_1,int param_2,char *param_3,int param_4)" identifier (parameter_list "(char *param_1,int param_2,char *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 "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int local_30;\n  \n  if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n    local_30 = 0;\n  }\n  else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }\n  iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n  iVar2 = iVar2 + local_30 + 2;\n  pcVar3 = (char *)xmalloc(iVar2);\n  pcVar8 = pcVar3;\n  do {\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  } while (pcVar9 != (char *)0x0);\nLAB_000a3fa4:\n  *pcVar7 = '\0';\n  return pcVar3;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (if_statement "if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n    local_30 = 0;\n  }\n  else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" if (parenthesized_expression "((param_3 == (char *)0x0) || (*param_3 == '\0'))" ( (binary_expression "(param_3 == (char *)0x0) || (*param_3 == '\0')" (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_3 == '\0')" ( (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    local_30 = 0;\n  }" { (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" else (if_statement "if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" if (parenthesized_expression "(param_3[1] == '\0')" ( (binary_expression "param_3[1] == '\0'" (subscript_expression "param_3[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_30 = 1;\n  }" { (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" identifier = number_literal) ;) }) (else_clause "else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" else (if_statement "if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" if (parenthesized_expression "(param_3[2] == '\0')" ( (binary_expression "param_3[2] == '\0'" (subscript_expression "param_3[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_30 = 2;\n  }" { (expression_statement "local_30 = 2;" (assignment_expression "local_30 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" else (compound_statement "{\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" { (expression_statement "local_30 = (*(code *)PTR_strlen_00146390)(param_3);" (assignment_expression "local_30 = (*(code *)PTR_strlen_00146390)(param_3)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_3)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier )))) ;) }))))))) (expression_statement "iVar2 = (*(code *)PTR_strlen_00146390)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00146390)(param_1)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar2 = iVar2 + local_30 + 2;" (assignment_expression "iVar2 = iVar2 + local_30 + 2" identifier = (binary_expression "iVar2 + local_30 + 2" (binary_expression "iVar2 + local_30" identifier + identifier) + number_literal)) ;) (expression_statement "pcVar3 = (char *)xmalloc(iVar2);" (assignment_expression "pcVar3 = (char *)xmalloc(iVar2)" identifier = (cast_expression "(char *)xmalloc(iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))))) ;) (expression_statement "pcVar8 = pcVar3;" (assignment_expression "pcVar8 = pcVar3" identifier = identifier) ;) (do_statement "do {\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  } while (pcVar9 != (char *)0x0);" do (compound_statement "{\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  }" { (while_statement "while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }" { (expression_statement "iVar4 = (int)*param_1;" (assignment_expression "iVar4 = (int)*param_1" identifier = (cast_expression "(int)*param_1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "pcVar7 = pcVar8;" (assignment_expression "pcVar7 = pcVar8" identifier = identifier) ;) (if_statement "if (iVar4 == 0) goto LAB_000a3fa4;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a3fa4;" goto statement_identifier ;)) (expression_statement "pcVar9 = param_1 + 1;" (assignment_expression "pcVar9 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (if_statement "if (iVar4 == param_2) break;" if (parenthesized_expression "(iVar4 == param_2)" ( (binary_expression "iVar4 == param_2" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar1 = pcVar9;" (assignment_expression "pcVar1 = pcVar9" identifier = identifier) ;) (if_statement "if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }" if (parenthesized_expression "((iVar4 == 0x5c) && (param_1[1] == param_2))" ( (binary_expression "(iVar4 == 0x5c) && (param_1[1] == param_2)" (parenthesized_expression "(iVar4 == 0x5c)" ( (binary_expression "iVar4 == 0x5c" identifier == number_literal) )) && (parenthesized_expression "(param_1[1] == param_2)" ( (binary_expression "param_1[1] == param_2" (subscript_expression "param_1[1]" identifier [ number_literal ]) == identifier) ))) )) (compound_statement "{\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }" { (expression_statement "pcVar1 = param_1 + 2;" (assignment_expression "pcVar1 = param_1 + 2" identifier = (binary_expression "param_1 + 2" identifier + number_literal)) ;) (expression_statement "param_1 = pcVar9;" (assignment_expression "param_1 = pcVar9" identifier = identifier) ;) })) (expression_statement "pcVar9 = pcVar3;" (assignment_expression "pcVar9 = pcVar3" identifier = identifier) ;) (if_statement "if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }" if (parenthesized_expression "(iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)))" ( (binary_expression "iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))" identifier <= (cast_expression "(int)(pcVar8 + (2 - (int)pcVar3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar8 + (2 - (int)pcVar3))" ( (binary_expression "pcVar8 + (2 - (int)pcVar3)" identifier + (parenthesized_expression "(2 - (int)pcVar3)" ( (binary_expression "2 - (int)pcVar3" number_literal - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )))) )) (compound_statement "{\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }" { (do_statement "do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));" do (compound_statement "{\n          iVar2 = iVar2 << 1;\n        }" { (expression_statement "iVar2 = iVar2 << 1;" (assignment_expression "iVar2 = iVar2 << 1" identifier = (binary_expression "iVar2 << 1" identifier << number_literal)) ;) }) while (parenthesized_expression "(iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)))" ( (binary_expression "iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))" identifier <= (cast_expression "(int)(pcVar8 + (2 - (int)pcVar3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar8 + (2 - (int)pcVar3))" ( (binary_expression "pcVar8 + (2 - (int)pcVar3)" identifier + (parenthesized_expression "(2 - (int)pcVar3)" ( (binary_expression "2 - (int)pcVar3" number_literal - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )))) )) ;) (expression_statement "pcVar9 = (char *)xrealloc(pcVar3,iVar2);" (assignment_expression "pcVar9 = (char *)xrealloc(pcVar3,iVar2)" identifier = (cast_expression "(char *)xrealloc(pcVar3,iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(pcVar3,iVar2)" identifier (argument_list "(pcVar3,iVar2)" ( identifier , identifier ))))) ;) (expression_statement "pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);" (assignment_expression "pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3)" identifier = (binary_expression "pcVar9 + ((int)pcVar8 - (int)pcVar3)" identifier + (parenthesized_expression "((int)pcVar8 - (int)pcVar3)" ( (binary_expression "(int)pcVar8 - (int)pcVar3" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) })) (expression_statement "*pcVar7 = *param_1;" (assignment_expression "*pcVar7 = *param_1" (pointer_expression "*pcVar7" * identifier) = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));" (assignment_expression "pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3))" identifier = (binary_expression "pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3))" identifier + (cast_expression "(int)(pcVar8 + (1 - (int)pcVar3))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcVar8 + (1 - (int)pcVar3))" ( (binary_expression "pcVar8 + (1 - (int)pcVar3)" identifier + (parenthesized_expression "(1 - (int)pcVar3)" ( (binary_expression "1 - (int)pcVar3" number_literal - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))))) ;) (expression_statement "param_1 = pcVar1;" (assignment_expression "param_1 = pcVar1" identifier = identifier) ;) (expression_statement "pcVar3 = pcVar9;" (assignment_expression "pcVar3 = pcVar9" identifier = identifier) ;) (expression_statement "pcVar8 = pcVar7;" (assignment_expression "pcVar8 = pcVar7" identifier = identifier) ;) (if_statement "if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000a3fa4;" goto statement_identifier ;)) })) (if_statement "if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }" { (expression_statement "iVar4 = (int)pcVar8 - (int)pcVar3;" (assignment_expression "iVar4 = (int)pcVar8 - (int)pcVar3" identifier = (binary_expression "(int)pcVar8 - (int)pcVar3" (cast_expression "(int)pcVar8" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pcVar3" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }" if (parenthesized_expression "((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0))))" ( (binary_expression "(param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))" (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) || (parenthesized_expression "((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))" ( (parenthesized_expression "(iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0))" ( (comma_expression "iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)" (assignment_expression "iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3)" identifier = (call_expression "(*(code *)PTR_glob_pattern_p_00145710)(param_3)" (parenthesized_expression "(*(code *)PTR_glob_pattern_p_00145710)" ( (pointer_expression "*(code *)PTR_glob_pattern_p_00145710" * (cast_expression "(code *)PTR_glob_pattern_p_00145710" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier )))) , (binary_expression "iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)" (binary_expression "iVar5 == 0" identifier == number_literal) && (parenthesized_expression "(iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)" ( (comma_expression "iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0" (assignment_expression "iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c)" identifier = (call_expression "(*(code *)PTR_strchr_00146398)(param_3,0x5c)" (parenthesized_expression "(*(code *)PTR_strchr_00146398)" ( (pointer_expression "*(code *)PTR_strchr_00146398" * (cast_expression "(code *)PTR_strchr_00146398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3,0x5c)" ( identifier , number_literal )))) , (binary_expression "iVar5 == 0" identifier == number_literal)) )))) )) ))) )) (compound_statement "{\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }" { (if_statement "if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }" if (parenthesized_expression "(local_30 + iVar4 < iVar2)" ( (binary_expression "local_30 + iVar4 < iVar2" (binary_expression "local_30 + iVar4" identifier + identifier) < identifier) )) (compound_statement "{\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }" { (expression_statement "(*(code *)PTR_strcpy_00146418)(pcVar8,param_3);" (call_expression "(*(code *)PTR_strcpy_00146418)(pcVar8,param_3)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8,param_3)" ( identifier , identifier ))) ;) }) (else_clause "else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }" else (compound_statement "{\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }" { (do_statement "do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);" do (compound_statement "{\n            iVar2 = iVar2 << 1;\n          }" { (expression_statement "iVar2 = iVar2 << 1;" (assignment_expression "iVar2 = iVar2 << 1" identifier = (binary_expression "iVar2 << 1" identifier << number_literal)) ;) }) while (parenthesized_expression "(iVar2 <= local_30 + iVar4)" ( (binary_expression "iVar2 <= local_30 + iVar4" identifier <= (binary_expression "local_30 + iVar4" identifier + identifier)) )) ;) (expression_statement "pcVar3 = (char *)xrealloc(pcVar3,iVar2);" (assignment_expression "pcVar3 = (char *)xrealloc(pcVar3,iVar2)" identifier = (cast_expression "(char *)xrealloc(pcVar3,iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(pcVar3,iVar2)" identifier (argument_list "(pcVar3,iVar2)" ( identifier , identifier ))))) ;) (expression_statement "pcVar8 = pcVar3 + iVar4;" (assignment_expression "pcVar8 = pcVar3 + iVar4" identifier = (binary_expression "pcVar3 + iVar4" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strcpy_00146418)(pcVar8,param_3);" (call_expression "(*(code *)PTR_strcpy_00146418)(pcVar8,param_3)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8,param_3)" ( identifier , identifier ))) ;) }))) (expression_statement "pcVar7 = pcVar8 + local_30;" (assignment_expression "pcVar7 = pcVar8 + local_30" identifier = (binary_expression "pcVar8 + local_30" identifier + identifier)) ;) }) (else_clause "else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }" else (compound_statement "{\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }" { (expression_statement "uVar6 = quote_globbing_chars(param_3);" (assignment_expression "uVar6 = quote_globbing_chars(param_3)" identifier = (call_expression "quote_globbing_chars(param_3)" identifier (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00146390)(uVar6)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(uVar6)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6)" ( identifier )))) ;) (if_statement "if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }" if (parenthesized_expression "(iVar2 <= iVar5 + iVar4)" ( (binary_expression "iVar2 <= iVar5 + iVar4" identifier <= (binary_expression "iVar5 + iVar4" identifier + identifier)) )) (compound_statement "{\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }" { (do_statement "do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);" do (compound_statement "{\n            iVar2 = iVar2 << 1;\n          }" { (expression_statement "iVar2 = iVar2 << 1;" (assignment_expression "iVar2 = iVar2 << 1" identifier = (binary_expression "iVar2 << 1" identifier << number_literal)) ;) }) while (parenthesized_expression "(iVar2 <= iVar5 + iVar4)" ( (binary_expression "iVar2 <= iVar5 + iVar4" identifier <= (binary_expression "iVar5 + iVar4" identifier + identifier)) )) ;) (expression_statement "pcVar3 = (char *)xrealloc(pcVar3,iVar2);" (assignment_expression "pcVar3 = (char *)xrealloc(pcVar3,iVar2)" identifier = (cast_expression "(char *)xrealloc(pcVar3,iVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(pcVar3,iVar2)" identifier (argument_list "(pcVar3,iVar2)" ( identifier , identifier ))))) ;) (expression_statement "pcVar8 = pcVar3 + iVar4;" (assignment_expression "pcVar8 = pcVar3 + iVar4" identifier = (binary_expression "pcVar3 + iVar4" identifier + identifier)) ;) })) (expression_statement "pcVar7 = pcVar8 + iVar5;" (assignment_expression "pcVar7 = pcVar8 + iVar5" identifier = (binary_expression "pcVar8 + iVar5" identifier + identifier)) ;) (expression_statement "(*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);" (call_expression "(*(code *)PTR_strcpy_00146418)(pcVar8,uVar6)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8,uVar6)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(uVar6);" (call_expression "(*(code *)PTR_free_001464fc)(uVar6)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" ( (pointer_expression "*(code *)PTR_free_001464fc" * (cast_expression "(code *)PTR_free_001464fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar6)" ( identifier ))) ;) }))) })) (expression_statement "param_1 = pcVar9;" (assignment_expression "param_1 = pcVar9" identifier = identifier) ;) (expression_statement "pcVar8 = pcVar7;" (assignment_expression "pcVar8 = pcVar7" identifier = identifier) ;) }) while (parenthesized_expression "(pcVar9 != (char *)0x0)" ( (binary_expression "pcVar9 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (labeled_statement "LAB_000a3fa4:\n  *pcVar7 = '\0';" statement_identifier : (expression_statement "*pcVar7 = '\0';" (assignment_expression "*pcVar7 = '\0'" (pointer_expression "*pcVar7" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (return_statement "return pcVar3;" 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 (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (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 ( IDENT )))) ;) }))))))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) )))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) )))) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) , (binary_expression (binary_expression IDENT == LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT )))) , (binary_expression IDENT == LIT)) )))) )) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) < IDENT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT + IDENT)) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (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 IDENT <= (binary_expression IDENT + IDENT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= (binary_expression IDENT + IDENT)) )) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }))) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;)) (return_statement return IDENT ;) })))
(function_definition "char * strcreplace(char *param_1,int param_2,char *param_3,int param_4)\n\n{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int local_30;\n  \n  if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n    local_30 = 0;\n  }\n  else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }\n  iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n  iVar2 = iVar2 + local_30 + 2;\n  pcVar3 = (char *)xmalloc(iVar2);\n  pcVar8 = pcVar3;\n  do {\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  } while (pcVar9 != (char *)0x0);\nLAB_000a3fa4:\n  *pcVar7 = '\0';\n  return pcVar3;\n}" (primitive_type "char") (pointer_declarator "* strcreplace(char *param_1,int param_2,char *param_3,int param_4)" (* "*") (function_declarator "strcreplace(char *param_1,int param_2,char *param_3,int param_4)" (identifier "strcreplace") (parameter_list "(char *param_1,int param_2,char *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 "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  undefined4 uVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int local_30;\n  \n  if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n    local_30 = 0;\n  }\n  else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }\n  iVar2 = (*(code *)PTR_strlen_00146390)(param_1);\n  iVar2 = iVar2 + local_30 + 2;\n  pcVar3 = (char *)xmalloc(iVar2);\n  pcVar8 = pcVar3;\n  do {\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  } while (pcVar9 != (char *)0x0);\nLAB_000a3fa4:\n  *pcVar7 = '\0';\n  return pcVar3;\n}" ({ "{") (declaration "char *pcVar1;" (primitive_type "char") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "char *pcVar9;" (primitive_type "char") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (if_statement "if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n    local_30 = 0;\n  }\n  else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" (if "if") (parenthesized_expression "((param_3 == (char *)0x0) || (*param_3 == '\0'))" (( "(") (binary_expression "(param_3 == (char *)0x0) || (*param_3 == '\0')" (parenthesized_expression "(param_3 == (char *)0x0)" (( "(") (binary_expression "param_3 == (char *)0x0" (identifier "param_3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*param_3 == '\0')" (( "(") (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    local_30 = 0;\n  }" ({ "{") (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" (else "else") (if_statement "if (param_3[1] == '\0') {\n    local_30 = 1;\n  }\n  else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" (if "if") (parenthesized_expression "(param_3[1] == '\0')" (( "(") (binary_expression "param_3[1] == '\0'" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    local_30 = 1;\n  }" ({ "{") (expression_statement "local_30 = 1;" (assignment_expression "local_30 = 1" (identifier "local_30") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" (else "else") (if_statement "if (param_3[2] == '\0') {\n    local_30 = 2;\n  }\n  else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" (if "if") (parenthesized_expression "(param_3[2] == '\0')" (( "(") (binary_expression "param_3[2] == '\0'" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    local_30 = 2;\n  }" ({ "{") (expression_statement "local_30 = 2;" (assignment_expression "local_30 = 2" (identifier "local_30") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" (else "else") (compound_statement "{\n    local_30 = (*(code *)PTR_strlen_00146390)(param_3);\n  }" ({ "{") (expression_statement "local_30 = (*(code *)PTR_strlen_00146390)(param_3);" (assignment_expression "local_30 = (*(code *)PTR_strlen_00146390)(param_3)" (identifier "local_30") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(param_3)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (} "}")))))))) (expression_statement "iVar2 = (*(code *)PTR_strlen_00146390)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_strlen_00146390)(param_1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(param_1)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar2 = iVar2 + local_30 + 2;" (assignment_expression "iVar2 = iVar2 + local_30 + 2" (identifier "iVar2") (= "=") (binary_expression "iVar2 + local_30 + 2" (binary_expression "iVar2 + local_30" (identifier "iVar2") (+ "+") (identifier "local_30")) (+ "+") (number_literal "2"))) (; ";")) (expression_statement "pcVar3 = (char *)xmalloc(iVar2);" (assignment_expression "pcVar3 = (char *)xmalloc(iVar2)" (identifier "pcVar3") (= "=") (cast_expression "(char *)xmalloc(iVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(iVar2)" (identifier "xmalloc") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))))) (; ";")) (expression_statement "pcVar8 = pcVar3;" (assignment_expression "pcVar8 = pcVar3" (identifier "pcVar8") (= "=") (identifier "pcVar3")) (; ";")) (do_statement "do {\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  } while (pcVar9 != (char *)0x0);" (do "do") (compound_statement "{\n    while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }\n    if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }\n    param_1 = pcVar9;\n    pcVar8 = pcVar7;\n  }" ({ "{") (while_statement "while( true ) {\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar4 = (int)*param_1;\n      pcVar7 = pcVar8;\n      if (iVar4 == 0) goto LAB_000a3fa4;\n      pcVar9 = param_1 + 1;\n      if (iVar4 == param_2) break;\n      pcVar1 = pcVar9;\n      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }\n      pcVar9 = pcVar3;\n      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }\n      *pcVar7 = *param_1;\n      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));\n      param_1 = pcVar1;\n      pcVar3 = pcVar9;\n      pcVar8 = pcVar7;\n      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;\n    }" ({ "{") (expression_statement "iVar4 = (int)*param_1;" (assignment_expression "iVar4 = (int)*param_1" (identifier "iVar4") (= "=") (cast_expression "(int)*param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "pcVar7 = pcVar8;" (assignment_expression "pcVar7 = pcVar8" (identifier "pcVar7") (= "=") (identifier "pcVar8")) (; ";")) (if_statement "if (iVar4 == 0) goto LAB_000a3fa4;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000a3fa4;" (goto "goto") (statement_identifier "LAB_000a3fa4") (; ";"))) (expression_statement "pcVar9 = param_1 + 1;" (assignment_expression "pcVar9 = param_1 + 1" (identifier "pcVar9") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar4 == param_2) break;" (if "if") (parenthesized_expression "(iVar4 == param_2)" (( "(") (binary_expression "iVar4 == param_2" (identifier "iVar4") (== "==") (identifier "param_2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar1 = pcVar9;" (assignment_expression "pcVar1 = pcVar9" (identifier "pcVar1") (= "=") (identifier "pcVar9")) (; ";")) (if_statement "if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }" (if "if") (parenthesized_expression "((iVar4 == 0x5c) && (param_1[1] == param_2))" (( "(") (binary_expression "(iVar4 == 0x5c) && (param_1[1] == param_2)" (parenthesized_expression "(iVar4 == 0x5c)" (( "(") (binary_expression "iVar4 == 0x5c" (identifier "iVar4") (== "==") (number_literal "0x5c")) () ")")) (&& "&&") (parenthesized_expression "(param_1[1] == param_2)" (( "(") (binary_expression "param_1[1] == param_2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (== "==") (identifier "param_2")) () ")"))) () ")")) (compound_statement "{\n        pcVar1 = param_1 + 2;\n        param_1 = pcVar9;\n      }" ({ "{") (expression_statement "pcVar1 = param_1 + 2;" (assignment_expression "pcVar1 = param_1 + 2" (identifier "pcVar1") (= "=") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "param_1 = pcVar9;" (assignment_expression "param_1 = pcVar9" (identifier "param_1") (= "=") (identifier "pcVar9")) (; ";")) (} "}"))) (expression_statement "pcVar9 = pcVar3;" (assignment_expression "pcVar9 = pcVar3" (identifier "pcVar9") (= "=") (identifier "pcVar3")) (; ";")) (if_statement "if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }" (if "if") (parenthesized_expression "(iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)))" (( "(") (binary_expression "iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))" (identifier "iVar2") (<= "<=") (cast_expression "(int)(pcVar8 + (2 - (int)pcVar3))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar8 + (2 - (int)pcVar3))" (( "(") (binary_expression "pcVar8 + (2 - (int)pcVar3)" (identifier "pcVar8") (+ "+") (parenthesized_expression "(2 - (int)pcVar3)" (( "(") (binary_expression "2 - (int)pcVar3" (number_literal "2") (- "-") (cast_expression "(int)pcVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar3"))) () ")"))) () ")")))) () ")")) (compound_statement "{\n        do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));\n        pcVar9 = (char *)xrealloc(pcVar3,iVar2);\n        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);\n      }" ({ "{") (do_statement "do {\n          iVar2 = iVar2 << 1;\n        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));" (do "do") (compound_statement "{\n          iVar2 = iVar2 << 1;\n        }" ({ "{") (expression_statement "iVar2 = iVar2 << 1;" (assignment_expression "iVar2 = iVar2 << 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 << 1" (identifier "iVar2") (<< "<<") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)))" (( "(") (binary_expression "iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))" (identifier "iVar2") (<= "<=") (cast_expression "(int)(pcVar8 + (2 - (int)pcVar3))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar8 + (2 - (int)pcVar3))" (( "(") (binary_expression "pcVar8 + (2 - (int)pcVar3)" (identifier "pcVar8") (+ "+") (parenthesized_expression "(2 - (int)pcVar3)" (( "(") (binary_expression "2 - (int)pcVar3" (number_literal "2") (- "-") (cast_expression "(int)pcVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar3"))) () ")"))) () ")")))) () ")")) (; ";")) (expression_statement "pcVar9 = (char *)xrealloc(pcVar3,iVar2);" (assignment_expression "pcVar9 = (char *)xrealloc(pcVar3,iVar2)" (identifier "pcVar9") (= "=") (cast_expression "(char *)xrealloc(pcVar3,iVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(pcVar3,iVar2)" (identifier "xrealloc") (argument_list "(pcVar3,iVar2)" (( "(") (identifier "pcVar3") (, ",") (identifier "iVar2") () ")"))))) (; ";")) (expression_statement "pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);" (assignment_expression "pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3)" (identifier "pcVar7") (= "=") (binary_expression "pcVar9 + ((int)pcVar8 - (int)pcVar3)" (identifier "pcVar9") (+ "+") (parenthesized_expression "((int)pcVar8 - (int)pcVar3)" (( "(") (binary_expression "(int)pcVar8 - (int)pcVar3" (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")) (- "-") (cast_expression "(int)pcVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar3"))) () ")")))) (; ";")) (} "}"))) (expression_statement "*pcVar7 = *param_1;" (assignment_expression "*pcVar7 = *param_1" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));" (assignment_expression "pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3))" (identifier "pcVar7") (= "=") (binary_expression "pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3))" (identifier "pcVar9") (+ "+") (cast_expression "(int)(pcVar8 + (1 - (int)pcVar3))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcVar8 + (1 - (int)pcVar3))" (( "(") (binary_expression "pcVar8 + (1 - (int)pcVar3)" (identifier "pcVar8") (+ "+") (parenthesized_expression "(1 - (int)pcVar3)" (( "(") (binary_expression "1 - (int)pcVar3" (number_literal "1") (- "-") (cast_expression "(int)pcVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar3"))) () ")"))) () ")"))))) (; ";")) (expression_statement "param_1 = pcVar1;" (assignment_expression "param_1 = pcVar1" (identifier "param_1") (= "=") (identifier "pcVar1")) (; ";")) (expression_statement "pcVar3 = pcVar9;" (assignment_expression "pcVar3 = pcVar9" (identifier "pcVar3") (= "=") (identifier "pcVar9")) (; ";")) (expression_statement "pcVar8 = pcVar7;" (assignment_expression "pcVar8 = pcVar7" (identifier "pcVar8") (= "=") (identifier "pcVar7")) (; ";")) (if_statement "if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;" (if "if") (parenthesized_expression "(pcVar1 == (char *)0x0)" (( "(") (binary_expression "pcVar1 == (char *)0x0" (identifier "pcVar1") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000a3fa4;" (goto "goto") (statement_identifier "LAB_000a3fa4") (; ";"))) (} "}"))) (if_statement "if (local_30 != 0) {\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = (int)pcVar8 - (int)pcVar3;\n      if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }\n    }" ({ "{") (expression_statement "iVar4 = (int)pcVar8 - (int)pcVar3;" (assignment_expression "iVar4 = (int)pcVar8 - (int)pcVar3" (identifier "iVar4") (= "=") (binary_expression "(int)pcVar8 - (int)pcVar3" (cast_expression "(int)pcVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar8")) (- "-") (cast_expression "(int)pcVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar3")))) (; ";")) (if_statement "if ((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }\n      else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }" (if "if") (parenthesized_expression "((param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0))))" (( "(") (binary_expression "(param_4 == 0) ||\n         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))" (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))" (( "(") (parenthesized_expression "(iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0))" (( "(") (comma_expression "iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)" (assignment_expression "iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_glob_pattern_p_00145710)(param_3)" (parenthesized_expression "(*(code *)PTR_glob_pattern_p_00145710)" (( "(") (pointer_expression "*(code *)PTR_glob_pattern_p_00145710" (* "*") (cast_expression "(code *)PTR_glob_pattern_p_00145710" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_glob_pattern_p_00145710"))) () ")")) (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (, ",") (binary_expression "iVar5 == 0 &&\n          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)" (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) (&& "&&") (parenthesized_expression "(iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)" (( "(") (comma_expression "iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0" (assignment_expression "iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_strchr_00146398)(param_3,0x5c)" (parenthesized_expression "(*(code *)PTR_strchr_00146398)" (( "(") (pointer_expression "*(code *)PTR_strchr_00146398" (* "*") (cast_expression "(code *)PTR_strchr_00146398" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_00146398"))) () ")")) (argument_list "(param_3,0x5c)" (( "(") (identifier "param_3") (, ",") (number_literal "0x5c") () ")")))) (, ",") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n        if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        pcVar7 = pcVar8 + local_30;\n      }" ({ "{") (if_statement "if (local_30 + iVar4 < iVar2) {\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }\n        else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }" (if "if") (parenthesized_expression "(local_30 + iVar4 < iVar2)" (( "(") (binary_expression "local_30 + iVar4 < iVar2" (binary_expression "local_30 + iVar4" (identifier "local_30") (+ "+") (identifier "iVar4")) (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }" ({ "{") (expression_statement "(*(code *)PTR_strcpy_00146418)(pcVar8,param_3);" (call_expression "(*(code *)PTR_strcpy_00146418)(pcVar8,param_3)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(pcVar8,param_3)" (( "(") (identifier "pcVar8") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}")) (else_clause "else {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }" (else "else") (compound_statement "{\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);\n        }" ({ "{") (do_statement "do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= local_30 + iVar4);" (do "do") (compound_statement "{\n            iVar2 = iVar2 << 1;\n          }" ({ "{") (expression_statement "iVar2 = iVar2 << 1;" (assignment_expression "iVar2 = iVar2 << 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 << 1" (identifier "iVar2") (<< "<<") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 <= local_30 + iVar4)" (( "(") (binary_expression "iVar2 <= local_30 + iVar4" (identifier "iVar2") (<= "<=") (binary_expression "local_30 + iVar4" (identifier "local_30") (+ "+") (identifier "iVar4"))) () ")")) (; ";")) (expression_statement "pcVar3 = (char *)xrealloc(pcVar3,iVar2);" (assignment_expression "pcVar3 = (char *)xrealloc(pcVar3,iVar2)" (identifier "pcVar3") (= "=") (cast_expression "(char *)xrealloc(pcVar3,iVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(pcVar3,iVar2)" (identifier "xrealloc") (argument_list "(pcVar3,iVar2)" (( "(") (identifier "pcVar3") (, ",") (identifier "iVar2") () ")"))))) (; ";")) (expression_statement "pcVar8 = pcVar3 + iVar4;" (assignment_expression "pcVar8 = pcVar3 + iVar4" (identifier "pcVar8") (= "=") (binary_expression "pcVar3 + iVar4" (identifier "pcVar3") (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "(*(code *)PTR_strcpy_00146418)(pcVar8,param_3);" (call_expression "(*(code *)PTR_strcpy_00146418)(pcVar8,param_3)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(pcVar8,param_3)" (( "(") (identifier "pcVar8") (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}")))) (expression_statement "pcVar7 = pcVar8 + local_30;" (assignment_expression "pcVar7 = pcVar8 + local_30" (identifier "pcVar7") (= "=") (binary_expression "pcVar8 + local_30" (identifier "pcVar8") (+ "+") (identifier "local_30"))) (; ";")) (} "}")) (else_clause "else {\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }" (else "else") (compound_statement "{\n        uVar6 = quote_globbing_chars(param_3);\n        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);\n        if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }\n        pcVar7 = pcVar8 + iVar5;\n        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);\n        (*(code *)PTR_free_001464fc)(uVar6);\n      }" ({ "{") (expression_statement "uVar6 = quote_globbing_chars(param_3);" (assignment_expression "uVar6 = quote_globbing_chars(param_3)" (identifier "uVar6") (= "=") (call_expression "quote_globbing_chars(param_3)" (identifier "quote_globbing_chars") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00146390)(uVar6)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(uVar6)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")")))) (; ";")) (if_statement "if (iVar2 <= iVar5 + iVar4) {\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }" (if "if") (parenthesized_expression "(iVar2 <= iVar5 + iVar4)" (( "(") (binary_expression "iVar2 <= iVar5 + iVar4" (identifier "iVar2") (<= "<=") (binary_expression "iVar5 + iVar4" (identifier "iVar5") (+ "+") (identifier "iVar4"))) () ")")) (compound_statement "{\n          do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);\n          pcVar3 = (char *)xrealloc(pcVar3,iVar2);\n          pcVar8 = pcVar3 + iVar4;\n        }" ({ "{") (do_statement "do {\n            iVar2 = iVar2 << 1;\n          } while (iVar2 <= iVar5 + iVar4);" (do "do") (compound_statement "{\n            iVar2 = iVar2 << 1;\n          }" ({ "{") (expression_statement "iVar2 = iVar2 << 1;" (assignment_expression "iVar2 = iVar2 << 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 << 1" (identifier "iVar2") (<< "<<") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 <= iVar5 + iVar4)" (( "(") (binary_expression "iVar2 <= iVar5 + iVar4" (identifier "iVar2") (<= "<=") (binary_expression "iVar5 + iVar4" (identifier "iVar5") (+ "+") (identifier "iVar4"))) () ")")) (; ";")) (expression_statement "pcVar3 = (char *)xrealloc(pcVar3,iVar2);" (assignment_expression "pcVar3 = (char *)xrealloc(pcVar3,iVar2)" (identifier "pcVar3") (= "=") (cast_expression "(char *)xrealloc(pcVar3,iVar2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(pcVar3,iVar2)" (identifier "xrealloc") (argument_list "(pcVar3,iVar2)" (( "(") (identifier "pcVar3") (, ",") (identifier "iVar2") () ")"))))) (; ";")) (expression_statement "pcVar8 = pcVar3 + iVar4;" (assignment_expression "pcVar8 = pcVar3 + iVar4" (identifier "pcVar8") (= "=") (binary_expression "pcVar3 + iVar4" (identifier "pcVar3") (+ "+") (identifier "iVar4"))) (; ";")) (} "}"))) (expression_statement "pcVar7 = pcVar8 + iVar5;" (assignment_expression "pcVar7 = pcVar8 + iVar5" (identifier "pcVar7") (= "=") (binary_expression "pcVar8 + iVar5" (identifier "pcVar8") (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "(*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);" (call_expression "(*(code *)PTR_strcpy_00146418)(pcVar8,uVar6)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(pcVar8,uVar6)" (( "(") (identifier "pcVar8") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_001464fc)(uVar6);" (call_expression "(*(code *)PTR_free_001464fc)(uVar6)" (parenthesized_expression "(*(code *)PTR_free_001464fc)" (( "(") (pointer_expression "*(code *)PTR_free_001464fc" (* "*") (cast_expression "(code *)PTR_free_001464fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_001464fc"))) () ")")) (argument_list "(uVar6)" (( "(") (identifier "uVar6") () ")"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "param_1 = pcVar9;" (assignment_expression "param_1 = pcVar9" (identifier "param_1") (= "=") (identifier "pcVar9")) (; ";")) (expression_statement "pcVar8 = pcVar7;" (assignment_expression "pcVar8 = pcVar7" (identifier "pcVar8") (= "=") (identifier "pcVar7")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar9 != (char *)0x0)" (( "(") (binary_expression "pcVar9 != (char *)0x0" (identifier "pcVar9") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (labeled_statement "LAB_000a3fa4:\n  *pcVar7 = '\0';" (statement_identifier "LAB_000a3fa4") (: ":") (expression_statement "*pcVar7 = '\0';" (assignment_expression "*pcVar7 = '\0'" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";"))) (return_statement "return pcVar3;" (return "return") (identifier "pcVar3") (; ";")) (} "}")))

char * function_1(char *string,int c,char *var_1,int do_glob)

{
  int var_3;
  int var_4;
  
  if ((var_1 == (char *)0x0) || (*var_1 == '\0')) {
    var_4 = 0;
  }
  else if (var_1[1] == '\0') {
    var_4 = 1;
  }
  else if (var_1[2] == '\0') {
    var_4 = 2;
  }
  else {
    var_4 = (*(type_1 *)PTR_strlen_00146390)(var_1);
  }
  var_3 = (*(type_1 *)PTR_strlen_00146390)(string);
                    /* WARNING: Subroutine does not return */
  var_2(var_3 + var_4 + 2);
}


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

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

{
  char *pcVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  undefined4 uVar6;
  char *pcVar7;
  char *pcVar8;
  char *pcVar9;
  int local_30;
  
  if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {
    local_30 = 0;
  }
  else if (param_3[1] == '\0') {
    local_30 = 1;
  }
  else if (param_3[2] == '\0') {
    local_30 = 2;
  }
  else {
    local_30 = (*(code *)PTR_strlen_00146390)(param_3);
  }
  iVar2 = (*(code *)PTR_strlen_00146390)(param_1);
  iVar2 = iVar2 + local_30 + 2;
  pcVar3 = (char *)xmalloc(iVar2);
  pcVar8 = pcVar3;
  do {
    while( true ) {
      iVar4 = (int)*param_1;
      pcVar7 = pcVar8;
      if (iVar4 == 0) goto LAB_000a3fa4;
      pcVar9 = param_1 + 1;
      if (iVar4 == param_2) break;
      pcVar1 = pcVar9;
      if ((iVar4 == 0x5c) && (param_1[1] == param_2)) {
        pcVar1 = param_1 + 2;
        param_1 = pcVar9;
      }
      pcVar9 = pcVar3;
      if (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3))) {
        do {
          iVar2 = iVar2 << 1;
        } while (iVar2 <= (int)(pcVar8 + (2 - (int)pcVar3)));
        pcVar9 = (char *)xrealloc(pcVar3,iVar2);
        pcVar7 = pcVar9 + ((int)pcVar8 - (int)pcVar3);
      }
      *pcVar7 = *param_1;
      pcVar7 = pcVar9 + (int)(pcVar8 + (1 - (int)pcVar3));
      param_1 = pcVar1;
      pcVar3 = pcVar9;
      pcVar8 = pcVar7;
      if (pcVar1 == (char *)0x0) goto LAB_000a3fa4;
    }
    if (local_30 != 0) {
      iVar4 = (int)pcVar8 - (int)pcVar3;
      if ((param_4 == 0) ||
         ((iVar5 = (*(code *)PTR_glob_pattern_p_00145710)(param_3), iVar5 == 0 &&
          (iVar5 = (*(code *)PTR_strchr_00146398)(param_3,0x5c), iVar5 == 0)))) {
        if (local_30 + iVar4 < iVar2) {
          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);
        }
        else {
          do {
            iVar2 = iVar2 << 1;
          } while (iVar2 <= local_30 + iVar4);
          pcVar3 = (char *)xrealloc(pcVar3,iVar2);
          pcVar8 = pcVar3 + iVar4;
          (*(code *)PTR_strcpy_00146418)(pcVar8,param_3);
        }
        pcVar7 = pcVar8 + local_30;
      }
      else {
        uVar6 = quote_globbing_chars(param_3);
        iVar5 = (*(code *)PTR_strlen_00146390)(uVar6);
        if (iVar2 <= iVar5 + iVar4) {
          do {
            iVar2 = iVar2 << 1;
          } while (iVar2 <= iVar5 + iVar4);
          pcVar3 = (char *)xrealloc(pcVar3,iVar2);
          pcVar8 = pcVar3 + iVar4;
        }
        pcVar7 = pcVar8 + iVar5;
        (*(code *)PTR_strcpy_00146418)(pcVar8,uVar6);
        (*(code *)PTR_free_001464fc)(uVar6);
      }
    }
    param_1 = pcVar9;
    pcVar8 = pcVar7;
  } while (pcVar9 != (char *)0x0);
LAB_000a3fa4:
  *pcVar7 = '\0';
  return pcVar3;
}

