
char * enum_settings_next(void *handle,char *buffer,int buflen)

{
  char cVar1;
  undefined *puVar2;
  int iVar3;
  char *pcVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  char *pcVar8;
  char *pcVar9;
  char *pcVar10;
  int iVar11;
  undefined *puVar12;
  stat st;
  
  puVar12 = PTR___stack_chk_guard_000a7ec8;
  iVar3 = *(int *)PTR___stack_chk_guard_000a7ec8;
  pcVar4 = make_filename(4,(char *)0x0);
  iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar4);
  iVar7 = iVar5;
  do {
    iVar6 = (*(code *)PTR_readdir64_000a7b6c)(handle);
    if (iVar6 == 0) {
      (*(code *)PTR_safefree_000a70d4)(pcVar4);
      buffer = (char *)0x0;
      goto LAB_00070268;
    }
    pcVar10 = (char *)(iVar6 + 0x13);
    iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar10);
    iVar11 = iVar5 + iVar6 + 1;
    if (iVar7 < iVar11) {
      pcVar4 = (char *)(*(code *)PTR_saferealloc_000a71a4)(pcVar4,iVar5 + iVar6 + 2,1);
      iVar7 = iVar11;
    }
    puVar2 = PTR_strncpy_000a7cfc;
    pcVar4[iVar5] = '/';
    (*(code *)puVar2)(pcVar4 + iVar5 + 1,pcVar10,iVar11 - (iVar5 + 1));
    pcVar4[iVar11] = '\0';
    iVar6 = (*(code *)PTR___xstat64_000a78fc)(3,pcVar4,&st);
  } while ((iVar6 < 0) || ((st.st_mode & 0xf000) != 0x8000));
  iVar7 = (*(code *)PTR_strlen_000a7ddc)(pcVar10);
  pcVar8 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar7 + 1,1);
  cVar1 = *pcVar10;
  pcVar9 = pcVar8;
  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {
    if (((cVar1 == '%') && (iVar7 = (int)pcVar10[1], iVar7 != 0)) &&
       (iVar5 = (int)pcVar10[2], iVar5 != 0)) {
      iVar6 = iVar7 + -0x30;
      if (9 < iVar6) {
        iVar6 = iVar7 + -0x37;
      }
      iVar7 = iVar5 + -0x30;
      if (9 < iVar7) {
        iVar7 = iVar5 + -0x37;
      }
      pcVar10 = pcVar10 + 3;
      *pcVar9 = (char)iVar6 * '\x10' + (char)iVar7;
    }
    else {
      *pcVar9 = cVar1;
      pcVar10 = pcVar10 + 1;
    }
    pcVar9 = pcVar9 + 1;
    cVar1 = *pcVar10;
  }
  *pcVar9 = '\0';
  (*(code *)puVar2)(buffer,pcVar8,buflen);
  puVar2 = PTR_safefree_000a70d4;
  buffer[buflen + -1] = '\0';
  (*(code *)puVar2)(pcVar8);
  (*(code *)PTR_safefree_000a70d4)(pcVar4);
LAB_00070268:
  if (iVar3 == *(int *)puVar12) {
    return buffer;
  }
  puVar12 = PTR___stack_chk_fail_000a7b74;
  (*(code *)PTR___stack_chk_fail_000a7b74)();
                    /* WARNING: Could not recover jumptable at 0x0007035c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  pcVar4 = (char *)(**(code **)(puVar12 + 0x37720))();
  return pcVar4;
}



int enum_settings_next(undefined4 param_1,int param_2,int param_3)

{
  char cVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  char *pcVar7;
  char *pcVar8;
  char *pcVar9;
  int iVar10;
  undefined *puVar11;
  undefined1 auStack_d0 [24];
  uint local_b8;
  int local_2c;
  
  puVar11 = PTR___stack_chk_guard_000a7ec8;
  local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;
  iVar3 = FUN_0006eb30(4,0);
  iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);
  iVar6 = iVar4;
  do {
    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);
    if (iVar5 == 0) {
      (*(code *)PTR_safefree_000a70d4)(iVar3);
      param_2 = 0;
      goto LAB_00070268;
    }
    pcVar9 = (char *)(iVar5 + 0x13);
    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);
    iVar10 = iVar4 + iVar5 + 1;
    if (iVar6 < iVar10) {
      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);
      iVar6 = iVar10;
    }
    puVar2 = PTR_strncpy_000a7cfc;
    *(undefined1 *)(iVar3 + iVar4) = 0x2f;
    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));
    *(undefined1 *)(iVar3 + iVar10) = 0;
    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);
  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));
  iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);
  pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);
  cVar1 = *pcVar9;
  pcVar8 = pcVar7;
  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {
    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&
       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {
      iVar5 = iVar6 + -0x30;
      if (9 < iVar5) {
        iVar5 = iVar6 + -0x37;
      }
      iVar6 = iVar4 + -0x30;
      if (9 < iVar6) {
        iVar6 = iVar4 + -0x37;
      }
      pcVar9 = pcVar9 + 3;
      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;
    }
    else {
      *pcVar8 = cVar1;
      pcVar9 = pcVar9 + 1;
    }
    pcVar8 = pcVar8 + 1;
    cVar1 = *pcVar9;
  }
  *pcVar8 = '\0';
  (*(code *)puVar2)(param_2,pcVar7,param_3);
  puVar2 = PTR_safefree_000a70d4;
  *(undefined1 *)(param_2 + param_3 + -1) = 0;
  (*(code *)puVar2)(pcVar7);
  (*(code *)PTR_safefree_000a70d4)(iVar3);
LAB_00070268:
  if (local_2c == *(int *)puVar11) {
    return param_2;
  }
  puVar11 = PTR___stack_chk_fail_000a7b74;
  (*(code *)PTR___stack_chk_fail_000a7b74)();
                    /* WARNING: Could not recover jumptable at 0x0007035c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar6 = (**(code **)(puVar11 + 0x37720))();
  return iVar6;
}


lui gp,0x4
addiu gp,gp,-0x1004
addu gp,gp,t9
lw v0,-0x71c8(gp)
addiu sp,sp,-0xf0
lw t9,-0x7fc4(gp)
sw v0,0x18(sp)
sw s4,0xd8(sp)
addiu t9,t9,-0x14d0
sw a1,0x1c(sp)
or s4,a0,zero
sw gp,0x10(sp)
li a0,0x4
sw ra,0xec(sp)
or a1,zero,zero
sw s8,0xe8(sp)
addiu s8,sp,0x20
sw s6,0xe0(sp)
li s6,0x2f
sw s3,0xd4(sp)
sw s2,0xd0(sp)
sw s1,0xcc(sp)
sw s0,0xc8(sp)
sw a2,0xf8(sp)
sw s7,0xe4(sp)
sw s5,0xdc(sp)
lw v0,0x0(v0)
sw v0,0xc4(sp)
bal 0x0006eb30
_nop
lw gp,0x10(sp)
or a0,v0,zero
lw t9,-0x72b4(gp)
jalr t9
_or s0,v0,zero
lw gp,0x10(sp)
addiu s2,v0,0x1
or s1,v0,zero
or s3,v0,zero
lw t9,-0x7524(gp)
jalr t9
_or a0,s4,zero
beq v0,zero,0x00070324
_lw gp,0x10(sp)
lw t9,-0x72b4(gp)
addiu s5,v0,0x13
jalr t9
_or a0,s5,zero
addu v0,s1,v0
addiu s7,v0,0x1
slt a0,s3,s7
bne a0,zero,0x00070300
_lw gp,0x10(sp)
addu v0,s0,s1
lw t9,-0x7394(gp)
subu a2,s7,s2
addu a0,s0,s2
or a1,s5,zero
jalr t9
_sb s6,0x0(v0)
addu a3,s0,s7
lw gp,0x10(sp)
li a0,0x3
or a2,s8,zero
sb zero,0x0(a3)
lw t9,-0x7794(gp)
jalr t9
_or a1,s0,zero
bltz v0,0x00070130
_lw gp,0x10(sp)
lw v0,0x38(sp)
ori v1,zero,0x8000
andi v0,v0,0xf000
bne v0,v1,0x00070134
_lw t9,-0x7524(gp)
lw t9,-0x72b4(gp)
jalr t9
_or a0,s5,zero
li a1,0x1
lw gp,0x10(sp)
lw t9,-0x7fc0(gp)
jalr t9
_addiu a0,v0,0x1
li a2,0x25
or s1,v0,zero
or a1,v0,zero
lb v0,0x0(s5)
beq v0,zero,0x00070218
_lw gp,0x10(sp)
beq v0,a2,0x000702a8
_nop
sb v0,0x0(a1)
addiu s5,s5,0x1
addiu a1,a1,0x1
lb v0,0x0(s5)
bne v0,zero,0x000701f8
_nop
lw s2,0x1c(sp)
lw t9,-0x7394(gp)
lw a2,0xf8(sp)
or a0,s2,zero
sb zero,0x0(a1)
jalr t9
_or a1,s1,zero
or a0,s1,zero
lw gp,0x10(sp)
lw v0,0xf8(sp)
addu s5,s2,v0
lw t9,-0x7fbc(gp)
jalr t9
_sb zero,-0x1(s5)
lw gp,0x10(sp)
lw t9,-0x7fbc(gp)
jalr t9
_or a0,s0,zero
or v0,s2,zero
lw gp,0x10(sp)
lw v1,0x18(sp)
lw a0,0xc4(sp)
lw v1,0x0(v1)
bne a0,v1,0x00070340
_lw ra,0xec(sp)
lw s8,0xe8(sp)
lw s7,0xe4(sp)
lw s6,0xe0(sp)
lw s5,0xdc(sp)
lw s4,0xd8(sp)
lw s3,0xd4(sp)
lw s2,0xd0(sp)
lw s1,0xcc(sp)
lw s0,0xc8(sp)
jr ra
_addiu sp,sp,0xf0
lb a0,0x1(s5)
beq a0,zero,0x00070200
_nop
lb a3,0x2(s5)
beq a3,zero,0x00070200
_nop
addiu v0,a0,-0x30
slti t0,v0,0xa
bne t0,zero,0x000702d4
_nop
addiu v0,a0,-0x37
addiu a0,a3,-0x30
slti t0,a0,0xa
bne t0,zero,0x000702e8
_nop
addiu a0,a3,-0x37
sll v0,v0,0x4
addiu s5,s5,0x3
addu v0,v0,a0
addiu a1,a1,0x1
b 0x0007020c
_sb v0,-0x1(a1)
lw t9,-0x7eec(gp)
li a2,0x1
addiu a1,v0,0x2
jalr t9
_or a0,s0,zero
or s3,s7,zero
lw gp,0x10(sp)
b 0x00070168
_or s0,v0,zero
lw t9,-0x7fbc(gp)
or a0,s0,zero
jalr t9
_sw v0,0x1c(sp)
lw gp,0x10(sp)
b 0x00070268
_lw v0,0x1c(sp)
lw t9,-0x751c(gp)
jalr t9
_nop
(translation_unit "int enum_settings_next(undefined4 param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int iVar10;\n  undefined *puVar11;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_000a7ec8;\n  local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = FUN_0006eb30(4,0);\n  iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);\n  iVar6 = iVar4;\n  do {\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));\n  iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n  pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);\n  cVar1 = *pcVar9;\n  pcVar8 = pcVar7;\n  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }\n  *pcVar8 = '\0';\n  (*(code *)puVar2)(param_2,pcVar7,param_3);\n  puVar2 = PTR_safefree_000a70d4;\n  *(undefined1 *)(param_2 + param_3 + -1) = 0;\n  (*(code *)puVar2)(pcVar7);\n  (*(code *)PTR_safefree_000a70d4)(iVar3);\nLAB_00070268:\n  if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }\n  puVar11 = PTR___stack_chk_fail_000a7b74;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    /* WARNING: Could not recover jumptable at 0x0007035c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar6 = (**(code **)(puVar11 + 0x37720))();\n  return iVar6;\n}\n\n" (function_definition "int enum_settings_next(undefined4 param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int iVar10;\n  undefined *puVar11;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_000a7ec8;\n  local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = FUN_0006eb30(4,0);\n  iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);\n  iVar6 = iVar4;\n  do {\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));\n  iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n  pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);\n  cVar1 = *pcVar9;\n  pcVar8 = pcVar7;\n  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }\n  *pcVar8 = '\0';\n  (*(code *)puVar2)(param_2,pcVar7,param_3);\n  puVar2 = PTR_safefree_000a70d4;\n  *(undefined1 *)(param_2 + param_3 + -1) = 0;\n  (*(code *)puVar2)(pcVar7);\n  (*(code *)PTR_safefree_000a70d4)(iVar3);\nLAB_00070268:\n  if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }\n  puVar11 = PTR___stack_chk_fail_000a7b74;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    /* WARNING: Could not recover jumptable at 0x0007035c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar6 = (**(code **)(puVar11 + 0x37720))();\n  return iVar6;\n}" primitive_type (function_declarator "enum_settings_next(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int iVar10;\n  undefined *puVar11;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_000a7ec8;\n  local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = FUN_0006eb30(4,0);\n  iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);\n  iVar6 = iVar4;\n  do {\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));\n  iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n  pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);\n  cVar1 = *pcVar9;\n  pcVar8 = pcVar7;\n  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }\n  *pcVar8 = '\0';\n  (*(code *)puVar2)(param_2,pcVar7,param_3);\n  puVar2 = PTR_safefree_000a70d4;\n  *(undefined1 *)(param_2 + param_3 + -1) = 0;\n  (*(code *)puVar2)(pcVar7);\n  (*(code *)PTR_safefree_000a70d4)(iVar3);\nLAB_00070268:\n  if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }\n  puVar11 = PTR___stack_chk_fail_000a7b74;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    /* WARNING: Could not recover jumptable at 0x0007035c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar6 = (**(code **)(puVar11 + 0x37720))();\n  return iVar6;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined1 auStack_d0 [24];" type_identifier (array_declarator "auStack_d0 [24]" identifier [ number_literal ]) ;) (declaration "uint local_b8;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar11 = PTR___stack_chk_guard_000a7ec8;" (assignment_expression "puVar11 = PTR___stack_chk_guard_000a7ec8" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000a7ec8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000a7ec8" * (cast_expression "(int *)PTR___stack_chk_guard_000a7ec8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar3 = FUN_0006eb30(4,0);" (assignment_expression "iVar3 = FUN_0006eb30(4,0)" identifier = (call_expression "FUN_0006eb30(4,0)" identifier (argument_list "(4,0)" ( number_literal , number_literal )))) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3)" identifier = (call_expression "(*(code *)PTR_strlen_000a7ddc)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_000a7ddc)" ( (pointer_expression "*(code *)PTR_strlen_000a7ddc" * (cast_expression "(code *)PTR_strlen_000a7ddc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "iVar6 = iVar4;" (assignment_expression "iVar6 = iVar4" identifier = identifier) ;) (do_statement "do {\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));" do (compound_statement "{\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  }" { (expression_statement "iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);" (assignment_expression "iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1)" identifier = (call_expression "(*(code *)PTR_readdir64_000a7b6c)(param_1)" (parenthesized_expression "(*(code *)PTR_readdir64_000a7b6c)" ( (pointer_expression "*(code *)PTR_readdir64_000a7b6c" * (cast_expression "(code *)PTR_readdir64_000a7b6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }" { (expression_statement "(*(code *)PTR_safefree_000a70d4)(iVar3);" (call_expression "(*(code *)PTR_safefree_000a70d4)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00070268;" goto statement_identifier ;) })) (expression_statement "pcVar9 = (char *)(iVar5 + 0x13);" (assignment_expression "pcVar9 = (char *)(iVar5 + 0x13)" identifier = (cast_expression "(char *)(iVar5 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x13)" ( (binary_expression "iVar5 + 0x13" identifier + number_literal) )))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9)" identifier = (call_expression "(*(code *)PTR_strlen_000a7ddc)(pcVar9)" (parenthesized_expression "(*(code *)PTR_strlen_000a7ddc)" ( (pointer_expression "*(code *)PTR_strlen_000a7ddc" * (cast_expression "(code *)PTR_strlen_000a7ddc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar9)" ( identifier )))) ;) (expression_statement "iVar10 = iVar4 + iVar5 + 1;" (assignment_expression "iVar10 = iVar4 + iVar5 + 1" identifier = (binary_expression "iVar4 + iVar5 + 1" (binary_expression "iVar4 + iVar5" identifier + identifier) + number_literal)) ;) (if_statement "if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }" if (parenthesized_expression "(iVar6 < iVar10)" ( (binary_expression "iVar6 < iVar10" identifier < identifier) )) (compound_statement "{\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);" (assignment_expression "iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1)" identifier = (call_expression "(*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1)" (parenthesized_expression "(*(code *)PTR_saferealloc_000a71a4)" ( (pointer_expression "*(code *)PTR_saferealloc_000a71a4" * (cast_expression "(code *)PTR_saferealloc_000a71a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,iVar4 + iVar5 + 2,1)" ( identifier , (binary_expression "iVar4 + iVar5 + 2" (binary_expression "iVar4 + iVar5" identifier + identifier) + number_literal) , number_literal )))) ;) (expression_statement "iVar6 = iVar10;" (assignment_expression "iVar6 = iVar10" identifier = identifier) ;) })) (expression_statement "puVar2 = PTR_strncpy_000a7cfc;" (assignment_expression "puVar2 = PTR_strncpy_000a7cfc" identifier = identifier) ;) (expression_statement "*(undefined1 *)(iVar3 + iVar4) = 0x2f;" (assignment_expression "*(undefined1 *)(iVar3 + iVar4) = 0x2f" (pointer_expression "*(undefined1 *)(iVar3 + iVar4)" * (cast_expression "(undefined1 *)(iVar3 + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar4)" ( (binary_expression "iVar3 + iVar4" identifier + identifier) )))) = number_literal) ;) (expression_statement "(*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));" (call_expression "(*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1))" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1))" ( (binary_expression "iVar3 + iVar4 + 1" (binary_expression "iVar3 + iVar4" identifier + identifier) + number_literal) , identifier , (binary_expression "iVar10 - (iVar4 + 1)" identifier - (parenthesized_expression "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) ))) ))) ;) (expression_statement "*(undefined1 *)(iVar3 + iVar10) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar10) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar10)" * (cast_expression "(undefined1 *)(iVar3 + iVar10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar10)" ( (binary_expression "iVar3 + iVar10" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);" (assignment_expression "iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0)" identifier = (call_expression "(*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0)" (parenthesized_expression "(*(code *)PTR___xstat64_000a78fc)" ( (pointer_expression "*(code *)PTR___xstat64_000a78fc" * (cast_expression "(code *)PTR___xstat64_000a78fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar3,auStack_d0)" ( number_literal , identifier , identifier )))) ;) }) while (parenthesized_expression "((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000))" ( (binary_expression "(iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000)" (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) || (parenthesized_expression "((local_b8 & 0xf000) != 0x8000)" ( (binary_expression "(local_b8 & 0xf000) != 0x8000" (parenthesized_expression "(local_b8 & 0xf000)" ( (binary_expression "local_b8 & 0xf000" identifier & number_literal) )) != number_literal) ))) )) ;) (expression_statement "iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9)" identifier = (call_expression "(*(code *)PTR_strlen_000a7ddc)(pcVar9)" (parenthesized_expression "(*(code *)PTR_strlen_000a7ddc)" ( (pointer_expression "*(code *)PTR_strlen_000a7ddc" * (cast_expression "(code *)PTR_strlen_000a7ddc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar9)" ( identifier )))) ;) (expression_statement "pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1)" identifier = (cast_expression "(char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000a70d0)" ( (pointer_expression "*(code *)PTR_safemalloc_000a70d0" * (cast_expression "(code *)PTR_safemalloc_000a70d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6 + 1,1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) , number_literal ))))) ;) (expression_statement "cVar1 = *pcVar9;" (assignment_expression "cVar1 = *pcVar9" identifier = (pointer_expression "*pcVar9" * identifier)) ;) (expression_statement "pcVar8 = pcVar7;" (assignment_expression "pcVar8 = pcVar7" identifier = identifier) ;) (while_statement "while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }" while (parenthesized_expression "(puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0')" ( (comma_expression "puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0'" (assignment_expression "puVar2 = PTR_strncpy_000a7cfc" identifier = identifier) , (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }" { (if_statement "if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }" if (parenthesized_expression "(((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0))" ( (binary_expression "((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)" (parenthesized_expression "((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0))" ( (binary_expression "(cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)" (parenthesized_expression "(cVar1 == '%')" ( (binary_expression "cVar1 == '%'" identifier == (char_literal "'%'" ' character ')) )) && (parenthesized_expression "(iVar6 = (int)pcVar9[1], iVar6 != 0)" ( (comma_expression "iVar6 = (int)pcVar9[1], iVar6 != 0" (assignment_expression "iVar6 = (int)pcVar9[1]" identifier = (cast_expression "(int)pcVar9[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar9[1]" identifier [ number_literal ]))) , (binary_expression "iVar6 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar4 = (int)pcVar9[2], iVar4 != 0)" ( (comma_expression "iVar4 = (int)pcVar9[2], iVar4 != 0" (assignment_expression "iVar4 = (int)pcVar9[2]" identifier = (cast_expression "(int)pcVar9[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar9[2]" identifier [ number_literal ]))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }" { (expression_statement "iVar5 = iVar6 + -0x30;" (assignment_expression "iVar5 = iVar6 + -0x30" identifier = (binary_expression "iVar6 + -0x30" identifier + number_literal)) ;) (if_statement "if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }" if (parenthesized_expression "(9 < iVar5)" ( (binary_expression "9 < iVar5" number_literal < identifier) )) (compound_statement "{\n        iVar5 = iVar6 + -0x37;\n      }" { (expression_statement "iVar5 = iVar6 + -0x37;" (assignment_expression "iVar5 = iVar6 + -0x37" identifier = (binary_expression "iVar6 + -0x37" identifier + number_literal)) ;) })) (expression_statement "iVar6 = iVar4 + -0x30;" (assignment_expression "iVar6 = iVar4 + -0x30" identifier = (binary_expression "iVar4 + -0x30" identifier + number_literal)) ;) (if_statement "if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }" if (parenthesized_expression "(9 < iVar6)" ( (binary_expression "9 < iVar6" number_literal < identifier) )) (compound_statement "{\n        iVar6 = iVar4 + -0x37;\n      }" { (expression_statement "iVar6 = iVar4 + -0x37;" (assignment_expression "iVar6 = iVar4 + -0x37" identifier = (binary_expression "iVar4 + -0x37" identifier + number_literal)) ;) })) (expression_statement "pcVar9 = pcVar9 + 3;" (assignment_expression "pcVar9 = pcVar9 + 3" identifier = (binary_expression "pcVar9 + 3" identifier + number_literal)) ;) (expression_statement "*pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;" (assignment_expression "*pcVar8 = (char)iVar5 * '\x10' + (char)iVar6" (pointer_expression "*pcVar8" * identifier) = (binary_expression "(char)iVar5 * '\x10' + (char)iVar6" (binary_expression "(char)iVar5 * '\x10'" (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\x10'" ' escape_sequence ')) + (cast_expression "(char)iVar6" ( (type_descriptor "char" primitive_type) ) identifier))) ;) }) (else_clause "else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }" else (compound_statement "{\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }" { (expression_statement "*pcVar8 = cVar1;" (assignment_expression "*pcVar8 = cVar1" (pointer_expression "*pcVar8" * identifier) = identifier) ;) (expression_statement "pcVar9 = pcVar9 + 1;" (assignment_expression "pcVar9 = pcVar9 + 1" identifier = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) }))) (expression_statement "pcVar8 = pcVar8 + 1;" (assignment_expression "pcVar8 = pcVar8 + 1" identifier = (binary_expression "pcVar8 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar9;" (assignment_expression "cVar1 = *pcVar9" identifier = (pointer_expression "*pcVar9" * identifier)) ;) })) (expression_statement "*pcVar8 = '\0';" (assignment_expression "*pcVar8 = '\0'" (pointer_expression "*pcVar8" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(*(code *)puVar2)(param_2,pcVar7,param_3);" (call_expression "(*(code *)puVar2)(param_2,pcVar7,param_3)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,pcVar7,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar2 = PTR_safefree_000a70d4;" (assignment_expression "puVar2 = PTR_safefree_000a70d4" identifier = identifier) ;) (expression_statement "*(undefined1 *)(param_2 + param_3 + -1) = 0;" (assignment_expression "*(undefined1 *)(param_2 + param_3 + -1) = 0" (pointer_expression "*(undefined1 *)(param_2 + param_3 + -1)" * (cast_expression "(undefined1 *)(param_2 + param_3 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + param_3 + -1)" ( (binary_expression "param_2 + param_3 + -1" (binary_expression "param_2 + param_3" identifier + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar2)(pcVar7);" (call_expression "(*(code *)puVar2)(pcVar7)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000a70d4)(iVar3);" (call_expression "(*(code *)PTR_safefree_000a70d4)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (labeled_statement "LAB_00070268:\n  if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar11)" ( (binary_expression "local_2c == *(int *)puVar11" identifier == (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return param_2;\n  }" { (return_statement "return param_2;" return identifier ;) }))) (expression_statement "puVar11 = PTR___stack_chk_fail_000a7b74;" (assignment_expression "puVar11 = PTR___stack_chk_fail_000a7b74" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a7b74)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a7b74)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a7b74)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a7b74" * (cast_expression "(code *)PTR___stack_chk_fail_000a7b74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment comment (expression_statement "iVar6 = (**(code **)(puVar11 + 0x37720))();" (assignment_expression "iVar6 = (**(code **)(puVar11 + 0x37720))()" identifier = (call_expression "(**(code **)(puVar11 + 0x37720))()" (parenthesized_expression "(**(code **)(puVar11 + 0x37720))" ( (pointer_expression "**(code **)(puVar11 + 0x37720)" * (pointer_expression "*(code **)(puVar11 + 0x37720)" * (cast_expression "(code **)(puVar11 + 0x37720)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x37720)" ( (binary_expression "puVar11 + 0x37720" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit "char * enum_settings_next(void *handle,char *buffer,int buflen)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  int iVar11;\n  undefined *puVar12;\n  stat st;\n  \n  puVar12 = PTR___stack_chk_guard_000a7ec8;\n  iVar3 = *(int *)PTR___stack_chk_guard_000a7ec8;\n  pcVar4 = make_filename(4,(char *)0x0);\n  iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar4);\n  iVar7 = iVar5;\n  do {\n    iVar6 = (*(code *)PTR_readdir64_000a7b6c)(handle);\n    if (iVar6 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(pcVar4);\n      buffer = (char *)0x0;\n      goto LAB_00070268;\n    }\n    pcVar10 = (char *)(iVar6 + 0x13);\n    iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar10);\n    iVar11 = iVar5 + iVar6 + 1;\n    if (iVar7 < iVar11) {\n      pcVar4 = (char *)(*(code *)PTR_saferealloc_000a71a4)(pcVar4,iVar5 + iVar6 + 2,1);\n      iVar7 = iVar11;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    pcVar4[iVar5] = '/';\n    (*(code *)puVar2)(pcVar4 + iVar5 + 1,pcVar10,iVar11 - (iVar5 + 1));\n    pcVar4[iVar11] = '\0';\n    iVar6 = (*(code *)PTR___xstat64_000a78fc)(3,pcVar4,&st);\n  } while ((iVar6 < 0) || ((st.st_mode & 0xf000) != 0x8000));\n  iVar7 = (*(code *)PTR_strlen_000a7ddc)(pcVar10);\n  pcVar8 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar7 + 1,1);\n  cVar1 = *pcVar10;\n  pcVar9 = pcVar8;\n  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar7 = (int)pcVar10[1], iVar7 != 0)) &&\n       (iVar5 = (int)pcVar10[2], iVar5 != 0)) {\n      iVar6 = iVar7 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar7 + -0x37;\n      }\n      iVar7 = iVar5 + -0x30;\n      if (9 < iVar7) {\n        iVar7 = iVar5 + -0x37;\n      }\n      pcVar10 = pcVar10 + 3;\n      *pcVar9 = (char)iVar6 * '\x10' + (char)iVar7;\n    }\n    else {\n      *pcVar9 = cVar1;\n      pcVar10 = pcVar10 + 1;\n    }\n    pcVar9 = pcVar9 + 1;\n    cVar1 = *pcVar10;\n  }\n  *pcVar9 = '\0';\n  (*(code *)puVar2)(buffer,pcVar8,buflen);\n  puVar2 = PTR_safefree_000a70d4;\n  buffer[buflen + -1] = '\0';\n  (*(code *)puVar2)(pcVar8);\n  (*(code *)PTR_safefree_000a70d4)(pcVar4);\nLAB_00070268:\n  if (iVar3 == *(int *)puVar12) {\n    return buffer;\n  }\n  puVar12 = PTR___stack_chk_fail_000a7b74;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    /* WARNING: Could not recover jumptable at 0x0007035c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  pcVar4 = (char *)(**(code **)(puVar12 + 0x37720))();\n  return pcVar4;\n}\n\n" (function_definition "char * enum_settings_next(void *handle,char *buffer,int buflen)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  int iVar11;\n  undefined *puVar12;\n  stat st;\n  \n  puVar12 = PTR___stack_chk_guard_000a7ec8;\n  iVar3 = *(int *)PTR___stack_chk_guard_000a7ec8;\n  pcVar4 = make_filename(4,(char *)0x0);\n  iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar4);\n  iVar7 = iVar5;\n  do {\n    iVar6 = (*(code *)PTR_readdir64_000a7b6c)(handle);\n    if (iVar6 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(pcVar4);\n      buffer = (char *)0x0;\n      goto LAB_00070268;\n    }\n    pcVar10 = (char *)(iVar6 + 0x13);\n    iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar10);\n    iVar11 = iVar5 + iVar6 + 1;\n    if (iVar7 < iVar11) {\n      pcVar4 = (char *)(*(code *)PTR_saferealloc_000a71a4)(pcVar4,iVar5 + iVar6 + 2,1);\n      iVar7 = iVar11;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    pcVar4[iVar5] = '/';\n    (*(code *)puVar2)(pcVar4 + iVar5 + 1,pcVar10,iVar11 - (iVar5 + 1));\n    pcVar4[iVar11] = '\0';\n    iVar6 = (*(code *)PTR___xstat64_000a78fc)(3,pcVar4,&st);\n  } while ((iVar6 < 0) || ((st.st_mode & 0xf000) != 0x8000));\n  iVar7 = (*(code *)PTR_strlen_000a7ddc)(pcVar10);\n  pcVar8 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar7 + 1,1);\n  cVar1 = *pcVar10;\n  pcVar9 = pcVar8;\n  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar7 = (int)pcVar10[1], iVar7 != 0)) &&\n       (iVar5 = (int)pcVar10[2], iVar5 != 0)) {\n      iVar6 = iVar7 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar7 + -0x37;\n      }\n      iVar7 = iVar5 + -0x30;\n      if (9 < iVar7) {\n        iVar7 = iVar5 + -0x37;\n      }\n      pcVar10 = pcVar10 + 3;\n      *pcVar9 = (char)iVar6 * '\x10' + (char)iVar7;\n    }\n    else {\n      *pcVar9 = cVar1;\n      pcVar10 = pcVar10 + 1;\n    }\n    pcVar9 = pcVar9 + 1;\n    cVar1 = *pcVar10;\n  }\n  *pcVar9 = '\0';\n  (*(code *)puVar2)(buffer,pcVar8,buflen);\n  puVar2 = PTR_safefree_000a70d4;\n  buffer[buflen + -1] = '\0';\n  (*(code *)puVar2)(pcVar8);\n  (*(code *)PTR_safefree_000a70d4)(pcVar4);\nLAB_00070268:\n  if (iVar3 == *(int *)puVar12) {\n    return buffer;\n  }\n  puVar12 = PTR___stack_chk_fail_000a7b74;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    /* WARNING: Could not recover jumptable at 0x0007035c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  pcVar4 = (char *)(**(code **)(puVar12 + 0x37720))();\n  return pcVar4;\n}" primitive_type (pointer_declarator "* enum_settings_next(void *handle,char *buffer,int buflen)" * (function_declarator "enum_settings_next(void *handle,char *buffer,int buflen)" identifier (parameter_list "(void *handle,char *buffer,int buflen)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "char *buffer" primitive_type (pointer_declarator "*buffer" * identifier)) , (parameter_declaration "int buflen" primitive_type identifier) )))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  char *pcVar8;\n  char *pcVar9;\n  char *pcVar10;\n  int iVar11;\n  undefined *puVar12;\n  stat st;\n  \n  puVar12 = PTR___stack_chk_guard_000a7ec8;\n  iVar3 = *(int *)PTR___stack_chk_guard_000a7ec8;\n  pcVar4 = make_filename(4,(char *)0x0);\n  iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar4);\n  iVar7 = iVar5;\n  do {\n    iVar6 = (*(code *)PTR_readdir64_000a7b6c)(handle);\n    if (iVar6 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(pcVar4);\n      buffer = (char *)0x0;\n      goto LAB_00070268;\n    }\n    pcVar10 = (char *)(iVar6 + 0x13);\n    iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar10);\n    iVar11 = iVar5 + iVar6 + 1;\n    if (iVar7 < iVar11) {\n      pcVar4 = (char *)(*(code *)PTR_saferealloc_000a71a4)(pcVar4,iVar5 + iVar6 + 2,1);\n      iVar7 = iVar11;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    pcVar4[iVar5] = '/';\n    (*(code *)puVar2)(pcVar4 + iVar5 + 1,pcVar10,iVar11 - (iVar5 + 1));\n    pcVar4[iVar11] = '\0';\n    iVar6 = (*(code *)PTR___xstat64_000a78fc)(3,pcVar4,&st);\n  } while ((iVar6 < 0) || ((st.st_mode & 0xf000) != 0x8000));\n  iVar7 = (*(code *)PTR_strlen_000a7ddc)(pcVar10);\n  pcVar8 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar7 + 1,1);\n  cVar1 = *pcVar10;\n  pcVar9 = pcVar8;\n  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar7 = (int)pcVar10[1], iVar7 != 0)) &&\n       (iVar5 = (int)pcVar10[2], iVar5 != 0)) {\n      iVar6 = iVar7 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar7 + -0x37;\n      }\n      iVar7 = iVar5 + -0x30;\n      if (9 < iVar7) {\n        iVar7 = iVar5 + -0x37;\n      }\n      pcVar10 = pcVar10 + 3;\n      *pcVar9 = (char)iVar6 * '\x10' + (char)iVar7;\n    }\n    else {\n      *pcVar9 = cVar1;\n      pcVar10 = pcVar10 + 1;\n    }\n    pcVar9 = pcVar9 + 1;\n    cVar1 = *pcVar10;\n  }\n  *pcVar9 = '\0';\n  (*(code *)puVar2)(buffer,pcVar8,buflen);\n  puVar2 = PTR_safefree_000a70d4;\n  buffer[buflen + -1] = '\0';\n  (*(code *)puVar2)(pcVar8);\n  (*(code *)PTR_safefree_000a70d4)(pcVar4);\nLAB_00070268:\n  if (iVar3 == *(int *)puVar12) {\n    return buffer;\n  }\n  puVar12 = PTR___stack_chk_fail_000a7b74;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    /* WARNING: Could not recover jumptable at 0x0007035c. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  pcVar4 = (char *)(**(code **)(puVar12 + 0x37720))();\n  return pcVar4;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "char *pcVar10;" primitive_type (pointer_declarator "*pcVar10" * identifier) ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "undefined *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "stat st;" type_identifier identifier ;) (expression_statement "puVar12 = PTR___stack_chk_guard_000a7ec8;" (assignment_expression "puVar12 = PTR___stack_chk_guard_000a7ec8" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_000a7ec8;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_000a7ec8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000a7ec8" * (cast_expression "(int *)PTR___stack_chk_guard_000a7ec8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "pcVar4 = make_filename(4,(char *)0x0);" (assignment_expression "pcVar4 = make_filename(4,(char *)0x0)" identifier = (call_expression "make_filename(4,(char *)0x0)" identifier (argument_list "(4,(char *)0x0)" ( number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar4);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar4)" identifier = (call_expression "(*(code *)PTR_strlen_000a7ddc)(pcVar4)" (parenthesized_expression "(*(code *)PTR_strlen_000a7ddc)" ( (pointer_expression "*(code *)PTR_strlen_000a7ddc" * (cast_expression "(code *)PTR_strlen_000a7ddc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "iVar7 = iVar5;" (assignment_expression "iVar7 = iVar5" identifier = identifier) ;) (do_statement "do {\n    iVar6 = (*(code *)PTR_readdir64_000a7b6c)(handle);\n    if (iVar6 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(pcVar4);\n      buffer = (char *)0x0;\n      goto LAB_00070268;\n    }\n    pcVar10 = (char *)(iVar6 + 0x13);\n    iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar10);\n    iVar11 = iVar5 + iVar6 + 1;\n    if (iVar7 < iVar11) {\n      pcVar4 = (char *)(*(code *)PTR_saferealloc_000a71a4)(pcVar4,iVar5 + iVar6 + 2,1);\n      iVar7 = iVar11;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    pcVar4[iVar5] = '/';\n    (*(code *)puVar2)(pcVar4 + iVar5 + 1,pcVar10,iVar11 - (iVar5 + 1));\n    pcVar4[iVar11] = '\0';\n    iVar6 = (*(code *)PTR___xstat64_000a78fc)(3,pcVar4,&st);\n  } while ((iVar6 < 0) || ((st.st_mode & 0xf000) != 0x8000));" do (compound_statement "{\n    iVar6 = (*(code *)PTR_readdir64_000a7b6c)(handle);\n    if (iVar6 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(pcVar4);\n      buffer = (char *)0x0;\n      goto LAB_00070268;\n    }\n    pcVar10 = (char *)(iVar6 + 0x13);\n    iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar10);\n    iVar11 = iVar5 + iVar6 + 1;\n    if (iVar7 < iVar11) {\n      pcVar4 = (char *)(*(code *)PTR_saferealloc_000a71a4)(pcVar4,iVar5 + iVar6 + 2,1);\n      iVar7 = iVar11;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    pcVar4[iVar5] = '/';\n    (*(code *)puVar2)(pcVar4 + iVar5 + 1,pcVar10,iVar11 - (iVar5 + 1));\n    pcVar4[iVar11] = '\0';\n    iVar6 = (*(code *)PTR___xstat64_000a78fc)(3,pcVar4,&st);\n  }" { (expression_statement "iVar6 = (*(code *)PTR_readdir64_000a7b6c)(handle);" (assignment_expression "iVar6 = (*(code *)PTR_readdir64_000a7b6c)(handle)" identifier = (call_expression "(*(code *)PTR_readdir64_000a7b6c)(handle)" (parenthesized_expression "(*(code *)PTR_readdir64_000a7b6c)" ( (pointer_expression "*(code *)PTR_readdir64_000a7b6c" * (cast_expression "(code *)PTR_readdir64_000a7b6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(handle)" ( identifier )))) ;) (if_statement "if (iVar6 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(pcVar4);\n      buffer = (char *)0x0;\n      goto LAB_00070268;\n    }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_safefree_000a70d4)(pcVar4);\n      buffer = (char *)0x0;\n      goto LAB_00070268;\n    }" { (expression_statement "(*(code *)PTR_safefree_000a70d4)(pcVar4);" (call_expression "(*(code *)PTR_safefree_000a70d4)(pcVar4)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "buffer = (char *)0x0;" (assignment_expression "buffer = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_00070268;" goto statement_identifier ;) })) (expression_statement "pcVar10 = (char *)(iVar6 + 0x13);" (assignment_expression "pcVar10 = (char *)(iVar6 + 0x13)" identifier = (cast_expression "(char *)(iVar6 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x13)" ( (binary_expression "iVar6 + 0x13" identifier + number_literal) )))) ;) (expression_statement "iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar10);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar10)" identifier = (call_expression "(*(code *)PTR_strlen_000a7ddc)(pcVar10)" (parenthesized_expression "(*(code *)PTR_strlen_000a7ddc)" ( (pointer_expression "*(code *)PTR_strlen_000a7ddc" * (cast_expression "(code *)PTR_strlen_000a7ddc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "iVar11 = iVar5 + iVar6 + 1;" (assignment_expression "iVar11 = iVar5 + iVar6 + 1" identifier = (binary_expression "iVar5 + iVar6 + 1" (binary_expression "iVar5 + iVar6" identifier + identifier) + number_literal)) ;) (if_statement "if (iVar7 < iVar11) {\n      pcVar4 = (char *)(*(code *)PTR_saferealloc_000a71a4)(pcVar4,iVar5 + iVar6 + 2,1);\n      iVar7 = iVar11;\n    }" if (parenthesized_expression "(iVar7 < iVar11)" ( (binary_expression "iVar7 < iVar11" identifier < identifier) )) (compound_statement "{\n      pcVar4 = (char *)(*(code *)PTR_saferealloc_000a71a4)(pcVar4,iVar5 + iVar6 + 2,1);\n      iVar7 = iVar11;\n    }" { (expression_statement "pcVar4 = (char *)(*(code *)PTR_saferealloc_000a71a4)(pcVar4,iVar5 + iVar6 + 2,1);" (assignment_expression "pcVar4 = (char *)(*(code *)PTR_saferealloc_000a71a4)(pcVar4,iVar5 + iVar6 + 2,1)" identifier = (cast_expression "(char *)(*(code *)PTR_saferealloc_000a71a4)(pcVar4,iVar5 + iVar6 + 2,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_saferealloc_000a71a4)(pcVar4,iVar5 + iVar6 + 2,1)" (parenthesized_expression "(*(code *)PTR_saferealloc_000a71a4)" ( (pointer_expression "*(code *)PTR_saferealloc_000a71a4" * (cast_expression "(code *)PTR_saferealloc_000a71a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,iVar5 + iVar6 + 2,1)" ( identifier , (binary_expression "iVar5 + iVar6 + 2" (binary_expression "iVar5 + iVar6" identifier + identifier) + number_literal) , number_literal ))))) ;) (expression_statement "iVar7 = iVar11;" (assignment_expression "iVar7 = iVar11" identifier = identifier) ;) })) (expression_statement "puVar2 = PTR_strncpy_000a7cfc;" (assignment_expression "puVar2 = PTR_strncpy_000a7cfc" identifier = identifier) ;) (expression_statement "pcVar4[iVar5] = '/';" (assignment_expression "pcVar4[iVar5] = '/'" (subscript_expression "pcVar4[iVar5]" identifier [ identifier ]) = (char_literal "'/'" ' character ')) ;) (expression_statement "(*(code *)puVar2)(pcVar4 + iVar5 + 1,pcVar10,iVar11 - (iVar5 + 1));" (call_expression "(*(code *)puVar2)(pcVar4 + iVar5 + 1,pcVar10,iVar11 - (iVar5 + 1))" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4 + iVar5 + 1,pcVar10,iVar11 - (iVar5 + 1))" ( (binary_expression "pcVar4 + iVar5 + 1" (binary_expression "pcVar4 + iVar5" identifier + identifier) + number_literal) , identifier , (binary_expression "iVar11 - (iVar5 + 1)" identifier - (parenthesized_expression "(iVar5 + 1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) ))) ))) ;) (expression_statement "pcVar4[iVar11] = '\0';" (assignment_expression "pcVar4[iVar11] = '\0'" (subscript_expression "pcVar4[iVar11]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar6 = (*(code *)PTR___xstat64_000a78fc)(3,pcVar4,&st);" (assignment_expression "iVar6 = (*(code *)PTR___xstat64_000a78fc)(3,pcVar4,&st)" identifier = (call_expression "(*(code *)PTR___xstat64_000a78fc)(3,pcVar4,&st)" (parenthesized_expression "(*(code *)PTR___xstat64_000a78fc)" ( (pointer_expression "*(code *)PTR___xstat64_000a78fc" * (cast_expression "(code *)PTR___xstat64_000a78fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,pcVar4,&st)" ( number_literal , identifier , (pointer_expression "&st" & identifier) )))) ;) }) while (parenthesized_expression "((iVar6 < 0) || ((st.st_mode & 0xf000) != 0x8000))" ( (binary_expression "(iVar6 < 0) || ((st.st_mode & 0xf000) != 0x8000)" (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) || (parenthesized_expression "((st.st_mode & 0xf000) != 0x8000)" ( (binary_expression "(st.st_mode & 0xf000) != 0x8000" (parenthesized_expression "(st.st_mode & 0xf000)" ( (binary_expression "st.st_mode & 0xf000" (field_expression "st.st_mode" identifier . field_identifier) & number_literal) )) != number_literal) ))) )) ;) (expression_statement "iVar7 = (*(code *)PTR_strlen_000a7ddc)(pcVar10);" (assignment_expression "iVar7 = (*(code *)PTR_strlen_000a7ddc)(pcVar10)" identifier = (call_expression "(*(code *)PTR_strlen_000a7ddc)(pcVar10)" (parenthesized_expression "(*(code *)PTR_strlen_000a7ddc)" ( (pointer_expression "*(code *)PTR_strlen_000a7ddc" * (cast_expression "(code *)PTR_strlen_000a7ddc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar10)" ( identifier )))) ;) (expression_statement "pcVar8 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar7 + 1,1);" (assignment_expression "pcVar8 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar7 + 1,1)" identifier = (cast_expression "(char *)(*(code *)PTR_safemalloc_000a70d0)(iVar7 + 1,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000a70d0)(iVar7 + 1,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000a70d0)" ( (pointer_expression "*(code *)PTR_safemalloc_000a70d0" * (cast_expression "(code *)PTR_safemalloc_000a70d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7 + 1,1)" ( (binary_expression "iVar7 + 1" identifier + number_literal) , number_literal ))))) ;) (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) (expression_statement "pcVar9 = pcVar8;" (assignment_expression "pcVar9 = pcVar8" identifier = identifier) ;) (while_statement "while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar7 = (int)pcVar10[1], iVar7 != 0)) &&\n       (iVar5 = (int)pcVar10[2], iVar5 != 0)) {\n      iVar6 = iVar7 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar7 + -0x37;\n      }\n      iVar7 = iVar5 + -0x30;\n      if (9 < iVar7) {\n        iVar7 = iVar5 + -0x37;\n      }\n      pcVar10 = pcVar10 + 3;\n      *pcVar9 = (char)iVar6 * '\x10' + (char)iVar7;\n    }\n    else {\n      *pcVar9 = cVar1;\n      pcVar10 = pcVar10 + 1;\n    }\n    pcVar9 = pcVar9 + 1;\n    cVar1 = *pcVar10;\n  }" while (parenthesized_expression "(puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0')" ( (comma_expression "puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0'" (assignment_expression "puVar2 = PTR_strncpy_000a7cfc" identifier = identifier) , (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n    if (((cVar1 == '%') && (iVar7 = (int)pcVar10[1], iVar7 != 0)) &&\n       (iVar5 = (int)pcVar10[2], iVar5 != 0)) {\n      iVar6 = iVar7 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar7 + -0x37;\n      }\n      iVar7 = iVar5 + -0x30;\n      if (9 < iVar7) {\n        iVar7 = iVar5 + -0x37;\n      }\n      pcVar10 = pcVar10 + 3;\n      *pcVar9 = (char)iVar6 * '\x10' + (char)iVar7;\n    }\n    else {\n      *pcVar9 = cVar1;\n      pcVar10 = pcVar10 + 1;\n    }\n    pcVar9 = pcVar9 + 1;\n    cVar1 = *pcVar10;\n  }" { (if_statement "if (((cVar1 == '%') && (iVar7 = (int)pcVar10[1], iVar7 != 0)) &&\n       (iVar5 = (int)pcVar10[2], iVar5 != 0)) {\n      iVar6 = iVar7 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar7 + -0x37;\n      }\n      iVar7 = iVar5 + -0x30;\n      if (9 < iVar7) {\n        iVar7 = iVar5 + -0x37;\n      }\n      pcVar10 = pcVar10 + 3;\n      *pcVar9 = (char)iVar6 * '\x10' + (char)iVar7;\n    }\n    else {\n      *pcVar9 = cVar1;\n      pcVar10 = pcVar10 + 1;\n    }" if (parenthesized_expression "(((cVar1 == '%') && (iVar7 = (int)pcVar10[1], iVar7 != 0)) &&\n       (iVar5 = (int)pcVar10[2], iVar5 != 0))" ( (binary_expression "((cVar1 == '%') && (iVar7 = (int)pcVar10[1], iVar7 != 0)) &&\n       (iVar5 = (int)pcVar10[2], iVar5 != 0)" (parenthesized_expression "((cVar1 == '%') && (iVar7 = (int)pcVar10[1], iVar7 != 0))" ( (binary_expression "(cVar1 == '%') && (iVar7 = (int)pcVar10[1], iVar7 != 0)" (parenthesized_expression "(cVar1 == '%')" ( (binary_expression "cVar1 == '%'" identifier == (char_literal "'%'" ' character ')) )) && (parenthesized_expression "(iVar7 = (int)pcVar10[1], iVar7 != 0)" ( (comma_expression "iVar7 = (int)pcVar10[1], iVar7 != 0" (assignment_expression "iVar7 = (int)pcVar10[1]" identifier = (cast_expression "(int)pcVar10[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar10[1]" identifier [ number_literal ]))) , (binary_expression "iVar7 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar5 = (int)pcVar10[2], iVar5 != 0)" ( (comma_expression "iVar5 = (int)pcVar10[2], iVar5 != 0" (assignment_expression "iVar5 = (int)pcVar10[2]" identifier = (cast_expression "(int)pcVar10[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar10[2]" identifier [ number_literal ]))) , (binary_expression "iVar5 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar6 = iVar7 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar7 + -0x37;\n      }\n      iVar7 = iVar5 + -0x30;\n      if (9 < iVar7) {\n        iVar7 = iVar5 + -0x37;\n      }\n      pcVar10 = pcVar10 + 3;\n      *pcVar9 = (char)iVar6 * '\x10' + (char)iVar7;\n    }" { (expression_statement "iVar6 = iVar7 + -0x30;" (assignment_expression "iVar6 = iVar7 + -0x30" identifier = (binary_expression "iVar7 + -0x30" identifier + number_literal)) ;) (if_statement "if (9 < iVar6) {\n        iVar6 = iVar7 + -0x37;\n      }" if (parenthesized_expression "(9 < iVar6)" ( (binary_expression "9 < iVar6" number_literal < identifier) )) (compound_statement "{\n        iVar6 = iVar7 + -0x37;\n      }" { (expression_statement "iVar6 = iVar7 + -0x37;" (assignment_expression "iVar6 = iVar7 + -0x37" identifier = (binary_expression "iVar7 + -0x37" identifier + number_literal)) ;) })) (expression_statement "iVar7 = iVar5 + -0x30;" (assignment_expression "iVar7 = iVar5 + -0x30" identifier = (binary_expression "iVar5 + -0x30" identifier + number_literal)) ;) (if_statement "if (9 < iVar7) {\n        iVar7 = iVar5 + -0x37;\n      }" if (parenthesized_expression "(9 < iVar7)" ( (binary_expression "9 < iVar7" number_literal < identifier) )) (compound_statement "{\n        iVar7 = iVar5 + -0x37;\n      }" { (expression_statement "iVar7 = iVar5 + -0x37;" (assignment_expression "iVar7 = iVar5 + -0x37" identifier = (binary_expression "iVar5 + -0x37" identifier + number_literal)) ;) })) (expression_statement "pcVar10 = pcVar10 + 3;" (assignment_expression "pcVar10 = pcVar10 + 3" identifier = (binary_expression "pcVar10 + 3" identifier + number_literal)) ;) (expression_statement "*pcVar9 = (char)iVar6 * '\x10' + (char)iVar7;" (assignment_expression "*pcVar9 = (char)iVar6 * '\x10' + (char)iVar7" (pointer_expression "*pcVar9" * identifier) = (binary_expression "(char)iVar6 * '\x10' + (char)iVar7" (binary_expression "(char)iVar6 * '\x10'" (cast_expression "(char)iVar6" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\x10'" ' escape_sequence ')) + (cast_expression "(char)iVar7" ( (type_descriptor "char" primitive_type) ) identifier))) ;) }) (else_clause "else {\n      *pcVar9 = cVar1;\n      pcVar10 = pcVar10 + 1;\n    }" else (compound_statement "{\n      *pcVar9 = cVar1;\n      pcVar10 = pcVar10 + 1;\n    }" { (expression_statement "*pcVar9 = cVar1;" (assignment_expression "*pcVar9 = cVar1" (pointer_expression "*pcVar9" * identifier) = identifier) ;) (expression_statement "pcVar10 = pcVar10 + 1;" (assignment_expression "pcVar10 = pcVar10 + 1" identifier = (binary_expression "pcVar10 + 1" identifier + number_literal)) ;) }))) (expression_statement "pcVar9 = pcVar9 + 1;" (assignment_expression "pcVar9 = pcVar9 + 1" identifier = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar10;" (assignment_expression "cVar1 = *pcVar10" identifier = (pointer_expression "*pcVar10" * identifier)) ;) })) (expression_statement "*pcVar9 = '\0';" (assignment_expression "*pcVar9 = '\0'" (pointer_expression "*pcVar9" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(*(code *)puVar2)(buffer,pcVar8,buflen);" (call_expression "(*(code *)puVar2)(buffer,pcVar8,buflen)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buffer,pcVar8,buflen)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar2 = PTR_safefree_000a70d4;" (assignment_expression "puVar2 = PTR_safefree_000a70d4" identifier = identifier) ;) (expression_statement "buffer[buflen + -1] = '\0';" (assignment_expression "buffer[buflen + -1] = '\0'" (subscript_expression "buffer[buflen + -1]" identifier [ (binary_expression "buflen + -1" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(*(code *)puVar2)(pcVar8);" (call_expression "(*(code *)puVar2)(pcVar8)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000a70d4)(pcVar4);" (call_expression "(*(code *)PTR_safefree_000a70d4)(pcVar4)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4)" ( identifier ))) ;) (labeled_statement "LAB_00070268:\n  if (iVar3 == *(int *)puVar12) {\n    return buffer;\n  }" statement_identifier : (if_statement "if (iVar3 == *(int *)puVar12) {\n    return buffer;\n  }" if (parenthesized_expression "(iVar3 == *(int *)puVar12)" ( (binary_expression "iVar3 == *(int *)puVar12" identifier == (pointer_expression "*(int *)puVar12" * (cast_expression "(int *)puVar12" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return buffer;\n  }" { (return_statement "return buffer;" return identifier ;) }))) (expression_statement "puVar12 = PTR___stack_chk_fail_000a7b74;" (assignment_expression "puVar12 = PTR___stack_chk_fail_000a7b74" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a7b74)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a7b74)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a7b74)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a7b74" * (cast_expression "(code *)PTR___stack_chk_fail_000a7b74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment comment (expression_statement "pcVar4 = (char *)(**(code **)(puVar12 + 0x37720))();" (assignment_expression "pcVar4 = (char *)(**(code **)(puVar12 + 0x37720))()" identifier = (cast_expression "(char *)(**(code **)(puVar12 + 0x37720))()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar12 + 0x37720))()" (parenthesized_expression "(**(code **)(puVar12 + 0x37720))" ( (pointer_expression "**(code **)(puVar12 + 0x37720)" * (pointer_expression "*(code **)(puVar12 + 0x37720)" * (cast_expression "(code **)(puVar12 + 0x37720)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + 0x37720)" ( (binary_expression "puVar12 + 0x37720" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return pcVar4;" return identifier ;) })))
(translation_unit "int enum_settings_next(undefined4 param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int iVar10;\n  undefined *puVar11;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_000a7ec8;\n  local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = FUN_0006eb30(4,0);\n  iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);\n  iVar6 = iVar4;\n  do {\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));\n  iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n  pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);\n  cVar1 = *pcVar9;\n  pcVar8 = pcVar7;\n  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }\n  *pcVar8 = '\0';\n  (*(code *)puVar2)(param_2,pcVar7,param_3);\n  puVar2 = PTR_safefree_000a70d4;\n  *(undefined1 *)(param_2 + param_3 + -1) = 0;\n  (*(code *)puVar2)(pcVar7);\n  (*(code *)PTR_safefree_000a70d4)(iVar3);\nLAB_00070268:\n  if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }\n  puVar11 = PTR___stack_chk_fail_000a7b74;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    \n                    \n  iVar6 = (**(code **)(puVar11 + 0x37720))();\n  return iVar6;\n}\n\n" (function_definition "int enum_settings_next(undefined4 param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int iVar10;\n  undefined *puVar11;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_000a7ec8;\n  local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = FUN_0006eb30(4,0);\n  iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);\n  iVar6 = iVar4;\n  do {\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));\n  iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n  pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);\n  cVar1 = *pcVar9;\n  pcVar8 = pcVar7;\n  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }\n  *pcVar8 = '\0';\n  (*(code *)puVar2)(param_2,pcVar7,param_3);\n  puVar2 = PTR_safefree_000a70d4;\n  *(undefined1 *)(param_2 + param_3 + -1) = 0;\n  (*(code *)puVar2)(pcVar7);\n  (*(code *)PTR_safefree_000a70d4)(iVar3);\nLAB_00070268:\n  if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }\n  puVar11 = PTR___stack_chk_fail_000a7b74;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    \n                    \n  iVar6 = (**(code **)(puVar11 + 0x37720))();\n  return iVar6;\n}" primitive_type (function_declarator "enum_settings_next(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int iVar10;\n  undefined *puVar11;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_000a7ec8;\n  local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = FUN_0006eb30(4,0);\n  iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);\n  iVar6 = iVar4;\n  do {\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));\n  iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n  pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);\n  cVar1 = *pcVar9;\n  pcVar8 = pcVar7;\n  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }\n  *pcVar8 = '\0';\n  (*(code *)puVar2)(param_2,pcVar7,param_3);\n  puVar2 = PTR_safefree_000a70d4;\n  *(undefined1 *)(param_2 + param_3 + -1) = 0;\n  (*(code *)puVar2)(pcVar7);\n  (*(code *)PTR_safefree_000a70d4)(iVar3);\nLAB_00070268:\n  if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }\n  puVar11 = PTR___stack_chk_fail_000a7b74;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    \n                    \n  iVar6 = (**(code **)(puVar11 + 0x37720))();\n  return iVar6;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "undefined *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined1 auStack_d0 [24];" type_identifier (array_declarator "auStack_d0 [24]" identifier [ number_literal ]) ;) (declaration "uint local_b8;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar11 = PTR___stack_chk_guard_000a7ec8;" (assignment_expression "puVar11 = PTR___stack_chk_guard_000a7ec8" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000a7ec8" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000a7ec8" * (cast_expression "(int *)PTR___stack_chk_guard_000a7ec8" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar3 = FUN_0006eb30(4,0);" (assignment_expression "iVar3 = FUN_0006eb30(4,0)" identifier = (call_expression "FUN_0006eb30(4,0)" identifier (argument_list "(4,0)" ( number_literal , number_literal )))) ;) (expression_statement "iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3)" identifier = (call_expression "(*(code *)PTR_strlen_000a7ddc)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_000a7ddc)" ( (pointer_expression "*(code *)PTR_strlen_000a7ddc" * (cast_expression "(code *)PTR_strlen_000a7ddc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier )))) ;) (expression_statement "iVar6 = iVar4;" (assignment_expression "iVar6 = iVar4" identifier = identifier) ;) (do_statement "do {\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));" do (compound_statement "{\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  }" { (expression_statement "iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);" (assignment_expression "iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1)" identifier = (call_expression "(*(code *)PTR_readdir64_000a7b6c)(param_1)" (parenthesized_expression "(*(code *)PTR_readdir64_000a7b6c)" ( (pointer_expression "*(code *)PTR_readdir64_000a7b6c" * (cast_expression "(code *)PTR_readdir64_000a7b6c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }" { (expression_statement "(*(code *)PTR_safefree_000a70d4)(iVar3);" (call_expression "(*(code *)PTR_safefree_000a70d4)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00070268;" goto statement_identifier ;) })) (expression_statement "pcVar9 = (char *)(iVar5 + 0x13);" (assignment_expression "pcVar9 = (char *)(iVar5 + 0x13)" identifier = (cast_expression "(char *)(iVar5 + 0x13)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x13)" ( (binary_expression "iVar5 + 0x13" identifier + number_literal) )))) ;) (expression_statement "iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9)" identifier = (call_expression "(*(code *)PTR_strlen_000a7ddc)(pcVar9)" (parenthesized_expression "(*(code *)PTR_strlen_000a7ddc)" ( (pointer_expression "*(code *)PTR_strlen_000a7ddc" * (cast_expression "(code *)PTR_strlen_000a7ddc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar9)" ( identifier )))) ;) (expression_statement "iVar10 = iVar4 + iVar5 + 1;" (assignment_expression "iVar10 = iVar4 + iVar5 + 1" identifier = (binary_expression "iVar4 + iVar5 + 1" (binary_expression "iVar4 + iVar5" identifier + identifier) + number_literal)) ;) (if_statement "if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }" if (parenthesized_expression "(iVar6 < iVar10)" ( (binary_expression "iVar6 < iVar10" identifier < identifier) )) (compound_statement "{\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }" { (expression_statement "iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);" (assignment_expression "iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1)" identifier = (call_expression "(*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1)" (parenthesized_expression "(*(code *)PTR_saferealloc_000a71a4)" ( (pointer_expression "*(code *)PTR_saferealloc_000a71a4" * (cast_expression "(code *)PTR_saferealloc_000a71a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,iVar4 + iVar5 + 2,1)" ( identifier , (binary_expression "iVar4 + iVar5 + 2" (binary_expression "iVar4 + iVar5" identifier + identifier) + number_literal) , number_literal )))) ;) (expression_statement "iVar6 = iVar10;" (assignment_expression "iVar6 = iVar10" identifier = identifier) ;) })) (expression_statement "puVar2 = PTR_strncpy_000a7cfc;" (assignment_expression "puVar2 = PTR_strncpy_000a7cfc" identifier = identifier) ;) (expression_statement "*(undefined1 *)(iVar3 + iVar4) = 0x2f;" (assignment_expression "*(undefined1 *)(iVar3 + iVar4) = 0x2f" (pointer_expression "*(undefined1 *)(iVar3 + iVar4)" * (cast_expression "(undefined1 *)(iVar3 + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar4)" ( (binary_expression "iVar3 + iVar4" identifier + identifier) )))) = number_literal) ;) (expression_statement "(*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));" (call_expression "(*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1))" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1))" ( (binary_expression "iVar3 + iVar4 + 1" (binary_expression "iVar3 + iVar4" identifier + identifier) + number_literal) , identifier , (binary_expression "iVar10 - (iVar4 + 1)" identifier - (parenthesized_expression "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) ))) ))) ;) (expression_statement "*(undefined1 *)(iVar3 + iVar10) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar10) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar10)" * (cast_expression "(undefined1 *)(iVar3 + iVar10)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar10)" ( (binary_expression "iVar3 + iVar10" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);" (assignment_expression "iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0)" identifier = (call_expression "(*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0)" (parenthesized_expression "(*(code *)PTR___xstat64_000a78fc)" ( (pointer_expression "*(code *)PTR___xstat64_000a78fc" * (cast_expression "(code *)PTR___xstat64_000a78fc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(3,iVar3,auStack_d0)" ( number_literal , identifier , identifier )))) ;) }) while (parenthesized_expression "((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000))" ( (binary_expression "(iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000)" (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) || (parenthesized_expression "((local_b8 & 0xf000) != 0x8000)" ( (binary_expression "(local_b8 & 0xf000) != 0x8000" (parenthesized_expression "(local_b8 & 0xf000)" ( (binary_expression "local_b8 & 0xf000" identifier & number_literal) )) != number_literal) ))) )) ;) (expression_statement "iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9)" identifier = (call_expression "(*(code *)PTR_strlen_000a7ddc)(pcVar9)" (parenthesized_expression "(*(code *)PTR_strlen_000a7ddc)" ( (pointer_expression "*(code *)PTR_strlen_000a7ddc" * (cast_expression "(code *)PTR_strlen_000a7ddc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar9)" ( identifier )))) ;) (expression_statement "pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1)" identifier = (cast_expression "(char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000a70d0)" ( (pointer_expression "*(code *)PTR_safemalloc_000a70d0" * (cast_expression "(code *)PTR_safemalloc_000a70d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6 + 1,1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) , number_literal ))))) ;) (expression_statement "cVar1 = *pcVar9;" (assignment_expression "cVar1 = *pcVar9" identifier = (pointer_expression "*pcVar9" * identifier)) ;) (expression_statement "pcVar8 = pcVar7;" (assignment_expression "pcVar8 = pcVar7" identifier = identifier) ;) (while_statement "while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }" while (parenthesized_expression "(puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0')" ( (comma_expression "puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0'" (assignment_expression "puVar2 = PTR_strncpy_000a7cfc" identifier = identifier) , (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }" { (if_statement "if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }" if (parenthesized_expression "(((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0))" ( (binary_expression "((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)" (parenthesized_expression "((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0))" ( (binary_expression "(cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)" (parenthesized_expression "(cVar1 == '%')" ( (binary_expression "cVar1 == '%'" identifier == (char_literal "'%'" ' character ')) )) && (parenthesized_expression "(iVar6 = (int)pcVar9[1], iVar6 != 0)" ( (comma_expression "iVar6 = (int)pcVar9[1], iVar6 != 0" (assignment_expression "iVar6 = (int)pcVar9[1]" identifier = (cast_expression "(int)pcVar9[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar9[1]" identifier [ number_literal ]))) , (binary_expression "iVar6 != 0" identifier != number_literal)) ))) )) && (parenthesized_expression "(iVar4 = (int)pcVar9[2], iVar4 != 0)" ( (comma_expression "iVar4 = (int)pcVar9[2], iVar4 != 0" (assignment_expression "iVar4 = (int)pcVar9[2]" identifier = (cast_expression "(int)pcVar9[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "pcVar9[2]" identifier [ number_literal ]))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }" { (expression_statement "iVar5 = iVar6 + -0x30;" (assignment_expression "iVar5 = iVar6 + -0x30" identifier = (binary_expression "iVar6 + -0x30" identifier + number_literal)) ;) (if_statement "if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }" if (parenthesized_expression "(9 < iVar5)" ( (binary_expression "9 < iVar5" number_literal < identifier) )) (compound_statement "{\n        iVar5 = iVar6 + -0x37;\n      }" { (expression_statement "iVar5 = iVar6 + -0x37;" (assignment_expression "iVar5 = iVar6 + -0x37" identifier = (binary_expression "iVar6 + -0x37" identifier + number_literal)) ;) })) (expression_statement "iVar6 = iVar4 + -0x30;" (assignment_expression "iVar6 = iVar4 + -0x30" identifier = (binary_expression "iVar4 + -0x30" identifier + number_literal)) ;) (if_statement "if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }" if (parenthesized_expression "(9 < iVar6)" ( (binary_expression "9 < iVar6" number_literal < identifier) )) (compound_statement "{\n        iVar6 = iVar4 + -0x37;\n      }" { (expression_statement "iVar6 = iVar4 + -0x37;" (assignment_expression "iVar6 = iVar4 + -0x37" identifier = (binary_expression "iVar4 + -0x37" identifier + number_literal)) ;) })) (expression_statement "pcVar9 = pcVar9 + 3;" (assignment_expression "pcVar9 = pcVar9 + 3" identifier = (binary_expression "pcVar9 + 3" identifier + number_literal)) ;) (expression_statement "*pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;" (assignment_expression "*pcVar8 = (char)iVar5 * '\x10' + (char)iVar6" (pointer_expression "*pcVar8" * identifier) = (binary_expression "(char)iVar5 * '\x10' + (char)iVar6" (binary_expression "(char)iVar5 * '\x10'" (cast_expression "(char)iVar5" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\x10'" ' escape_sequence ')) + (cast_expression "(char)iVar6" ( (type_descriptor "char" primitive_type) ) identifier))) ;) }) (else_clause "else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }" else (compound_statement "{\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }" { (expression_statement "*pcVar8 = cVar1;" (assignment_expression "*pcVar8 = cVar1" (pointer_expression "*pcVar8" * identifier) = identifier) ;) (expression_statement "pcVar9 = pcVar9 + 1;" (assignment_expression "pcVar9 = pcVar9 + 1" identifier = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) }))) (expression_statement "pcVar8 = pcVar8 + 1;" (assignment_expression "pcVar8 = pcVar8 + 1" identifier = (binary_expression "pcVar8 + 1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar9;" (assignment_expression "cVar1 = *pcVar9" identifier = (pointer_expression "*pcVar9" * identifier)) ;) })) (expression_statement "*pcVar8 = '\0';" (assignment_expression "*pcVar8 = '\0'" (pointer_expression "*pcVar8" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "(*(code *)puVar2)(param_2,pcVar7,param_3);" (call_expression "(*(code *)puVar2)(param_2,pcVar7,param_3)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,pcVar7,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar2 = PTR_safefree_000a70d4;" (assignment_expression "puVar2 = PTR_safefree_000a70d4" identifier = identifier) ;) (expression_statement "*(undefined1 *)(param_2 + param_3 + -1) = 0;" (assignment_expression "*(undefined1 *)(param_2 + param_3 + -1) = 0" (pointer_expression "*(undefined1 *)(param_2 + param_3 + -1)" * (cast_expression "(undefined1 *)(param_2 + param_3 + -1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + param_3 + -1)" ( (binary_expression "param_2 + param_3 + -1" (binary_expression "param_2 + param_3" identifier + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)puVar2)(pcVar7);" (call_expression "(*(code *)puVar2)(pcVar7)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000a70d4)(iVar3);" (call_expression "(*(code *)PTR_safefree_000a70d4)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" ( (pointer_expression "*(code *)PTR_safefree_000a70d4" * (cast_expression "(code *)PTR_safefree_000a70d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (labeled_statement "LAB_00070268:\n  if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar11)" ( (binary_expression "local_2c == *(int *)puVar11" identifier == (pointer_expression "*(int *)puVar11" * (cast_expression "(int *)puVar11" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return param_2;\n  }" { (return_statement "return param_2;" return identifier ;) }))) (expression_statement "puVar11 = PTR___stack_chk_fail_000a7b74;" (assignment_expression "puVar11 = PTR___stack_chk_fail_000a7b74" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000a7b74)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a7b74)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a7b74)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000a7b74" * (cast_expression "(code *)PTR___stack_chk_fail_000a7b74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar6 = (**(code **)(puVar11 + 0x37720))();" (assignment_expression "iVar6 = (**(code **)(puVar11 + 0x37720))()" identifier = (call_expression "(**(code **)(puVar11 + 0x37720))()" (parenthesized_expression "(**(code **)(puVar11 + 0x37720))" ( (pointer_expression "**(code **)(puVar11 + 0x37720)" * (pointer_expression "*(code **)(puVar11 + 0x37720)" * (cast_expression "(code **)(puVar11 + 0x37720)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + 0x37720)" ( (binary_expression "puVar11 + 0x37720" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (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 ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression (binary_expression IDENT + IDENT) + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + LIT) , IDENT , (binary_expression IDENT - (parenthesized_expression ( (binary_expression IDENT + LIT) ))) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , IDENT , IDENT )))) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) ))) )) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != (char_literal ' escape_sequence '))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) , (binary_expression IDENT != LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (char_literal ' escape_sequence ')) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' escape_sequence ')) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })))
(function_definition "int enum_settings_next(undefined4 param_1,int param_2,int param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int iVar10;\n  undefined *puVar11;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_000a7ec8;\n  local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = FUN_0006eb30(4,0);\n  iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);\n  iVar6 = iVar4;\n  do {\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));\n  iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n  pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);\n  cVar1 = *pcVar9;\n  pcVar8 = pcVar7;\n  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }\n  *pcVar8 = '\0';\n  (*(code *)puVar2)(param_2,pcVar7,param_3);\n  puVar2 = PTR_safefree_000a70d4;\n  *(undefined1 *)(param_2 + param_3 + -1) = 0;\n  (*(code *)puVar2)(pcVar7);\n  (*(code *)PTR_safefree_000a70d4)(iVar3);\nLAB_00070268:\n  if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }\n  puVar11 = PTR___stack_chk_fail_000a7b74;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    \n                    \n  iVar6 = (**(code **)(puVar11 + 0x37720))();\n  return iVar6;\n}" (primitive_type "int") (function_declarator "enum_settings_next(undefined4 param_1,int param_2,int param_3)" (identifier "enum_settings_next") (parameter_list "(undefined4 param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  char *pcVar9;\n  int iVar10;\n  undefined *puVar11;\n  undefined1 auStack_d0 [24];\n  uint local_b8;\n  int local_2c;\n  \n  puVar11 = PTR___stack_chk_guard_000a7ec8;\n  local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;\n  iVar3 = FUN_0006eb30(4,0);\n  iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);\n  iVar6 = iVar4;\n  do {\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));\n  iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n  pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);\n  cVar1 = *pcVar9;\n  pcVar8 = pcVar7;\n  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }\n  *pcVar8 = '\0';\n  (*(code *)puVar2)(param_2,pcVar7,param_3);\n  puVar2 = PTR_safefree_000a70d4;\n  *(undefined1 *)(param_2 + param_3 + -1) = 0;\n  (*(code *)puVar2)(pcVar7);\n  (*(code *)PTR_safefree_000a70d4)(iVar3);\nLAB_00070268:\n  if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }\n  puVar11 = PTR___stack_chk_fail_000a7b74;\n  (*(code *)PTR___stack_chk_fail_000a7b74)();\n                    \n                    \n  iVar6 = (**(code **)(puVar11 + 0x37720))();\n  return iVar6;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (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 "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "char *pcVar9;" (primitive_type "char") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "undefined *puVar11;" (type_identifier "undefined") (pointer_declarator "*puVar11" (* "*") (identifier "puVar11")) (; ";")) (declaration "undefined1 auStack_d0 [24];" (type_identifier "undefined1") (array_declarator "auStack_d0 [24]" (identifier "auStack_d0") ([ "[") (number_literal "24") (] "]")) (; ";")) (declaration "uint local_b8;" (type_identifier "uint") (identifier "local_b8") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar11 = PTR___stack_chk_guard_000a7ec8;" (assignment_expression "puVar11 = PTR___stack_chk_guard_000a7ec8" (identifier "puVar11") (= "=") (identifier "PTR___stack_chk_guard_000a7ec8")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000a7ec8" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000a7ec8" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000a7ec8" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000a7ec8")))) (; ";")) (expression_statement "iVar3 = FUN_0006eb30(4,0);" (assignment_expression "iVar3 = FUN_0006eb30(4,0)" (identifier "iVar3") (= "=") (call_expression "FUN_0006eb30(4,0)" (identifier "FUN_0006eb30") (argument_list "(4,0)" (( "(") (number_literal "4") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strlen_000a7ddc)(iVar3)" (parenthesized_expression "(*(code *)PTR_strlen_000a7ddc)" (( "(") (pointer_expression "*(code *)PTR_strlen_000a7ddc" (* "*") (cast_expression "(code *)PTR_strlen_000a7ddc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000a7ddc"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "iVar6 = iVar4;" (assignment_expression "iVar6 = iVar4" (identifier "iVar6") (= "=") (identifier "iVar4")) (; ";")) (do_statement "do {\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));" (do "do") (compound_statement "{\n    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);\n    if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }\n    pcVar9 = (char *)(iVar5 + 0x13);\n    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);\n    iVar10 = iVar4 + iVar5 + 1;\n    if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }\n    puVar2 = PTR_strncpy_000a7cfc;\n    *(undefined1 *)(iVar3 + iVar4) = 0x2f;\n    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));\n    *(undefined1 *)(iVar3 + iVar10) = 0;\n    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);\n  }" ({ "{") (expression_statement "iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);" (assignment_expression "iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_readdir64_000a7b6c)(param_1)" (parenthesized_expression "(*(code *)PTR_readdir64_000a7b6c)" (( "(") (pointer_expression "*(code *)PTR_readdir64_000a7b6c" (* "*") (cast_expression "(code *)PTR_readdir64_000a7b6c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_readdir64_000a7b6c"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_safefree_000a70d4)(iVar3);\n      param_2 = 0;\n      goto LAB_00070268;\n    }" ({ "{") (expression_statement "(*(code *)PTR_safefree_000a70d4)(iVar3);" (call_expression "(*(code *)PTR_safefree_000a70d4)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" (( "(") (pointer_expression "*(code *)PTR_safefree_000a70d4" (* "*") (cast_expression "(code *)PTR_safefree_000a70d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000a70d4"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" (identifier "param_2") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00070268;" (goto "goto") (statement_identifier "LAB_00070268") (; ";")) (} "}"))) (expression_statement "pcVar9 = (char *)(iVar5 + 0x13);" (assignment_expression "pcVar9 = (char *)(iVar5 + 0x13)" (identifier "pcVar9") (= "=") (cast_expression "(char *)(iVar5 + 0x13)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x13)" (( "(") (binary_expression "iVar5 + 0x13" (identifier "iVar5") (+ "+") (number_literal "0x13")) () ")")))) (; ";")) (expression_statement "iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_strlen_000a7ddc)(pcVar9)" (parenthesized_expression "(*(code *)PTR_strlen_000a7ddc)" (( "(") (pointer_expression "*(code *)PTR_strlen_000a7ddc" (* "*") (cast_expression "(code *)PTR_strlen_000a7ddc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000a7ddc"))) () ")")) (argument_list "(pcVar9)" (( "(") (identifier "pcVar9") () ")")))) (; ";")) (expression_statement "iVar10 = iVar4 + iVar5 + 1;" (assignment_expression "iVar10 = iVar4 + iVar5 + 1" (identifier "iVar10") (= "=") (binary_expression "iVar4 + iVar5 + 1" (binary_expression "iVar4 + iVar5" (identifier "iVar4") (+ "+") (identifier "iVar5")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar6 < iVar10) {\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }" (if "if") (parenthesized_expression "(iVar6 < iVar10)" (( "(") (binary_expression "iVar6 < iVar10" (identifier "iVar6") (< "<") (identifier "iVar10")) () ")")) (compound_statement "{\n      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);\n      iVar6 = iVar10;\n    }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);" (assignment_expression "iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1)" (parenthesized_expression "(*(code *)PTR_saferealloc_000a71a4)" (( "(") (pointer_expression "*(code *)PTR_saferealloc_000a71a4" (* "*") (cast_expression "(code *)PTR_saferealloc_000a71a4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_saferealloc_000a71a4"))) () ")")) (argument_list "(iVar3,iVar4 + iVar5 + 2,1)" (( "(") (identifier "iVar3") (, ",") (binary_expression "iVar4 + iVar5 + 2" (binary_expression "iVar4 + iVar5" (identifier "iVar4") (+ "+") (identifier "iVar5")) (+ "+") (number_literal "2")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "iVar6 = iVar10;" (assignment_expression "iVar6 = iVar10" (identifier "iVar6") (= "=") (identifier "iVar10")) (; ";")) (} "}"))) (expression_statement "puVar2 = PTR_strncpy_000a7cfc;" (assignment_expression "puVar2 = PTR_strncpy_000a7cfc" (identifier "puVar2") (= "=") (identifier "PTR_strncpy_000a7cfc")) (; ";")) (expression_statement "*(undefined1 *)(iVar3 + iVar4) = 0x2f;" (assignment_expression "*(undefined1 *)(iVar3 + iVar4) = 0x2f" (pointer_expression "*(undefined1 *)(iVar3 + iVar4)" (* "*") (cast_expression "(undefined1 *)(iVar3 + iVar4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar4)" (( "(") (binary_expression "iVar3 + iVar4" (identifier "iVar3") (+ "+") (identifier "iVar4")) () ")")))) (= "=") (number_literal "0x2f")) (; ";")) (expression_statement "(*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));" (call_expression "(*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1))" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1))" (( "(") (binary_expression "iVar3 + iVar4 + 1" (binary_expression "iVar3 + iVar4" (identifier "iVar3") (+ "+") (identifier "iVar4")) (+ "+") (number_literal "1")) (, ",") (identifier "pcVar9") (, ",") (binary_expression "iVar10 - (iVar4 + 1)" (identifier "iVar10") (- "-") (parenthesized_expression "(iVar4 + 1)" (( "(") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) () ")"))) () ")"))) (; ";")) (expression_statement "*(undefined1 *)(iVar3 + iVar10) = 0;" (assignment_expression "*(undefined1 *)(iVar3 + iVar10) = 0" (pointer_expression "*(undefined1 *)(iVar3 + iVar10)" (* "*") (cast_expression "(undefined1 *)(iVar3 + iVar10)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar10)" (( "(") (binary_expression "iVar3 + iVar10" (identifier "iVar3") (+ "+") (identifier "iVar10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);" (assignment_expression "iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0)" (parenthesized_expression "(*(code *)PTR___xstat64_000a78fc)" (( "(") (pointer_expression "*(code *)PTR___xstat64_000a78fc" (* "*") (cast_expression "(code *)PTR___xstat64_000a78fc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___xstat64_000a78fc"))) () ")")) (argument_list "(3,iVar3,auStack_d0)" (( "(") (number_literal "3") (, ",") (identifier "iVar3") (, ",") (identifier "auStack_d0") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000))" (( "(") (binary_expression "(iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000)" (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((local_b8 & 0xf000) != 0x8000)" (( "(") (binary_expression "(local_b8 & 0xf000) != 0x8000" (parenthesized_expression "(local_b8 & 0xf000)" (( "(") (binary_expression "local_b8 & 0xf000" (identifier "local_b8") (& "&") (number_literal "0xf000")) () ")")) (!= "!=") (number_literal "0x8000")) () ")"))) () ")")) (; ";")) (expression_statement "iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);" (assignment_expression "iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_strlen_000a7ddc)(pcVar9)" (parenthesized_expression "(*(code *)PTR_strlen_000a7ddc)" (( "(") (pointer_expression "*(code *)PTR_strlen_000a7ddc" (* "*") (cast_expression "(code *)PTR_strlen_000a7ddc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000a7ddc"))) () ")")) (argument_list "(pcVar9)" (( "(") (identifier "pcVar9") () ")")))) (; ";")) (expression_statement "pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1)" (identifier "pcVar7") (= "=") (cast_expression "(char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000a70d0)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000a70d0" (* "*") (cast_expression "(code *)PTR_safemalloc_000a70d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000a70d0"))) () ")")) (argument_list "(iVar6 + 1,1)" (( "(") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "cVar1 = *pcVar9;" (assignment_expression "cVar1 = *pcVar9" (identifier "cVar1") (= "=") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9"))) (; ";")) (expression_statement "pcVar8 = pcVar7;" (assignment_expression "pcVar8 = pcVar7" (identifier "pcVar8") (= "=") (identifier "pcVar7")) (; ";")) (while_statement "while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }" (while "while") (parenthesized_expression "(puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0')" (( "(") (comma_expression "puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0'" (assignment_expression "puVar2 = PTR_strncpy_000a7cfc" (identifier "puVar2") (= "=") (identifier "PTR_strncpy_000a7cfc")) (, ",") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (compound_statement "{\n    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }\n    pcVar8 = pcVar8 + 1;\n    cVar1 = *pcVar9;\n  }" ({ "{") (if_statement "if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }\n    else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }" (if "if") (parenthesized_expression "(((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0))" (( "(") (binary_expression "((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&\n       (iVar4 = (int)pcVar9[2], iVar4 != 0)" (parenthesized_expression "((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0))" (( "(") (binary_expression "(cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)" (parenthesized_expression "(cVar1 == '%')" (( "(") (binary_expression "cVar1 == '%'" (identifier "cVar1") (== "==") (char_literal "'%'" (' "'") (character "%") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(iVar6 = (int)pcVar9[1], iVar6 != 0)" (( "(") (comma_expression "iVar6 = (int)pcVar9[1], iVar6 != 0" (assignment_expression "iVar6 = (int)pcVar9[1]" (identifier "iVar6") (= "=") (cast_expression "(int)pcVar9[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "pcVar9[1]" (identifier "pcVar9") ([ "[") (number_literal "1") (] "]")))) (, ",") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = (int)pcVar9[2], iVar4 != 0)" (( "(") (comma_expression "iVar4 = (int)pcVar9[2], iVar4 != 0" (assignment_expression "iVar4 = (int)pcVar9[2]" (identifier "iVar4") (= "=") (cast_expression "(int)pcVar9[2]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "pcVar9[2]" (identifier "pcVar9") ([ "[") (number_literal "2") (] "]")))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      iVar5 = iVar6 + -0x30;\n      if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }\n      iVar6 = iVar4 + -0x30;\n      if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }\n      pcVar9 = pcVar9 + 3;\n      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;\n    }" ({ "{") (expression_statement "iVar5 = iVar6 + -0x30;" (assignment_expression "iVar5 = iVar6 + -0x30" (identifier "iVar5") (= "=") (binary_expression "iVar6 + -0x30" (identifier "iVar6") (+ "+") (number_literal "-0x30"))) (; ";")) (if_statement "if (9 < iVar5) {\n        iVar5 = iVar6 + -0x37;\n      }" (if "if") (parenthesized_expression "(9 < iVar5)" (( "(") (binary_expression "9 < iVar5" (number_literal "9") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n        iVar5 = iVar6 + -0x37;\n      }" ({ "{") (expression_statement "iVar5 = iVar6 + -0x37;" (assignment_expression "iVar5 = iVar6 + -0x37" (identifier "iVar5") (= "=") (binary_expression "iVar6 + -0x37" (identifier "iVar6") (+ "+") (number_literal "-0x37"))) (; ";")) (} "}"))) (expression_statement "iVar6 = iVar4 + -0x30;" (assignment_expression "iVar6 = iVar4 + -0x30" (identifier "iVar6") (= "=") (binary_expression "iVar4 + -0x30" (identifier "iVar4") (+ "+") (number_literal "-0x30"))) (; ";")) (if_statement "if (9 < iVar6) {\n        iVar6 = iVar4 + -0x37;\n      }" (if "if") (parenthesized_expression "(9 < iVar6)" (( "(") (binary_expression "9 < iVar6" (number_literal "9") (< "<") (identifier "iVar6")) () ")")) (compound_statement "{\n        iVar6 = iVar4 + -0x37;\n      }" ({ "{") (expression_statement "iVar6 = iVar4 + -0x37;" (assignment_expression "iVar6 = iVar4 + -0x37" (identifier "iVar6") (= "=") (binary_expression "iVar4 + -0x37" (identifier "iVar4") (+ "+") (number_literal "-0x37"))) (; ";")) (} "}"))) (expression_statement "pcVar9 = pcVar9 + 3;" (assignment_expression "pcVar9 = pcVar9 + 3" (identifier "pcVar9") (= "=") (binary_expression "pcVar9 + 3" (identifier "pcVar9") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "*pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;" (assignment_expression "*pcVar8 = (char)iVar5 * '\x10' + (char)iVar6" (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) (= "=") (binary_expression "(char)iVar5 * '\x10' + (char)iVar6" (binary_expression "(char)iVar5 * '\x10'" (cast_expression "(char)iVar5" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar5")) (* "*") (char_literal "'\x10'" (' "'") (escape_sequence "\x10") (' "'"))) (+ "+") (cast_expression "(char)iVar6" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar6")))) (; ";")) (} "}")) (else_clause "else {\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }" (else "else") (compound_statement "{\n      *pcVar8 = cVar1;\n      pcVar9 = pcVar9 + 1;\n    }" ({ "{") (expression_statement "*pcVar8 = cVar1;" (assignment_expression "*pcVar8 = cVar1" (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) (= "=") (identifier "cVar1")) (; ";")) (expression_statement "pcVar9 = pcVar9 + 1;" (assignment_expression "pcVar9 = pcVar9 + 1" (identifier "pcVar9") (= "=") (binary_expression "pcVar9 + 1" (identifier "pcVar9") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "pcVar8 = pcVar8 + 1;" (assignment_expression "pcVar8 = pcVar8 + 1" (identifier "pcVar8") (= "=") (binary_expression "pcVar8 + 1" (identifier "pcVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar9;" (assignment_expression "cVar1 = *pcVar9" (identifier "cVar1") (= "=") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9"))) (; ";")) (} "}"))) (expression_statement "*pcVar8 = '\0';" (assignment_expression "*pcVar8 = '\0'" (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "(*(code *)puVar2)(param_2,pcVar7,param_3);" (call_expression "(*(code *)puVar2)(param_2,pcVar7,param_3)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(param_2,pcVar7,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "pcVar7") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "puVar2 = PTR_safefree_000a70d4;" (assignment_expression "puVar2 = PTR_safefree_000a70d4" (identifier "puVar2") (= "=") (identifier "PTR_safefree_000a70d4")) (; ";")) (expression_statement "*(undefined1 *)(param_2 + param_3 + -1) = 0;" (assignment_expression "*(undefined1 *)(param_2 + param_3 + -1) = 0" (pointer_expression "*(undefined1 *)(param_2 + param_3 + -1)" (* "*") (cast_expression "(undefined1 *)(param_2 + param_3 + -1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + param_3 + -1)" (( "(") (binary_expression "param_2 + param_3 + -1" (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3")) (+ "+") (number_literal "-1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)puVar2)(pcVar7);" (call_expression "(*(code *)puVar2)(pcVar7)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(pcVar7)" (( "(") (identifier "pcVar7") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000a70d4)(iVar3);" (call_expression "(*(code *)PTR_safefree_000a70d4)(iVar3)" (parenthesized_expression "(*(code *)PTR_safefree_000a70d4)" (( "(") (pointer_expression "*(code *)PTR_safefree_000a70d4" (* "*") (cast_expression "(code *)PTR_safefree_000a70d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000a70d4"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (labeled_statement "LAB_00070268:\n  if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }" (statement_identifier "LAB_00070268") (: ":") (if_statement "if (local_2c == *(int *)puVar11) {\n    return param_2;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar11)" (( "(") (binary_expression "local_2c == *(int *)puVar11" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar11" (* "*") (cast_expression "(int *)puVar11" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar11")))) () ")")) (compound_statement "{\n    return param_2;\n  }" ({ "{") (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))) (expression_statement "puVar11 = PTR___stack_chk_fail_000a7b74;" (assignment_expression "puVar11 = PTR___stack_chk_fail_000a7b74" (identifier "puVar11") (= "=") (identifier "PTR___stack_chk_fail_000a7b74")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000a7b74)();" (call_expression "(*(code *)PTR___stack_chk_fail_000a7b74)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000a7b74)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000a7b74" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000a7b74" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000a7b74"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar6 = (**(code **)(puVar11 + 0x37720))();" (assignment_expression "iVar6 = (**(code **)(puVar11 + 0x37720))()" (identifier "iVar6") (= "=") (call_expression "(**(code **)(puVar11 + 0x37720))()" (parenthesized_expression "(**(code **)(puVar11 + 0x37720))" (( "(") (pointer_expression "**(code **)(puVar11 + 0x37720)" (* "*") (pointer_expression "*(code **)(puVar11 + 0x37720)" (* "*") (cast_expression "(code **)(puVar11 + 0x37720)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar11 + 0x37720)" (( "(") (binary_expression "puVar11 + 0x37720" (identifier "puVar11") (+ "+") (number_literal "0x37720")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar6;" (return "return") (identifier "iVar6") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (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: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (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)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal))) (expression_statement (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)) (identifier) (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (identifier) (identifier)))))) condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (character)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (char_literal (escape_sequence))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (char_literal (escape_sequence)))) (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) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (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)))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list)))) (return_statement (identifier)))))

int MASKED(undefined4 param_1,int param_2,int param_3)

{
  char cVar1;
  undefined *puVar2;
  int iVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  char *pcVar7;
  char *pcVar8;
  char *pcVar9;
  int iVar10;
  undefined *puVar11;
  undefined1 auStack_d0 [24];
  uint local_b8;
  int local_2c;
  
  puVar11 = PTR___stack_chk_guard_000a7ec8;
  local_2c = *(int *)PTR___stack_chk_guard_000a7ec8;
  iVar3 = FUN_0006eb30(4,0);
  iVar4 = (*(code *)PTR_strlen_000a7ddc)(iVar3);
  iVar6 = iVar4;
  do {
    iVar5 = (*(code *)PTR_readdir64_000a7b6c)(param_1);
    if (iVar5 == 0) {
      (*(code *)PTR_safefree_000a70d4)(iVar3);
      param_2 = 0;
      goto LAB_00070268;
    }
    pcVar9 = (char *)(iVar5 + 0x13);
    iVar5 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);
    iVar10 = iVar4 + iVar5 + 1;
    if (iVar6 < iVar10) {
      iVar3 = (*(code *)PTR_saferealloc_000a71a4)(iVar3,iVar4 + iVar5 + 2,1);
      iVar6 = iVar10;
    }
    puVar2 = PTR_strncpy_000a7cfc;
    *(undefined1 *)(iVar3 + iVar4) = 0x2f;
    (*(code *)puVar2)(iVar3 + iVar4 + 1,pcVar9,iVar10 - (iVar4 + 1));
    *(undefined1 *)(iVar3 + iVar10) = 0;
    iVar5 = (*(code *)PTR___xstat64_000a78fc)(3,iVar3,auStack_d0);
  } while ((iVar5 < 0) || ((local_b8 & 0xf000) != 0x8000));
  iVar6 = (*(code *)PTR_strlen_000a7ddc)(pcVar9);
  pcVar7 = (char *)(*(code *)PTR_safemalloc_000a70d0)(iVar6 + 1,1);
  cVar1 = *pcVar9;
  pcVar8 = pcVar7;
  while (puVar2 = PTR_strncpy_000a7cfc, cVar1 != '\0') {
    if (((cVar1 == '%') && (iVar6 = (int)pcVar9[1], iVar6 != 0)) &&
       (iVar4 = (int)pcVar9[2], iVar4 != 0)) {
      iVar5 = iVar6 + -0x30;
      if (9 < iVar5) {
        iVar5 = iVar6 + -0x37;
      }
      iVar6 = iVar4 + -0x30;
      if (9 < iVar6) {
        iVar6 = iVar4 + -0x37;
      }
      pcVar9 = pcVar9 + 3;
      *pcVar8 = (char)iVar5 * '\x10' + (char)iVar6;
    }
    else {
      *pcVar8 = cVar1;
      pcVar9 = pcVar9 + 1;
    }
    pcVar8 = pcVar8 + 1;
    cVar1 = *pcVar9;
  }
  *pcVar8 = '\0';
  (*(code *)puVar2)(param_2,pcVar7,param_3);
  puVar2 = PTR_safefree_000a70d4;
  *(undefined1 *)(param_2 + param_3 + -1) = 0;
  (*(code *)puVar2)(pcVar7);
  (*(code *)PTR_safefree_000a70d4)(iVar3);
LAB_00070268:
  if (local_2c == *(int *)puVar11) {
    return param_2;
  }
  puVar11 = PTR___stack_chk_fail_000a7b74;
  (*(code *)PTR___stack_chk_fail_000a7b74)();
                    /* WARNING: Could not recover jumptable at 0x0007035c. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar6 = (**(code **)(puVar11 + 0x37720))();
  return iVar6;
}

