
STRINGLIST * strlist_prefix_suffix(STRINGLIST *sl,char *prefix,char *suffix)

{
  char *pcVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  char **ppcVar6;
  int iVar7;
  
  if (sl == (STRINGLIST *)0x0) {
    return (STRINGLIST *)0x0;
  }
  ppcVar6 = sl->list;
  if (ppcVar6 == (char **)0x0) {
    return sl;
  }
  iVar2 = sl->list_len;
  if (iVar2 == 0) {
    return sl;
  }
  if ((prefix == (char *)0x0) || (*prefix == '\0')) {
    if (suffix == (char *)0x0) {
      return sl;
    }
    iVar4 = 0;
    if (*suffix == '\0') {
      return sl;
    }
LAB_000d9d40:
    iVar5 = 1;
    if (suffix[1] == '\0') goto LAB_000d9c04;
    if (suffix[2] == '\0') {
      iVar5 = 2;
      goto LAB_000d9c04;
    }
    iVar5 = (*(code *)PTR_strlen_00146390)(suffix);
    iVar7 = iVar5;
    if (iVar4 != 0) goto LAB_000d9c04;
  }
  else {
    if (prefix[1] == '\0') {
      iVar4 = 1;
      if ((suffix == (char *)0x0) || (*suffix == '\0')) {
        iVar4 = 1;
        iVar5 = 0;
        goto LAB_000d9c04;
      }
      goto LAB_000d9d40;
    }
    if (prefix[2] == '\0') {
      if (suffix == (char *)0x0) {
        iVar4 = 2;
        iVar5 = 0;
        goto LAB_000d9c04;
      }
      iVar4 = 2;
      if (*suffix == '\0') {
        iVar5 = 0;
        goto LAB_000d9c04;
      }
      goto LAB_000d9d40;
    }
    iVar4 = (*(code *)PTR_strlen_00146390)(prefix);
    if ((suffix != (char *)0x0) && (*suffix != '\0')) goto LAB_000d9d40;
    iVar5 = 0;
    iVar7 = iVar4;
  }
  if (iVar7 == 0) {
    return sl;
  }
LAB_000d9c04:
  if (0 < iVar2) {
    iVar2 = 0;
    do {
      pcVar1 = ppcVar6[iVar2];
      if (pcVar1 == (char *)0x0) {
        iVar7 = 0;
        iVar3 = iVar4;
LAB_000d9c30:
        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);
      }
      else {
        if (*pcVar1 != '\0') {
          iVar7 = 1;
          iVar3 = iVar4 + 1;
          if (pcVar1[1] != '\0') {
            if (pcVar1[2] == '\0') {
              iVar7 = 2;
              iVar3 = iVar4 + 2;
            }
            else {
              iVar7 = (*(code *)PTR_strlen_00146390)();
              iVar3 = iVar7 + iVar4;
            }
          }
          goto LAB_000d9c30;
        }
        iVar7 = 0;
        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);
      }
      if (iVar4 != 0) {
        (*(code *)PTR_strcpy_00146418)(pcVar1,prefix);
      }
      (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar4,sl->list[iVar2]);
      if (iVar5 != 0) {
        (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix);
      }
      iVar3 = iVar2 + 1;
      (*(code *)PTR_free_001464fc)(sl->list[iVar2]);
      ppcVar6 = sl->list;
      iVar7 = sl->list_len;
      ppcVar6[iVar2] = pcVar1;
      iVar2 = iVar3;
    } while (iVar3 < iVar7);
  }
  return sl;
}



int * strlist_prefix_suffix(int *param_1,char *param_2,char *param_3)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  if (param_1 == (int *)0x0) {
    return (int *)0x0;
  }
  iVar8 = *param_1;
  if (iVar8 == 0) {
    return param_1;
  }
  iVar4 = param_1[2];
  if (iVar4 == 0) {
    return param_1;
  }
  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {
    if (param_3 == (char *)0x0) {
      return param_1;
    }
    iVar6 = 0;
    if (*param_3 == '\0') {
      return param_1;
    }
LAB_000d9d40:
    iVar7 = 1;
    if (param_3[1] == '\0') goto LAB_000d9c04;
    if (param_3[2] == '\0') {
      iVar7 = 2;
      goto LAB_000d9c04;
    }
    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);
    iVar5 = iVar7;
    if (iVar6 != 0) goto LAB_000d9c04;
  }
  else {
    if (param_2[1] == '\0') {
      iVar6 = 1;
      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {
        iVar6 = 1;
        iVar7 = 0;
        goto LAB_000d9c04;
      }
      goto LAB_000d9d40;
    }
    if (param_2[2] == '\0') {
      if (param_3 == (char *)0x0) {
        iVar6 = 2;
        iVar7 = 0;
        goto LAB_000d9c04;
      }
      iVar6 = 2;
      if (*param_3 == '\0') {
        iVar7 = 0;
        goto LAB_000d9c04;
      }
      goto LAB_000d9d40;
    }
    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);
    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;
    iVar7 = 0;
    iVar5 = iVar6;
  }
  if (iVar5 == 0) {
    return param_1;
  }
LAB_000d9c04:
  iVar5 = 0;
  if (0 < iVar4) {
    do {
      iVar4 = iVar5 * 4;
      pcVar3 = *(char **)(iVar8 + iVar4);
      if (pcVar3 == (char *)0x0) {
        iVar8 = 0;
        iVar2 = iVar6;
LAB_000d9c30:
        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);
      }
      else {
        if (*pcVar3 != '\0') {
          iVar8 = 1;
          iVar2 = iVar6 + 1;
          if (pcVar3[1] != '\0') {
            if (pcVar3[2] == '\0') {
              iVar8 = 2;
              iVar2 = iVar6 + 2;
            }
            else {
              iVar8 = (*(code *)PTR_strlen_00146390)();
              iVar2 = iVar8 + iVar6;
            }
          }
          goto LAB_000d9c30;
        }
        iVar8 = 0;
        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);
      }
      if (iVar6 != 0) {
        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);
      }
      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));
      if (iVar7 != 0) {
        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);
      }
      iVar5 = iVar5 + 1;
      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));
      iVar8 = *param_1;
      iVar1 = param_1[2];
      *(int *)(iVar8 + iVar4) = iVar2;
    } while (iVar5 < iVar1);
  }
  return param_1;
}


lui gp,0x7
addiu gp,gp,0x29d4
addu gp,gp,t9
addiu sp,sp,-0x48
sw gp,0x10(sp)
sw s8,0x40(sp)
or s8,a0,zero
sw ra,0x44(sp)
sw s7,0x3c(sp)
sw s6,0x38(sp)
sw s5,0x34(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
beq a0,zero,0x000d9d0c
_sw s0,0x20(sp)
lw s5,0x0(a0)
beq s5,zero,0x000d9d0c
_nop
lw s0,0x8(a0)
beq s0,zero,0x000d9d0c
_or s6,a1,zero
beq a1,zero,0x000d9cf8
_or s7,a2,zero
lb v0,0x0(a1)
beq v0,zero,0x000d9cf8
_nop
lb v0,0x1(a1)
bne v0,zero,0x000d9dd4
_nop
beq a2,zero,0x000d9c00
_li s3,0x1
lb v0,0x0(a2)
bne v0,zero,0x000d9d40
_nop
li s3,0x1
or s4,zero,zero
blez s0,0x000d9d0c
_or s1,zero,zero
addiu v0,s3,0x2
sw v0,0x1c(sp)
addiu v0,s3,0x1
b 0x000d9ca0
_sw v0,0x18(sp)
lb v0,0x1(a0)
bne v0,zero,0x000d9da4
_li s5,0x1
lw a0,0x18(sp)
addu a0,s4,a0
lw t9,-0x7f90(gp)
jalr t9
_addiu a0,a0,0x2
lw gp,0x10(sp)
bne s3,zero,0x000d9ce0
_or s2,v0,zero
lw v0,0x0(s8)
addu a0,s2,s3
lw t9,-0x6128(gp)
addu v0,v0,s0
jalr t9
_lw a1,0x0(v0)
bne s4,zero,0x000d9d7c
_lw gp,0x10(sp)
lw v0,0x0(s8)
addiu s1,s1,0x1
lw t9,-0x6044(gp)
addu v0,v0,s0
jalr t9
_lw a0,0x0(v0)
lw s5,0x0(s8)
lw v0,0x8(s8)
lw gp,0x10(sp)
addu s0,s5,s0
slt v0,s1,v0
beq v0,zero,0x000d9d0c
_sw s2,0x0(s0)
sll s0,s1,0x2
addu s5,s5,s0
lw a0,0x0(s5)
beq a0,zero,0x000d9d98
_nop
lb v0,0x0(a0)
bne v0,zero,0x000d9c20
_lw t9,-0x7f90(gp)
or a0,s3,zero
addu a0,s4,a0
or s5,zero,zero
jalr t9
_addiu a0,a0,0x2
lw gp,0x10(sp)
beq s3,zero,0x000d9c4c
_or s2,v0,zero
lw t9,-0x6128(gp)
or a1,s6,zero
jalr t9
_or a0,v0,zero
b 0x000d9c4c
_lw gp,0x10(sp)
beq s7,zero,0x000d9d10
_lw ra,0x44(sp)
lb v0,0x0(s7)
bne v0,zero,0x000d9d40
_or s3,zero,zero
lw ra,0x44(sp)
or v0,s8,zero
lw s8,0x40(sp)
lw s7,0x3c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x48
lb v0,0x1(s7)
beq v0,zero,0x000d9c04
_li s4,0x1
lb v0,0x2(s7)
beq v0,zero,0x000d9e30
_lw t9,-0x61b0(gp)
jalr t9
_or a0,s7,zero
lw gp,0x10(sp)
bne s3,zero,0x000d9c04
_or s4,v0,zero
bne v0,zero,0x000d9c04
_lw ra,0x44(sp)
b 0x000d9d14
_or v0,s8,zero
addu a0,s5,s3
lw t9,-0x6128(gp)
or a1,s7,zero
jalr t9
_addu a0,s2,a0
b 0x000d9c6c
_lw gp,0x10(sp)
or a0,s3,zero
b 0x000d9c30
_or s5,zero,zero
lb v0,0x2(a0)
bne v0,zero,0x000d9dbc
_lw t9,-0x61b0(gp)
lw a0,0x1c(sp)
b 0x000d9c30
_li s5,0x2
jalr t9
_nop
lw gp,0x10(sp)
or s5,v0,zero
b 0x000d9c30
_addu a0,v0,s3
lb v0,0x2(a1)
beq v0,zero,0x000d9e14
_nop
lw t9,-0x61b0(gp)
jalr t9
_or a0,a1,zero
lw gp,0x10(sp)
beq s7,zero,0x000d9e04
_or s3,v0,zero
lb v0,0x0(s7)
bne v0,zero,0x000d9d40
_nop
beq s3,zero,0x000d9d0c
_or s4,zero,zero
b 0x000d9c04
_nop
beq a2,zero,0x000d9e38
_nop
lb v0,0x0(a2)
bne v0,zero,0x000d9d40
_li s3,0x2
b 0x000d9c04
_or s4,zero,zero
b 0x000d9c04
_li s4,0x2
li s3,0x2
b 0x000d9c04
_or s4,zero,zero
(translation_unit "int * strlist_prefix_suffix(int *param_1,char *param_2,char *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  if (param_1 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  iVar8 = *param_1;\n  if (iVar8 == 0) {\n    return param_1;\n  }\n  iVar4 = param_1[2];\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }\n  if (iVar5 == 0) {\n    return param_1;\n  }\nLAB_000d9c04:\n  iVar5 = 0;\n  if (0 < iVar4) {\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }\n  return param_1;\n}\n\n" (function_definition "int * strlist_prefix_suffix(int *param_1,char *param_2,char *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  if (param_1 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  iVar8 = *param_1;\n  if (iVar8 == 0) {\n    return param_1;\n  }\n  iVar4 = param_1[2];\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }\n  if (iVar5 == 0) {\n    return param_1;\n  }\nLAB_000d9c04:\n  iVar5 = 0;\n  if (0 < iVar4) {\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* strlist_prefix_suffix(int *param_1,char *param_2,char *param_3)" * (function_declarator "strlist_prefix_suffix(int *param_1,char *param_2,char *param_3)" identifier (parameter_list "(int *param_1,char *param_2,char *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  if (param_1 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  iVar8 = *param_1;\n  if (iVar8 == 0) {\n    return param_1;\n  }\n  iVar4 = param_1[2];\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }\n  if (iVar5 == 0) {\n    return param_1;\n  }\nLAB_000d9c04:\n  iVar5 = 0;\n  if (0 < iVar4) {\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n    return (int *)0x0;\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (int *)0x0;\n  }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar8 = *param_1;" (assignment_expression "iVar8 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar8 == 0) {\n    return param_1;\n  }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 == 0) {\n    return param_1;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }" if (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" ( (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }" { (if_statement "if (param_3 == (char *)0x0) {\n      return param_1;\n    }" if (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (*param_3 == '\0') {\n      return param_1;\n    }" if (parenthesized_expression "(*param_3 == '\0')" ( (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (labeled_statement "LAB_000d9d40:\n    iVar7 = 1;" statement_identifier : (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;)) (if_statement "if (param_3[1] == '\0') goto LAB_000d9c04;" if (parenthesized_expression "(param_3[1] == '\0')" ( (binary_expression "param_3[1] == '\0'" (subscript_expression "param_3[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;)) (if_statement "if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }" if (parenthesized_expression "(param_3[2] == '\0')" ( (binary_expression "param_3[2] == '\0'" (subscript_expression "param_3[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }" { (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;) })) (expression_statement "iVar7 = (*(code *)PTR_strlen_00146390)(param_3);" (assignment_expression "iVar7 = (*(code *)PTR_strlen_00146390)(param_3)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_3)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar5 = iVar7;" (assignment_expression "iVar5 = iVar7" identifier = identifier) ;) (if_statement "if (iVar6 != 0) goto LAB_000d9c04;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;)) }) (else_clause "else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }" else (compound_statement "{\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }" { (if_statement "if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" if (parenthesized_expression "(param_2[1] == '\0')" ( (binary_expression "param_2[1] == '\0'" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (if_statement "if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" if (parenthesized_expression "((param_3 == (char *)0x0) || (*param_3 == '\0'))" ( (binary_expression "(param_3 == (char *)0x0) || (*param_3 == '\0')" (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_3 == '\0')" ( (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;) })) (goto_statement "goto LAB_000d9d40;" goto statement_identifier ;) })) (if_statement "if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" if (parenthesized_expression "(param_2[2] == '\0')" ( (binary_expression "param_2[2] == '\0'" (subscript_expression "param_2[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" { (if_statement "if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" if (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" { (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;) })) (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" identifier = number_literal) ;) (if_statement "if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" if (parenthesized_expression "(*param_3 == '\0')" ( (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;) })) (goto_statement "goto LAB_000d9d40;" goto statement_identifier ;) })) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(param_2);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;" if (parenthesized_expression "((param_3 != (char *)0x0) && (*param_3 != '\0'))" ( (binary_expression "(param_3 != (char *)0x0) && (*param_3 != '\0')" (parenthesized_expression "(param_3 != (char *)0x0)" ( (binary_expression "param_3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_3 != '\0')" ( (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_000d9d40;" goto statement_identifier ;)) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) }))) (if_statement "if (iVar5 == 0) {\n    return param_1;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (labeled_statement "LAB_000d9c04:\n  iVar5 = 0;" statement_identifier : (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;)) (if_statement "if (0 < iVar4) {\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }" { (do_statement "do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);" do (compound_statement "{\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    }" { (expression_statement "iVar4 = iVar5 * 4;" (assignment_expression "iVar4 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) (expression_statement "pcVar3 = *(char **)(iVar8 + iVar4);" (assignment_expression "pcVar3 = *(char **)(iVar8 + iVar4)" identifier = (pointer_expression "*(char **)(iVar8 + iVar4)" * (cast_expression "(char **)(iVar8 + iVar4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + iVar4)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) ))))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = iVar6;" (assignment_expression "iVar2 = iVar6" identifier = identifier) ;) (labeled_statement "LAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);" statement_identifier : (expression_statement "iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);" (assignment_expression "iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2)" identifier = (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7 + iVar2 + 2)" ( (binary_expression "iVar7 + iVar2 + 2" (binary_expression "iVar7 + iVar2" identifier + identifier) + number_literal) )))) ;)) }) (else_clause "else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }" else (compound_statement "{\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }" { (if_statement "if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }" if (parenthesized_expression "(*pcVar3 != '\0')" ( (binary_expression "*pcVar3 != '\0'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }" { (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" identifier = number_literal) ;) (expression_statement "iVar2 = iVar6 + 1;" (assignment_expression "iVar2 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }" if (parenthesized_expression "(pcVar3[1] != '\0')" ( (binary_expression "pcVar3[1] != '\0'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }" { (if_statement "if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }" if (parenthesized_expression "(pcVar3[2] == '\0')" ( (binary_expression "pcVar3[2] == '\0'" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }" { (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) (expression_statement "iVar2 = iVar6 + 2;" (assignment_expression "iVar2 = iVar6 + 2" identifier = (binary_expression "iVar6 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }" else (compound_statement "{\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }" { (expression_statement "iVar8 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "iVar8 = (*(code *)PTR_strlen_00146390)()" identifier = (call_expression "(*(code *)PTR_strlen_00146390)()" (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 "()" ( )))) ;) (expression_statement "iVar2 = iVar8 + iVar6;" (assignment_expression "iVar2 = iVar8 + iVar6" identifier = (binary_expression "iVar8 + iVar6" identifier + identifier)) ;) }))) })) (goto_statement "goto LAB_000d9c30;" goto statement_identifier ;) })) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);" (assignment_expression "iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2)" identifier = (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7 + iVar6 + 2)" ( (binary_expression "iVar7 + iVar6 + 2" (binary_expression "iVar7 + iVar6" identifier + identifier) + number_literal) )))) ;) }))) (if_statement "if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }" { (expression_statement "(*(code *)PTR_strcpy_00146418)(iVar2,param_2);" (call_expression "(*(code *)PTR_strcpy_00146418)(iVar2,param_2)" (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 "(iVar2,param_2)" ( identifier , identifier ))) ;) })) (expression_statement "(*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));" (call_expression "(*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4))" (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 "(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4))" ( (binary_expression "iVar2 + iVar6" identifier + identifier) , (pointer_expression "*(undefined4 *)(*param_1 + iVar4)" * (cast_expression "(undefined4 *)(*param_1 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar4)" ( (binary_expression "*param_1 + iVar4" (pointer_expression "*param_1" * identifier) + identifier) )))) ))) ;) (if_statement "if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }" { (expression_statement "(*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);" (call_expression "(*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + iVar8 + iVar6,param_3)" ( (binary_expression "iVar2 + iVar8 + iVar6" (binary_expression "iVar2 + iVar8" identifier + identifier) + identifier) , identifier ))) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));" (call_expression "(*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4))" (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 "(*(undefined4 *)(*param_1 + iVar4))" ( (pointer_expression "*(undefined4 *)(*param_1 + iVar4)" * (cast_expression "(undefined4 *)(*param_1 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar4)" ( (binary_expression "*param_1 + iVar4" (pointer_expression "*param_1" * identifier) + identifier) )))) ))) ;) (expression_statement "iVar8 = *param_1;" (assignment_expression "iVar8 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = param_1[2];" (assignment_expression "iVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(iVar8 + iVar4) = iVar2;" (assignment_expression "*(int *)(iVar8 + iVar4) = iVar2" (pointer_expression "*(int *)(iVar8 + iVar4)" * (cast_expression "(int *)(iVar8 + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + iVar4)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) )))) = identifier) ;) }) while (parenthesized_expression "(iVar5 < iVar1)" ( (binary_expression "iVar5 < iVar1" identifier < identifier) )) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "STRINGLIST * strlist_prefix_suffix(STRINGLIST *sl,char *prefix,char *suffix)\n\n{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  char **ppcVar6;\n  int iVar7;\n  \n  if (sl == (STRINGLIST *)0x0) {\n    return (STRINGLIST *)0x0;\n  }\n  ppcVar6 = sl->list;\n  if (ppcVar6 == (char **)0x0) {\n    return sl;\n  }\n  iVar2 = sl->list_len;\n  if (iVar2 == 0) {\n    return sl;\n  }\n  if ((prefix == (char *)0x0) || (*prefix == '\0')) {\n    if (suffix == (char *)0x0) {\n      return sl;\n    }\n    iVar4 = 0;\n    if (*suffix == '\0') {\n      return sl;\n    }\nLAB_000d9d40:\n    iVar5 = 1;\n    if (suffix[1] == '\0') goto LAB_000d9c04;\n    if (suffix[2] == '\0') {\n      iVar5 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar5 = (*(code *)PTR_strlen_00146390)(suffix);\n    iVar7 = iVar5;\n    if (iVar4 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (prefix[1] == '\0') {\n      iVar4 = 1;\n      if ((suffix == (char *)0x0) || (*suffix == '\0')) {\n        iVar4 = 1;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (prefix[2] == '\0') {\n      if (suffix == (char *)0x0) {\n        iVar4 = 2;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar4 = 2;\n      if (*suffix == '\0') {\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar4 = (*(code *)PTR_strlen_00146390)(prefix);\n    if ((suffix != (char *)0x0) && (*suffix != '\0')) goto LAB_000d9d40;\n    iVar5 = 0;\n    iVar7 = iVar4;\n  }\n  if (iVar7 == 0) {\n    return sl;\n  }\nLAB_000d9c04:\n  if (0 < iVar2) {\n    iVar2 = 0;\n    do {\n      pcVar1 = ppcVar6[iVar2];\n      if (pcVar1 == (char *)0x0) {\n        iVar7 = 0;\n        iVar3 = iVar4;\nLAB_000d9c30:\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);\n      }\n      else {\n        if (*pcVar1 != '\0') {\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar7 = 0;\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);\n      }\n      if (iVar4 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1,prefix);\n      }\n      (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar4,sl->list[iVar2]);\n      if (iVar5 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix);\n      }\n      iVar3 = iVar2 + 1;\n      (*(code *)PTR_free_001464fc)(sl->list[iVar2]);\n      ppcVar6 = sl->list;\n      iVar7 = sl->list_len;\n      ppcVar6[iVar2] = pcVar1;\n      iVar2 = iVar3;\n    } while (iVar3 < iVar7);\n  }\n  return sl;\n}\n\n" (function_definition "STRINGLIST * strlist_prefix_suffix(STRINGLIST *sl,char *prefix,char *suffix)\n\n{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  char **ppcVar6;\n  int iVar7;\n  \n  if (sl == (STRINGLIST *)0x0) {\n    return (STRINGLIST *)0x0;\n  }\n  ppcVar6 = sl->list;\n  if (ppcVar6 == (char **)0x0) {\n    return sl;\n  }\n  iVar2 = sl->list_len;\n  if (iVar2 == 0) {\n    return sl;\n  }\n  if ((prefix == (char *)0x0) || (*prefix == '\0')) {\n    if (suffix == (char *)0x0) {\n      return sl;\n    }\n    iVar4 = 0;\n    if (*suffix == '\0') {\n      return sl;\n    }\nLAB_000d9d40:\n    iVar5 = 1;\n    if (suffix[1] == '\0') goto LAB_000d9c04;\n    if (suffix[2] == '\0') {\n      iVar5 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar5 = (*(code *)PTR_strlen_00146390)(suffix);\n    iVar7 = iVar5;\n    if (iVar4 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (prefix[1] == '\0') {\n      iVar4 = 1;\n      if ((suffix == (char *)0x0) || (*suffix == '\0')) {\n        iVar4 = 1;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (prefix[2] == '\0') {\n      if (suffix == (char *)0x0) {\n        iVar4 = 2;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar4 = 2;\n      if (*suffix == '\0') {\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar4 = (*(code *)PTR_strlen_00146390)(prefix);\n    if ((suffix != (char *)0x0) && (*suffix != '\0')) goto LAB_000d9d40;\n    iVar5 = 0;\n    iVar7 = iVar4;\n  }\n  if (iVar7 == 0) {\n    return sl;\n  }\nLAB_000d9c04:\n  if (0 < iVar2) {\n    iVar2 = 0;\n    do {\n      pcVar1 = ppcVar6[iVar2];\n      if (pcVar1 == (char *)0x0) {\n        iVar7 = 0;\n        iVar3 = iVar4;\nLAB_000d9c30:\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);\n      }\n      else {\n        if (*pcVar1 != '\0') {\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar7 = 0;\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);\n      }\n      if (iVar4 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1,prefix);\n      }\n      (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar4,sl->list[iVar2]);\n      if (iVar5 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix);\n      }\n      iVar3 = iVar2 + 1;\n      (*(code *)PTR_free_001464fc)(sl->list[iVar2]);\n      ppcVar6 = sl->list;\n      iVar7 = sl->list_len;\n      ppcVar6[iVar2] = pcVar1;\n      iVar2 = iVar3;\n    } while (iVar3 < iVar7);\n  }\n  return sl;\n}" type_identifier (pointer_declarator "* strlist_prefix_suffix(STRINGLIST *sl,char *prefix,char *suffix)" * (function_declarator "strlist_prefix_suffix(STRINGLIST *sl,char *prefix,char *suffix)" identifier (parameter_list "(STRINGLIST *sl,char *prefix,char *suffix)" ( (parameter_declaration "STRINGLIST *sl" type_identifier (pointer_declarator "*sl" * identifier)) , (parameter_declaration "char *prefix" primitive_type (pointer_declarator "*prefix" * identifier)) , (parameter_declaration "char *suffix" primitive_type (pointer_declarator "*suffix" * identifier)) )))) (compound_statement "{\n  char *pcVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  char **ppcVar6;\n  int iVar7;\n  \n  if (sl == (STRINGLIST *)0x0) {\n    return (STRINGLIST *)0x0;\n  }\n  ppcVar6 = sl->list;\n  if (ppcVar6 == (char **)0x0) {\n    return sl;\n  }\n  iVar2 = sl->list_len;\n  if (iVar2 == 0) {\n    return sl;\n  }\n  if ((prefix == (char *)0x0) || (*prefix == '\0')) {\n    if (suffix == (char *)0x0) {\n      return sl;\n    }\n    iVar4 = 0;\n    if (*suffix == '\0') {\n      return sl;\n    }\nLAB_000d9d40:\n    iVar5 = 1;\n    if (suffix[1] == '\0') goto LAB_000d9c04;\n    if (suffix[2] == '\0') {\n      iVar5 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar5 = (*(code *)PTR_strlen_00146390)(suffix);\n    iVar7 = iVar5;\n    if (iVar4 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (prefix[1] == '\0') {\n      iVar4 = 1;\n      if ((suffix == (char *)0x0) || (*suffix == '\0')) {\n        iVar4 = 1;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (prefix[2] == '\0') {\n      if (suffix == (char *)0x0) {\n        iVar4 = 2;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar4 = 2;\n      if (*suffix == '\0') {\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar4 = (*(code *)PTR_strlen_00146390)(prefix);\n    if ((suffix != (char *)0x0) && (*suffix != '\0')) goto LAB_000d9d40;\n    iVar5 = 0;\n    iVar7 = iVar4;\n  }\n  if (iVar7 == 0) {\n    return sl;\n  }\nLAB_000d9c04:\n  if (0 < iVar2) {\n    iVar2 = 0;\n    do {\n      pcVar1 = ppcVar6[iVar2];\n      if (pcVar1 == (char *)0x0) {\n        iVar7 = 0;\n        iVar3 = iVar4;\nLAB_000d9c30:\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);\n      }\n      else {\n        if (*pcVar1 != '\0') {\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar7 = 0;\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);\n      }\n      if (iVar4 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1,prefix);\n      }\n      (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar4,sl->list[iVar2]);\n      if (iVar5 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix);\n      }\n      iVar3 = iVar2 + 1;\n      (*(code *)PTR_free_001464fc)(sl->list[iVar2]);\n      ppcVar6 = sl->list;\n      iVar7 = sl->list_len;\n      ppcVar6[iVar2] = pcVar1;\n      iVar2 = iVar3;\n    } while (iVar3 < iVar7);\n  }\n  return sl;\n}" { (declaration "char *pcVar1;" primitive_type (pointer_declarator "*pcVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char **ppcVar6;" primitive_type (pointer_declarator "**ppcVar6" * (pointer_declarator "*ppcVar6" * identifier)) ;) (declaration "int iVar7;" primitive_type identifier ;) (if_statement "if (sl == (STRINGLIST *)0x0) {\n    return (STRINGLIST *)0x0;\n  }" if (parenthesized_expression "(sl == (STRINGLIST *)0x0)" ( (binary_expression "sl == (STRINGLIST *)0x0" identifier == (cast_expression "(STRINGLIST *)0x0" ( (type_descriptor "STRINGLIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (STRINGLIST *)0x0;\n  }" { (return_statement "return (STRINGLIST *)0x0;" return (cast_expression "(STRINGLIST *)0x0" ( (type_descriptor "STRINGLIST *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "ppcVar6 = sl->list;" (assignment_expression "ppcVar6 = sl->list" identifier = (field_expression "sl->list" identifier -> field_identifier)) ;) (if_statement "if (ppcVar6 == (char **)0x0) {\n    return sl;\n  }" if (parenthesized_expression "(ppcVar6 == (char **)0x0)" ( (binary_expression "ppcVar6 == (char **)0x0" identifier == (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    return sl;\n  }" { (return_statement "return sl;" return identifier ;) })) (expression_statement "iVar2 = sl->list_len;" (assignment_expression "iVar2 = sl->list_len" identifier = (field_expression "sl->list_len" identifier -> field_identifier)) ;) (if_statement "if (iVar2 == 0) {\n    return sl;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    return sl;\n  }" { (return_statement "return sl;" return identifier ;) })) (if_statement "if ((prefix == (char *)0x0) || (*prefix == '\0')) {\n    if (suffix == (char *)0x0) {\n      return sl;\n    }\n    iVar4 = 0;\n    if (*suffix == '\0') {\n      return sl;\n    }\nLAB_000d9d40:\n    iVar5 = 1;\n    if (suffix[1] == '\0') goto LAB_000d9c04;\n    if (suffix[2] == '\0') {\n      iVar5 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar5 = (*(code *)PTR_strlen_00146390)(suffix);\n    iVar7 = iVar5;\n    if (iVar4 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (prefix[1] == '\0') {\n      iVar4 = 1;\n      if ((suffix == (char *)0x0) || (*suffix == '\0')) {\n        iVar4 = 1;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (prefix[2] == '\0') {\n      if (suffix == (char *)0x0) {\n        iVar4 = 2;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar4 = 2;\n      if (*suffix == '\0') {\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar4 = (*(code *)PTR_strlen_00146390)(prefix);\n    if ((suffix != (char *)0x0) && (*suffix != '\0')) goto LAB_000d9d40;\n    iVar5 = 0;\n    iVar7 = iVar4;\n  }" if (parenthesized_expression "((prefix == (char *)0x0) || (*prefix == '\0'))" ( (binary_expression "(prefix == (char *)0x0) || (*prefix == '\0')" (parenthesized_expression "(prefix == (char *)0x0)" ( (binary_expression "prefix == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*prefix == '\0')" ( (binary_expression "*prefix == '\0'" (pointer_expression "*prefix" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    if (suffix == (char *)0x0) {\n      return sl;\n    }\n    iVar4 = 0;\n    if (*suffix == '\0') {\n      return sl;\n    }\nLAB_000d9d40:\n    iVar5 = 1;\n    if (suffix[1] == '\0') goto LAB_000d9c04;\n    if (suffix[2] == '\0') {\n      iVar5 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar5 = (*(code *)PTR_strlen_00146390)(suffix);\n    iVar7 = iVar5;\n    if (iVar4 != 0) goto LAB_000d9c04;\n  }" { (if_statement "if (suffix == (char *)0x0) {\n      return sl;\n    }" if (parenthesized_expression "(suffix == (char *)0x0)" ( (binary_expression "suffix == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return sl;\n    }" { (return_statement "return sl;" return identifier ;) })) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (*suffix == '\0') {\n      return sl;\n    }" if (parenthesized_expression "(*suffix == '\0')" ( (binary_expression "*suffix == '\0'" (pointer_expression "*suffix" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return sl;\n    }" { (return_statement "return sl;" return identifier ;) })) (labeled_statement "LAB_000d9d40:\n    iVar5 = 1;" statement_identifier : (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;)) (if_statement "if (suffix[1] == '\0') goto LAB_000d9c04;" if (parenthesized_expression "(suffix[1] == '\0')" ( (binary_expression "suffix[1] == '\0'" (subscript_expression "suffix[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;)) (if_statement "if (suffix[2] == '\0') {\n      iVar5 = 2;\n      goto LAB_000d9c04;\n    }" if (parenthesized_expression "(suffix[2] == '\0')" ( (binary_expression "suffix[2] == '\0'" (subscript_expression "suffix[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar5 = 2;\n      goto LAB_000d9c04;\n    }" { (expression_statement "iVar5 = 2;" (assignment_expression "iVar5 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;) })) (expression_statement "iVar5 = (*(code *)PTR_strlen_00146390)(suffix);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00146390)(suffix)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(suffix)" (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 "(suffix)" ( identifier )))) ;) (expression_statement "iVar7 = iVar5;" (assignment_expression "iVar7 = iVar5" identifier = identifier) ;) (if_statement "if (iVar4 != 0) goto LAB_000d9c04;" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;)) }) (else_clause "else {\n    if (prefix[1] == '\0') {\n      iVar4 = 1;\n      if ((suffix == (char *)0x0) || (*suffix == '\0')) {\n        iVar4 = 1;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (prefix[2] == '\0') {\n      if (suffix == (char *)0x0) {\n        iVar4 = 2;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar4 = 2;\n      if (*suffix == '\0') {\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar4 = (*(code *)PTR_strlen_00146390)(prefix);\n    if ((suffix != (char *)0x0) && (*suffix != '\0')) goto LAB_000d9d40;\n    iVar5 = 0;\n    iVar7 = iVar4;\n  }" else (compound_statement "{\n    if (prefix[1] == '\0') {\n      iVar4 = 1;\n      if ((suffix == (char *)0x0) || (*suffix == '\0')) {\n        iVar4 = 1;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (prefix[2] == '\0') {\n      if (suffix == (char *)0x0) {\n        iVar4 = 2;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar4 = 2;\n      if (*suffix == '\0') {\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar4 = (*(code *)PTR_strlen_00146390)(prefix);\n    if ((suffix != (char *)0x0) && (*suffix != '\0')) goto LAB_000d9d40;\n    iVar5 = 0;\n    iVar7 = iVar4;\n  }" { (if_statement "if (prefix[1] == '\0') {\n      iVar4 = 1;\n      if ((suffix == (char *)0x0) || (*suffix == '\0')) {\n        iVar4 = 1;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" if (parenthesized_expression "(prefix[1] == '\0')" ( (binary_expression "prefix[1] == '\0'" (subscript_expression "prefix[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar4 = 1;\n      if ((suffix == (char *)0x0) || (*suffix == '\0')) {\n        iVar4 = 1;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (if_statement "if ((suffix == (char *)0x0) || (*suffix == '\0')) {\n        iVar4 = 1;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }" if (parenthesized_expression "((suffix == (char *)0x0) || (*suffix == '\0'))" ( (binary_expression "(suffix == (char *)0x0) || (*suffix == '\0')" (parenthesized_expression "(suffix == (char *)0x0)" ( (binary_expression "suffix == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*suffix == '\0')" ( (binary_expression "*suffix == '\0'" (pointer_expression "*suffix" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        iVar4 = 1;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;) })) (goto_statement "goto LAB_000d9d40;" goto statement_identifier ;) })) (if_statement "if (prefix[2] == '\0') {\n      if (suffix == (char *)0x0) {\n        iVar4 = 2;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar4 = 2;\n      if (*suffix == '\0') {\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" if (parenthesized_expression "(prefix[2] == '\0')" ( (binary_expression "prefix[2] == '\0'" (subscript_expression "prefix[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (suffix == (char *)0x0) {\n        iVar4 = 2;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar4 = 2;\n      if (*suffix == '\0') {\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" { (if_statement "if (suffix == (char *)0x0) {\n        iVar4 = 2;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }" if (parenthesized_expression "(suffix == (char *)0x0)" ( (binary_expression "suffix == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar4 = 2;\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }" { (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;) })) (expression_statement "iVar4 = 2;" (assignment_expression "iVar4 = 2" identifier = number_literal) ;) (if_statement "if (*suffix == '\0') {\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }" if (parenthesized_expression "(*suffix == '\0')" ( (binary_expression "*suffix == '\0'" (pointer_expression "*suffix" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar5 = 0;\n        goto LAB_000d9c04;\n      }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;) })) (goto_statement "goto LAB_000d9d40;" goto statement_identifier ;) })) (expression_statement "iVar4 = (*(code *)PTR_strlen_00146390)(prefix);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_00146390)(prefix)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(prefix)" (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 "(prefix)" ( identifier )))) ;) (if_statement "if ((suffix != (char *)0x0) && (*suffix != '\0')) goto LAB_000d9d40;" if (parenthesized_expression "((suffix != (char *)0x0) && (*suffix != '\0'))" ( (binary_expression "(suffix != (char *)0x0) && (*suffix != '\0')" (parenthesized_expression "(suffix != (char *)0x0)" ( (binary_expression "suffix != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*suffix != '\0')" ( (binary_expression "*suffix != '\0'" (pointer_expression "*suffix" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_000d9d40;" goto statement_identifier ;)) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = iVar4;" (assignment_expression "iVar7 = iVar4" identifier = identifier) ;) }))) (if_statement "if (iVar7 == 0) {\n    return sl;\n  }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\n    return sl;\n  }" { (return_statement "return sl;" return identifier ;) })) (labeled_statement "LAB_000d9c04:\n  if (0 < iVar2) {\n    iVar2 = 0;\n    do {\n      pcVar1 = ppcVar6[iVar2];\n      if (pcVar1 == (char *)0x0) {\n        iVar7 = 0;\n        iVar3 = iVar4;\nLAB_000d9c30:\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);\n      }\n      else {\n        if (*pcVar1 != '\0') {\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar7 = 0;\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);\n      }\n      if (iVar4 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1,prefix);\n      }\n      (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar4,sl->list[iVar2]);\n      if (iVar5 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix);\n      }\n      iVar3 = iVar2 + 1;\n      (*(code *)PTR_free_001464fc)(sl->list[iVar2]);\n      ppcVar6 = sl->list;\n      iVar7 = sl->list_len;\n      ppcVar6[iVar2] = pcVar1;\n      iVar2 = iVar3;\n    } while (iVar3 < iVar7);\n  }" statement_identifier : (if_statement "if (0 < iVar2) {\n    iVar2 = 0;\n    do {\n      pcVar1 = ppcVar6[iVar2];\n      if (pcVar1 == (char *)0x0) {\n        iVar7 = 0;\n        iVar3 = iVar4;\nLAB_000d9c30:\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);\n      }\n      else {\n        if (*pcVar1 != '\0') {\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar7 = 0;\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);\n      }\n      if (iVar4 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1,prefix);\n      }\n      (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar4,sl->list[iVar2]);\n      if (iVar5 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix);\n      }\n      iVar3 = iVar2 + 1;\n      (*(code *)PTR_free_001464fc)(sl->list[iVar2]);\n      ppcVar6 = sl->list;\n      iVar7 = sl->list_len;\n      ppcVar6[iVar2] = pcVar1;\n      iVar2 = iVar3;\n    } while (iVar3 < iVar7);\n  }" if (parenthesized_expression "(0 < iVar2)" ( (binary_expression "0 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar2 = 0;\n    do {\n      pcVar1 = ppcVar6[iVar2];\n      if (pcVar1 == (char *)0x0) {\n        iVar7 = 0;\n        iVar3 = iVar4;\nLAB_000d9c30:\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);\n      }\n      else {\n        if (*pcVar1 != '\0') {\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar7 = 0;\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);\n      }\n      if (iVar4 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1,prefix);\n      }\n      (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar4,sl->list[iVar2]);\n      if (iVar5 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix);\n      }\n      iVar3 = iVar2 + 1;\n      (*(code *)PTR_free_001464fc)(sl->list[iVar2]);\n      ppcVar6 = sl->list;\n      iVar7 = sl->list_len;\n      ppcVar6[iVar2] = pcVar1;\n      iVar2 = iVar3;\n    } while (iVar3 < iVar7);\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (do_statement "do {\n      pcVar1 = ppcVar6[iVar2];\n      if (pcVar1 == (char *)0x0) {\n        iVar7 = 0;\n        iVar3 = iVar4;\nLAB_000d9c30:\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);\n      }\n      else {\n        if (*pcVar1 != '\0') {\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar7 = 0;\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);\n      }\n      if (iVar4 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1,prefix);\n      }\n      (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar4,sl->list[iVar2]);\n      if (iVar5 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix);\n      }\n      iVar3 = iVar2 + 1;\n      (*(code *)PTR_free_001464fc)(sl->list[iVar2]);\n      ppcVar6 = sl->list;\n      iVar7 = sl->list_len;\n      ppcVar6[iVar2] = pcVar1;\n      iVar2 = iVar3;\n    } while (iVar3 < iVar7);" do (compound_statement "{\n      pcVar1 = ppcVar6[iVar2];\n      if (pcVar1 == (char *)0x0) {\n        iVar7 = 0;\n        iVar3 = iVar4;\nLAB_000d9c30:\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);\n      }\n      else {\n        if (*pcVar1 != '\0') {\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar7 = 0;\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);\n      }\n      if (iVar4 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1,prefix);\n      }\n      (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar4,sl->list[iVar2]);\n      if (iVar5 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix);\n      }\n      iVar3 = iVar2 + 1;\n      (*(code *)PTR_free_001464fc)(sl->list[iVar2]);\n      ppcVar6 = sl->list;\n      iVar7 = sl->list_len;\n      ppcVar6[iVar2] = pcVar1;\n      iVar2 = iVar3;\n    }" { (expression_statement "pcVar1 = ppcVar6[iVar2];" (assignment_expression "pcVar1 = ppcVar6[iVar2]" identifier = (subscript_expression "ppcVar6[iVar2]" identifier [ identifier ])) ;) (if_statement "if (pcVar1 == (char *)0x0) {\n        iVar7 = 0;\n        iVar3 = iVar4;\nLAB_000d9c30:\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);\n      }\n      else {\n        if (*pcVar1 != '\0') {\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar7 = 0;\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);\n      }" if (parenthesized_expression "(pcVar1 == (char *)0x0)" ( (binary_expression "pcVar1 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar7 = 0;\n        iVar3 = iVar4;\nLAB_000d9c30:\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);\n      }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = iVar4;" (assignment_expression "iVar3 = iVar4" identifier = identifier) ;) (labeled_statement "LAB_000d9c30:\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);" statement_identifier : (expression_statement "pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2)" identifier = (cast_expression "(char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar3 + 2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5 + iVar3 + 2)" ( (binary_expression "iVar5 + iVar3 + 2" (binary_expression "iVar5 + iVar3" identifier + identifier) + number_literal) ))))) ;)) }) (else_clause "else {\n        if (*pcVar1 != '\0') {\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar7 = 0;\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);\n      }" else (compound_statement "{\n        if (*pcVar1 != '\0') {\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar7 = 0;\n        pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);\n      }" { (if_statement "if (*pcVar1 != '\0') {\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }" if (parenthesized_expression "(*pcVar1 != '\0')" ( (binary_expression "*pcVar1 != '\0'" (pointer_expression "*pcVar1" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar7 = 1;\n          iVar3 = iVar4 + 1;\n          if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }\n          goto LAB_000d9c30;\n        }" { (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) (expression_statement "iVar3 = iVar4 + 1;" (assignment_expression "iVar3 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar1[1] != '\0') {\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }" if (parenthesized_expression "(pcVar1[1] != '\0')" ( (binary_expression "pcVar1[1] != '\0'" (subscript_expression "pcVar1[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }\n          }" { (if_statement "if (pcVar1[2] == '\0') {\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }\n            else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }" if (parenthesized_expression "(pcVar1[2] == '\0')" ( (binary_expression "pcVar1[2] == '\0'" (subscript_expression "pcVar1[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              iVar7 = 2;\n              iVar3 = iVar4 + 2;\n            }" { (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" identifier = number_literal) ;) (expression_statement "iVar3 = iVar4 + 2;" (assignment_expression "iVar3 = iVar4 + 2" identifier = (binary_expression "iVar4 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }" else (compound_statement "{\n              iVar7 = (*(code *)PTR_strlen_00146390)();\n              iVar3 = iVar7 + iVar4;\n            }" { (expression_statement "iVar7 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "iVar7 = (*(code *)PTR_strlen_00146390)()" identifier = (call_expression "(*(code *)PTR_strlen_00146390)()" (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 "()" ( )))) ;) (expression_statement "iVar3 = iVar7 + iVar4;" (assignment_expression "iVar3 = iVar7 + iVar4" identifier = (binary_expression "iVar7 + iVar4" identifier + identifier)) ;) }))) })) (goto_statement "goto LAB_000d9c30;" goto statement_identifier ;) })) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2);" (assignment_expression "pcVar1 = (char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2)" identifier = (cast_expression "(char *)(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar5 + iVar4 + 2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5 + iVar4 + 2)" ( (binary_expression "iVar5 + iVar4 + 2" (binary_expression "iVar5 + iVar4" identifier + identifier) + number_literal) ))))) ;) }))) (if_statement "if (iVar4 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1,prefix);\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        (*(code *)PTR_strcpy_00146418)(pcVar1,prefix);\n      }" { (expression_statement "(*(code *)PTR_strcpy_00146418)(pcVar1,prefix);" (call_expression "(*(code *)PTR_strcpy_00146418)(pcVar1,prefix)" (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 "(pcVar1,prefix)" ( identifier , identifier ))) ;) })) (expression_statement "(*(code *)PTR_strcpy_00146418)(pcVar1 + iVar4,sl->list[iVar2]);" (call_expression "(*(code *)PTR_strcpy_00146418)(pcVar1 + iVar4,sl->list[iVar2])" (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 "(pcVar1 + iVar4,sl->list[iVar2])" ( (binary_expression "pcVar1 + iVar4" identifier + identifier) , (subscript_expression "sl->list[iVar2]" (field_expression "sl->list" identifier -> field_identifier) [ identifier ]) ))) ;) (if_statement "if (iVar5 != 0) {\n        (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix);\n      }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n        (*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix);\n      }" { (expression_statement "(*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix);" (call_expression "(*(code *)PTR_strcpy_00146418)(pcVar1 + iVar7 + iVar4,suffix)" (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 "(pcVar1 + iVar7 + iVar4,suffix)" ( (binary_expression "pcVar1 + iVar7 + iVar4" (binary_expression "pcVar1 + iVar7" identifier + identifier) + identifier) , identifier ))) ;) })) (expression_statement "iVar3 = iVar2 + 1;" (assignment_expression "iVar3 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_free_001464fc)(sl->list[iVar2]);" (call_expression "(*(code *)PTR_free_001464fc)(sl->list[iVar2])" (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 "(sl->list[iVar2])" ( (subscript_expression "sl->list[iVar2]" (field_expression "sl->list" identifier -> field_identifier) [ identifier ]) ))) ;) (expression_statement "ppcVar6 = sl->list;" (assignment_expression "ppcVar6 = sl->list" identifier = (field_expression "sl->list" identifier -> field_identifier)) ;) (expression_statement "iVar7 = sl->list_len;" (assignment_expression "iVar7 = sl->list_len" identifier = (field_expression "sl->list_len" identifier -> field_identifier)) ;) (expression_statement "ppcVar6[iVar2] = pcVar1;" (assignment_expression "ppcVar6[iVar2] = pcVar1" (subscript_expression "ppcVar6[iVar2]" identifier [ identifier ]) = identifier) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(iVar3 < iVar7)" ( (binary_expression "iVar3 < iVar7" identifier < identifier) )) ;) }))) (return_statement "return sl;" return identifier ;) })))
(translation_unit "int * strlist_prefix_suffix(int *param_1,char *param_2,char *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  if (param_1 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  iVar8 = *param_1;\n  if (iVar8 == 0) {\n    return param_1;\n  }\n  iVar4 = param_1[2];\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }\n  if (iVar5 == 0) {\n    return param_1;\n  }\nLAB_000d9c04:\n  iVar5 = 0;\n  if (0 < iVar4) {\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }\n  return param_1;\n}\n\n" (function_definition "int * strlist_prefix_suffix(int *param_1,char *param_2,char *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  if (param_1 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  iVar8 = *param_1;\n  if (iVar8 == 0) {\n    return param_1;\n  }\n  iVar4 = param_1[2];\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }\n  if (iVar5 == 0) {\n    return param_1;\n  }\nLAB_000d9c04:\n  iVar5 = 0;\n  if (0 < iVar4) {\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }\n  return param_1;\n}" primitive_type (pointer_declarator "* strlist_prefix_suffix(int *param_1,char *param_2,char *param_3)" * (function_declarator "strlist_prefix_suffix(int *param_1,char *param_2,char *param_3)" identifier (parameter_list "(int *param_1,char *param_2,char *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "char *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  if (param_1 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  iVar8 = *param_1;\n  if (iVar8 == 0) {\n    return param_1;\n  }\n  iVar4 = param_1[2];\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }\n  if (iVar5 == 0) {\n    return param_1;\n  }\nLAB_000d9c04:\n  iVar5 = 0;\n  if (0 < iVar4) {\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n    return (int *)0x0;\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return (int *)0x0;\n  }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar8 = *param_1;" (assignment_expression "iVar8 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar8 == 0) {\n    return param_1;\n  }" if (parenthesized_expression "(iVar8 == 0)" ( (binary_expression "iVar8 == 0" identifier == number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if (iVar4 == 0) {\n    return param_1;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }" if (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" ( (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" ( (binary_expression "param_2 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_2 == '\0')" ( (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }" { (if_statement "if (param_3 == (char *)0x0) {\n      return param_1;\n    }" if (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (*param_3 == '\0') {\n      return param_1;\n    }" if (parenthesized_expression "(*param_3 == '\0')" ( (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (labeled_statement "LAB_000d9d40:\n    iVar7 = 1;" statement_identifier : (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;)) (if_statement "if (param_3[1] == '\0') goto LAB_000d9c04;" if (parenthesized_expression "(param_3[1] == '\0')" ( (binary_expression "param_3[1] == '\0'" (subscript_expression "param_3[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;)) (if_statement "if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }" if (parenthesized_expression "(param_3[2] == '\0')" ( (binary_expression "param_3[2] == '\0'" (subscript_expression "param_3[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }" { (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" identifier = number_literal) ;) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;) })) (expression_statement "iVar7 = (*(code *)PTR_strlen_00146390)(param_3);" (assignment_expression "iVar7 = (*(code *)PTR_strlen_00146390)(param_3)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_3)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier )))) ;) (expression_statement "iVar5 = iVar7;" (assignment_expression "iVar5 = iVar7" identifier = identifier) ;) (if_statement "if (iVar6 != 0) goto LAB_000d9c04;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;)) }) (else_clause "else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }" else (compound_statement "{\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }" { (if_statement "if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" if (parenthesized_expression "(param_2[1] == '\0')" ( (binary_expression "param_2[1] == '\0'" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (if_statement "if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" if (parenthesized_expression "((param_3 == (char *)0x0) || (*param_3 == '\0'))" ( (binary_expression "(param_3 == (char *)0x0) || (*param_3 == '\0')" (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*param_3 == '\0')" ( (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" { (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;) })) (goto_statement "goto LAB_000d9d40;" goto statement_identifier ;) })) (if_statement "if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" if (parenthesized_expression "(param_2[2] == '\0')" ( (binary_expression "param_2[2] == '\0'" (subscript_expression "param_2[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" { (if_statement "if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" if (parenthesized_expression "(param_3 == (char *)0x0)" ( (binary_expression "param_3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" { (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;) })) (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" identifier = number_literal) ;) (if_statement "if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" if (parenthesized_expression "(*param_3 == '\0')" ( (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" * identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000d9c04;" goto statement_identifier ;) })) (goto_statement "goto LAB_000d9d40;" goto statement_identifier ;) })) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(param_2);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00146390)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" ( (pointer_expression "*(code *)PTR_strlen_00146390" * (cast_expression "(code *)PTR_strlen_00146390" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;" if (parenthesized_expression "((param_3 != (char *)0x0) && (*param_3 != '\0'))" ( (binary_expression "(param_3 != (char *)0x0) && (*param_3 != '\0')" (parenthesized_expression "(param_3 != (char *)0x0)" ( (binary_expression "param_3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_3 != '\0')" ( (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_000d9d40;" goto statement_identifier ;)) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) }))) (if_statement "if (iVar5 == 0) {\n    return param_1;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (labeled_statement "LAB_000d9c04:\n  iVar5 = 0;" statement_identifier : (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;)) (if_statement "if (0 < iVar4) {\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }" { (do_statement "do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);" do (compound_statement "{\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    }" { (expression_statement "iVar4 = iVar5 * 4;" (assignment_expression "iVar4 = iVar5 * 4" identifier = (binary_expression "iVar5 * 4" identifier * number_literal)) ;) (expression_statement "pcVar3 = *(char **)(iVar8 + iVar4);" (assignment_expression "pcVar3 = *(char **)(iVar8 + iVar4)" identifier = (pointer_expression "*(char **)(iVar8 + iVar4)" * (cast_expression "(char **)(iVar8 + iVar4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar8 + iVar4)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) ))))) ;) (if_statement "if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = iVar6;" (assignment_expression "iVar2 = iVar6" identifier = identifier) ;) (labeled_statement "LAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);" statement_identifier : (expression_statement "iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);" (assignment_expression "iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2)" identifier = (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7 + iVar2 + 2)" ( (binary_expression "iVar7 + iVar2 + 2" (binary_expression "iVar7 + iVar2" identifier + identifier) + number_literal) )))) ;)) }) (else_clause "else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }" else (compound_statement "{\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }" { (if_statement "if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }" if (parenthesized_expression "(*pcVar3 != '\0')" ( (binary_expression "*pcVar3 != '\0'" (pointer_expression "*pcVar3" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }" { (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" identifier = number_literal) ;) (expression_statement "iVar2 = iVar6 + 1;" (assignment_expression "iVar2 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (if_statement "if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }" if (parenthesized_expression "(pcVar3[1] != '\0')" ( (binary_expression "pcVar3[1] != '\0'" (subscript_expression "pcVar3[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }" { (if_statement "if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }" if (parenthesized_expression "(pcVar3[2] == '\0')" ( (binary_expression "pcVar3[2] == '\0'" (subscript_expression "pcVar3[2]" identifier [ number_literal ]) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }" { (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) (expression_statement "iVar2 = iVar6 + 2;" (assignment_expression "iVar2 = iVar6 + 2" identifier = (binary_expression "iVar6 + 2" identifier + number_literal)) ;) }) (else_clause "else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }" else (compound_statement "{\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }" { (expression_statement "iVar8 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "iVar8 = (*(code *)PTR_strlen_00146390)()" identifier = (call_expression "(*(code *)PTR_strlen_00146390)()" (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 "()" ( )))) ;) (expression_statement "iVar2 = iVar8 + iVar6;" (assignment_expression "iVar2 = iVar8 + iVar6" identifier = (binary_expression "iVar8 + iVar6" identifier + identifier)) ;) }))) })) (goto_statement "goto LAB_000d9c30;" goto statement_identifier ;) })) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);" (assignment_expression "iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2)" identifier = (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" ( (pointer_expression "*(code *)PTR_xmalloc_001445b0" * (cast_expression "(code *)PTR_xmalloc_001445b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7 + iVar6 + 2)" ( (binary_expression "iVar7 + iVar6 + 2" (binary_expression "iVar7 + iVar6" identifier + identifier) + number_literal) )))) ;) }))) (if_statement "if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }" { (expression_statement "(*(code *)PTR_strcpy_00146418)(iVar2,param_2);" (call_expression "(*(code *)PTR_strcpy_00146418)(iVar2,param_2)" (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 "(iVar2,param_2)" ( identifier , identifier ))) ;) })) (expression_statement "(*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));" (call_expression "(*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4))" (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 "(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4))" ( (binary_expression "iVar2 + iVar6" identifier + identifier) , (pointer_expression "*(undefined4 *)(*param_1 + iVar4)" * (cast_expression "(undefined4 *)(*param_1 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar4)" ( (binary_expression "*param_1 + iVar4" (pointer_expression "*param_1" * identifier) + identifier) )))) ))) ;) (if_statement "if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }" { (expression_statement "(*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);" (call_expression "(*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" ( (pointer_expression "*(code *)PTR_strcpy_00146418" * (cast_expression "(code *)PTR_strcpy_00146418" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2 + iVar8 + iVar6,param_3)" ( (binary_expression "iVar2 + iVar8 + iVar6" (binary_expression "iVar2 + iVar8" identifier + identifier) + identifier) , identifier ))) ;) })) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));" (call_expression "(*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4))" (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 "(*(undefined4 *)(*param_1 + iVar4))" ( (pointer_expression "*(undefined4 *)(*param_1 + iVar4)" * (cast_expression "(undefined4 *)(*param_1 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + iVar4)" ( (binary_expression "*param_1 + iVar4" (pointer_expression "*param_1" * identifier) + identifier) )))) ))) ;) (expression_statement "iVar8 = *param_1;" (assignment_expression "iVar8 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "iVar1 = param_1[2];" (assignment_expression "iVar1 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(iVar8 + iVar4) = iVar2;" (assignment_expression "*(int *)(iVar8 + iVar4) = iVar2" (pointer_expression "*(int *)(iVar8 + iVar4)" * (cast_expression "(int *)(iVar8 + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + iVar4)" ( (binary_expression "iVar8 + iVar4" identifier + identifier) )))) = identifier) ;) }) while (parenthesized_expression "(iVar5 < iVar1)" ( (binary_expression "iVar5 < iVar1" identifier < identifier) )) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (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) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) })) (goto_statement goto statement_identifier ;) })) (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 ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 ( (binary_expression IDENT + IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + IDENT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (return_statement return IDENT ;) })))
(function_definition "int * strlist_prefix_suffix(int *param_1,char *param_2,char *param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  if (param_1 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  iVar8 = *param_1;\n  if (iVar8 == 0) {\n    return param_1;\n  }\n  iVar4 = param_1[2];\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }\n  if (iVar5 == 0) {\n    return param_1;\n  }\nLAB_000d9c04:\n  iVar5 = 0;\n  if (0 < iVar4) {\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }\n  return param_1;\n}" (primitive_type "int") (pointer_declarator "* strlist_prefix_suffix(int *param_1,char *param_2,char *param_3)" (* "*") (function_declarator "strlist_prefix_suffix(int *param_1,char *param_2,char *param_3)" (identifier "strlist_prefix_suffix") (parameter_list "(int *param_1,char *param_2,char *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "char *param_3" (primitive_type "char") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  if (param_1 == (int *)0x0) {\n    return (int *)0x0;\n  }\n  iVar8 = *param_1;\n  if (iVar8 == 0) {\n    return param_1;\n  }\n  iVar4 = param_1[2];\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }\n  if (iVar5 == 0) {\n    return param_1;\n  }\nLAB_000d9c04:\n  iVar5 = 0;\n  if (0 < iVar4) {\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n    return (int *)0x0;\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return (int *)0x0;\n  }" ({ "{") (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "iVar8 = *param_1;" (assignment_expression "iVar8 = *param_1" (identifier "iVar8") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar8 == 0) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(iVar8 == 0)" (( "(") (binary_expression "iVar8 == 0" (identifier "iVar8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar4 = param_1[2];" (assignment_expression "iVar4 = param_1[2]" (identifier "iVar4") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if (iVar4 == 0) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (if_statement "if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }\n  else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }" (if "if") (parenthesized_expression "((param_2 == (char *)0x0) || (*param_2 == '\0'))" (( "(") (binary_expression "(param_2 == (char *)0x0) || (*param_2 == '\0')" (parenthesized_expression "(param_2 == (char *)0x0)" (( "(") (binary_expression "param_2 == (char *)0x0" (identifier "param_2") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*param_2 == '\0')" (( "(") (binary_expression "*param_2 == '\0'" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    if (param_3 == (char *)0x0) {\n      return param_1;\n    }\n    iVar6 = 0;\n    if (*param_3 == '\0') {\n      return param_1;\n    }\nLAB_000d9d40:\n    iVar7 = 1;\n    if (param_3[1] == '\0') goto LAB_000d9c04;\n    if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }\n    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);\n    iVar5 = iVar7;\n    if (iVar6 != 0) goto LAB_000d9c04;\n  }" ({ "{") (if_statement "if (param_3 == (char *)0x0) {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(param_3 == (char *)0x0)" (( "(") (binary_expression "param_3 == (char *)0x0" (identifier "param_3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (*param_3 == '\0') {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(*param_3 == '\0')" (( "(") (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (labeled_statement "LAB_000d9d40:\n    iVar7 = 1;" (statement_identifier "LAB_000d9d40") (: ":") (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" (identifier "iVar7") (= "=") (number_literal "1")) (; ";"))) (if_statement "if (param_3[1] == '\0') goto LAB_000d9c04;" (if "if") (parenthesized_expression "(param_3[1] == '\0')" (( "(") (binary_expression "param_3[1] == '\0'" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000d9c04;" (goto "goto") (statement_identifier "LAB_000d9c04") (; ";"))) (if_statement "if (param_3[2] == '\0') {\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }" (if "if") (parenthesized_expression "(param_3[2] == '\0')" (( "(") (binary_expression "param_3[2] == '\0'" (subscript_expression "param_3[2]" (identifier "param_3") ([ "[") (number_literal "2") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      iVar7 = 2;\n      goto LAB_000d9c04;\n    }" ({ "{") (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" (identifier "iVar7") (= "=") (number_literal "2")) (; ";")) (goto_statement "goto LAB_000d9c04;" (goto "goto") (statement_identifier "LAB_000d9c04") (; ";")) (} "}"))) (expression_statement "iVar7 = (*(code *)PTR_strlen_00146390)(param_3);" (assignment_expression "iVar7 = (*(code *)PTR_strlen_00146390)(param_3)" (identifier "iVar7") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(param_3)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "(param_3)" (( "(") (identifier "param_3") () ")")))) (; ";")) (expression_statement "iVar5 = iVar7;" (assignment_expression "iVar5 = iVar7" (identifier "iVar5") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar6 != 0) goto LAB_000d9c04;" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000d9c04;" (goto "goto") (statement_identifier "LAB_000d9c04") (; ";"))) (} "}")) (else_clause "else {\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }" (else "else") (compound_statement "{\n    if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }\n    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);\n    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;\n    iVar7 = 0;\n    iVar5 = iVar6;\n  }" ({ "{") (if_statement "if (param_2[1] == '\0') {\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" (if "if") (parenthesized_expression "(param_2[1] == '\0')" (( "(") (binary_expression "param_2[1] == '\0'" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      iVar6 = 1;\n      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" ({ "{") (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" (identifier "iVar6") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" (if "if") (parenthesized_expression "((param_3 == (char *)0x0) || (*param_3 == '\0'))" (( "(") (binary_expression "(param_3 == (char *)0x0) || (*param_3 == '\0')" (parenthesized_expression "(param_3 == (char *)0x0)" (( "(") (binary_expression "param_3 == (char *)0x0" (identifier "param_3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*param_3 == '\0')" (( "(") (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        iVar6 = 1;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" ({ "{") (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" (identifier "iVar6") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000d9c04;" (goto "goto") (statement_identifier "LAB_000d9c04") (; ";")) (} "}"))) (goto_statement "goto LAB_000d9d40;" (goto "goto") (statement_identifier "LAB_000d9d40") (; ";")) (} "}"))) (if_statement "if (param_2[2] == '\0') {\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" (if "if") (parenthesized_expression "(param_2[2] == '\0')" (( "(") (binary_expression "param_2[2] == '\0'" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      iVar6 = 2;\n      if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }\n      goto LAB_000d9d40;\n    }" ({ "{") (if_statement "if (param_3 == (char *)0x0) {\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" (if "if") (parenthesized_expression "(param_3 == (char *)0x0)" (( "(") (binary_expression "param_3 == (char *)0x0" (identifier "param_3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar6 = 2;\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" ({ "{") (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" (identifier "iVar6") (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000d9c04;" (goto "goto") (statement_identifier "LAB_000d9c04") (; ";")) (} "}"))) (expression_statement "iVar6 = 2;" (assignment_expression "iVar6 = 2" (identifier "iVar6") (= "=") (number_literal "2")) (; ";")) (if_statement "if (*param_3 == '\0') {\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" (if "if") (parenthesized_expression "(*param_3 == '\0')" (( "(") (binary_expression "*param_3 == '\0'" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar7 = 0;\n        goto LAB_000d9c04;\n      }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000d9c04;" (goto "goto") (statement_identifier "LAB_000d9c04") (; ";")) (} "}"))) (goto_statement "goto LAB_000d9d40;" (goto "goto") (statement_identifier "LAB_000d9d40") (; ";")) (} "}"))) (expression_statement "iVar6 = (*(code *)PTR_strlen_00146390)(param_2);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_00146390)(param_2)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00146390)" (( "(") (pointer_expression "*(code *)PTR_strlen_00146390" (* "*") (cast_expression "(code *)PTR_strlen_00146390" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00146390"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;" (if "if") (parenthesized_expression "((param_3 != (char *)0x0) && (*param_3 != '\0'))" (( "(") (binary_expression "(param_3 != (char *)0x0) && (*param_3 != '\0')" (parenthesized_expression "(param_3 != (char *)0x0)" (( "(") (binary_expression "param_3 != (char *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*param_3 != '\0')" (( "(") (binary_expression "*param_3 != '\0'" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (goto_statement "goto LAB_000d9d40;" (goto "goto") (statement_identifier "LAB_000d9d40") (; ";"))) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" (identifier "iVar5") (= "=") (identifier "iVar6")) (; ";")) (} "}")))) (if_statement "if (iVar5 == 0) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (labeled_statement "LAB_000d9c04:\n  iVar5 = 0;" (statement_identifier "LAB_000d9c04") (: ":") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";"))) (if_statement "if (0 < iVar4) {\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }" (if "if") (parenthesized_expression "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n    do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);\n  }" ({ "{") (do_statement "do {\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    } while (iVar5 < iVar1);" (do "do") (compound_statement "{\n      iVar4 = iVar5 * 4;\n      pcVar3 = *(char **)(iVar8 + iVar4);\n      if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }\n      if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }\n      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));\n      if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }\n      iVar5 = iVar5 + 1;\n      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));\n      iVar8 = *param_1;\n      iVar1 = param_1[2];\n      *(int *)(iVar8 + iVar4) = iVar2;\n    }" ({ "{") (expression_statement "iVar4 = iVar5 * 4;" (assignment_expression "iVar4 = iVar5 * 4" (identifier "iVar4") (= "=") (binary_expression "iVar5 * 4" (identifier "iVar5") (* "*") (number_literal "4"))) (; ";")) (expression_statement "pcVar3 = *(char **)(iVar8 + iVar4);" (assignment_expression "pcVar3 = *(char **)(iVar8 + iVar4)" (identifier "pcVar3") (= "=") (pointer_expression "*(char **)(iVar8 + iVar4)" (* "*") (cast_expression "(char **)(iVar8 + iVar4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar8 + iVar4)" (( "(") (binary_expression "iVar8 + iVar4" (identifier "iVar8") (+ "+") (identifier "iVar4")) () ")"))))) (; ";")) (if_statement "if (pcVar3 == (char *)0x0) {\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }\n      else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }" (if "if") (parenthesized_expression "(pcVar3 == (char *)0x0)" (( "(") (binary_expression "pcVar3 == (char *)0x0" (identifier "pcVar3") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar8 = 0;\n        iVar2 = iVar6;\nLAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);\n      }" ({ "{") (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = iVar6;" (assignment_expression "iVar2 = iVar6" (identifier "iVar2") (= "=") (identifier "iVar6")) (; ";")) (labeled_statement "LAB_000d9c30:\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);" (statement_identifier "LAB_000d9c30") (: ":") (expression_statement "iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);" (assignment_expression "iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_001445b0" (* "*") (cast_expression "(code *)PTR_xmalloc_001445b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_001445b0"))) () ")")) (argument_list "(iVar7 + iVar2 + 2)" (( "(") (binary_expression "iVar7 + iVar2 + 2" (binary_expression "iVar7 + iVar2" (identifier "iVar7") (+ "+") (identifier "iVar2")) (+ "+") (number_literal "2")) () ")")))) (; ";"))) (} "}")) (else_clause "else {\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }" (else "else") (compound_statement "{\n        if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }\n        iVar8 = 0;\n        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);\n      }" ({ "{") (if_statement "if (*pcVar3 != '\0') {\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }" (if "if") (parenthesized_expression "(*pcVar3 != '\0')" (( "(") (binary_expression "*pcVar3 != '\0'" (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n          iVar8 = 1;\n          iVar2 = iVar6 + 1;\n          if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }\n          goto LAB_000d9c30;\n        }" ({ "{") (expression_statement "iVar8 = 1;" (assignment_expression "iVar8 = 1" (identifier "iVar8") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar2 = iVar6 + 1;" (assignment_expression "iVar2 = iVar6 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (pcVar3[1] != '\0') {\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }" (if "if") (parenthesized_expression "(pcVar3[1] != '\0')" (( "(") (binary_expression "pcVar3[1] != '\0'" (subscript_expression "pcVar3[1]" (identifier "pcVar3") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n            if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }\n          }" ({ "{") (if_statement "if (pcVar3[2] == '\0') {\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }\n            else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }" (if "if") (parenthesized_expression "(pcVar3[2] == '\0')" (( "(") (binary_expression "pcVar3[2] == '\0'" (subscript_expression "pcVar3[2]" (identifier "pcVar3") ([ "[") (number_literal "2") (] "]")) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n              iVar8 = 2;\n              iVar2 = iVar6 + 2;\n            }" ({ "{") (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" (identifier "iVar8") (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar2 = iVar6 + 2;" (assignment_expression "iVar2 = iVar6 + 2" (identifier "iVar2") (= "=") (binary_expression "iVar6 + 2" (identifier "iVar6") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else {\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }" (else "else") (compound_statement "{\n              iVar8 = (*(code *)PTR_strlen_00146390)();\n              iVar2 = iVar8 + iVar6;\n            }" ({ "{") (expression_statement "iVar8 = (*(code *)PTR_strlen_00146390)();" (assignment_expression "iVar8 = (*(code *)PTR_strlen_00146390)()" (identifier "iVar8") (= "=") (call_expression "(*(code *)PTR_strlen_00146390)()" (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 "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = iVar8 + iVar6;" (assignment_expression "iVar2 = iVar8 + iVar6" (identifier "iVar2") (= "=") (binary_expression "iVar8 + iVar6" (identifier "iVar8") (+ "+") (identifier "iVar6"))) (; ";")) (} "}")))) (} "}"))) (goto_statement "goto LAB_000d9c30;" (goto "goto") (statement_identifier "LAB_000d9c30") (; ";")) (} "}"))) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);" (assignment_expression "iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2)" (parenthesized_expression "(*(code *)PTR_xmalloc_001445b0)" (( "(") (pointer_expression "*(code *)PTR_xmalloc_001445b0" (* "*") (cast_expression "(code *)PTR_xmalloc_001445b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_xmalloc_001445b0"))) () ")")) (argument_list "(iVar7 + iVar6 + 2)" (( "(") (binary_expression "iVar7 + iVar6 + 2" (binary_expression "iVar7 + iVar6" (identifier "iVar7") (+ "+") (identifier "iVar6")) (+ "+") (number_literal "2")) () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar6 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);\n      }" ({ "{") (expression_statement "(*(code *)PTR_strcpy_00146418)(iVar2,param_2);" (call_expression "(*(code *)PTR_strcpy_00146418)(iVar2,param_2)" (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 "(iVar2,param_2)" (( "(") (identifier "iVar2") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));" (call_expression "(*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4))" (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 "(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4))" (( "(") (binary_expression "iVar2 + iVar6" (identifier "iVar2") (+ "+") (identifier "iVar6")) (, ",") (pointer_expression "*(undefined4 *)(*param_1 + iVar4)" (* "*") (cast_expression "(undefined4 *)(*param_1 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar4)" (( "(") (binary_expression "*param_1 + iVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar4")) () ")")))) () ")"))) (; ";")) (if_statement "if (iVar7 != 0) {\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);\n      }" ({ "{") (expression_statement "(*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);" (call_expression "(*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3)" (parenthesized_expression "(*(code *)PTR_strcpy_00146418)" (( "(") (pointer_expression "*(code *)PTR_strcpy_00146418" (* "*") (cast_expression "(code *)PTR_strcpy_00146418" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_00146418"))) () ")")) (argument_list "(iVar2 + iVar8 + iVar6,param_3)" (( "(") (binary_expression "iVar2 + iVar8 + iVar6" (binary_expression "iVar2 + iVar8" (identifier "iVar2") (+ "+") (identifier "iVar8")) (+ "+") (identifier "iVar6")) (, ",") (identifier "param_3") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));" (call_expression "(*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4))" (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 "(*(undefined4 *)(*param_1 + iVar4))" (( "(") (pointer_expression "*(undefined4 *)(*param_1 + iVar4)" (* "*") (cast_expression "(undefined4 *)(*param_1 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + iVar4)" (( "(") (binary_expression "*param_1 + iVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (identifier "iVar4")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar8 = *param_1;" (assignment_expression "iVar8 = *param_1" (identifier "iVar8") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "iVar1 = param_1[2];" (assignment_expression "iVar1 = param_1[2]" (identifier "iVar1") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "*(int *)(iVar8 + iVar4) = iVar2;" (assignment_expression "*(int *)(iVar8 + iVar4) = iVar2" (pointer_expression "*(int *)(iVar8 + iVar4)" (* "*") (cast_expression "(int *)(iVar8 + iVar4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + iVar4)" (( "(") (binary_expression "iVar8 + iVar4" (identifier "iVar8") (+ "+") (identifier "iVar4")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 < iVar1)" (( "(") (binary_expression "iVar5 < iVar1" (identifier "iVar5") (< "<") (identifier "iVar1")) () ")")) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

type_1 * function_1(type_1 *var_1,char *var_4,char *var_5)

{
  char *var_8;
  int var_3;
  int var_10;
  int var_6;
  int var_9;
  char **var_2;
  int var_7;
  
  if (var_1 == (type_1 *)0x0) {
    return (type_1 *)0x0;
  }
  var_2 = var_1->list;
  if (var_2 == (char **)0x0) {
    return var_1;
  }
  var_3 = var_1->list_len;
  if (var_3 == 0) {
    return var_1;
  }
  if ((var_4 == (char *)0x0) || (*var_4 == '\0')) {
    if (var_5 == (char *)0x0) {
      return var_1;
    }
    var_6 = 0;
    if (*var_5 == '\0') {
      return var_1;
    }
LAB_000d9d40:
    var_9 = 1;
    if (var_5[1] == '\0') goto LAB_000d9c04;
    if (var_5[2] == '\0') {
      var_9 = 2;
      goto LAB_000d9c04;
    }
    var_9 = (*(type_2 *)PTR_strlen_00146390)(var_5);
    var_7 = var_9;
    if (var_6 != 0) goto LAB_000d9c04;
  }
  else {
    if (var_4[1] == '\0') {
      var_6 = 1;
      if ((var_5 == (char *)0x0) || (*var_5 == '\0')) {
        var_6 = 1;
        var_9 = 0;
        goto LAB_000d9c04;
      }
      goto LAB_000d9d40;
    }
    if (var_4[2] == '\0') {
      if (var_5 == (char *)0x0) {
        var_6 = 2;
        var_9 = 0;
        goto LAB_000d9c04;
      }
      var_6 = 2;
      if (*var_5 == '\0') {
        var_9 = 0;
        goto LAB_000d9c04;
      }
      goto LAB_000d9d40;
    }
    var_6 = (*(type_2 *)PTR_strlen_00146390)(var_4);
    if ((var_5 != (char *)0x0) && (*var_5 != '\0')) goto LAB_000d9d40;
    var_9 = 0;
    var_7 = var_6;
  }
  if (var_7 == 0) {
    return var_1;
  }
LAB_000d9c04:
  if (0 < var_3) {
    var_3 = 0;
    do {
      var_8 = var_2[var_3];
      if (var_8 == (char *)0x0) {
        var_7 = 0;
        var_10 = var_6;
LAB_000d9c30:
        var_8 = (char *)(*(type_2 *)PTR_xmalloc_001445b0)(var_9 + var_10 + 2);
      }
      else {
        if (*var_8 != '\0') {
          var_7 = 1;
          var_10 = var_6 + 1;
          if (var_8[1] != '\0') {
            if (var_8[2] == '\0') {
              var_7 = 2;
              var_10 = var_6 + 2;
            }
            else {
              var_7 = (*(type_2 *)PTR_strlen_00146390)();
              var_10 = var_7 + var_6;
            }
          }
          goto LAB_000d9c30;
        }
        var_7 = 0;
        var_8 = (char *)(*(type_2 *)PTR_xmalloc_001445b0)(var_9 + var_6 + 2);
      }
      if (var_6 != 0) {
        (*(type_2 *)PTR_strcpy_00146418)(var_8,var_4);
      }
      (*(type_2 *)PTR_strcpy_00146418)(var_8 + var_6,var_1->list[var_3]);
      if (var_9 != 0) {
        (*(type_2 *)PTR_strcpy_00146418)(var_8 + var_7 + var_6,var_5);
      }
      var_10 = var_3 + 1;
      (*(type_2 *)PTR_free_001464fc)(var_1->list[var_3]);
      var_2 = var_1->list;
      var_7 = var_1->list_len;
      var_2[var_3] = var_8;
      var_3 = var_10;
    } while (var_10 < var_7);
  }
  return var_1;
}


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

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

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  if (param_1 == (int *)0x0) {
    return (int *)0x0;
  }
  iVar8 = *param_1;
  if (iVar8 == 0) {
    return param_1;
  }
  iVar4 = param_1[2];
  if (iVar4 == 0) {
    return param_1;
  }
  if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {
    if (param_3 == (char *)0x0) {
      return param_1;
    }
    iVar6 = 0;
    if (*param_3 == '\0') {
      return param_1;
    }
LAB_000d9d40:
    iVar7 = 1;
    if (param_3[1] == '\0') goto LAB_000d9c04;
    if (param_3[2] == '\0') {
      iVar7 = 2;
      goto LAB_000d9c04;
    }
    iVar7 = (*(code *)PTR_strlen_00146390)(param_3);
    iVar5 = iVar7;
    if (iVar6 != 0) goto LAB_000d9c04;
  }
  else {
    if (param_2[1] == '\0') {
      iVar6 = 1;
      if ((param_3 == (char *)0x0) || (*param_3 == '\0')) {
        iVar6 = 1;
        iVar7 = 0;
        goto LAB_000d9c04;
      }
      goto LAB_000d9d40;
    }
    if (param_2[2] == '\0') {
      if (param_3 == (char *)0x0) {
        iVar6 = 2;
        iVar7 = 0;
        goto LAB_000d9c04;
      }
      iVar6 = 2;
      if (*param_3 == '\0') {
        iVar7 = 0;
        goto LAB_000d9c04;
      }
      goto LAB_000d9d40;
    }
    iVar6 = (*(code *)PTR_strlen_00146390)(param_2);
    if ((param_3 != (char *)0x0) && (*param_3 != '\0')) goto LAB_000d9d40;
    iVar7 = 0;
    iVar5 = iVar6;
  }
  if (iVar5 == 0) {
    return param_1;
  }
LAB_000d9c04:
  iVar5 = 0;
  if (0 < iVar4) {
    do {
      iVar4 = iVar5 * 4;
      pcVar3 = *(char **)(iVar8 + iVar4);
      if (pcVar3 == (char *)0x0) {
        iVar8 = 0;
        iVar2 = iVar6;
LAB_000d9c30:
        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar2 + 2);
      }
      else {
        if (*pcVar3 != '\0') {
          iVar8 = 1;
          iVar2 = iVar6 + 1;
          if (pcVar3[1] != '\0') {
            if (pcVar3[2] == '\0') {
              iVar8 = 2;
              iVar2 = iVar6 + 2;
            }
            else {
              iVar8 = (*(code *)PTR_strlen_00146390)();
              iVar2 = iVar8 + iVar6;
            }
          }
          goto LAB_000d9c30;
        }
        iVar8 = 0;
        iVar2 = (*(code *)PTR_xmalloc_001445b0)(iVar7 + iVar6 + 2);
      }
      if (iVar6 != 0) {
        (*(code *)PTR_strcpy_00146418)(iVar2,param_2);
      }
      (*(code *)PTR_strcpy_00146418)(iVar2 + iVar6,*(undefined4 *)(*param_1 + iVar4));
      if (iVar7 != 0) {
        (*(code *)PTR_strcpy_00146418)(iVar2 + iVar8 + iVar6,param_3);
      }
      iVar5 = iVar5 + 1;
      (*(code *)PTR_free_001464fc)(*(undefined4 *)(*param_1 + iVar4));
      iVar8 = *param_1;
      iVar1 = param_1[2];
      *(int *)(iVar8 + iVar4) = iVar2;
    } while (iVar5 < iVar1);
  }
  return param_1;
}

