
char * really_munge_braces(char **array,int real_start,int real_end,int gcd_zero)

{
  char *pcVar1;
  
  if (real_start != real_end) {
                    /* WARNING: Subroutine does not return */
    xmalloc(0x10);
  }
  if (array[real_start] != (char *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(array[real_start] + gcd_zero,0,0);
    return pcVar1;
  }
                    /* WARNING: Could not recover jumptable at 0x00098830. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(*array,0,0);
  return pcVar1;
}



undefined1 * FUN_00098368(undefined4 *param_1,int param_2,int param_3,int param_4)

{
  bool bVar1;
  undefined *puVar2;
  undefined1 *puVar3;
  code *pcVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  int iVar8;
  undefined1 *puVar9;
  char *pcVar10;
  int iVar11;
  int *piVar12;
  int *piVar13;
  int iVar14;
  undefined1 uVar15;
  char *pcVar16;
  int *piVar17;
  int iVar18;
  int local_2c;
  
  if (param_2 == param_3) {
    if (param_1[param_2] != 0) {
                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      puVar3 = (undefined1 *)
               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);
      return puVar3;
    }
                    /* WARNING: Could not recover jumptable at 0x00098830. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);
    return puVar3;
  }
  puVar3 = (undefined1 *)xmalloc(0x10);
  *puVar3 = 0;
  if (param_2 < param_3) {
    iVar14 = 0x10;
    local_2c = 0;
    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);
    iVar8 = param_2;
    do {
      iVar18 = iVar8 + 1;
      piVar17 = param_1 + iVar8;
      pcVar16 = (char *)*piVar17;
      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);
      iVar11 = iVar18;
      iVar6 = iVar8;
      if (iVar18 < param_3) {
        pcVar10 = (char *)piVar17[1];
        piVar12 = piVar17;
        if (pcVar10 == (char *)0x0) goto LAB_000984b0;
        do {
          if (*pcVar16 == '\0') goto LAB_000984b0;
          if (*pcVar10 == '\0') goto LAB_000984b0;
          iVar11 = 0;
          if (*pcVar10 == *pcVar16) {
            do {
              iVar11 = iVar11 + 1;
              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {
                bVar1 = param_4 < iVar11;
                break;
              }
              bVar1 = param_4 < iVar11;
            } while (pcVar16[iVar11] == pcVar10[iVar11]);
          }
          else {
            bVar1 = param_4 < 0;
          }
          piVar13 = piVar12;
          iVar6 = iVar18;
          if (!bVar1) {
LAB_000984c4:
            iVar11 = iVar18;
            iVar6 = iVar18 + -1;
            break;
          }
          while( true ) {
            iVar5 = iVar11;
            iVar18 = iVar6 + 1;
            piVar12 = piVar13 + 1;
            iVar11 = param_3;
            if (param_3 == iVar18) goto LAB_000984cc;
            pcVar10 = (char *)piVar13[2];
            if (pcVar10 != (char *)0x0) break;
LAB_000984b0:
            iVar11 = 0;
            piVar13 = piVar12;
            iVar6 = iVar18;
            if (-1 < param_4) goto LAB_000984c4;
          }
        } while( true );
      }
LAB_000984cc:
      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {
        iVar14 = iVar14 + 1;
        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);
        local_2c = local_2c + 1;
        *puVar3 = 0x7b;
        puVar3[1] = 0;
      }
      if (iVar6 == iVar8) {
        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);
        uVar7 = xmalloc(iVar8 + 1);
        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);
        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);
        (*(code *)PTR_free_001464fc)(uVar7);
      }
      else {
        iVar18 = iVar5 - param_4;
        iVar6 = xmalloc(iVar18 + 1);
        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);
        puVar2 = PTR_sh_backslash_quote_00145464;
        *(undefined1 *)(iVar6 + iVar18) = 0;
        uVar7 = (*(code *)puVar2)(iVar6,0,0);
        (*(code *)PTR_free_001464fc)(iVar6);
        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);
        iVar14 = iVar14 + 1 + iVar6;
        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);
        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);
        (*(code *)PTR_free_001464fc)(uVar7);
        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);
        puVar3[iVar6] = 0x7b;
        (puVar3 + iVar6)[1] = 0;
        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);
        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);
        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;
      }
      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);
      iVar14 = iVar6 + iVar14 + 1;
      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);
      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);
      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);
      *puVar9 = 0x2c;
      puVar2 = PTR_free_001464fc;
      puVar9[1] = 0;
      (*(code *)puVar2)(iVar8);
      iVar8 = iVar11;
    } while (iVar11 < param_3);
    if (param_4 != 0) {
      return puVar3;
    }
    uVar15 = 0;
    if (local_2c != 0) {
      uVar15 = 0x7d;
    }
  }
  else {
    if (param_4 != 0) {
      return puVar3;
    }
    uVar15 = 0;
  }
  iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);
  puVar3[iVar8 + -1] = uVar15;
  return puVar3;
}


lui gp,0xb
addiu gp,gp,0x41d8
addu gp,gp,t9
addiu sp,sp,-0x58
sw gp,0x10(sp)
sw ra,0x54(sp)
sw s8,0x50(sp)
sw s7,0x4c(sp)
sw s6,0x48(sp)
sw s5,0x44(sp)
sw s4,0x40(sp)
sw s3,0x3c(sp)
sw s2,0x38(sp)
sw s1,0x34(sp)
beq a1,a2,0x00098790
_sw s0,0x30(sp)
lw t9,-0x7f90(gp)
or s0,a1,zero
sw a0,0x1c(sp)
li a0,0x10
or s7,a2,zero
sw a1,0x28(sp)
bal 0x000ad290
_or s8,a3,zero
slt v1,s0,s7
lw gp,0x10(sp)
or a0,s0,zero
sb zero,0x0(v0)
beq v1,zero,0x000987e0
_or s1,v0,zero
lw s6,-0x70e0(gp)
li s0,0x10
sw zero,0x2c(sp)
addiu v0,s6,-0x7c98
or s6,a0,zero
sw v0,0x24(sp)
lw v0,0x1c(sp)
sll t3,s6,0x2
lw t9,-0x61b0(gp)
addiu s5,s6,0x1
addu s4,v0,t3
lw s2,0x0(s4)
jalr t9
_or a0,s2,zero
slt v1,s5,s7
lw gp,0x10(sp)
beq v1,zero,0x000987f0
_or a3,v0,zero
or t4,s4,zero
lw a1,0x4(t4)
beq a1,zero,0x000984b0
_nop
lb v1,0x0(s2)
beq v1,zero,0x000984b0
_nop
lb a0,0x0(a1)
beq a0,zero,0x000984b0
_nop
beq a0,v1,0x00098474
_or a3,zero,zero
b 0x0009848c
_slt v1,s8,a3
lb a0,0x0(a0)
beq a0,zero,0x00098488
_nop
bne v1,a0,0x0009848c
_slt v1,s8,a3
addiu a3,a3,0x1
addu v1,s2,a3
lb v1,0x0(v1)
bne v1,zero,0x00098460
_addu a0,a1,a3
slt v1,s8,a3
beq v1,zero,0x000984c4
_or s3,s5,zero
addiu v1,s5,0x1
addiu t4,t4,0x4
beq s7,v1,0x000986d4
_or v0,a3,zero
lw a1,0x4(t4)
bne a1,zero,0x00098438
_or s5,v1,zero
or a3,zero,zero
slt v1,s8,a3
bne v1,zero,0x00098498
_addiu v1,s5,0x1
or s3,s5,zero
addiu s5,s5,-0x1
or a3,v0,zero
bne s8,zero,0x000984dc
_lw v0,0x28(sp)
beq v0,s6,0x0009874c
_nop
beq s5,s6,0x000986dc
_lw t9,-0x7f90(gp)
subu s2,a3,s8
sw a3,0x20(sp)
addiu s0,s0,0x1
bal 0x000ad290
_addiu a0,s2,0x1
or a2,s2,zero
lw gp,0x10(sp)
or a0,v0,zero
lw a1,0x0(s4)
or s4,v0,zero
addu s2,s4,s2
lw t9,-0x6210(gp)
jalr t9
_addu a1,a1,s8
or a2,zero,zero
lw gp,0x10(sp)
or a1,zero,zero
or a0,s4,zero
lw t9,-0x70dc(gp)
jalr t9
_sb zero,0x0(s2)
or a0,s4,zero
lw gp,0x10(sp)
lw t9,-0x6044(gp)
jalr t9
_or s2,v0,zero
lw gp,0x10(sp)
lw t9,-0x61b0(gp)
jalr t9
_or a0,s2,zero
or a0,s1,zero
lw gp,0x10(sp)
addu s0,s0,v0
lw t9,-0x7e04(gp)
bal 0x000ad32c
_or a1,s0,zero
or a1,s2,zero
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x6120(gp)
jalr t9
_or s1,v0,zero
lw gp,0x10(sp)
lw t9,-0x6044(gp)
jalr t9
_or a0,s2,zero
lw gp,0x10(sp)
lw t9,-0x61b0(gp)
jalr t9
_or a0,s1,zero
li v1,0x7b
addu v0,s1,v0
lw a0,0x1c(sp)
lw a3,0x20(sp)
or a2,s3,zero
lw t9,0x24(sp)
or a1,s6,zero
sb v1,0x0(v0)
jalr t9
_sb zero,0x1(v0)
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x61b0(gp)
jalr t9
_or s2,v0,zero
li v1,0x7d
addu v0,s2,v0
lw gp,0x10(sp)
sb v1,-0x1(v0)
lw t9,-0x61b0(gp)
or a0,s2,zero
jalr t9
_or s6,s3,zero
or a0,s1,zero
lw gp,0x10(sp)
addu s0,v0,s0
addiu s0,s0,0x1
lw t9,-0x7e04(gp)
bal 0x000ad32c
_or a1,s0,zero
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x61b0(gp)
jalr t9
_or s1,v0,zero
or a1,s2,zero
lw gp,0x10(sp)
lw t9,-0x60b4(gp)
jalr t9
_addu a0,s1,v0
li v1,0x2c
lw gp,0x10(sp)
or a0,s2,zero
sb v1,0x0(v0)
lw t9,-0x6044(gp)
jalr t9
_sb zero,0x1(v0)
slt v0,s3,s7
bne v0,zero,0x000983f8
_lw gp,0x10(sp)
bne s8,zero,0x000986a4
_lw ra,0x54(sp)
lw v0,0x2c(sp)
beq v0,zero,0x0009868c
_or s0,zero,zero
li s0,0x7d
lw t9,-0x61b0(gp)
jalr t9
_or a0,s1,zero
addu v0,s1,v0
sb s0,-0x1(v0)
lw ra,0x54(sp)
or v0,s1,zero
lw s8,0x50(sp)
lw s7,0x4c(sp)
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
jr ra
_addiu sp,sp,0x58
b 0x000984cc
_or s3,s7,zero
lw a0,0x0(s4)
lw t9,-0x61b0(gp)
jalr t9
_addu a0,a0,s8
lw gp,0x10(sp)
lw t9,-0x7f90(gp)
bal 0x000ad290
_addiu a0,v0,0x1
lw gp,0x10(sp)
or a0,v0,zero
lw a1,0x0(s4)
lw t9,-0x6128(gp)
jalr t9
_addu a1,a1,s8
or a2,zero,zero
lw gp,0x10(sp)
or a1,zero,zero
or a0,v0,zero
lw t9,-0x70dc(gp)
jalr t9
_or s2,v0,zero
or a0,s2,zero
lw gp,0x10(sp)
lw t9,-0x6044(gp)
jalr t9
_or s2,v0,zero
b 0x000985f8
_lw gp,0x10(sp)
beq s7,s3,0x000984dc
_lw t9,-0x7e04(gp)
addiu s0,s0,0x1
sw a3,0x20(sp)
or a0,s1,zero
bal 0x000ad32c
_or a1,s0,zero
lw v1,0x2c(sp)
or s1,v0,zero
li v0,0x7b
lw gp,0x10(sp)
lw a3,0x20(sp)
addiu v1,v1,0x1
sb v0,0x0(s1)
sb zero,0x1(s1)
b 0x000984dc
_sw v1,0x2c(sp)
sll v0,a1,0x2
addu v0,a0,v0
lw v0,0x0(v0)
beq v0,zero,0x000987fc
_lw ra,0x54(sp)
or a2,zero,zero
lw s8,0x50(sp)
or a1,zero,zero
lw s7,0x4c(sp)
addu a0,v0,a3
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
lw t9,-0x70dc(gp)
jr t9
_addiu sp,sp,0x58
bne s8,zero,0x000986a4
_lw ra,0x54(sp)
b 0x0009868c
_or s0,zero,zero
or s3,s5,zero
b 0x000984cc
_or s5,s6,zero
or a2,zero,zero
lw s8,0x50(sp)
or a1,zero,zero
lw s7,0x4c(sp)
lw s6,0x48(sp)
lw s5,0x44(sp)
lw s4,0x40(sp)
lw s3,0x3c(sp)
lw s2,0x38(sp)
lw s1,0x34(sp)
lw s0,0x30(sp)
lw a0,0x0(a0)
lw t9,-0x70dc(gp)
jr t9
_addiu sp,sp,0x58
(translation_unit "undefined1 * FUN_00098368(undefined4 *param_1,int param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  code *pcVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  int iVar11;\n  int *piVar12;\n  int *piVar13;\n  int iVar14;\n  undefined1 uVar15;\n  char *pcVar16;\n  int *piVar17;\n  int iVar18;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    if (param_1[param_2] != 0) {\n                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    /* WARNING: Could not recover jumptable at 0x00098830. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)xmalloc(0x10);\n  *puVar3 = 0;\n  if (param_2 < param_3) {\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }\n  else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }\n  iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);\n  puVar3[iVar8 + -1] = uVar15;\n  return puVar3;\n}\n\n" (function_definition "undefined1 * FUN_00098368(undefined4 *param_1,int param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  code *pcVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  int iVar11;\n  int *piVar12;\n  int *piVar13;\n  int iVar14;\n  undefined1 uVar15;\n  char *pcVar16;\n  int *piVar17;\n  int iVar18;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    if (param_1[param_2] != 0) {\n                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    /* WARNING: Could not recover jumptable at 0x00098830. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)xmalloc(0x10);\n  *puVar3 = 0;\n  if (param_2 < param_3) {\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }\n  else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }\n  iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);\n  puVar3[iVar8 + -1] = uVar15;\n  return puVar3;\n}" type_identifier (pointer_declarator "* FUN_00098368(undefined4 *param_1,int param_2,int param_3,int param_4)" * (function_declarator "FUN_00098368(undefined4 *param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 *param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  code *pcVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  int iVar11;\n  int *piVar12;\n  int *piVar13;\n  int iVar14;\n  undefined1 uVar15;\n  char *pcVar16;\n  int *piVar17;\n  int iVar18;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    if (param_1[param_2] != 0) {\n                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    /* WARNING: Could not recover jumptable at 0x00098830. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)xmalloc(0x10);\n  *puVar3 = 0;\n  if (param_2 < param_3) {\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }\n  else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }\n  iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);\n  puVar3[iVar8 + -1] = uVar15;\n  return puVar3;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "int *piVar13;" primitive_type (pointer_declarator "*piVar13" * identifier) ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "undefined1 uVar15;" type_identifier identifier ;) (declaration "char *pcVar16;" primitive_type (pointer_declarator "*pcVar16" * identifier) ;) (declaration "int *piVar17;" primitive_type (pointer_declarator "*piVar17" * identifier) ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (param_2 == param_3) {\n    if (param_1[param_2] != 0) {\n                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    /* WARNING: Could not recover jumptable at 0x00098830. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }" if (parenthesized_expression "(param_2 == param_3)" ( (binary_expression "param_2 == param_3" identifier == identifier) )) (compound_statement "{\n    if (param_1[param_2] != 0) {\n                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    /* WARNING: Could not recover jumptable at 0x00098830. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }" { (if_statement "if (param_1[param_2] != 0) {\n                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }" if (parenthesized_expression "(param_1[param_2] != 0)" ( (binary_expression "param_1[param_2] != 0" (subscript_expression "param_1[param_2]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }" { comment comment (expression_statement "puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);" (assignment_expression "puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0)" identifier = (cast_expression "(undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0)" (parenthesized_expression "(*(code *)PTR_sh_backslash_quote_00145464)" ( (pointer_expression "*(code *)PTR_sh_backslash_quote_00145464" * (cast_expression "(code *)PTR_sh_backslash_quote_00145464" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[param_2] + param_4,0,0)" ( (binary_expression "param_1[param_2] + param_4" (subscript_expression "param_1[param_2]" identifier [ identifier ]) + identifier) , number_literal , number_literal ))))) ;) (return_statement "return puVar3;" return identifier ;) })) comment comment (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0)" (parenthesized_expression "(*(code *)PTR_sh_backslash_quote_00145464)" ( (pointer_expression "*(code *)PTR_sh_backslash_quote_00145464" * (cast_expression "(code *)PTR_sh_backslash_quote_00145464" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1,0,0)" ( (pointer_expression "*param_1" * identifier) , number_literal , number_literal ))))) ;) (return_statement "return puVar3;" return identifier ;) })) (expression_statement "puVar3 = (undefined1 *)xmalloc(0x10);" (assignment_expression "puVar3 = (undefined1 *)xmalloc(0x10)" identifier = (cast_expression "(undefined1 *)xmalloc(0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (if_statement "if (param_2 < param_3) {\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }\n  else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }" { (expression_statement "iVar14 = 0x10;" (assignment_expression "iVar14 = 0x10" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);" (assignment_expression "pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98)" identifier = (cast_expression "(code *)(PTR_LAB_00145460 + -0x7c98)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00145460 + -0x7c98)" ( (binary_expression "PTR_LAB_00145460 + -0x7c98" identifier + number_literal) )))) ;) (expression_statement "iVar8 = param_2;" (assignment_expression "iVar8 = param_2" identifier = identifier) ;) (do_statement "do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);" do (compound_statement "{\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    }" { (expression_statement "iVar18 = iVar8 + 1;" (assignment_expression "iVar18 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "piVar17 = param_1 + iVar8;" (assignment_expression "piVar17 = param_1 + iVar8" identifier = (binary_expression "param_1 + iVar8" identifier + identifier)) ;) (expression_statement "pcVar16 = (char *)*piVar17;" (assignment_expression "pcVar16 = (char *)*piVar17" identifier = (cast_expression "(char *)*piVar17" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar17" * identifier))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(pcVar16)" (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 "(pcVar16)" ( identifier )))) ;) (expression_statement "iVar11 = iVar18;" (assignment_expression "iVar11 = iVar18" identifier = identifier) ;) (expression_statement "iVar6 = iVar8;" (assignment_expression "iVar6 = iVar8" identifier = identifier) ;) (if_statement "if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }" if (parenthesized_expression "(iVar18 < param_3)" ( (binary_expression "iVar18 < param_3" identifier < identifier) )) (compound_statement "{\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }" { (expression_statement "pcVar10 = (char *)piVar17[1];" (assignment_expression "pcVar10 = (char *)piVar17[1]" identifier = (cast_expression "(char *)piVar17[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar17[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar12 = piVar17;" (assignment_expression "piVar12 = piVar17" identifier = identifier) ;) (if_statement "if (pcVar10 == (char *)0x0) goto LAB_000984b0;" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000984b0;" goto statement_identifier ;)) (do_statement "do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );" do (compound_statement "{\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        }" { (if_statement "if (*pcVar16 == '\0') goto LAB_000984b0;" if (parenthesized_expression "(*pcVar16 == '\0')" ( (binary_expression "*pcVar16 == '\0'" (pointer_expression "*pcVar16" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000984b0;" goto statement_identifier ;)) (if_statement "if (*pcVar10 == '\0') goto LAB_000984b0;" if (parenthesized_expression "(*pcVar10 == '\0')" ( (binary_expression "*pcVar10 == '\0'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000984b0;" goto statement_identifier ;)) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (if_statement "if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }" if (parenthesized_expression "(*pcVar10 == *pcVar16)" ( (binary_expression "*pcVar10 == *pcVar16" (pointer_expression "*pcVar10" * identifier) == (pointer_expression "*pcVar16" * identifier)) )) (compound_statement "{\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }" { (do_statement "do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);" do (compound_statement "{\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            }" { (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (if_statement "if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }" if (parenthesized_expression "((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0'))" ( (binary_expression "(pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')" (parenthesized_expression "(pcVar16[iVar11] == '\0')" ( (binary_expression "pcVar16[iVar11] == '\0'" (subscript_expression "pcVar16[iVar11]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(pcVar10[iVar11] == '\0')" ( (binary_expression "pcVar10[iVar11] == '\0'" (subscript_expression "pcVar10[iVar11]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n                bVar1 = param_4 < iVar11;\n                break;\n              }" { (expression_statement "bVar1 = param_4 < iVar11;" (assignment_expression "bVar1 = param_4 < iVar11" identifier = (binary_expression "param_4 < iVar11" identifier < identifier)) ;) (break_statement "break;" break ;) })) (expression_statement "bVar1 = param_4 < iVar11;" (assignment_expression "bVar1 = param_4 < iVar11" identifier = (binary_expression "param_4 < iVar11" identifier < identifier)) ;) }) while (parenthesized_expression "(pcVar16[iVar11] == pcVar10[iVar11])" ( (binary_expression "pcVar16[iVar11] == pcVar10[iVar11]" (subscript_expression "pcVar16[iVar11]" identifier [ identifier ]) == (subscript_expression "pcVar10[iVar11]" identifier [ identifier ])) )) ;) }) (else_clause "else {\n            bVar1 = param_4 < 0;\n          }" else (compound_statement "{\n            bVar1 = param_4 < 0;\n          }" { (expression_statement "bVar1 = param_4 < 0;" (assignment_expression "bVar1 = param_4 < 0" identifier = (binary_expression "param_4 < 0" identifier < number_literal)) ;) }))) (expression_statement "piVar13 = piVar12;" (assignment_expression "piVar13 = piVar12" identifier = identifier) ;) (expression_statement "iVar6 = iVar18;" (assignment_expression "iVar6 = iVar18" identifier = identifier) ;) (if_statement "if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (compound_statement "{\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }" { (labeled_statement "LAB_000984c4:\n            iVar11 = iVar18;" statement_identifier : (expression_statement "iVar11 = iVar18;" (assignment_expression "iVar11 = iVar18" identifier = identifier) ;)) (expression_statement "iVar6 = iVar18 + -1;" (assignment_expression "iVar6 = iVar18 + -1" identifier = (binary_expression "iVar18 + -1" identifier + number_literal)) ;) (break_statement "break;" break ;) })) (while_statement "while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }" { (expression_statement "iVar5 = iVar11;" (assignment_expression "iVar5 = iVar11" identifier = identifier) ;) (expression_statement "iVar18 = iVar6 + 1;" (assignment_expression "iVar18 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "piVar12 = piVar13 + 1;" (assignment_expression "piVar12 = piVar13 + 1" identifier = (binary_expression "piVar13 + 1" identifier + number_literal)) ;) (expression_statement "iVar11 = param_3;" (assignment_expression "iVar11 = param_3" identifier = identifier) ;) (if_statement "if (param_3 == iVar18) goto LAB_000984cc;" if (parenthesized_expression "(param_3 == iVar18)" ( (binary_expression "param_3 == iVar18" identifier == identifier) )) (goto_statement "goto LAB_000984cc;" goto statement_identifier ;)) (expression_statement "pcVar10 = (char *)piVar13[2];" (assignment_expression "pcVar10 = (char *)piVar13[2]" identifier = (cast_expression "(char *)piVar13[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar13[2]" identifier [ number_literal ]))) ;) (if_statement "if (pcVar10 != (char *)0x0) break;" if (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (labeled_statement "LAB_000984b0:\n            iVar11 = 0;" statement_identifier : (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;)) (expression_statement "piVar13 = piVar12;" (assignment_expression "piVar13 = piVar12" identifier = identifier) ;) (expression_statement "iVar6 = iVar18;" (assignment_expression "iVar6 = iVar18" identifier = identifier) ;) (if_statement "if (-1 < param_4) goto LAB_000984c4;" if (parenthesized_expression "(-1 < param_4)" ( (binary_expression "-1 < param_4" number_literal < identifier) )) (goto_statement "goto LAB_000984c4;" goto statement_identifier ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }" statement_identifier : (if_statement "if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }" if (parenthesized_expression "(((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11))" ( (binary_expression "((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)" (parenthesized_expression "((param_4 == 0) && (param_2 == iVar8))" ( (binary_expression "(param_4 == 0) && (param_2 == iVar8)" (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_2 == iVar8)" ( (binary_expression "param_2 == iVar8" identifier == identifier) ))) )) && (parenthesized_expression "(param_3 != iVar11)" ( (binary_expression "param_3 != iVar11" identifier != identifier) ))) )) (compound_statement "{\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }" { (expression_statement "iVar14 = iVar14 + 1;" (assignment_expression "iVar14 = iVar14 + 1" identifier = (binary_expression "iVar14 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);" (assignment_expression "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14)" identifier = (cast_expression "(undefined1 *)xrealloc(puVar3,iVar14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(puVar3,iVar14)" identifier (argument_list "(puVar3,iVar14)" ( identifier , identifier ))))) ;) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = 0x7b;" (assignment_expression "*puVar3 = 0x7b" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) }))) (if_statement "if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }" if (parenthesized_expression "(iVar6 == iVar8)" ( (binary_expression "iVar6 == iVar8" identifier == identifier) )) (compound_statement "{\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }" { (expression_statement "iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(*piVar17 + param_4)" (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 "(*piVar17 + param_4)" ( (binary_expression "*piVar17 + param_4" (pointer_expression "*piVar17" * identifier) + identifier) )))) ;) (expression_statement "uVar7 = xmalloc(iVar8 + 1);" (assignment_expression "uVar7 = xmalloc(iVar8 + 1)" identifier = (call_expression "xmalloc(iVar8 + 1)" identifier (argument_list "(iVar8 + 1)" ( (binary_expression "iVar8 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);" (assignment_expression "uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4)" (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 "(uVar7,*piVar17 + param_4)" ( identifier , (binary_expression "*piVar17 + param_4" (pointer_expression "*piVar17" * identifier) + identifier) )))) ;) (expression_statement "iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);" (assignment_expression "iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0)" identifier = (call_expression "(*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0)" (parenthesized_expression "(*(code *)PTR_sh_backslash_quote_00145464)" ( (pointer_expression "*(code *)PTR_sh_backslash_quote_00145464" * (cast_expression "(code *)PTR_sh_backslash_quote_00145464" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7,0,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(uVar7);" (call_expression "(*(code *)PTR_free_001464fc)(uVar7)" (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 "(uVar7)" ( identifier ))) ;) }) (else_clause "else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }" else (compound_statement "{\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }" { (expression_statement "iVar18 = iVar5 - param_4;" (assignment_expression "iVar18 = iVar5 - param_4" identifier = (binary_expression "iVar5 - param_4" identifier - identifier)) ;) (expression_statement "iVar6 = xmalloc(iVar18 + 1);" (assignment_expression "iVar6 = xmalloc(iVar18 + 1)" identifier = (call_expression "xmalloc(iVar18 + 1)" identifier (argument_list "(iVar18 + 1)" ( (binary_expression "iVar18 + 1" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);" (call_expression "(*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18)" (parenthesized_expression "(*(code *)PTR_strncpy_00146330)" ( (pointer_expression "*(code *)PTR_strncpy_00146330" * (cast_expression "(code *)PTR_strncpy_00146330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,*piVar17 + param_4,iVar18)" ( identifier , (binary_expression "*piVar17 + param_4" (pointer_expression "*piVar17" * identifier) + identifier) , identifier ))) ;) (expression_statement "puVar2 = PTR_sh_backslash_quote_00145464;" (assignment_expression "puVar2 = PTR_sh_backslash_quote_00145464" identifier = identifier) ;) (expression_statement "*(undefined1 *)(iVar6 + iVar18) = 0;" (assignment_expression "*(undefined1 *)(iVar6 + iVar18) = 0" (pointer_expression "*(undefined1 *)(iVar6 + iVar18)" * (cast_expression "(undefined1 *)(iVar6 + iVar18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar18)" ( (binary_expression "iVar6 + iVar18" identifier + identifier) )))) = number_literal) ;) (expression_statement "uVar7 = (*(code *)puVar2)(iVar6,0,0);" (assignment_expression "uVar7 = (*(code *)puVar2)(iVar6,0,0)" identifier = (call_expression "(*(code *)puVar2)(iVar6,0,0)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,0,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(iVar6);" (call_expression "(*(code *)PTR_free_001464fc)(iVar6)" (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 "(iVar6)" ( identifier ))) ;) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(uVar7)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(uVar7)" (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 "(uVar7)" ( identifier )))) ;) (expression_statement "iVar14 = iVar14 + 1 + iVar6;" (assignment_expression "iVar14 = iVar14 + 1 + iVar6" identifier = (binary_expression "iVar14 + 1 + iVar6" (binary_expression "iVar14 + 1" identifier + number_literal) + identifier)) ;) (expression_statement "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);" (assignment_expression "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14)" identifier = (cast_expression "(undefined1 *)xrealloc(puVar3,iVar14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(puVar3,iVar14)" identifier (argument_list "(puVar3,iVar14)" ( identifier , identifier ))))) ;) (expression_statement "(*(code *)PTR_strcat_00146420)(puVar3,uVar7);" (call_expression "(*(code *)PTR_strcat_00146420)(puVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_strcat_00146420)" ( (pointer_expression "*(code *)PTR_strcat_00146420" * (cast_expression "(code *)PTR_strcat_00146420" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3,uVar7)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(uVar7);" (call_expression "(*(code *)PTR_free_001464fc)(uVar7)" (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 "(uVar7)" ( identifier ))) ;) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(puVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(puVar3)" (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 "(puVar3)" ( identifier )))) ;) (expression_statement "puVar3[iVar6] = 0x7b;" (assignment_expression "puVar3[iVar6] = 0x7b" (subscript_expression "puVar3[iVar6]" identifier [ identifier ]) = number_literal) ;) (expression_statement "(puVar3 + iVar6)[1] = 0;" (assignment_expression "(puVar3 + iVar6)[1] = 0" (subscript_expression "(puVar3 + iVar6)[1]" (parenthesized_expression "(puVar3 + iVar6)" ( (binary_expression "puVar3 + iVar6" identifier + identifier) )) [ number_literal ]) = number_literal) ;) (expression_statement "iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);" (assignment_expression "iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5)" identifier = (call_expression "(*pcVar4)(param_1,iVar8,iVar11,iVar5)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(param_1,iVar8,iVar11,iVar5)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(iVar8)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(iVar8)" (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 "(iVar8)" ( identifier )))) ;) (expression_statement "*(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;" (assignment_expression "*(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d" (pointer_expression "*(undefined1 *)(iVar8 + iVar6 + -1)" * (cast_expression "(undefined1 *)(iVar8 + iVar6 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + iVar6 + -1)" ( (binary_expression "iVar8 + iVar6 + -1" (binary_expression "iVar8 + iVar6" identifier + identifier) + number_literal) )))) = number_literal) ;) }))) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(iVar8)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(iVar8)" (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 "(iVar8)" ( identifier )))) ;) (expression_statement "iVar14 = iVar6 + iVar14 + 1;" (assignment_expression "iVar14 = iVar6 + iVar14 + 1" identifier = (binary_expression "iVar6 + iVar14 + 1" (binary_expression "iVar6 + iVar14" identifier + identifier) + number_literal)) ;) (expression_statement "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);" (assignment_expression "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14)" identifier = (cast_expression "(undefined1 *)xrealloc(puVar3,iVar14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(puVar3,iVar14)" identifier (argument_list "(puVar3,iVar14)" ( identifier , identifier ))))) ;) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(puVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(puVar3)" (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 "(puVar3)" ( identifier )))) ;) (expression_statement "puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);" (assignment_expression "puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8)" (parenthesized_expression "(*(code *)PTR_stpcpy_0014648c)" ( (pointer_expression "*(code *)PTR_stpcpy_0014648c" * (cast_expression "(code *)PTR_stpcpy_0014648c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3 + iVar6,iVar8)" ( (binary_expression "puVar3 + iVar6" identifier + identifier) , identifier ))))) ;) (expression_statement "*puVar9 = 0x2c;" (assignment_expression "*puVar9 = 0x2c" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "puVar2 = PTR_free_001464fc;" (assignment_expression "puVar2 = PTR_free_001464fc" identifier = identifier) ;) (expression_statement "puVar9[1] = 0;" (assignment_expression "puVar9[1] = 0" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*(code *)puVar2)(iVar8);" (call_expression "(*(code *)puVar2)(iVar8)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8)" ( identifier ))) ;) (expression_statement "iVar8 = iVar11;" (assignment_expression "iVar8 = iVar11" identifier = identifier) ;) }) while (parenthesized_expression "(iVar11 < param_3)" ( (binary_expression "iVar11 < param_3" identifier < identifier) )) ;) (if_statement "if (param_4 != 0) {\n      return puVar3;\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      return puVar3;\n    }" { (return_statement "return puVar3;" return identifier ;) })) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) (if_statement "if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }" if (parenthesized_expression "(local_2c != 0)" ( (binary_expression "local_2c != 0" identifier != number_literal) )) (compound_statement "{\n      uVar15 = 0x7d;\n    }" { (expression_statement "uVar15 = 0x7d;" (assignment_expression "uVar15 = 0x7d" identifier = number_literal) ;) })) }) (else_clause "else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }" else (compound_statement "{\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }" { (if_statement "if (param_4 != 0) {\n      return puVar3;\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      return puVar3;\n    }" { (return_statement "return puVar3;" return identifier ;) })) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) }))) (expression_statement "iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_00146390)(puVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(puVar3)" (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 "(puVar3)" ( identifier )))) ;) (expression_statement "puVar3[iVar8 + -1] = uVar15;" (assignment_expression "puVar3[iVar8 + -1] = uVar15" (subscript_expression "puVar3[iVar8 + -1]" identifier [ (binary_expression "iVar8 + -1" identifier + number_literal) ]) = identifier) ;) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit "char * really_munge_braces(char **array,int real_start,int real_end,int gcd_zero)\n\n{\n  char *pcVar1;\n  \n  if (real_start != real_end) {\n                    /* WARNING: Subroutine does not return */\n    xmalloc(0x10);\n  }\n  if (array[real_start] != (char *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(array[real_start] + gcd_zero,0,0);\n    return pcVar1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00098830. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(*array,0,0);\n  return pcVar1;\n}\n\n" (function_definition "char * really_munge_braces(char **array,int real_start,int real_end,int gcd_zero)\n\n{\n  char *pcVar1;\n  \n  if (real_start != real_end) {\n                    /* WARNING: Subroutine does not return */\n    xmalloc(0x10);\n  }\n  if (array[real_start] != (char *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(array[real_start] + gcd_zero,0,0);\n    return pcVar1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00098830. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(*array,0,0);\n  return pcVar1;\n}" primitive_type (pointer_declarator "* really_munge_braces(char **array,int real_start,int real_end,int gcd_zero)" * (function_declarator "really_munge_braces(char **array,int real_start,int real_end,int gcd_zero)" identifier (parameter_list "(char **array,int real_start,int real_end,int gcd_zero)" ( (parameter_declaration "char **array" primitive_type (pointer_declarator "**array" * (pointer_declarator "*array" * identifier))) , (parameter_declaration "int real_start" primitive_type identifier) , (parameter_declaration "int real_end" primitive_type identifier) , (parameter_declaration "int gcd_zero" primitive_type identifier) )))) (compound_statement "{\n  char *pcVar1;\n  \n  if (real_start != real_end) {\n                    /* WARNING: Subroutine does not return */\n    xmalloc(0x10);\n  }\n  if (array[real_start] != (char *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(array[real_start] + gcd_zero,0,0);\n    return pcVar1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x00098830. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(*array,0,0);\n  return pcVar1;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (if_statement "if (real_start != real_end) {\n                    /* WARNING: Subroutine does not return */\n    xmalloc(0x10);\n  }" if (parenthesized_expression "(real_start != real_end)" ( (binary_expression "real_start != real_end" identifier != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    xmalloc(0x10);\n  }" { comment (expression_statement "xmalloc(0x10);" (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))) ;) })) (if_statement "if (array[real_start] != (char *)0x0) {\n                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(array[real_start] + gcd_zero,0,0);\n    return pcVar1;\n  }" if (parenthesized_expression "(array[real_start] != (char *)0x0)" ( (binary_expression "array[real_start] != (char *)0x0" (subscript_expression "array[real_start]" identifier [ identifier ]) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n    pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(array[real_start] + gcd_zero,0,0);\n    return pcVar1;\n  }" { comment comment (expression_statement "pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(array[real_start] + gcd_zero,0,0);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(array[real_start] + gcd_zero,0,0)" identifier = (cast_expression "(char *)(*(code *)PTR_sh_backslash_quote_00145464)(array[real_start] + gcd_zero,0,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sh_backslash_quote_00145464)(array[real_start] + gcd_zero,0,0)" (parenthesized_expression "(*(code *)PTR_sh_backslash_quote_00145464)" ( (pointer_expression "*(code *)PTR_sh_backslash_quote_00145464" * (cast_expression "(code *)PTR_sh_backslash_quote_00145464" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(array[real_start] + gcd_zero,0,0)" ( (binary_expression "array[real_start] + gcd_zero" (subscript_expression "array[real_start]" identifier [ identifier ]) + identifier) , number_literal , number_literal ))))) ;) (return_statement "return pcVar1;" return identifier ;) })) comment comment (expression_statement "pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(*array,0,0);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_sh_backslash_quote_00145464)(*array,0,0)" identifier = (cast_expression "(char *)(*(code *)PTR_sh_backslash_quote_00145464)(*array,0,0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sh_backslash_quote_00145464)(*array,0,0)" (parenthesized_expression "(*(code *)PTR_sh_backslash_quote_00145464)" ( (pointer_expression "*(code *)PTR_sh_backslash_quote_00145464" * (cast_expression "(code *)PTR_sh_backslash_quote_00145464" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*array,0,0)" ( (pointer_expression "*array" * identifier) , number_literal , number_literal ))))) ;) (return_statement "return pcVar1;" return identifier ;) })))
(translation_unit "undefined1 * FUN_00098368(undefined4 *param_1,int param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  code *pcVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  int iVar11;\n  int *piVar12;\n  int *piVar13;\n  int iVar14;\n  undefined1 uVar15;\n  char *pcVar16;\n  int *piVar17;\n  int iVar18;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    if (param_1[param_2] != 0) {\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    \n                    \n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)xmalloc(0x10);\n  *puVar3 = 0;\n  if (param_2 < param_3) {\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }\n  else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }\n  iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);\n  puVar3[iVar8 + -1] = uVar15;\n  return puVar3;\n}\n\n" (function_definition "undefined1 * FUN_00098368(undefined4 *param_1,int param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  code *pcVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  int iVar11;\n  int *piVar12;\n  int *piVar13;\n  int iVar14;\n  undefined1 uVar15;\n  char *pcVar16;\n  int *piVar17;\n  int iVar18;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    if (param_1[param_2] != 0) {\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    \n                    \n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)xmalloc(0x10);\n  *puVar3 = 0;\n  if (param_2 < param_3) {\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }\n  else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }\n  iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);\n  puVar3[iVar8 + -1] = uVar15;\n  return puVar3;\n}" type_identifier (pointer_declarator "* FUN_00098368(undefined4 *param_1,int param_2,int param_3,int param_4)" * (function_declarator "FUN_00098368(undefined4 *param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 *param_1,int param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  code *pcVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  int iVar11;\n  int *piVar12;\n  int *piVar13;\n  int iVar14;\n  undefined1 uVar15;\n  char *pcVar16;\n  int *piVar17;\n  int iVar18;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    if (param_1[param_2] != 0) {\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    \n                    \n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)xmalloc(0x10);\n  *puVar3 = 0;\n  if (param_2 < param_3) {\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }\n  else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }\n  iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);\n  puVar3[iVar8 + -1] = uVar15;\n  return puVar3;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined1 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "int *piVar13;" primitive_type (pointer_declarator "*piVar13" * identifier) ;) (declaration "int iVar14;" primitive_type identifier ;) (declaration "undefined1 uVar15;" type_identifier identifier ;) (declaration "char *pcVar16;" primitive_type (pointer_declarator "*pcVar16" * identifier) ;) (declaration "int *piVar17;" primitive_type (pointer_declarator "*piVar17" * identifier) ;) (declaration "int iVar18;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (param_2 == param_3) {\n    if (param_1[param_2] != 0) {\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    \n                    \n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }" if (parenthesized_expression "(param_2 == param_3)" ( (binary_expression "param_2 == param_3" identifier == identifier) )) (compound_statement "{\n    if (param_1[param_2] != 0) {\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    \n                    \n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }" { (if_statement "if (param_1[param_2] != 0) {\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }" if (parenthesized_expression "(param_1[param_2] != 0)" ( (binary_expression "param_1[param_2] != 0" (subscript_expression "param_1[param_2]" identifier [ identifier ]) != number_literal) )) (compound_statement "{\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }" { (expression_statement "puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);" (assignment_expression "puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0)" identifier = (cast_expression "(undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0)" (parenthesized_expression "(*(code *)PTR_sh_backslash_quote_00145464)" ( (pointer_expression "*(code *)PTR_sh_backslash_quote_00145464" * (cast_expression "(code *)PTR_sh_backslash_quote_00145464" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1[param_2] + param_4,0,0)" ( (binary_expression "param_1[param_2] + param_4" (subscript_expression "param_1[param_2]" identifier [ identifier ]) + identifier) , number_literal , number_literal ))))) ;) (return_statement "return puVar3;" return identifier ;) })) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0)" (parenthesized_expression "(*(code *)PTR_sh_backslash_quote_00145464)" ( (pointer_expression "*(code *)PTR_sh_backslash_quote_00145464" * (cast_expression "(code *)PTR_sh_backslash_quote_00145464" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1,0,0)" ( (pointer_expression "*param_1" * identifier) , number_literal , number_literal ))))) ;) (return_statement "return puVar3;" return identifier ;) })) (expression_statement "puVar3 = (undefined1 *)xmalloc(0x10);" (assignment_expression "puVar3 = (undefined1 *)xmalloc(0x10)" identifier = (cast_expression "(undefined1 *)xmalloc(0x10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (if_statement "if (param_2 < param_3) {\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }\n  else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }" if (parenthesized_expression "(param_2 < param_3)" ( (binary_expression "param_2 < param_3" identifier < identifier) )) (compound_statement "{\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }" { (expression_statement "iVar14 = 0x10;" (assignment_expression "iVar14 = 0x10" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);" (assignment_expression "pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98)" identifier = (cast_expression "(code *)(PTR_LAB_00145460 + -0x7c98)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_00145460 + -0x7c98)" ( (binary_expression "PTR_LAB_00145460 + -0x7c98" identifier + number_literal) )))) ;) (expression_statement "iVar8 = param_2;" (assignment_expression "iVar8 = param_2" identifier = identifier) ;) (do_statement "do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);" do (compound_statement "{\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    }" { (expression_statement "iVar18 = iVar8 + 1;" (assignment_expression "iVar18 = iVar8 + 1" identifier = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "piVar17 = param_1 + iVar8;" (assignment_expression "piVar17 = param_1 + iVar8" identifier = (binary_expression "param_1 + iVar8" identifier + identifier)) ;) (expression_statement "pcVar16 = (char *)*piVar17;" (assignment_expression "pcVar16 = (char *)*piVar17" identifier = (cast_expression "(char *)*piVar17" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar17" * identifier))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(pcVar16)" (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 "(pcVar16)" ( identifier )))) ;) (expression_statement "iVar11 = iVar18;" (assignment_expression "iVar11 = iVar18" identifier = identifier) ;) (expression_statement "iVar6 = iVar8;" (assignment_expression "iVar6 = iVar8" identifier = identifier) ;) (if_statement "if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }" if (parenthesized_expression "(iVar18 < param_3)" ( (binary_expression "iVar18 < param_3" identifier < identifier) )) (compound_statement "{\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }" { (expression_statement "pcVar10 = (char *)piVar17[1];" (assignment_expression "pcVar10 = (char *)piVar17[1]" identifier = (cast_expression "(char *)piVar17[1]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar17[1]" identifier [ number_literal ]))) ;) (expression_statement "piVar12 = piVar17;" (assignment_expression "piVar12 = piVar17" identifier = identifier) ;) (if_statement "if (pcVar10 == (char *)0x0) goto LAB_000984b0;" if (parenthesized_expression "(pcVar10 == (char *)0x0)" ( (binary_expression "pcVar10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000984b0;" goto statement_identifier ;)) (do_statement "do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );" do (compound_statement "{\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        }" { (if_statement "if (*pcVar16 == '\0') goto LAB_000984b0;" if (parenthesized_expression "(*pcVar16 == '\0')" ( (binary_expression "*pcVar16 == '\0'" (pointer_expression "*pcVar16" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000984b0;" goto statement_identifier ;)) (if_statement "if (*pcVar10 == '\0') goto LAB_000984b0;" if (parenthesized_expression "(*pcVar10 == '\0')" ( (binary_expression "*pcVar10 == '\0'" (pointer_expression "*pcVar10" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000984b0;" goto statement_identifier ;)) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;) (if_statement "if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }" if (parenthesized_expression "(*pcVar10 == *pcVar16)" ( (binary_expression "*pcVar10 == *pcVar16" (pointer_expression "*pcVar10" * identifier) == (pointer_expression "*pcVar16" * identifier)) )) (compound_statement "{\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }" { (do_statement "do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);" do (compound_statement "{\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            }" { (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (if_statement "if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }" if (parenthesized_expression "((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0'))" ( (binary_expression "(pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')" (parenthesized_expression "(pcVar16[iVar11] == '\0')" ( (binary_expression "pcVar16[iVar11] == '\0'" (subscript_expression "pcVar16[iVar11]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(pcVar10[iVar11] == '\0')" ( (binary_expression "pcVar10[iVar11] == '\0'" (subscript_expression "pcVar10[iVar11]" identifier [ identifier ]) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n                bVar1 = param_4 < iVar11;\n                break;\n              }" { (expression_statement "bVar1 = param_4 < iVar11;" (assignment_expression "bVar1 = param_4 < iVar11" identifier = (binary_expression "param_4 < iVar11" identifier < identifier)) ;) (break_statement "break;" break ;) })) (expression_statement "bVar1 = param_4 < iVar11;" (assignment_expression "bVar1 = param_4 < iVar11" identifier = (binary_expression "param_4 < iVar11" identifier < identifier)) ;) }) while (parenthesized_expression "(pcVar16[iVar11] == pcVar10[iVar11])" ( (binary_expression "pcVar16[iVar11] == pcVar10[iVar11]" (subscript_expression "pcVar16[iVar11]" identifier [ identifier ]) == (subscript_expression "pcVar10[iVar11]" identifier [ identifier ])) )) ;) }) (else_clause "else {\n            bVar1 = param_4 < 0;\n          }" else (compound_statement "{\n            bVar1 = param_4 < 0;\n          }" { (expression_statement "bVar1 = param_4 < 0;" (assignment_expression "bVar1 = param_4 < 0" identifier = (binary_expression "param_4 < 0" identifier < number_literal)) ;) }))) (expression_statement "piVar13 = piVar12;" (assignment_expression "piVar13 = piVar12" identifier = identifier) ;) (expression_statement "iVar6 = iVar18;" (assignment_expression "iVar6 = iVar18" identifier = identifier) ;) (if_statement "if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }" if (parenthesized_expression "(!bVar1)" ( (unary_expression "!bVar1" ! identifier) )) (compound_statement "{\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }" { (labeled_statement "LAB_000984c4:\n            iVar11 = iVar18;" statement_identifier : (expression_statement "iVar11 = iVar18;" (assignment_expression "iVar11 = iVar18" identifier = identifier) ;)) (expression_statement "iVar6 = iVar18 + -1;" (assignment_expression "iVar6 = iVar18 + -1" identifier = (binary_expression "iVar18 + -1" identifier + number_literal)) ;) (break_statement "break;" break ;) })) (while_statement "while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }" { (expression_statement "iVar5 = iVar11;" (assignment_expression "iVar5 = iVar11" identifier = identifier) ;) (expression_statement "iVar18 = iVar6 + 1;" (assignment_expression "iVar18 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "piVar12 = piVar13 + 1;" (assignment_expression "piVar12 = piVar13 + 1" identifier = (binary_expression "piVar13 + 1" identifier + number_literal)) ;) (expression_statement "iVar11 = param_3;" (assignment_expression "iVar11 = param_3" identifier = identifier) ;) (if_statement "if (param_3 == iVar18) goto LAB_000984cc;" if (parenthesized_expression "(param_3 == iVar18)" ( (binary_expression "param_3 == iVar18" identifier == identifier) )) (goto_statement "goto LAB_000984cc;" goto statement_identifier ;)) (expression_statement "pcVar10 = (char *)piVar13[2];" (assignment_expression "pcVar10 = (char *)piVar13[2]" identifier = (cast_expression "(char *)piVar13[2]" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar13[2]" identifier [ number_literal ]))) ;) (if_statement "if (pcVar10 != (char *)0x0) break;" if (parenthesized_expression "(pcVar10 != (char *)0x0)" ( (binary_expression "pcVar10 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (break_statement "break;" break ;)) (labeled_statement "LAB_000984b0:\n            iVar11 = 0;" statement_identifier : (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" identifier = number_literal) ;)) (expression_statement "piVar13 = piVar12;" (assignment_expression "piVar13 = piVar12" identifier = identifier) ;) (expression_statement "iVar6 = iVar18;" (assignment_expression "iVar6 = iVar18" identifier = identifier) ;) (if_statement "if (-1 < param_4) goto LAB_000984c4;" if (parenthesized_expression "(-1 < param_4)" ( (binary_expression "-1 < param_4" number_literal < identifier) )) (goto_statement "goto LAB_000984c4;" goto statement_identifier ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }" statement_identifier : (if_statement "if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }" if (parenthesized_expression "(((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11))" ( (binary_expression "((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)" (parenthesized_expression "((param_4 == 0) && (param_2 == iVar8))" ( (binary_expression "(param_4 == 0) && (param_2 == iVar8)" (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) && (parenthesized_expression "(param_2 == iVar8)" ( (binary_expression "param_2 == iVar8" identifier == identifier) ))) )) && (parenthesized_expression "(param_3 != iVar11)" ( (binary_expression "param_3 != iVar11" identifier != identifier) ))) )) (compound_statement "{\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }" { (expression_statement "iVar14 = iVar14 + 1;" (assignment_expression "iVar14 = iVar14 + 1" identifier = (binary_expression "iVar14 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);" (assignment_expression "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14)" identifier = (cast_expression "(undefined1 *)xrealloc(puVar3,iVar14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(puVar3,iVar14)" identifier (argument_list "(puVar3,iVar14)" ( identifier , identifier ))))) ;) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) (expression_statement "*puVar3 = 0x7b;" (assignment_expression "*puVar3 = 0x7b" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = number_literal) ;) }))) (if_statement "if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }" if (parenthesized_expression "(iVar6 == iVar8)" ( (binary_expression "iVar6 == iVar8" identifier == identifier) )) (compound_statement "{\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }" { (expression_statement "iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(*piVar17 + param_4)" (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 "(*piVar17 + param_4)" ( (binary_expression "*piVar17 + param_4" (pointer_expression "*piVar17" * identifier) + identifier) )))) ;) (expression_statement "uVar7 = xmalloc(iVar8 + 1);" (assignment_expression "uVar7 = xmalloc(iVar8 + 1)" identifier = (call_expression "xmalloc(iVar8 + 1)" identifier (argument_list "(iVar8 + 1)" ( (binary_expression "iVar8 + 1" identifier + number_literal) )))) ;) (expression_statement "uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);" (assignment_expression "uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4)" identifier = (call_expression "(*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4)" (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 "(uVar7,*piVar17 + param_4)" ( identifier , (binary_expression "*piVar17 + param_4" (pointer_expression "*piVar17" * identifier) + identifier) )))) ;) (expression_statement "iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);" (assignment_expression "iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0)" identifier = (call_expression "(*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0)" (parenthesized_expression "(*(code *)PTR_sh_backslash_quote_00145464)" ( (pointer_expression "*(code *)PTR_sh_backslash_quote_00145464" * (cast_expression "(code *)PTR_sh_backslash_quote_00145464" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7,0,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(uVar7);" (call_expression "(*(code *)PTR_free_001464fc)(uVar7)" (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 "(uVar7)" ( identifier ))) ;) }) (else_clause "else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }" else (compound_statement "{\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }" { (expression_statement "iVar18 = iVar5 - param_4;" (assignment_expression "iVar18 = iVar5 - param_4" identifier = (binary_expression "iVar5 - param_4" identifier - identifier)) ;) (expression_statement "iVar6 = xmalloc(iVar18 + 1);" (assignment_expression "iVar6 = xmalloc(iVar18 + 1)" identifier = (call_expression "xmalloc(iVar18 + 1)" identifier (argument_list "(iVar18 + 1)" ( (binary_expression "iVar18 + 1" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);" (call_expression "(*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18)" (parenthesized_expression "(*(code *)PTR_strncpy_00146330)" ( (pointer_expression "*(code *)PTR_strncpy_00146330" * (cast_expression "(code *)PTR_strncpy_00146330" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,*piVar17 + param_4,iVar18)" ( identifier , (binary_expression "*piVar17 + param_4" (pointer_expression "*piVar17" * identifier) + identifier) , identifier ))) ;) (expression_statement "puVar2 = PTR_sh_backslash_quote_00145464;" (assignment_expression "puVar2 = PTR_sh_backslash_quote_00145464" identifier = identifier) ;) (expression_statement "*(undefined1 *)(iVar6 + iVar18) = 0;" (assignment_expression "*(undefined1 *)(iVar6 + iVar18) = 0" (pointer_expression "*(undefined1 *)(iVar6 + iVar18)" * (cast_expression "(undefined1 *)(iVar6 + iVar18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar18)" ( (binary_expression "iVar6 + iVar18" identifier + identifier) )))) = number_literal) ;) (expression_statement "uVar7 = (*(code *)puVar2)(iVar6,0,0);" (assignment_expression "uVar7 = (*(code *)puVar2)(iVar6,0,0)" identifier = (call_expression "(*(code *)puVar2)(iVar6,0,0)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,0,0)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(iVar6);" (call_expression "(*(code *)PTR_free_001464fc)(iVar6)" (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 "(iVar6)" ( identifier ))) ;) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(uVar7)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(uVar7)" (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 "(uVar7)" ( identifier )))) ;) (expression_statement "iVar14 = iVar14 + 1 + iVar6;" (assignment_expression "iVar14 = iVar14 + 1 + iVar6" identifier = (binary_expression "iVar14 + 1 + iVar6" (binary_expression "iVar14 + 1" identifier + number_literal) + identifier)) ;) (expression_statement "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);" (assignment_expression "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14)" identifier = (cast_expression "(undefined1 *)xrealloc(puVar3,iVar14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(puVar3,iVar14)" identifier (argument_list "(puVar3,iVar14)" ( identifier , identifier ))))) ;) (expression_statement "(*(code *)PTR_strcat_00146420)(puVar3,uVar7);" (call_expression "(*(code *)PTR_strcat_00146420)(puVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_strcat_00146420)" ( (pointer_expression "*(code *)PTR_strcat_00146420" * (cast_expression "(code *)PTR_strcat_00146420" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3,uVar7)" ( identifier , identifier ))) ;) (expression_statement "(*(code *)PTR_free_001464fc)(uVar7);" (call_expression "(*(code *)PTR_free_001464fc)(uVar7)" (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 "(uVar7)" ( identifier ))) ;) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(puVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(puVar3)" (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 "(puVar3)" ( identifier )))) ;) (expression_statement "puVar3[iVar6] = 0x7b;" (assignment_expression "puVar3[iVar6] = 0x7b" (subscript_expression "puVar3[iVar6]" identifier [ identifier ]) = number_literal) ;) (expression_statement "(puVar3 + iVar6)[1] = 0;" (assignment_expression "(puVar3 + iVar6)[1] = 0" (subscript_expression "(puVar3 + iVar6)[1]" (parenthesized_expression "(puVar3 + iVar6)" ( (binary_expression "puVar3 + iVar6" identifier + identifier) )) [ number_literal ]) = number_literal) ;) (expression_statement "iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);" (assignment_expression "iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5)" identifier = (call_expression "(*pcVar4)(param_1,iVar8,iVar11,iVar5)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(param_1,iVar8,iVar11,iVar5)" ( identifier , identifier , identifier , identifier )))) ;) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(iVar8)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(iVar8)" (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 "(iVar8)" ( identifier )))) ;) (expression_statement "*(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;" (assignment_expression "*(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d" (pointer_expression "*(undefined1 *)(iVar8 + iVar6 + -1)" * (cast_expression "(undefined1 *)(iVar8 + iVar6 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + iVar6 + -1)" ( (binary_expression "iVar8 + iVar6 + -1" (binary_expression "iVar8 + iVar6" identifier + identifier) + number_literal) )))) = number_literal) ;) }))) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(iVar8)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(iVar8)" (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 "(iVar8)" ( identifier )))) ;) (expression_statement "iVar14 = iVar6 + iVar14 + 1;" (assignment_expression "iVar14 = iVar6 + iVar14 + 1" identifier = (binary_expression "iVar6 + iVar14 + 1" (binary_expression "iVar6 + iVar14" identifier + identifier) + number_literal)) ;) (expression_statement "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);" (assignment_expression "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14)" identifier = (cast_expression "(undefined1 *)xrealloc(puVar3,iVar14)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(puVar3,iVar14)" identifier (argument_list "(puVar3,iVar14)" ( identifier , identifier ))))) ;) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(puVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(puVar3)" (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 "(puVar3)" ( identifier )))) ;) (expression_statement "puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);" (assignment_expression "puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8)" (parenthesized_expression "(*(code *)PTR_stpcpy_0014648c)" ( (pointer_expression "*(code *)PTR_stpcpy_0014648c" * (cast_expression "(code *)PTR_stpcpy_0014648c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3 + iVar6,iVar8)" ( (binary_expression "puVar3 + iVar6" identifier + identifier) , identifier ))))) ;) (expression_statement "*puVar9 = 0x2c;" (assignment_expression "*puVar9 = 0x2c" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "puVar2 = PTR_free_001464fc;" (assignment_expression "puVar2 = PTR_free_001464fc" identifier = identifier) ;) (expression_statement "puVar9[1] = 0;" (assignment_expression "puVar9[1] = 0" (subscript_expression "puVar9[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*(code *)puVar2)(iVar8);" (call_expression "(*(code *)puVar2)(iVar8)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar8)" ( identifier ))) ;) (expression_statement "iVar8 = iVar11;" (assignment_expression "iVar8 = iVar11" identifier = identifier) ;) }) while (parenthesized_expression "(iVar11 < param_3)" ( (binary_expression "iVar11 < param_3" identifier < identifier) )) ;) (if_statement "if (param_4 != 0) {\n      return puVar3;\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      return puVar3;\n    }" { (return_statement "return puVar3;" return identifier ;) })) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) (if_statement "if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }" if (parenthesized_expression "(local_2c != 0)" ( (binary_expression "local_2c != 0" identifier != number_literal) )) (compound_statement "{\n      uVar15 = 0x7d;\n    }" { (expression_statement "uVar15 = 0x7d;" (assignment_expression "uVar15 = 0x7d" identifier = number_literal) ;) })) }) (else_clause "else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }" else (compound_statement "{\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }" { (if_statement "if (param_4 != 0) {\n      return puVar3;\n    }" if (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) (compound_statement "{\n      return puVar3;\n    }" { (return_statement "return puVar3;" return identifier ;) })) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" identifier = number_literal) ;) }))) (expression_statement "iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_00146390)(puVar3)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(puVar3)" (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 "(puVar3)" ( identifier )))) ;) (expression_statement "puVar3[iVar8 + -1] = uVar15;" (assignment_expression "puVar3[iVar8 + -1] = uVar15" (subscript_expression "puVar3[iVar8 + -1]" identifier [ (binary_expression "iVar8 + -1" identifier + number_literal) ]) = identifier) ;) (return_statement "return puVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (subscript_expression IDENT [ IDENT ]) + IDENT) , LIT , LIT ))))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) , LIT , LIT ))))) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * 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 = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT)) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT < IDENT)) ;) (break_statement break ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT < IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) == (subscript_expression IDENT [ IDENT ])) )) ;) }) (else_clause else (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 ( (unary_expression ! IDENT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (break_statement break ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (break_statement break ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) })) }) while (parenthesized_expression ( BOOL )) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) && (parenthesized_expression ( (binary_expression IDENT != IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (pointer_expression * IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression (pointer_expression * IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression (pointer_expression * IDENT) + IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT )))) ;) (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 = (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 + LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , 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 = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , IDENT , 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (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 , 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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + IDENT) , IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (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) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined1 * FUN_00098368(undefined4 *param_1,int param_2,int param_3,int param_4)\n\n{\n  bool bVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  code *pcVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  int iVar11;\n  int *piVar12;\n  int *piVar13;\n  int iVar14;\n  undefined1 uVar15;\n  char *pcVar16;\n  int *piVar17;\n  int iVar18;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    if (param_1[param_2] != 0) {\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    \n                    \n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)xmalloc(0x10);\n  *puVar3 = 0;\n  if (param_2 < param_3) {\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }\n  else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }\n  iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);\n  puVar3[iVar8 + -1] = uVar15;\n  return puVar3;\n}" (type_identifier "undefined1") (pointer_declarator "* FUN_00098368(undefined4 *param_1,int param_2,int param_3,int param_4)" (* "*") (function_declarator "FUN_00098368(undefined4 *param_1,int param_2,int param_3,int param_4)" (identifier "FUN_00098368") (parameter_list "(undefined4 *param_1,int param_2,int param_3,int param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  bool bVar1;\n  undefined *puVar2;\n  undefined1 *puVar3;\n  code *pcVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  undefined1 *puVar9;\n  char *pcVar10;\n  int iVar11;\n  int *piVar12;\n  int *piVar13;\n  int iVar14;\n  undefined1 uVar15;\n  char *pcVar16;\n  int *piVar17;\n  int iVar18;\n  int local_2c;\n  \n  if (param_2 == param_3) {\n    if (param_1[param_2] != 0) {\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    \n                    \n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }\n  puVar3 = (undefined1 *)xmalloc(0x10);\n  *puVar3 = 0;\n  if (param_2 < param_3) {\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }\n  else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }\n  iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);\n  puVar3[iVar8 + -1] = uVar15;\n  return puVar3;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "code *pcVar4;" (type_identifier "code") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined1 *puVar9;" (type_identifier "undefined1") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "char *pcVar10;" (primitive_type "char") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int *piVar12;" (primitive_type "int") (pointer_declarator "*piVar12" (* "*") (identifier "piVar12")) (; ";")) (declaration "int *piVar13;" (primitive_type "int") (pointer_declarator "*piVar13" (* "*") (identifier "piVar13")) (; ";")) (declaration "int iVar14;" (primitive_type "int") (identifier "iVar14") (; ";")) (declaration "undefined1 uVar15;" (type_identifier "undefined1") (identifier "uVar15") (; ";")) (declaration "char *pcVar16;" (primitive_type "char") (pointer_declarator "*pcVar16" (* "*") (identifier "pcVar16")) (; ";")) (declaration "int *piVar17;" (primitive_type "int") (pointer_declarator "*piVar17" (* "*") (identifier "piVar17")) (; ";")) (declaration "int iVar18;" (primitive_type "int") (identifier "iVar18") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (if_statement "if (param_2 == param_3) {\n    if (param_1[param_2] != 0) {\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    \n                    \n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }" (if "if") (parenthesized_expression "(param_2 == param_3)" (( "(") (binary_expression "param_2 == param_3" (identifier "param_2") (== "==") (identifier "param_3")) () ")")) (compound_statement "{\n    if (param_1[param_2] != 0) {\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }\n                    \n                    \n    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);\n    return puVar3;\n  }" ({ "{") (if_statement "if (param_1[param_2] != 0) {\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }" (if "if") (parenthesized_expression "(param_1[param_2] != 0)" (( "(") (binary_expression "param_1[param_2] != 0" (subscript_expression "param_1[param_2]" (identifier "param_1") ([ "[") (identifier "param_2") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                    \n                    \n      puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);\n      return puVar3;\n    }" ({ "{") (expression_statement "puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);" (assignment_expression "puVar3 = (undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)\n               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0)" (parenthesized_expression "(*(code *)PTR_sh_backslash_quote_00145464)" (( "(") (pointer_expression "*(code *)PTR_sh_backslash_quote_00145464" (* "*") (cast_expression "(code *)PTR_sh_backslash_quote_00145464" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sh_backslash_quote_00145464"))) () ")")) (argument_list "(param_1[param_2] + param_4,0,0)" (( "(") (binary_expression "param_1[param_2] + param_4" (subscript_expression "param_1[param_2]" (identifier "param_1") ([ "[") (identifier "param_2") (] "]")) (+ "+") (identifier "param_4")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))))) (; ";")) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0)" (parenthesized_expression "(*(code *)PTR_sh_backslash_quote_00145464)" (( "(") (pointer_expression "*(code *)PTR_sh_backslash_quote_00145464" (* "*") (cast_expression "(code *)PTR_sh_backslash_quote_00145464" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sh_backslash_quote_00145464"))) () ")")) (argument_list "(*param_1,0,0)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "0") (, ",") (number_literal "0") () ")"))))) (; ";")) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (expression_statement "puVar3 = (undefined1 *)xmalloc(0x10);" (assignment_expression "puVar3 = (undefined1 *)xmalloc(0x10)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)xmalloc(0x10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x10)" (identifier "xmalloc") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 < param_3) {\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }\n  else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }" (if "if") (parenthesized_expression "(param_2 < param_3)" (( "(") (binary_expression "param_2 < param_3" (identifier "param_2") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n    iVar14 = 0x10;\n    local_2c = 0;\n    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);\n    iVar8 = param_2;\n    do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n    if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }\n  }" ({ "{") (expression_statement "iVar14 = 0x10;" (assignment_expression "iVar14 = 0x10" (identifier "iVar14") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);" (assignment_expression "pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98)" (identifier "pcVar4") (= "=") (cast_expression "(code *)(PTR_LAB_00145460 + -0x7c98)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_00145460 + -0x7c98)" (( "(") (binary_expression "PTR_LAB_00145460 + -0x7c98" (identifier "PTR_LAB_00145460") (+ "+") (number_literal "-0x7c98")) () ")")))) (; ";")) (expression_statement "iVar8 = param_2;" (assignment_expression "iVar8 = param_2" (identifier "iVar8") (= "=") (identifier "param_2")) (; ";")) (do_statement "do {\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    } while (iVar11 < param_3);" (do "do") (compound_statement "{\n      iVar18 = iVar8 + 1;\n      piVar17 = param_1 + iVar8;\n      pcVar16 = (char *)*piVar17;\n      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);\n      iVar11 = iVar18;\n      iVar6 = iVar8;\n      if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }\nLAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }\n      if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }\n      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n      iVar14 = iVar6 + iVar14 + 1;\n      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);\n      *puVar9 = 0x2c;\n      puVar2 = PTR_free_001464fc;\n      puVar9[1] = 0;\n      (*(code *)puVar2)(iVar8);\n      iVar8 = iVar11;\n    }" ({ "{") (expression_statement "iVar18 = iVar8 + 1;" (assignment_expression "iVar18 = iVar8 + 1" (identifier "iVar18") (= "=") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar17 = param_1 + iVar8;" (assignment_expression "piVar17 = param_1 + iVar8" (identifier "piVar17") (= "=") (binary_expression "param_1 + iVar8" (identifier "param_1") (+ "+") (identifier "iVar8"))) (; ";")) (expression_statement "pcVar16 = (char *)*piVar17;" (assignment_expression "pcVar16 = (char *)*piVar17" (identifier "pcVar16") (= "=") (cast_expression "(char *)*piVar17" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar17" (* "*") (identifier "piVar17")))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(pcVar16)" (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 "(pcVar16)" (( "(") (identifier "pcVar16") () ")")))) (; ";")) (expression_statement "iVar11 = iVar18;" (assignment_expression "iVar11 = iVar18" (identifier "iVar11") (= "=") (identifier "iVar18")) (; ";")) (expression_statement "iVar6 = iVar8;" (assignment_expression "iVar6 = iVar8" (identifier "iVar6") (= "=") (identifier "iVar8")) (; ";")) (if_statement "if (iVar18 < param_3) {\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }" (if "if") (parenthesized_expression "(iVar18 < param_3)" (( "(") (binary_expression "iVar18 < param_3" (identifier "iVar18") (< "<") (identifier "param_3")) () ")")) (compound_statement "{\n        pcVar10 = (char *)piVar17[1];\n        piVar12 = piVar17;\n        if (pcVar10 == (char *)0x0) goto LAB_000984b0;\n        do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );\n      }" ({ "{") (expression_statement "pcVar10 = (char *)piVar17[1];" (assignment_expression "pcVar10 = (char *)piVar17[1]" (identifier "pcVar10") (= "=") (cast_expression "(char *)piVar17[1]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar17[1]" (identifier "piVar17") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "piVar12 = piVar17;" (assignment_expression "piVar12 = piVar17" (identifier "piVar12") (= "=") (identifier "piVar17")) (; ";")) (if_statement "if (pcVar10 == (char *)0x0) goto LAB_000984b0;" (if "if") (parenthesized_expression "(pcVar10 == (char *)0x0)" (( "(") (binary_expression "pcVar10 == (char *)0x0" (identifier "pcVar10") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000984b0;" (goto "goto") (statement_identifier "LAB_000984b0") (; ";"))) (do_statement "do {\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        } while( true );" (do "do") (compound_statement "{\n          if (*pcVar16 == '\0') goto LAB_000984b0;\n          if (*pcVar10 == '\0') goto LAB_000984b0;\n          iVar11 = 0;\n          if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }\n          piVar13 = piVar12;\n          iVar6 = iVar18;\n          if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }\n          while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }\n        }" ({ "{") (if_statement "if (*pcVar16 == '\0') goto LAB_000984b0;" (if "if") (parenthesized_expression "(*pcVar16 == '\0')" (( "(") (binary_expression "*pcVar16 == '\0'" (pointer_expression "*pcVar16" (* "*") (identifier "pcVar16")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000984b0;" (goto "goto") (statement_identifier "LAB_000984b0") (; ";"))) (if_statement "if (*pcVar10 == '\0') goto LAB_000984b0;" (if "if") (parenthesized_expression "(*pcVar10 == '\0')" (( "(") (binary_expression "*pcVar10 == '\0'" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000984b0;" (goto "goto") (statement_identifier "LAB_000984b0") (; ";"))) (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*pcVar10 == *pcVar16) {\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }\n          else {\n            bVar1 = param_4 < 0;\n          }" (if "if") (parenthesized_expression "(*pcVar10 == *pcVar16)" (( "(") (binary_expression "*pcVar10 == *pcVar16" (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) (== "==") (pointer_expression "*pcVar16" (* "*") (identifier "pcVar16"))) () ")")) (compound_statement "{\n            do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);\n          }" ({ "{") (do_statement "do {\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            } while (pcVar16[iVar11] == pcVar10[iVar11]);" (do "do") (compound_statement "{\n              iVar11 = iVar11 + 1;\n              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }\n              bVar1 = param_4 < iVar11;\n            }" ({ "{") (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {\n                bVar1 = param_4 < iVar11;\n                break;\n              }" (if "if") (parenthesized_expression "((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0'))" (( "(") (binary_expression "(pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')" (parenthesized_expression "(pcVar16[iVar11] == '\0')" (( "(") (binary_expression "pcVar16[iVar11] == '\0'" (subscript_expression "pcVar16[iVar11]" (identifier "pcVar16") ([ "[") (identifier "iVar11") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(pcVar10[iVar11] == '\0')" (( "(") (binary_expression "pcVar10[iVar11] == '\0'" (subscript_expression "pcVar10[iVar11]" (identifier "pcVar10") ([ "[") (identifier "iVar11") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n                bVar1 = param_4 < iVar11;\n                break;\n              }" ({ "{") (expression_statement "bVar1 = param_4 < iVar11;" (assignment_expression "bVar1 = param_4 < iVar11" (identifier "bVar1") (= "=") (binary_expression "param_4 < iVar11" (identifier "param_4") (< "<") (identifier "iVar11"))) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "bVar1 = param_4 < iVar11;" (assignment_expression "bVar1 = param_4 < iVar11" (identifier "bVar1") (= "=") (binary_expression "param_4 < iVar11" (identifier "param_4") (< "<") (identifier "iVar11"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar16[iVar11] == pcVar10[iVar11])" (( "(") (binary_expression "pcVar16[iVar11] == pcVar10[iVar11]" (subscript_expression "pcVar16[iVar11]" (identifier "pcVar16") ([ "[") (identifier "iVar11") (] "]")) (== "==") (subscript_expression "pcVar10[iVar11]" (identifier "pcVar10") ([ "[") (identifier "iVar11") (] "]"))) () ")")) (; ";")) (} "}")) (else_clause "else {\n            bVar1 = param_4 < 0;\n          }" (else "else") (compound_statement "{\n            bVar1 = param_4 < 0;\n          }" ({ "{") (expression_statement "bVar1 = param_4 < 0;" (assignment_expression "bVar1 = param_4 < 0" (identifier "bVar1") (= "=") (binary_expression "param_4 < 0" (identifier "param_4") (< "<") (number_literal "0"))) (; ";")) (} "}")))) (expression_statement "piVar13 = piVar12;" (assignment_expression "piVar13 = piVar12" (identifier "piVar13") (= "=") (identifier "piVar12")) (; ";")) (expression_statement "iVar6 = iVar18;" (assignment_expression "iVar6 = iVar18" (identifier "iVar6") (= "=") (identifier "iVar18")) (; ";")) (if_statement "if (!bVar1) {\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }" (if "if") (parenthesized_expression "(!bVar1)" (( "(") (unary_expression "!bVar1" (! "!") (identifier "bVar1")) () ")")) (compound_statement "{\nLAB_000984c4:\n            iVar11 = iVar18;\n            iVar6 = iVar18 + -1;\n            break;\n          }" ({ "{") (labeled_statement "LAB_000984c4:\n            iVar11 = iVar18;" (statement_identifier "LAB_000984c4") (: ":") (expression_statement "iVar11 = iVar18;" (assignment_expression "iVar11 = iVar18" (identifier "iVar11") (= "=") (identifier "iVar18")) (; ";"))) (expression_statement "iVar6 = iVar18 + -1;" (assignment_expression "iVar6 = iVar18 + -1" (identifier "iVar6") (= "=") (binary_expression "iVar18 + -1" (identifier "iVar18") (+ "+") (number_literal "-1"))) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (while_statement "while( true ) {\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n            iVar5 = iVar11;\n            iVar18 = iVar6 + 1;\n            piVar12 = piVar13 + 1;\n            iVar11 = param_3;\n            if (param_3 == iVar18) goto LAB_000984cc;\n            pcVar10 = (char *)piVar13[2];\n            if (pcVar10 != (char *)0x0) break;\nLAB_000984b0:\n            iVar11 = 0;\n            piVar13 = piVar12;\n            iVar6 = iVar18;\n            if (-1 < param_4) goto LAB_000984c4;\n          }" ({ "{") (expression_statement "iVar5 = iVar11;" (assignment_expression "iVar5 = iVar11" (identifier "iVar5") (= "=") (identifier "iVar11")) (; ";")) (expression_statement "iVar18 = iVar6 + 1;" (assignment_expression "iVar18 = iVar6 + 1" (identifier "iVar18") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar12 = piVar13 + 1;" (assignment_expression "piVar12 = piVar13 + 1" (identifier "piVar12") (= "=") (binary_expression "piVar13 + 1" (identifier "piVar13") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar11 = param_3;" (assignment_expression "iVar11 = param_3" (identifier "iVar11") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_3 == iVar18) goto LAB_000984cc;" (if "if") (parenthesized_expression "(param_3 == iVar18)" (( "(") (binary_expression "param_3 == iVar18" (identifier "param_3") (== "==") (identifier "iVar18")) () ")")) (goto_statement "goto LAB_000984cc;" (goto "goto") (statement_identifier "LAB_000984cc") (; ";"))) (expression_statement "pcVar10 = (char *)piVar13[2];" (assignment_expression "pcVar10 = (char *)piVar13[2]" (identifier "pcVar10") (= "=") (cast_expression "(char *)piVar13[2]" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar13[2]" (identifier "piVar13") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (pcVar10 != (char *)0x0) break;" (if "if") (parenthesized_expression "(pcVar10 != (char *)0x0)" (( "(") (binary_expression "pcVar10 != (char *)0x0" (identifier "pcVar10") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_000984b0:\n            iVar11 = 0;" (statement_identifier "LAB_000984b0") (: ":") (expression_statement "iVar11 = 0;" (assignment_expression "iVar11 = 0" (identifier "iVar11") (= "=") (number_literal "0")) (; ";"))) (expression_statement "piVar13 = piVar12;" (assignment_expression "piVar13 = piVar12" (identifier "piVar13") (= "=") (identifier "piVar12")) (; ";")) (expression_statement "iVar6 = iVar18;" (assignment_expression "iVar6 = iVar18" (identifier "iVar6") (= "=") (identifier "iVar18")) (; ";")) (if_statement "if (-1 < param_4) goto LAB_000984c4;" (if "if") (parenthesized_expression "(-1 < param_4)" (( "(") (binary_expression "-1 < param_4" (number_literal "-1") (< "<") (identifier "param_4")) () ")")) (goto_statement "goto LAB_000984c4;" (goto "goto") (statement_identifier "LAB_000984c4") (; ";"))) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_000984cc:\n      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }" (statement_identifier "LAB_000984cc") (: ":") (if_statement "if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }" (if "if") (parenthesized_expression "(((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11))" (( "(") (binary_expression "((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)" (parenthesized_expression "((param_4 == 0) && (param_2 == iVar8))" (( "(") (binary_expression "(param_4 == 0) && (param_2 == iVar8)" (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 == iVar8)" (( "(") (binary_expression "param_2 == iVar8" (identifier "param_2") (== "==") (identifier "iVar8")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_3 != iVar11)" (( "(") (binary_expression "param_3 != iVar11" (identifier "param_3") (!= "!=") (identifier "iVar11")) () ")"))) () ")")) (compound_statement "{\n        iVar14 = iVar14 + 1;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        local_2c = local_2c + 1;\n        *puVar3 = 0x7b;\n        puVar3[1] = 0;\n      }" ({ "{") (expression_statement "iVar14 = iVar14 + 1;" (assignment_expression "iVar14 = iVar14 + 1" (identifier "iVar14") (= "=") (binary_expression "iVar14 + 1" (identifier "iVar14") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);" (assignment_expression "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)xrealloc(puVar3,iVar14)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(puVar3,iVar14)" (identifier "xrealloc") (argument_list "(puVar3,iVar14)" (( "(") (identifier "puVar3") (, ",") (identifier "iVar14") () ")"))))) (; ";")) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" (identifier "local_2c") (= "=") (binary_expression "local_2c + 1" (identifier "local_2c") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*puVar3 = 0x7b;" (assignment_expression "*puVar3 = 0x7b" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0x7b")) (; ";")) (expression_statement "puVar3[1] = 0;" (assignment_expression "puVar3[1] = 0" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if (iVar6 == iVar8) {\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }\n      else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }" (if "if") (parenthesized_expression "(iVar6 == iVar8)" (( "(") (binary_expression "iVar6 == iVar8" (identifier "iVar6") (== "==") (identifier "iVar8")) () ")")) (compound_statement "{\n        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);\n        uVar7 = xmalloc(iVar8 + 1);\n        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);\n        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);\n        (*(code *)PTR_free_001464fc)(uVar7);\n      }" ({ "{") (expression_statement "iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(*piVar17 + param_4)" (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 "(*piVar17 + param_4)" (( "(") (binary_expression "*piVar17 + param_4" (pointer_expression "*piVar17" (* "*") (identifier "piVar17")) (+ "+") (identifier "param_4")) () ")")))) (; ";")) (expression_statement "uVar7 = xmalloc(iVar8 + 1);" (assignment_expression "uVar7 = xmalloc(iVar8 + 1)" (identifier "uVar7") (= "=") (call_expression "xmalloc(iVar8 + 1)" (identifier "xmalloc") (argument_list "(iVar8 + 1)" (( "(") (binary_expression "iVar8 + 1" (identifier "iVar8") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);" (assignment_expression "uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4)" (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 "(uVar7,*piVar17 + param_4)" (( "(") (identifier "uVar7") (, ",") (binary_expression "*piVar17 + param_4" (pointer_expression "*piVar17" (* "*") (identifier "piVar17")) (+ "+") (identifier "param_4")) () ")")))) (; ";")) (expression_statement "iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);" (assignment_expression "iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0)" (parenthesized_expression "(*(code *)PTR_sh_backslash_quote_00145464)" (( "(") (pointer_expression "*(code *)PTR_sh_backslash_quote_00145464" (* "*") (cast_expression "(code *)PTR_sh_backslash_quote_00145464" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sh_backslash_quote_00145464"))) () ")")) (argument_list "(uVar7,0,0)" (( "(") (identifier "uVar7") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_free_001464fc)(uVar7);" (call_expression "(*(code *)PTR_free_001464fc)(uVar7)" (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 "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }" (else "else") (compound_statement "{\n        iVar18 = iVar5 - param_4;\n        iVar6 = xmalloc(iVar18 + 1);\n        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);\n        puVar2 = PTR_sh_backslash_quote_00145464;\n        *(undefined1 *)(iVar6 + iVar18) = 0;\n        uVar7 = (*(code *)puVar2)(iVar6,0,0);\n        (*(code *)PTR_free_001464fc)(iVar6);\n        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);\n        iVar14 = iVar14 + 1 + iVar6;\n        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);\n        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);\n        (*(code *)PTR_free_001464fc)(uVar7);\n        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);\n        puVar3[iVar6] = 0x7b;\n        (puVar3 + iVar6)[1] = 0;\n        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);\n        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);\n        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;\n      }" ({ "{") (expression_statement "iVar18 = iVar5 - param_4;" (assignment_expression "iVar18 = iVar5 - param_4" (identifier "iVar18") (= "=") (binary_expression "iVar5 - param_4" (identifier "iVar5") (- "-") (identifier "param_4"))) (; ";")) (expression_statement "iVar6 = xmalloc(iVar18 + 1);" (assignment_expression "iVar6 = xmalloc(iVar18 + 1)" (identifier "iVar6") (= "=") (call_expression "xmalloc(iVar18 + 1)" (identifier "xmalloc") (argument_list "(iVar18 + 1)" (( "(") (binary_expression "iVar18 + 1" (identifier "iVar18") (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "(*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);" (call_expression "(*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18)" (parenthesized_expression "(*(code *)PTR_strncpy_00146330)" (( "(") (pointer_expression "*(code *)PTR_strncpy_00146330" (* "*") (cast_expression "(code *)PTR_strncpy_00146330" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strncpy_00146330"))) () ")")) (argument_list "(iVar6,*piVar17 + param_4,iVar18)" (( "(") (identifier "iVar6") (, ",") (binary_expression "*piVar17 + param_4" (pointer_expression "*piVar17" (* "*") (identifier "piVar17")) (+ "+") (identifier "param_4")) (, ",") (identifier "iVar18") () ")"))) (; ";")) (expression_statement "puVar2 = PTR_sh_backslash_quote_00145464;" (assignment_expression "puVar2 = PTR_sh_backslash_quote_00145464" (identifier "puVar2") (= "=") (identifier "PTR_sh_backslash_quote_00145464")) (; ";")) (expression_statement "*(undefined1 *)(iVar6 + iVar18) = 0;" (assignment_expression "*(undefined1 *)(iVar6 + iVar18) = 0" (pointer_expression "*(undefined1 *)(iVar6 + iVar18)" (* "*") (cast_expression "(undefined1 *)(iVar6 + iVar18)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + iVar18)" (( "(") (binary_expression "iVar6 + iVar18" (identifier "iVar6") (+ "+") (identifier "iVar18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = (*(code *)puVar2)(iVar6,0,0);" (assignment_expression "uVar7 = (*(code *)puVar2)(iVar6,0,0)" (identifier "uVar7") (= "=") (call_expression "(*(code *)puVar2)(iVar6,0,0)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(iVar6,0,0)" (( "(") (identifier "iVar6") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_free_001464fc)(iVar6);" (call_expression "(*(code *)PTR_free_001464fc)(iVar6)" (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 "(iVar6)" (( "(") (identifier "iVar6") () ")"))) (; ";")) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(uVar7)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(uVar7)" (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 "(uVar7)" (( "(") (identifier "uVar7") () ")")))) (; ";")) (expression_statement "iVar14 = iVar14 + 1 + iVar6;" (assignment_expression "iVar14 = iVar14 + 1 + iVar6" (identifier "iVar14") (= "=") (binary_expression "iVar14 + 1 + iVar6" (binary_expression "iVar14 + 1" (identifier "iVar14") (+ "+") (number_literal "1")) (+ "+") (identifier "iVar6"))) (; ";")) (expression_statement "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);" (assignment_expression "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)xrealloc(puVar3,iVar14)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(puVar3,iVar14)" (identifier "xrealloc") (argument_list "(puVar3,iVar14)" (( "(") (identifier "puVar3") (, ",") (identifier "iVar14") () ")"))))) (; ";")) (expression_statement "(*(code *)PTR_strcat_00146420)(puVar3,uVar7);" (call_expression "(*(code *)PTR_strcat_00146420)(puVar3,uVar7)" (parenthesized_expression "(*(code *)PTR_strcat_00146420)" (( "(") (pointer_expression "*(code *)PTR_strcat_00146420" (* "*") (cast_expression "(code *)PTR_strcat_00146420" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcat_00146420"))) () ")")) (argument_list "(puVar3,uVar7)" (( "(") (identifier "puVar3") (, ",") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_001464fc)(uVar7);" (call_expression "(*(code *)PTR_free_001464fc)(uVar7)" (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 "(uVar7)" (( "(") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(puVar3)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(puVar3)" (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 "(puVar3)" (( "(") (identifier "puVar3") () ")")))) (; ";")) (expression_statement "puVar3[iVar6] = 0x7b;" (assignment_expression "puVar3[iVar6] = 0x7b" (subscript_expression "puVar3[iVar6]" (identifier "puVar3") ([ "[") (identifier "iVar6") (] "]")) (= "=") (number_literal "0x7b")) (; ";")) (expression_statement "(puVar3 + iVar6)[1] = 0;" (assignment_expression "(puVar3 + iVar6)[1] = 0" (subscript_expression "(puVar3 + iVar6)[1]" (parenthesized_expression "(puVar3 + iVar6)" (( "(") (binary_expression "puVar3 + iVar6" (identifier "puVar3") (+ "+") (identifier "iVar6")) () ")")) ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);" (assignment_expression "iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5)" (identifier "iVar8") (= "=") (call_expression "(*pcVar4)(param_1,iVar8,iVar11,iVar5)" (parenthesized_expression "(*pcVar4)" (( "(") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) () ")")) (argument_list "(param_1,iVar8,iVar11,iVar5)" (( "(") (identifier "param_1") (, ",") (identifier "iVar8") (, ",") (identifier "iVar11") (, ",") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(iVar8)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(iVar8)" (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 "(iVar8)" (( "(") (identifier "iVar8") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;" (assignment_expression "*(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d" (pointer_expression "*(undefined1 *)(iVar8 + iVar6 + -1)" (* "*") (cast_expression "(undefined1 *)(iVar8 + iVar6 + -1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + iVar6 + -1)" (( "(") (binary_expression "iVar8 + iVar6 + -1" (binary_expression "iVar8 + iVar6" (identifier "iVar8") (+ "+") (identifier "iVar6")) (+ "+") (number_literal "-1")) () ")")))) (= "=") (number_literal "0x7d")) (; ";")) (} "}")))) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(iVar8)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(iVar8)" (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 "(iVar8)" (( "(") (identifier "iVar8") () ")")))) (; ";")) (expression_statement "iVar14 = iVar6 + iVar14 + 1;" (assignment_expression "iVar14 = iVar6 + iVar14 + 1" (identifier "iVar14") (= "=") (binary_expression "iVar6 + iVar14 + 1" (binary_expression "iVar6 + iVar14" (identifier "iVar6") (+ "+") (identifier "iVar14")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);" (assignment_expression "puVar3 = (undefined1 *)xrealloc(puVar3,iVar14)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)xrealloc(puVar3,iVar14)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xrealloc(puVar3,iVar14)" (identifier "xrealloc") (argument_list "(puVar3,iVar14)" (( "(") (identifier "puVar3") (, ",") (identifier "iVar14") () ")"))))) (; ";")) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(puVar3)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(puVar3)" (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 "(puVar3)" (( "(") (identifier "puVar3") () ")")))) (; ";")) (expression_statement "puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);" (assignment_expression "puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8)" (identifier "puVar9") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8)" (parenthesized_expression "(*(code *)PTR_stpcpy_0014648c)" (( "(") (pointer_expression "*(code *)PTR_stpcpy_0014648c" (* "*") (cast_expression "(code *)PTR_stpcpy_0014648c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stpcpy_0014648c"))) () ")")) (argument_list "(puVar3 + iVar6,iVar8)" (( "(") (binary_expression "puVar3 + iVar6" (identifier "puVar3") (+ "+") (identifier "iVar6")) (, ",") (identifier "iVar8") () ")"))))) (; ";")) (expression_statement "*puVar9 = 0x2c;" (assignment_expression "*puVar9 = 0x2c" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (number_literal "0x2c")) (; ";")) (expression_statement "puVar2 = PTR_free_001464fc;" (assignment_expression "puVar2 = PTR_free_001464fc" (identifier "puVar2") (= "=") (identifier "PTR_free_001464fc")) (; ";")) (expression_statement "puVar9[1] = 0;" (assignment_expression "puVar9[1] = 0" (subscript_expression "puVar9[1]" (identifier "puVar9") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)puVar2)(iVar8);" (call_expression "(*(code *)puVar2)(iVar8)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(iVar8)" (( "(") (identifier "iVar8") () ")"))) (; ";")) (expression_statement "iVar8 = iVar11;" (assignment_expression "iVar8 = iVar11" (identifier "iVar8") (= "=") (identifier "iVar11")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar11 < param_3)" (( "(") (binary_expression "iVar11 < param_3" (identifier "iVar11") (< "<") (identifier "param_3")) () ")")) (; ";")) (if_statement "if (param_4 != 0) {\n      return puVar3;\n    }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return puVar3;\n    }" ({ "{") (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" (identifier "uVar15") (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_2c != 0) {\n      uVar15 = 0x7d;\n    }" (if "if") (parenthesized_expression "(local_2c != 0)" (( "(") (binary_expression "local_2c != 0" (identifier "local_2c") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar15 = 0x7d;\n    }" ({ "{") (expression_statement "uVar15 = 0x7d;" (assignment_expression "uVar15 = 0x7d" (identifier "uVar15") (= "=") (number_literal "0x7d")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }" (else "else") (compound_statement "{\n    if (param_4 != 0) {\n      return puVar3;\n    }\n    uVar15 = 0;\n  }" ({ "{") (if_statement "if (param_4 != 0) {\n      return puVar3;\n    }" (if "if") (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return puVar3;\n    }" ({ "{") (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}"))) (expression_statement "uVar15 = 0;" (assignment_expression "uVar15 = 0" (identifier "uVar15") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);" (assignment_expression "iVar8 = (*(code *)PTR_strlen_00146390)(puVar3)" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(puVar3)" (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 "(puVar3)" (( "(") (identifier "puVar3") () ")")))) (; ";")) (expression_statement "puVar3[iVar8 + -1] = uVar15;" (assignment_expression "puVar3[iVar8 + -1] = uVar15" (subscript_expression "puVar3[iVar8 + -1]" (identifier "puVar3") ([ "[") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1")) (] "]")) (= "=") (identifier "uVar15")) (; ";")) (return_statement "return puVar3;" (return "return") (identifier "puVar3") (; ";")) (} "}")))

char * function_1(char **array,int var_1,int var_2,int var_4)

{
  char *pcVar1;
  
  if (var_1 != var_2) {
                    /* WARNING: Subroutine does not return */
    var_3(0x10);
  }
  if (array[var_1] != (char *)0x0) {
                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    pcVar1 = (char *)(*(type_1 *)PTR_sh_backslash_quote_00145464)(array[var_1] + var_4,0,0);
    return pcVar1;
  }
                    /* WARNING: Could not recover jumptable at 0x00098830. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  pcVar1 = (char *)(*(type_1 *)PTR_sh_backslash_quote_00145464)(*array,0,0);
  return pcVar1;
}


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

undefined1 * MASKED(undefined4 *param_1,int param_2,int param_3,int param_4)

{
  bool bVar1;
  undefined *puVar2;
  undefined1 *puVar3;
  code *pcVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  int iVar8;
  undefined1 *puVar9;
  char *pcVar10;
  int iVar11;
  int *piVar12;
  int *piVar13;
  int iVar14;
  undefined1 uVar15;
  char *pcVar16;
  int *piVar17;
  int iVar18;
  int local_2c;
  
  if (param_2 == param_3) {
    if (param_1[param_2] != 0) {
                    /* WARNING: Could not recover jumptable at 0x000987d8. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      puVar3 = (undefined1 *)
               (*(code *)PTR_sh_backslash_quote_00145464)(param_1[param_2] + param_4,0,0);
      return puVar3;
    }
                    /* WARNING: Could not recover jumptable at 0x00098830. Too many branches */
                    /* WARNING: Treating indirect jump as call */
    puVar3 = (undefined1 *)(*(code *)PTR_sh_backslash_quote_00145464)(*param_1,0,0);
    return puVar3;
  }
  puVar3 = (undefined1 *)xmalloc(0x10);
  *puVar3 = 0;
  if (param_2 < param_3) {
    iVar14 = 0x10;
    local_2c = 0;
    pcVar4 = (code *)(PTR_LAB_00145460 + -0x7c98);
    iVar8 = param_2;
    do {
      iVar18 = iVar8 + 1;
      piVar17 = param_1 + iVar8;
      pcVar16 = (char *)*piVar17;
      iVar5 = (*(code *)PTR_strlen_00146390)(pcVar16);
      iVar11 = iVar18;
      iVar6 = iVar8;
      if (iVar18 < param_3) {
        pcVar10 = (char *)piVar17[1];
        piVar12 = piVar17;
        if (pcVar10 == (char *)0x0) goto LAB_000984b0;
        do {
          if (*pcVar16 == '\0') goto LAB_000984b0;
          if (*pcVar10 == '\0') goto LAB_000984b0;
          iVar11 = 0;
          if (*pcVar10 == *pcVar16) {
            do {
              iVar11 = iVar11 + 1;
              if ((pcVar16[iVar11] == '\0') || (pcVar10[iVar11] == '\0')) {
                bVar1 = param_4 < iVar11;
                break;
              }
              bVar1 = param_4 < iVar11;
            } while (pcVar16[iVar11] == pcVar10[iVar11]);
          }
          else {
            bVar1 = param_4 < 0;
          }
          piVar13 = piVar12;
          iVar6 = iVar18;
          if (!bVar1) {
LAB_000984c4:
            iVar11 = iVar18;
            iVar6 = iVar18 + -1;
            break;
          }
          while( true ) {
            iVar5 = iVar11;
            iVar18 = iVar6 + 1;
            piVar12 = piVar13 + 1;
            iVar11 = param_3;
            if (param_3 == iVar18) goto LAB_000984cc;
            pcVar10 = (char *)piVar13[2];
            if (pcVar10 != (char *)0x0) break;
LAB_000984b0:
            iVar11 = 0;
            piVar13 = piVar12;
            iVar6 = iVar18;
            if (-1 < param_4) goto LAB_000984c4;
          }
        } while( true );
      }
LAB_000984cc:
      if (((param_4 == 0) && (param_2 == iVar8)) && (param_3 != iVar11)) {
        iVar14 = iVar14 + 1;
        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);
        local_2c = local_2c + 1;
        *puVar3 = 0x7b;
        puVar3[1] = 0;
      }
      if (iVar6 == iVar8) {
        iVar8 = (*(code *)PTR_strlen_00146390)(*piVar17 + param_4);
        uVar7 = xmalloc(iVar8 + 1);
        uVar7 = (*(code *)PTR_strcpy_00146418)(uVar7,*piVar17 + param_4);
        iVar8 = (*(code *)PTR_sh_backslash_quote_00145464)(uVar7,0,0);
        (*(code *)PTR_free_001464fc)(uVar7);
      }
      else {
        iVar18 = iVar5 - param_4;
        iVar6 = xmalloc(iVar18 + 1);
        (*(code *)PTR_strncpy_00146330)(iVar6,*piVar17 + param_4,iVar18);
        puVar2 = PTR_sh_backslash_quote_00145464;
        *(undefined1 *)(iVar6 + iVar18) = 0;
        uVar7 = (*(code *)puVar2)(iVar6,0,0);
        (*(code *)PTR_free_001464fc)(iVar6);
        iVar6 = (*(code *)PTR_strlen_00146390)(uVar7);
        iVar14 = iVar14 + 1 + iVar6;
        puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);
        (*(code *)PTR_strcat_00146420)(puVar3,uVar7);
        (*(code *)PTR_free_001464fc)(uVar7);
        iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);
        puVar3[iVar6] = 0x7b;
        (puVar3 + iVar6)[1] = 0;
        iVar8 = (*pcVar4)(param_1,iVar8,iVar11,iVar5);
        iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);
        *(undefined1 *)(iVar8 + iVar6 + -1) = 0x7d;
      }
      iVar6 = (*(code *)PTR_strlen_00146390)(iVar8);
      iVar14 = iVar6 + iVar14 + 1;
      puVar3 = (undefined1 *)xrealloc(puVar3,iVar14);
      iVar6 = (*(code *)PTR_strlen_00146390)(puVar3);
      puVar9 = (undefined1 *)(*(code *)PTR_stpcpy_0014648c)(puVar3 + iVar6,iVar8);
      *puVar9 = 0x2c;
      puVar2 = PTR_free_001464fc;
      puVar9[1] = 0;
      (*(code *)puVar2)(iVar8);
      iVar8 = iVar11;
    } while (iVar11 < param_3);
    if (param_4 != 0) {
      return puVar3;
    }
    uVar15 = 0;
    if (local_2c != 0) {
      uVar15 = 0x7d;
    }
  }
  else {
    if (param_4 != 0) {
      return puVar3;
    }
    uVar15 = 0;
  }
  iVar8 = (*(code *)PTR_strlen_00146390)(puVar3);
  puVar3[iVar8 + -1] = uVar15;
  return puVar3;
}

