
usbentry * parse_devlist(DIR *d)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  char *pcVar4;
  undefined4 uVar5;
  usbentry *puVar6;
  usbentry *puVar7;
  char *pcVar8;
  
  do {
    do {
      iVar2 = (*(code *)PTR_readdir_00022078)(d);
      pcVar8 = (char *)(iVar2 + 0xb);
      if (iVar2 == 0) goto LAB_00011170;
      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();
    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);
    iVar2 = (*(code *)PTR_strchr_00022098)(pcVar8,0x3a);
    puVar1 = PTR_DAT_00022038;
  } while (iVar2 != 0);
  puVar7 = (usbentry *)(PTR_DAT_00022038 + 0x2174);
  (*(code *)PTR_memset_00022084)(puVar7,0,0x110);
  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1768);
  if (pcVar4 != (char *)0x0) {
    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);
    *(undefined4 *)(puVar1 + 0x2174) = uVar5;
  }
  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 6000);
  if (pcVar4 != (char *)0x0) {
    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);
    *(undefined4 *)(puVar1 + 0x2178) = uVar5;
  }
  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1778);
  if (pcVar4 != (char *)0x0) {
    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);
    *(undefined4 *)(puVar1 + 0x217c) = uVar5;
  }
  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1784);
  if (pcVar4 != (char *)0x0) {
    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);
    *(undefined4 *)(puVar1 + 0x2180) = uVar5;
  }
  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1790);
  if (pcVar4 != (char *)0x0) {
    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,pcVar4);
  }
  pcVar8 = sysfs_attr(pcVar8,PTR_00022044 + 0x17a0);
  if (pcVar8 != (char *)0x0) {
    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,pcVar8);
  }
  puVar6 = (usbentry *)0x0;
  if ((((*(int *)(puVar1 + 0x2174) != 0) &&
       (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&
      (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&
     (puVar6 = puVar7, *(int *)(puVar1 + 0x2180) == 0)) {
LAB_00011170:
    puVar6 = (usbentry *)0x0;
  }
  return puVar6;
}



undefined * FUN_00010f44(undefined4 param_1)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  undefined4 uVar4;
  undefined *puVar5;
  undefined *puVar6;
  int iVar7;
  
  do {
    do {
      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);
      iVar7 = iVar2 + 0xb;
      if (iVar2 == 0) goto LAB_00011170;
      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();
    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);
    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);
    puVar1 = PTR_DAT_00022038;
  } while (iVar2 != 0);
  puVar6 = PTR_DAT_00022038 + 0x2174;
  (*(code *)PTR_memset_00022084)(puVar6,0,0x110);
  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);
  if (iVar2 != 0) {
    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);
    *(undefined4 *)(puVar1 + 0x2174) = uVar4;
  }
  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);
  if (iVar2 != 0) {
    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);
    *(undefined4 *)(puVar1 + 0x2178) = uVar4;
  }
  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);
  if (iVar2 != 0) {
    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);
    *(undefined4 *)(puVar1 + 0x217c) = uVar4;
  }
  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);
  if (iVar2 != 0) {
    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);
    *(undefined4 *)(puVar1 + 0x2180) = uVar4;
  }
  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);
  if (iVar2 != 0) {
    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);
  }
  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);
  if (iVar2 != 0) {
    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);
  }
  puVar5 = (undefined *)0x0;
  if ((((*(int *)(puVar1 + 0x2174) != 0) &&
       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&
      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&
     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {
LAB_00011170:
    puVar5 = (undefined *)0x0;
  }
  return puVar5;
}


lui gp,0x2
addiu gp,gp,-0x6f34
addu gp,gp,t9
addiu sp,sp,-0x30
sw s2,0x24(sp)
or s2,a0,zero
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s1,0x20(sp)
sw s0,0x1c(sp)
lw t9,-0x7f98(gp)
jalr t9
_or a0,s2,zero
lw gp,0x10(sp)
or s0,v0,zero
addiu s1,v0,0xb
beq v0,zero,0x00011170
_lw t9,-0x7fac(gp)
jalr t9
_nop
li a1,0x3a
lb v1,0xb(s0)
or a0,s1,zero
lw v0,0x0(v0)
lw gp,0x10(sp)
sll v1,v1,0x1
addu v0,v0,v1
lhu v0,0x0(v0)
andi v0,v0,0x8
beq v0,zero,0x00010f70
_lw t9,-0x7f78(gp)
jalr t9
_nop
bne v0,zero,0x00010f70
_lw gp,0x10(sp)
lw s3,-0x7fd8(gp)
li a2,0x110
lw t9,-0x7f8c(gp)
or a1,zero,zero
addiu s0,s3,0x2174
jalr t9
_or a0,s0,zero
or a0,s1,zero
lw gp,0x10(sp)
lw s2,-0x7fcc(gp)
lw a1,-0x7fcc(gp)
addiu s2,s2,0xdc0
or t9,s2,zero
bal 0x00010dc0
_addiu a1,a1,0x1768
beq v0,zero,0x00011034
_lw gp,0x10(sp)
lw t9,-0x7f74(gp)
li a2,0xa
or a1,zero,zero
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
sw v0,0x2174(s3)
lw a1,-0x7fcc(gp)
or a0,s1,zero
or t9,s2,zero
bal 0x00010dc0
_addiu a1,a1,0x1770
beq v0,zero,0x0001106c
_lw gp,0x10(sp)
lw t9,-0x7f74(gp)
li a2,0xa
or a1,zero,zero
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
sw v0,0x4(s0)
lw a1,-0x7fcc(gp)
or a0,s1,zero
or t9,s2,zero
bal 0x00010dc0
_addiu a1,a1,0x1778
beq v0,zero,0x000110a4
_lw gp,0x10(sp)
lw t9,-0x7f74(gp)
li a2,0x10
or a1,zero,zero
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
sw v0,0x8(s0)
lw a1,-0x7fcc(gp)
or a0,s1,zero
or t9,s2,zero
bal 0x00010dc0
_addiu a1,a1,0x1784
beq v0,zero,0x000110dc
_lw gp,0x10(sp)
lw t9,-0x7f74(gp)
li a2,0x10
or a1,zero,zero
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
sw v0,0xc(s0)
lw a1,-0x7fcc(gp)
or a0,s1,zero
or t9,s2,zero
bal 0x00010dc0
_addiu a1,a1,0x1790
beq v0,zero,0x00011110
_lw gp,0x10(sp)
lw a0,-0x7fd8(gp)
or a1,v0,zero
lw t9,-0x7f60(gp)
jalr t9
_addiu a0,a0,0x2184
lw gp,0x10(sp)
lw a1,-0x7fcc(gp)
or a0,s1,zero
or t9,s2,zero
bal 0x00010dc0
_addiu a1,a1,0x17a0
beq v0,zero,0x00011140
_lw gp,0x10(sp)
lw a0,-0x7fd8(gp)
or a1,v0,zero
lw t9,-0x7f60(gp)
jalr t9
_addiu a0,a0,0x2204
lw v0,0x2174(s3)
beq v0,zero,0x00011174
_or v0,zero,zero
lw v0,0x4(s0)
beq v0,zero,0x00011174
_or v0,zero,zero
lw v0,0x8(s0)
beq v0,zero,0x00011174
_or v0,zero,zero
lw v0,0xc(s0)
bne v0,zero,0x00011174
_or v0,s0,zero
or v0,zero,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "undefined * FUN_00010f44(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  \n  do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);\n  puVar6 = PTR_DAT_00022038 + 0x2174;\n  (*(code *)PTR_memset_00022084)(puVar6,0,0x110);\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }\n  puVar5 = (undefined *)0x0;\n  if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }\n  return puVar5;\n}\n\n" (function_definition "undefined * FUN_00010f44(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  \n  do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);\n  puVar6 = PTR_DAT_00022038 + 0x2174;\n  (*(code *)PTR_memset_00022084)(puVar6,0,0x110);\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }\n  puVar5 = (undefined *)0x0;\n  if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }\n  return puVar5;\n}" type_identifier (pointer_declarator "* FUN_00010f44(undefined4 param_1)" * (function_declarator "FUN_00010f44(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  \n  do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);\n  puVar6 = PTR_DAT_00022038 + 0x2174;\n  (*(code *)PTR_memset_00022084)(puVar6,0,0x110);\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }\n  puVar5 = (undefined *)0x0;\n  if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }\n  return puVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (do_statement "do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);" do (compound_statement "{\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  }" { (do_statement "do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);" do (compound_statement "{\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    }" { (expression_statement "iVar2 = (*(code *)PTR_readdir_00022078)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_readdir_00022078)(param_1)" identifier = (call_expression "(*(code *)PTR_readdir_00022078)(param_1)" (parenthesized_expression "(*(code *)PTR_readdir_00022078)" ( (pointer_expression "*(code *)PTR_readdir_00022078" * (cast_expression "(code *)PTR_readdir_00022078" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar7 = iVar2 + 0xb;" (assignment_expression "iVar7 = iVar2 + 0xb" identifier = (binary_expression "iVar2 + 0xb" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0) goto LAB_00011170;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00011170;" goto statement_identifier ;)) (expression_statement "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_00022064)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_00022064)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_00022064)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_00022064" * (cast_expression "(code *)PTR___ctype_b_loc_00022064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) }) while (parenthesized_expression "((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0)" ( (binary_expression "(*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8" (pointer_expression "*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2)" * (cast_expression "(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + *(char *)(iVar2 + 0xb) * 2)" ( (binary_expression "*piVar3 + *(char *)(iVar2 + 0xb) * 2" (pointer_expression "*piVar3" * identifier) + (binary_expression "*(char *)(iVar2 + 0xb) * 2" (pointer_expression "*(char *)(iVar2 + 0xb)" * (cast_expression "(char *)(iVar2 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb)" ( (binary_expression "iVar2 + 0xb" identifier + number_literal) )))) * number_literal)) )))) & number_literal) )) == number_literal) )) ;) (expression_statement "iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);" (assignment_expression "iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a)" identifier = (call_expression "(*(code *)PTR_strchr_00022098)(iVar7,0x3a)" (parenthesized_expression "(*(code *)PTR_strchr_00022098)" ( (pointer_expression "*(code *)PTR_strchr_00022098" * (cast_expression "(code *)PTR_strchr_00022098" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,0x3a)" ( identifier , number_literal )))) ;) (expression_statement "puVar1 = PTR_DAT_00022038;" (assignment_expression "puVar1 = PTR_DAT_00022038" identifier = identifier) ;) }) while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) ;) (expression_statement "puVar6 = PTR_DAT_00022038 + 0x2174;" (assignment_expression "puVar6 = PTR_DAT_00022038 + 0x2174" identifier = (binary_expression "PTR_DAT_00022038 + 0x2174" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_memset_00022084)(puVar6,0,0x110);" (call_expression "(*(code *)PTR_memset_00022084)(puVar6,0,0x110)" (parenthesized_expression "(*(code *)PTR_memset_00022084)" ( (pointer_expression "*(code *)PTR_memset_00022084" * (cast_expression "(code *)PTR_memset_00022084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6,0,0x110)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768)" identifier = (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x1768)" identifier (argument_list "(iVar7,PTR_00022044 + 0x1768)" ( identifier , (binary_expression "PTR_00022044 + 0x1768" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }" { (expression_statement "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);" (assignment_expression "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10)" identifier = (call_expression "(*(code *)PTR_strtoul_0002209c)(iVar2,0,10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" ( (pointer_expression "*(code *)PTR_strtoul_0002209c" * (cast_expression "(code *)PTR_strtoul_0002209c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,0,10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x2174) = uVar4;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2174) = uVar4" (pointer_expression "*(undefined4 *)(puVar1 + 0x2174)" * (cast_expression "(undefined4 *)(puVar1 + 0x2174)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2174)" ( (binary_expression "puVar1 + 0x2174" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000)" identifier = (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 6000)" identifier (argument_list "(iVar7,PTR_00022044 + 6000)" ( identifier , (binary_expression "PTR_00022044 + 6000" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }" { (expression_statement "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);" (assignment_expression "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10)" identifier = (call_expression "(*(code *)PTR_strtoul_0002209c)(iVar2,0,10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" ( (pointer_expression "*(code *)PTR_strtoul_0002209c" * (cast_expression "(code *)PTR_strtoul_0002209c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,0,10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x2178) = uVar4;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2178) = uVar4" (pointer_expression "*(undefined4 *)(puVar1 + 0x2178)" * (cast_expression "(undefined4 *)(puVar1 + 0x2178)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2178)" ( (binary_expression "puVar1 + 0x2178" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778)" identifier = (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x1778)" identifier (argument_list "(iVar7,PTR_00022044 + 0x1778)" ( identifier , (binary_expression "PTR_00022044 + 0x1778" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }" { (expression_statement "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);" (assignment_expression "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10)" identifier = (call_expression "(*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" ( (pointer_expression "*(code *)PTR_strtoul_0002209c" * (cast_expression "(code *)PTR_strtoul_0002209c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,0,0x10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x217c) = uVar4;" (assignment_expression "*(undefined4 *)(puVar1 + 0x217c) = uVar4" (pointer_expression "*(undefined4 *)(puVar1 + 0x217c)" * (cast_expression "(undefined4 *)(puVar1 + 0x217c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x217c)" ( (binary_expression "puVar1 + 0x217c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784)" identifier = (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x1784)" identifier (argument_list "(iVar7,PTR_00022044 + 0x1784)" ( identifier , (binary_expression "PTR_00022044 + 0x1784" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }" { (expression_statement "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);" (assignment_expression "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10)" identifier = (call_expression "(*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" ( (pointer_expression "*(code *)PTR_strtoul_0002209c" * (cast_expression "(code *)PTR_strtoul_0002209c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,0,0x10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x2180) = uVar4;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2180) = uVar4" (pointer_expression "*(undefined4 *)(puVar1 + 0x2180)" * (cast_expression "(undefined4 *)(puVar1 + 0x2180)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2180)" ( (binary_expression "puVar1 + 0x2180" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790)" identifier = (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x1790)" identifier (argument_list "(iVar7,PTR_00022044 + 0x1790)" ( identifier , (binary_expression "PTR_00022044 + 0x1790" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }" { (expression_statement "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);" (call_expression "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2)" (parenthesized_expression "(*(code *)PTR_strcpy_000220b0)" ( (pointer_expression "*(code *)PTR_strcpy_000220b0" * (cast_expression "(code *)PTR_strcpy_000220b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00022038 + 0x2184,iVar2)" ( (binary_expression "PTR_DAT_00022038 + 0x2184" identifier + number_literal) , identifier ))) ;) })) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0)" identifier = (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0)" identifier (argument_list "(iVar7,PTR_00022044 + 0x17a0)" ( identifier , (binary_expression "PTR_00022044 + 0x17a0" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }" { (expression_statement "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);" (call_expression "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2)" (parenthesized_expression "(*(code *)PTR_strcpy_000220b0)" ( (pointer_expression "*(code *)PTR_strcpy_000220b0" * (cast_expression "(code *)PTR_strcpy_000220b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00022038 + 0x2204,iVar2)" ( (binary_expression "PTR_DAT_00022038 + 0x2204" identifier + number_literal) , identifier ))) ;) })) (expression_statement "puVar5 = (undefined *)0x0;" (assignment_expression "puVar5 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }" if (parenthesized_expression "((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0))" ( (binary_expression "(((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)" (parenthesized_expression "(((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0))" ( (binary_expression "((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)" (parenthesized_expression "((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0))" ( (binary_expression "(*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)" (parenthesized_expression "(*(int *)(puVar1 + 0x2174) != 0)" ( (binary_expression "*(int *)(puVar1 + 0x2174) != 0" (pointer_expression "*(int *)(puVar1 + 0x2174)" * (cast_expression "(int *)(puVar1 + 0x2174)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2174)" ( (binary_expression "puVar1 + 0x2174" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)" ( (comma_expression "puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0" (assignment_expression "puVar5 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) , (binary_expression "*(int *)(puVar1 + 0x2178) != 0" (pointer_expression "*(int *)(puVar1 + 0x2178)" * (cast_expression "(int *)(puVar1 + 0x2178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2178)" ( (binary_expression "puVar1 + 0x2178" identifier + number_literal) )))) != number_literal)) ))) )) && (parenthesized_expression "(puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)" ( (comma_expression "puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0" (assignment_expression "puVar5 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) , (binary_expression "*(int *)(puVar1 + 0x217c) != 0" (pointer_expression "*(int *)(puVar1 + 0x217c)" * (cast_expression "(int *)(puVar1 + 0x217c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x217c)" ( (binary_expression "puVar1 + 0x217c" identifier + number_literal) )))) != number_literal)) ))) )) && (parenthesized_expression "(puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)" ( (comma_expression "puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0" (assignment_expression "puVar5 = puVar6" identifier = identifier) , (binary_expression "*(int *)(puVar1 + 0x2180) == 0" (pointer_expression "*(int *)(puVar1 + 0x2180)" * (cast_expression "(int *)(puVar1 + 0x2180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2180)" ( (binary_expression "puVar1 + 0x2180" identifier + number_literal) )))) == number_literal)) ))) )) (compound_statement "{\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }" { (labeled_statement "LAB_00011170:\n    puVar5 = (undefined *)0x0;" statement_identifier : (expression_statement "puVar5 = (undefined *)0x0;" (assignment_expression "puVar5 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) })) (return_statement "return puVar5;" return identifier ;) })))
(translation_unit "usbentry * parse_devlist(DIR *d)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  usbentry *puVar6;\n  usbentry *puVar7;\n  char *pcVar8;\n  \n  do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(d);\n      pcVar8 = (char *)(iVar2 + 0xb);\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(pcVar8,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);\n  puVar7 = (usbentry *)(PTR_DAT_00022038 + 0x2174);\n  (*(code *)PTR_memset_00022084)(puVar7,0,0x110);\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1768);\n  if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar5;\n  }\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 6000);\n  if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar5;\n  }\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1778);\n  if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar5;\n  }\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1784);\n  if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar5;\n  }\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1790);\n  if (pcVar4 != (char *)0x0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,pcVar4);\n  }\n  pcVar8 = sysfs_attr(pcVar8,PTR_00022044 + 0x17a0);\n  if (pcVar8 != (char *)0x0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,pcVar8);\n  }\n  puVar6 = (usbentry *)0x0;\n  if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar6 = puVar7, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar6 = (usbentry *)0x0;\n  }\n  return puVar6;\n}\n\n" (function_definition "usbentry * parse_devlist(DIR *d)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  usbentry *puVar6;\n  usbentry *puVar7;\n  char *pcVar8;\n  \n  do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(d);\n      pcVar8 = (char *)(iVar2 + 0xb);\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(pcVar8,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);\n  puVar7 = (usbentry *)(PTR_DAT_00022038 + 0x2174);\n  (*(code *)PTR_memset_00022084)(puVar7,0,0x110);\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1768);\n  if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar5;\n  }\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 6000);\n  if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar5;\n  }\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1778);\n  if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar5;\n  }\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1784);\n  if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar5;\n  }\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1790);\n  if (pcVar4 != (char *)0x0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,pcVar4);\n  }\n  pcVar8 = sysfs_attr(pcVar8,PTR_00022044 + 0x17a0);\n  if (pcVar8 != (char *)0x0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,pcVar8);\n  }\n  puVar6 = (usbentry *)0x0;\n  if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar6 = puVar7, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar6 = (usbentry *)0x0;\n  }\n  return puVar6;\n}" type_identifier (pointer_declarator "* parse_devlist(DIR *d)" * (function_declarator "parse_devlist(DIR *d)" identifier (parameter_list "(DIR *d)" ( (parameter_declaration "DIR *d" type_identifier (pointer_declarator "*d" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  char *pcVar4;\n  undefined4 uVar5;\n  usbentry *puVar6;\n  usbentry *puVar7;\n  char *pcVar8;\n  \n  do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(d);\n      pcVar8 = (char *)(iVar2 + 0xb);\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(pcVar8,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);\n  puVar7 = (usbentry *)(PTR_DAT_00022038 + 0x2174);\n  (*(code *)PTR_memset_00022084)(puVar7,0,0x110);\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1768);\n  if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar5;\n  }\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 6000);\n  if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar5;\n  }\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1778);\n  if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar5;\n  }\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1784);\n  if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar5;\n  }\n  pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1790);\n  if (pcVar4 != (char *)0x0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,pcVar4);\n  }\n  pcVar8 = sysfs_attr(pcVar8,PTR_00022044 + 0x17a0);\n  if (pcVar8 != (char *)0x0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,pcVar8);\n  }\n  puVar6 = (usbentry *)0x0;\n  if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar6 = puVar7, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar6 = (usbentry *)0x0;\n  }\n  return puVar6;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "usbentry *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "usbentry *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (do_statement "do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(d);\n      pcVar8 = (char *)(iVar2 + 0xb);\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(pcVar8,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);" do (compound_statement "{\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(d);\n      pcVar8 = (char *)(iVar2 + 0xb);\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(pcVar8,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  }" { (do_statement "do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(d);\n      pcVar8 = (char *)(iVar2 + 0xb);\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);" do (compound_statement "{\n      iVar2 = (*(code *)PTR_readdir_00022078)(d);\n      pcVar8 = (char *)(iVar2 + 0xb);\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    }" { (expression_statement "iVar2 = (*(code *)PTR_readdir_00022078)(d);" (assignment_expression "iVar2 = (*(code *)PTR_readdir_00022078)(d)" identifier = (call_expression "(*(code *)PTR_readdir_00022078)(d)" (parenthesized_expression "(*(code *)PTR_readdir_00022078)" ( (pointer_expression "*(code *)PTR_readdir_00022078" * (cast_expression "(code *)PTR_readdir_00022078" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(d)" ( identifier )))) ;) (expression_statement "pcVar8 = (char *)(iVar2 + 0xb);" (assignment_expression "pcVar8 = (char *)(iVar2 + 0xb)" identifier = (cast_expression "(char *)(iVar2 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb)" ( (binary_expression "iVar2 + 0xb" identifier + number_literal) )))) ;) (if_statement "if (iVar2 == 0) goto LAB_00011170;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00011170;" goto statement_identifier ;)) (expression_statement "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_00022064)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_00022064)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_00022064)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_00022064" * (cast_expression "(code *)PTR___ctype_b_loc_00022064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) }) while (parenthesized_expression "((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0)" ( (binary_expression "(*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8" (pointer_expression "*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2)" * (cast_expression "(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + *(char *)(iVar2 + 0xb) * 2)" ( (binary_expression "*piVar3 + *(char *)(iVar2 + 0xb) * 2" (pointer_expression "*piVar3" * identifier) + (binary_expression "*(char *)(iVar2 + 0xb) * 2" (pointer_expression "*(char *)(iVar2 + 0xb)" * (cast_expression "(char *)(iVar2 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb)" ( (binary_expression "iVar2 + 0xb" identifier + number_literal) )))) * number_literal)) )))) & number_literal) )) == number_literal) )) ;) (expression_statement "iVar2 = (*(code *)PTR_strchr_00022098)(pcVar8,0x3a);" (assignment_expression "iVar2 = (*(code *)PTR_strchr_00022098)(pcVar8,0x3a)" identifier = (call_expression "(*(code *)PTR_strchr_00022098)(pcVar8,0x3a)" (parenthesized_expression "(*(code *)PTR_strchr_00022098)" ( (pointer_expression "*(code *)PTR_strchr_00022098" * (cast_expression "(code *)PTR_strchr_00022098" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar8,0x3a)" ( identifier , number_literal )))) ;) (expression_statement "puVar1 = PTR_DAT_00022038;" (assignment_expression "puVar1 = PTR_DAT_00022038" identifier = identifier) ;) }) while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) ;) (expression_statement "puVar7 = (usbentry *)(PTR_DAT_00022038 + 0x2174);" (assignment_expression "puVar7 = (usbentry *)(PTR_DAT_00022038 + 0x2174)" identifier = (cast_expression "(usbentry *)(PTR_DAT_00022038 + 0x2174)" ( (type_descriptor "usbentry *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00022038 + 0x2174)" ( (binary_expression "PTR_DAT_00022038 + 0x2174" identifier + number_literal) )))) ;) (expression_statement "(*(code *)PTR_memset_00022084)(puVar7,0,0x110);" (call_expression "(*(code *)PTR_memset_00022084)(puVar7,0,0x110)" (parenthesized_expression "(*(code *)PTR_memset_00022084)" ( (pointer_expression "*(code *)PTR_memset_00022084" * (cast_expression "(code *)PTR_memset_00022084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar7,0,0x110)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1768);" (assignment_expression "pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1768)" identifier = (call_expression "sysfs_attr(pcVar8,PTR_00022044 + 0x1768)" identifier (argument_list "(pcVar8,PTR_00022044 + 0x1768)" ( identifier , (binary_expression "PTR_00022044 + 0x1768" identifier + number_literal) )))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar5;\n  }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar5;\n  }" { (expression_statement "uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);" (assignment_expression "uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10)" identifier = (call_expression "(*(code *)PTR_strtoul_0002209c)(pcVar4,0,10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" ( (pointer_expression "*(code *)PTR_strtoul_0002209c" * (cast_expression "(code *)PTR_strtoul_0002209c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,0,10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x2174) = uVar5;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2174) = uVar5" (pointer_expression "*(undefined4 *)(puVar1 + 0x2174)" * (cast_expression "(undefined4 *)(puVar1 + 0x2174)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2174)" ( (binary_expression "puVar1 + 0x2174" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 6000);" (assignment_expression "pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 6000)" identifier = (call_expression "sysfs_attr(pcVar8,PTR_00022044 + 6000)" identifier (argument_list "(pcVar8,PTR_00022044 + 6000)" ( identifier , (binary_expression "PTR_00022044 + 6000" identifier + number_literal) )))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar5;\n  }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar5;\n  }" { (expression_statement "uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10);" (assignment_expression "uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,10)" identifier = (call_expression "(*(code *)PTR_strtoul_0002209c)(pcVar4,0,10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" ( (pointer_expression "*(code *)PTR_strtoul_0002209c" * (cast_expression "(code *)PTR_strtoul_0002209c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,0,10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x2178) = uVar5;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2178) = uVar5" (pointer_expression "*(undefined4 *)(puVar1 + 0x2178)" * (cast_expression "(undefined4 *)(puVar1 + 0x2178)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2178)" ( (binary_expression "puVar1 + 0x2178" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1778);" (assignment_expression "pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1778)" identifier = (call_expression "sysfs_attr(pcVar8,PTR_00022044 + 0x1778)" identifier (argument_list "(pcVar8,PTR_00022044 + 0x1778)" ( identifier , (binary_expression "PTR_00022044 + 0x1778" identifier + number_literal) )))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar5;\n  }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar5;\n  }" { (expression_statement "uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);" (assignment_expression "uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10)" identifier = (call_expression "(*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" ( (pointer_expression "*(code *)PTR_strtoul_0002209c" * (cast_expression "(code *)PTR_strtoul_0002209c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,0,0x10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x217c) = uVar5;" (assignment_expression "*(undefined4 *)(puVar1 + 0x217c) = uVar5" (pointer_expression "*(undefined4 *)(puVar1 + 0x217c)" * (cast_expression "(undefined4 *)(puVar1 + 0x217c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x217c)" ( (binary_expression "puVar1 + 0x217c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1784);" (assignment_expression "pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1784)" identifier = (call_expression "sysfs_attr(pcVar8,PTR_00022044 + 0x1784)" identifier (argument_list "(pcVar8,PTR_00022044 + 0x1784)" ( identifier , (binary_expression "PTR_00022044 + 0x1784" identifier + number_literal) )))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar5;\n  }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar5;\n  }" { (expression_statement "uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10);" (assignment_expression "uVar5 = (*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10)" identifier = (call_expression "(*(code *)PTR_strtoul_0002209c)(pcVar4,0,0x10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" ( (pointer_expression "*(code *)PTR_strtoul_0002209c" * (cast_expression "(code *)PTR_strtoul_0002209c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar4,0,0x10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x2180) = uVar5;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2180) = uVar5" (pointer_expression "*(undefined4 *)(puVar1 + 0x2180)" * (cast_expression "(undefined4 *)(puVar1 + 0x2180)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2180)" ( (binary_expression "puVar1 + 0x2180" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1790);" (assignment_expression "pcVar4 = sysfs_attr(pcVar8,PTR_00022044 + 0x1790)" identifier = (call_expression "sysfs_attr(pcVar8,PTR_00022044 + 0x1790)" identifier (argument_list "(pcVar8,PTR_00022044 + 0x1790)" ( identifier , (binary_expression "PTR_00022044 + 0x1790" identifier + number_literal) )))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,pcVar4);\n  }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,pcVar4);\n  }" { (expression_statement "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,pcVar4);" (call_expression "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,pcVar4)" (parenthesized_expression "(*(code *)PTR_strcpy_000220b0)" ( (pointer_expression "*(code *)PTR_strcpy_000220b0" * (cast_expression "(code *)PTR_strcpy_000220b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00022038 + 0x2184,pcVar4)" ( (binary_expression "PTR_DAT_00022038 + 0x2184" identifier + number_literal) , identifier ))) ;) })) (expression_statement "pcVar8 = sysfs_attr(pcVar8,PTR_00022044 + 0x17a0);" (assignment_expression "pcVar8 = sysfs_attr(pcVar8,PTR_00022044 + 0x17a0)" identifier = (call_expression "sysfs_attr(pcVar8,PTR_00022044 + 0x17a0)" identifier (argument_list "(pcVar8,PTR_00022044 + 0x17a0)" ( identifier , (binary_expression "PTR_00022044 + 0x17a0" identifier + number_literal) )))) ;) (if_statement "if (pcVar8 != (char *)0x0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,pcVar8);\n  }" if (parenthesized_expression "(pcVar8 != (char *)0x0)" ( (binary_expression "pcVar8 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,pcVar8);\n  }" { (expression_statement "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,pcVar8);" (call_expression "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,pcVar8)" (parenthesized_expression "(*(code *)PTR_strcpy_000220b0)" ( (pointer_expression "*(code *)PTR_strcpy_000220b0" * (cast_expression "(code *)PTR_strcpy_000220b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00022038 + 0x2204,pcVar8)" ( (binary_expression "PTR_DAT_00022038 + 0x2204" identifier + number_literal) , identifier ))) ;) })) (expression_statement "puVar6 = (usbentry *)0x0;" (assignment_expression "puVar6 = (usbentry *)0x0" identifier = (cast_expression "(usbentry *)0x0" ( (type_descriptor "usbentry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar6 = puVar7, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar6 = (usbentry *)0x0;\n  }" if (parenthesized_expression "((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar6 = puVar7, *(int *)(puVar1 + 0x2180) == 0))" ( (binary_expression "(((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar6 = puVar7, *(int *)(puVar1 + 0x2180) == 0)" (parenthesized_expression "(((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x217c) != 0))" ( (binary_expression "((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x217c) != 0)" (parenthesized_expression "((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0))" ( (binary_expression "(*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0)" (parenthesized_expression "(*(int *)(puVar1 + 0x2174) != 0)" ( (binary_expression "*(int *)(puVar1 + 0x2174) != 0" (pointer_expression "*(int *)(puVar1 + 0x2174)" * (cast_expression "(int *)(puVar1 + 0x2174)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2174)" ( (binary_expression "puVar1 + 0x2174" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0)" ( (comma_expression "puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x2178) != 0" (assignment_expression "puVar6 = (usbentry *)0x0" identifier = (cast_expression "(usbentry *)0x0" ( (type_descriptor "usbentry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) , (binary_expression "*(int *)(puVar1 + 0x2178) != 0" (pointer_expression "*(int *)(puVar1 + 0x2178)" * (cast_expression "(int *)(puVar1 + 0x2178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2178)" ( (binary_expression "puVar1 + 0x2178" identifier + number_literal) )))) != number_literal)) ))) )) && (parenthesized_expression "(puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x217c) != 0)" ( (comma_expression "puVar6 = (usbentry *)0x0, *(int *)(puVar1 + 0x217c) != 0" (assignment_expression "puVar6 = (usbentry *)0x0" identifier = (cast_expression "(usbentry *)0x0" ( (type_descriptor "usbentry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) , (binary_expression "*(int *)(puVar1 + 0x217c) != 0" (pointer_expression "*(int *)(puVar1 + 0x217c)" * (cast_expression "(int *)(puVar1 + 0x217c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x217c)" ( (binary_expression "puVar1 + 0x217c" identifier + number_literal) )))) != number_literal)) ))) )) && (parenthesized_expression "(puVar6 = puVar7, *(int *)(puVar1 + 0x2180) == 0)" ( (comma_expression "puVar6 = puVar7, *(int *)(puVar1 + 0x2180) == 0" (assignment_expression "puVar6 = puVar7" identifier = identifier) , (binary_expression "*(int *)(puVar1 + 0x2180) == 0" (pointer_expression "*(int *)(puVar1 + 0x2180)" * (cast_expression "(int *)(puVar1 + 0x2180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2180)" ( (binary_expression "puVar1 + 0x2180" identifier + number_literal) )))) == number_literal)) ))) )) (compound_statement "{\nLAB_00011170:\n    puVar6 = (usbentry *)0x0;\n  }" { (labeled_statement "LAB_00011170:\n    puVar6 = (usbentry *)0x0;" statement_identifier : (expression_statement "puVar6 = (usbentry *)0x0;" (assignment_expression "puVar6 = (usbentry *)0x0" identifier = (cast_expression "(usbentry *)0x0" ( (type_descriptor "usbentry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) })) (return_statement "return puVar6;" return identifier ;) })))
(translation_unit "undefined * FUN_00010f44(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  \n  do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);\n  puVar6 = PTR_DAT_00022038 + 0x2174;\n  (*(code *)PTR_memset_00022084)(puVar6,0,0x110);\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }\n  puVar5 = (undefined *)0x0;\n  if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }\n  return puVar5;\n}\n\n" (function_definition "undefined * FUN_00010f44(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  \n  do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);\n  puVar6 = PTR_DAT_00022038 + 0x2174;\n  (*(code *)PTR_memset_00022084)(puVar6,0,0x110);\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }\n  puVar5 = (undefined *)0x0;\n  if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }\n  return puVar5;\n}" type_identifier (pointer_declarator "* FUN_00010f44(undefined4 param_1)" * (function_declarator "FUN_00010f44(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  \n  do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);\n  puVar6 = PTR_DAT_00022038 + 0x2174;\n  (*(code *)PTR_memset_00022084)(puVar6,0,0x110);\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }\n  puVar5 = (undefined *)0x0;\n  if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }\n  return puVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (do_statement "do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);" do (compound_statement "{\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  }" { (do_statement "do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);" do (compound_statement "{\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    }" { (expression_statement "iVar2 = (*(code *)PTR_readdir_00022078)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_readdir_00022078)(param_1)" identifier = (call_expression "(*(code *)PTR_readdir_00022078)(param_1)" (parenthesized_expression "(*(code *)PTR_readdir_00022078)" ( (pointer_expression "*(code *)PTR_readdir_00022078" * (cast_expression "(code *)PTR_readdir_00022078" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar7 = iVar2 + 0xb;" (assignment_expression "iVar7 = iVar2 + 0xb" identifier = (binary_expression "iVar2 + 0xb" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0) goto LAB_00011170;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00011170;" goto statement_identifier ;)) (expression_statement "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)()" identifier = (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_00022064)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___ctype_b_loc_00022064)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_00022064)" ( (pointer_expression "*(code *)PTR___ctype_b_loc_00022064" * (cast_expression "(code *)PTR___ctype_b_loc_00022064" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) }) while (parenthesized_expression "((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0)" ( (binary_expression "(*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8)" ( (binary_expression "*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8" (pointer_expression "*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2)" * (cast_expression "(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + *(char *)(iVar2 + 0xb) * 2)" ( (binary_expression "*piVar3 + *(char *)(iVar2 + 0xb) * 2" (pointer_expression "*piVar3" * identifier) + (binary_expression "*(char *)(iVar2 + 0xb) * 2" (pointer_expression "*(char *)(iVar2 + 0xb)" * (cast_expression "(char *)(iVar2 + 0xb)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xb)" ( (binary_expression "iVar2 + 0xb" identifier + number_literal) )))) * number_literal)) )))) & number_literal) )) == number_literal) )) ;) (expression_statement "iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);" (assignment_expression "iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a)" identifier = (call_expression "(*(code *)PTR_strchr_00022098)(iVar7,0x3a)" (parenthesized_expression "(*(code *)PTR_strchr_00022098)" ( (pointer_expression "*(code *)PTR_strchr_00022098" * (cast_expression "(code *)PTR_strchr_00022098" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,0x3a)" ( identifier , number_literal )))) ;) (expression_statement "puVar1 = PTR_DAT_00022038;" (assignment_expression "puVar1 = PTR_DAT_00022038" identifier = identifier) ;) }) while (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) ;) (expression_statement "puVar6 = PTR_DAT_00022038 + 0x2174;" (assignment_expression "puVar6 = PTR_DAT_00022038 + 0x2174" identifier = (binary_expression "PTR_DAT_00022038 + 0x2174" identifier + number_literal)) ;) (expression_statement "(*(code *)PTR_memset_00022084)(puVar6,0,0x110);" (call_expression "(*(code *)PTR_memset_00022084)(puVar6,0,0x110)" (parenthesized_expression "(*(code *)PTR_memset_00022084)" ( (pointer_expression "*(code *)PTR_memset_00022084" * (cast_expression "(code *)PTR_memset_00022084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6,0,0x110)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768)" identifier = (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x1768)" identifier (argument_list "(iVar7,PTR_00022044 + 0x1768)" ( identifier , (binary_expression "PTR_00022044 + 0x1768" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }" { (expression_statement "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);" (assignment_expression "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10)" identifier = (call_expression "(*(code *)PTR_strtoul_0002209c)(iVar2,0,10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" ( (pointer_expression "*(code *)PTR_strtoul_0002209c" * (cast_expression "(code *)PTR_strtoul_0002209c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,0,10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x2174) = uVar4;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2174) = uVar4" (pointer_expression "*(undefined4 *)(puVar1 + 0x2174)" * (cast_expression "(undefined4 *)(puVar1 + 0x2174)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2174)" ( (binary_expression "puVar1 + 0x2174" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000)" identifier = (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 6000)" identifier (argument_list "(iVar7,PTR_00022044 + 6000)" ( identifier , (binary_expression "PTR_00022044 + 6000" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }" { (expression_statement "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);" (assignment_expression "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10)" identifier = (call_expression "(*(code *)PTR_strtoul_0002209c)(iVar2,0,10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" ( (pointer_expression "*(code *)PTR_strtoul_0002209c" * (cast_expression "(code *)PTR_strtoul_0002209c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,0,10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x2178) = uVar4;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2178) = uVar4" (pointer_expression "*(undefined4 *)(puVar1 + 0x2178)" * (cast_expression "(undefined4 *)(puVar1 + 0x2178)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2178)" ( (binary_expression "puVar1 + 0x2178" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778)" identifier = (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x1778)" identifier (argument_list "(iVar7,PTR_00022044 + 0x1778)" ( identifier , (binary_expression "PTR_00022044 + 0x1778" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }" { (expression_statement "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);" (assignment_expression "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10)" identifier = (call_expression "(*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" ( (pointer_expression "*(code *)PTR_strtoul_0002209c" * (cast_expression "(code *)PTR_strtoul_0002209c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,0,0x10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x217c) = uVar4;" (assignment_expression "*(undefined4 *)(puVar1 + 0x217c) = uVar4" (pointer_expression "*(undefined4 *)(puVar1 + 0x217c)" * (cast_expression "(undefined4 *)(puVar1 + 0x217c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x217c)" ( (binary_expression "puVar1 + 0x217c" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784)" identifier = (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x1784)" identifier (argument_list "(iVar7,PTR_00022044 + 0x1784)" ( identifier , (binary_expression "PTR_00022044 + 0x1784" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }" { (expression_statement "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);" (assignment_expression "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10)" identifier = (call_expression "(*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" ( (pointer_expression "*(code *)PTR_strtoul_0002209c" * (cast_expression "(code *)PTR_strtoul_0002209c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,0,0x10)" ( identifier , number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(puVar1 + 0x2180) = uVar4;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2180) = uVar4" (pointer_expression "*(undefined4 *)(puVar1 + 0x2180)" * (cast_expression "(undefined4 *)(puVar1 + 0x2180)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2180)" ( (binary_expression "puVar1 + 0x2180" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790)" identifier = (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x1790)" identifier (argument_list "(iVar7,PTR_00022044 + 0x1790)" ( identifier , (binary_expression "PTR_00022044 + 0x1790" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }" { (expression_statement "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);" (call_expression "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2)" (parenthesized_expression "(*(code *)PTR_strcpy_000220b0)" ( (pointer_expression "*(code *)PTR_strcpy_000220b0" * (cast_expression "(code *)PTR_strcpy_000220b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00022038 + 0x2184,iVar2)" ( (binary_expression "PTR_DAT_00022038 + 0x2184" identifier + number_literal) , identifier ))) ;) })) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0)" identifier = (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0)" identifier (argument_list "(iVar7,PTR_00022044 + 0x17a0)" ( identifier , (binary_expression "PTR_00022044 + 0x17a0" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }" { (expression_statement "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);" (call_expression "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2)" (parenthesized_expression "(*(code *)PTR_strcpy_000220b0)" ( (pointer_expression "*(code *)PTR_strcpy_000220b0" * (cast_expression "(code *)PTR_strcpy_000220b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_00022038 + 0x2204,iVar2)" ( (binary_expression "PTR_DAT_00022038 + 0x2204" identifier + number_literal) , identifier ))) ;) })) (expression_statement "puVar5 = (undefined *)0x0;" (assignment_expression "puVar5 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }" if (parenthesized_expression "((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0))" ( (binary_expression "(((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)" (parenthesized_expression "(((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0))" ( (binary_expression "((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)" (parenthesized_expression "((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0))" ( (binary_expression "(*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)" (parenthesized_expression "(*(int *)(puVar1 + 0x2174) != 0)" ( (binary_expression "*(int *)(puVar1 + 0x2174) != 0" (pointer_expression "*(int *)(puVar1 + 0x2174)" * (cast_expression "(int *)(puVar1 + 0x2174)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2174)" ( (binary_expression "puVar1 + 0x2174" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)" ( (comma_expression "puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0" (assignment_expression "puVar5 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) , (binary_expression "*(int *)(puVar1 + 0x2178) != 0" (pointer_expression "*(int *)(puVar1 + 0x2178)" * (cast_expression "(int *)(puVar1 + 0x2178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2178)" ( (binary_expression "puVar1 + 0x2178" identifier + number_literal) )))) != number_literal)) ))) )) && (parenthesized_expression "(puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)" ( (comma_expression "puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0" (assignment_expression "puVar5 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) , (binary_expression "*(int *)(puVar1 + 0x217c) != 0" (pointer_expression "*(int *)(puVar1 + 0x217c)" * (cast_expression "(int *)(puVar1 + 0x217c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x217c)" ( (binary_expression "puVar1 + 0x217c" identifier + number_literal) )))) != number_literal)) ))) )) && (parenthesized_expression "(puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)" ( (comma_expression "puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0" (assignment_expression "puVar5 = puVar6" identifier = identifier) , (binary_expression "*(int *)(puVar1 + 0x2180) == 0" (pointer_expression "*(int *)(puVar1 + 0x2180)" * (cast_expression "(int *)(puVar1 + 0x2180)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x2180)" ( (binary_expression "puVar1 + 0x2180" identifier + number_literal) )))) == number_literal)) ))) )) (compound_statement "{\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }" { (labeled_statement "LAB_00011170:\n    puVar5 = (undefined *)0x0;" statement_identifier : (expression_statement "puVar5 = (undefined *)0x0;" (assignment_expression "puVar5 = (undefined *)0x0" identifier = (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) })) (return_statement "return puVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (do_statement do (compound_statement { (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 )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))))) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) )))) & 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 , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT)) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) })) (return_statement return IDENT ;) })))
(function_definition "undefined * FUN_00010f44(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  \n  do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);\n  puVar6 = PTR_DAT_00022038 + 0x2174;\n  (*(code *)PTR_memset_00022084)(puVar6,0,0x110);\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }\n  puVar5 = (undefined *)0x0;\n  if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }\n  return puVar5;\n}" (type_identifier "undefined") (pointer_declarator "* FUN_00010f44(undefined4 param_1)" (* "*") (function_declarator "FUN_00010f44(undefined4 param_1)" (identifier "FUN_00010f44") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 uVar4;\n  undefined *puVar5;\n  undefined *puVar6;\n  int iVar7;\n  \n  do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);\n  puVar6 = PTR_DAT_00022038 + 0x2174;\n  (*(code *)PTR_memset_00022084)(puVar6,0,0x110);\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);\n  if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }\n  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);\n  if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }\n  puVar5 = (undefined *)0x0;\n  if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }\n  return puVar5;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (do_statement "do {\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  } while (iVar2 != 0);" (do "do") (compound_statement "{\n    do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);\n    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);\n    puVar1 = PTR_DAT_00022038;\n  }" ({ "{") (do_statement "do {\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);" (do "do") (compound_statement "{\n      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);\n      iVar7 = iVar2 + 0xb;\n      if (iVar2 == 0) goto LAB_00011170;\n      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();\n    }" ({ "{") (expression_statement "iVar2 = (*(code *)PTR_readdir_00022078)(param_1);" (assignment_expression "iVar2 = (*(code *)PTR_readdir_00022078)(param_1)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_readdir_00022078)(param_1)" (parenthesized_expression "(*(code *)PTR_readdir_00022078)" (( "(") (pointer_expression "*(code *)PTR_readdir_00022078" (* "*") (cast_expression "(code *)PTR_readdir_00022078" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_readdir_00022078"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "iVar7 = iVar2 + 0xb;" (assignment_expression "iVar7 = iVar2 + 0xb" (identifier "iVar7") (= "=") (binary_expression "iVar2 + 0xb" (identifier "iVar2") (+ "+") (number_literal "0xb"))) (; ";")) (if_statement "if (iVar2 == 0) goto LAB_00011170;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00011170;" (goto "goto") (statement_identifier "LAB_00011170") (; ";"))) (expression_statement "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();" (assignment_expression "piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)()" (identifier "piVar3") (= "=") (cast_expression "(int *)(*(code *)PTR___ctype_b_loc_00022064)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___ctype_b_loc_00022064)()" (parenthesized_expression "(*(code *)PTR___ctype_b_loc_00022064)" (( "(") (pointer_expression "*(code *)PTR___ctype_b_loc_00022064" (* "*") (cast_expression "(code *)PTR___ctype_b_loc_00022064" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___ctype_b_loc_00022064"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0)" (( "(") (binary_expression "(*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0" (parenthesized_expression "(*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8)" (( "(") (binary_expression "*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8" (pointer_expression "*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2)" (* "*") (cast_expression "(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar3 + *(char *)(iVar2 + 0xb) * 2)" (( "(") (binary_expression "*piVar3 + *(char *)(iVar2 + 0xb) * 2" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (binary_expression "*(char *)(iVar2 + 0xb) * 2" (pointer_expression "*(char *)(iVar2 + 0xb)" (* "*") (cast_expression "(char *)(iVar2 + 0xb)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xb)" (( "(") (binary_expression "iVar2 + 0xb" (identifier "iVar2") (+ "+") (number_literal "0xb")) () ")")))) (* "*") (number_literal "2"))) () ")")))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);" (assignment_expression "iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a)" (identifier "iVar2") (= "=") (call_expression "(*(code *)PTR_strchr_00022098)(iVar7,0x3a)" (parenthesized_expression "(*(code *)PTR_strchr_00022098)" (( "(") (pointer_expression "*(code *)PTR_strchr_00022098" (* "*") (cast_expression "(code *)PTR_strchr_00022098" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strchr_00022098"))) () ")")) (argument_list "(iVar7,0x3a)" (( "(") (identifier "iVar7") (, ",") (number_literal "0x3a") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_DAT_00022038;" (assignment_expression "puVar1 = PTR_DAT_00022038" (identifier "puVar1") (= "=") (identifier "PTR_DAT_00022038")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "puVar6 = PTR_DAT_00022038 + 0x2174;" (assignment_expression "puVar6 = PTR_DAT_00022038 + 0x2174" (identifier "puVar6") (= "=") (binary_expression "PTR_DAT_00022038 + 0x2174" (identifier "PTR_DAT_00022038") (+ "+") (number_literal "0x2174"))) (; ";")) (expression_statement "(*(code *)PTR_memset_00022084)(puVar6,0,0x110);" (call_expression "(*(code *)PTR_memset_00022084)(puVar6,0,0x110)" (parenthesized_expression "(*(code *)PTR_memset_00022084)" (( "(") (pointer_expression "*(code *)PTR_memset_00022084" (* "*") (cast_expression "(code *)PTR_memset_00022084" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_00022084"))) () ")")) (argument_list "(puVar6,0,0x110)" (( "(") (identifier "puVar6") (, ",") (number_literal "0") (, ",") (number_literal "0x110") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768)" (identifier "iVar2") (= "=") (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x1768)" (identifier "FUN_00010dc0") (argument_list "(iVar7,PTR_00022044 + 0x1768)" (( "(") (identifier "iVar7") (, ",") (binary_expression "PTR_00022044 + 0x1768" (identifier "PTR_00022044") (+ "+") (number_literal "0x1768")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2174) = uVar4;\n  }" ({ "{") (expression_statement "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);" (assignment_expression "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_strtoul_0002209c)(iVar2,0,10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" (( "(") (pointer_expression "*(code *)PTR_strtoul_0002209c" (* "*") (cast_expression "(code *)PTR_strtoul_0002209c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtoul_0002209c"))) () ")")) (argument_list "(iVar2,0,10)" (( "(") (identifier "iVar2") (, ",") (number_literal "0") (, ",") (number_literal "10") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 0x2174) = uVar4;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2174) = uVar4" (pointer_expression "*(undefined4 *)(puVar1 + 0x2174)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x2174)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x2174)" (( "(") (binary_expression "puVar1 + 0x2174" (identifier "puVar1") (+ "+") (number_literal "0x2174")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000)" (identifier "iVar2") (= "=") (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 6000)" (identifier "FUN_00010dc0") (argument_list "(iVar7,PTR_00022044 + 6000)" (( "(") (identifier "iVar7") (, ",") (binary_expression "PTR_00022044 + 6000" (identifier "PTR_00022044") (+ "+") (number_literal "6000")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);\n    *(undefined4 *)(puVar1 + 0x2178) = uVar4;\n  }" ({ "{") (expression_statement "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);" (assignment_expression "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_strtoul_0002209c)(iVar2,0,10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" (( "(") (pointer_expression "*(code *)PTR_strtoul_0002209c" (* "*") (cast_expression "(code *)PTR_strtoul_0002209c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtoul_0002209c"))) () ")")) (argument_list "(iVar2,0,10)" (( "(") (identifier "iVar2") (, ",") (number_literal "0") (, ",") (number_literal "10") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 0x2178) = uVar4;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2178) = uVar4" (pointer_expression "*(undefined4 *)(puVar1 + 0x2178)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x2178)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x2178)" (( "(") (binary_expression "puVar1 + 0x2178" (identifier "puVar1") (+ "+") (number_literal "0x2178")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778)" (identifier "iVar2") (= "=") (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x1778)" (identifier "FUN_00010dc0") (argument_list "(iVar7,PTR_00022044 + 0x1778)" (( "(") (identifier "iVar7") (, ",") (binary_expression "PTR_00022044 + 0x1778" (identifier "PTR_00022044") (+ "+") (number_literal "0x1778")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x217c) = uVar4;\n  }" ({ "{") (expression_statement "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);" (assignment_expression "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" (( "(") (pointer_expression "*(code *)PTR_strtoul_0002209c" (* "*") (cast_expression "(code *)PTR_strtoul_0002209c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtoul_0002209c"))) () ")")) (argument_list "(iVar2,0,0x10)" (( "(") (identifier "iVar2") (, ",") (number_literal "0") (, ",") (number_literal "0x10") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 0x217c) = uVar4;" (assignment_expression "*(undefined4 *)(puVar1 + 0x217c) = uVar4" (pointer_expression "*(undefined4 *)(puVar1 + 0x217c)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x217c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x217c)" (( "(") (binary_expression "puVar1 + 0x217c" (identifier "puVar1") (+ "+") (number_literal "0x217c")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784)" (identifier "iVar2") (= "=") (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x1784)" (identifier "FUN_00010dc0") (argument_list "(iVar7,PTR_00022044 + 0x1784)" (( "(") (identifier "iVar7") (, ",") (binary_expression "PTR_00022044 + 0x1784" (identifier "PTR_00022044") (+ "+") (number_literal "0x1784")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);\n    *(undefined4 *)(puVar1 + 0x2180) = uVar4;\n  }" ({ "{") (expression_statement "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);" (assignment_expression "uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10)" (identifier "uVar4") (= "=") (call_expression "(*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10)" (parenthesized_expression "(*(code *)PTR_strtoul_0002209c)" (( "(") (pointer_expression "*(code *)PTR_strtoul_0002209c" (* "*") (cast_expression "(code *)PTR_strtoul_0002209c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strtoul_0002209c"))) () ")")) (argument_list "(iVar2,0,0x10)" (( "(") (identifier "iVar2") (, ",") (number_literal "0") (, ",") (number_literal "0x10") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 0x2180) = uVar4;" (assignment_expression "*(undefined4 *)(puVar1 + 0x2180) = uVar4" (pointer_expression "*(undefined4 *)(puVar1 + 0x2180)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 0x2180)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x2180)" (( "(") (binary_expression "puVar1 + 0x2180" (identifier "puVar1") (+ "+") (number_literal "0x2180")) () ")")))) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790)" (identifier "iVar2") (= "=") (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x1790)" (identifier "FUN_00010dc0") (argument_list "(iVar7,PTR_00022044 + 0x1790)" (( "(") (identifier "iVar7") (, ",") (binary_expression "PTR_00022044 + 0x1790" (identifier "PTR_00022044") (+ "+") (number_literal "0x1790")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);\n  }" ({ "{") (expression_statement "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);" (call_expression "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2)" (parenthesized_expression "(*(code *)PTR_strcpy_000220b0)" (( "(") (pointer_expression "*(code *)PTR_strcpy_000220b0" (* "*") (cast_expression "(code *)PTR_strcpy_000220b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_000220b0"))) () ")")) (argument_list "(PTR_DAT_00022038 + 0x2184,iVar2)" (( "(") (binary_expression "PTR_DAT_00022038 + 0x2184" (identifier "PTR_DAT_00022038") (+ "+") (number_literal "0x2184")) (, ",") (identifier "iVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);" (assignment_expression "iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0)" (identifier "iVar2") (= "=") (call_expression "FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0)" (identifier "FUN_00010dc0") (argument_list "(iVar7,PTR_00022044 + 0x17a0)" (( "(") (identifier "iVar7") (, ",") (binary_expression "PTR_00022044 + 0x17a0" (identifier "PTR_00022044") (+ "+") (number_literal "0x17a0")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);\n  }" ({ "{") (expression_statement "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);" (call_expression "(*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2)" (parenthesized_expression "(*(code *)PTR_strcpy_000220b0)" (( "(") (pointer_expression "*(code *)PTR_strcpy_000220b0" (* "*") (cast_expression "(code *)PTR_strcpy_000220b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcpy_000220b0"))) () ")")) (argument_list "(PTR_DAT_00022038 + 0x2204,iVar2)" (( "(") (binary_expression "PTR_DAT_00022038 + 0x2204" (identifier "PTR_DAT_00022038") (+ "+") (number_literal "0x2204")) (, ",") (identifier "iVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar5 = (undefined *)0x0;" (assignment_expression "puVar5 = (undefined *)0x0" (identifier "puVar5") (= "=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (if_statement "if ((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }" (if "if") (parenthesized_expression "((((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0))" (( "(") (binary_expression "(((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&\n     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)" (parenthesized_expression "(((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0))" (( "(") (binary_expression "((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&\n      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)" (parenthesized_expression "((*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0))" (( "(") (binary_expression "(*(int *)(puVar1 + 0x2174) != 0) &&\n       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)" (parenthesized_expression "(*(int *)(puVar1 + 0x2174) != 0)" (( "(") (binary_expression "*(int *)(puVar1 + 0x2174) != 0" (pointer_expression "*(int *)(puVar1 + 0x2174)" (* "*") (cast_expression "(int *)(puVar1 + 0x2174)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x2174)" (( "(") (binary_expression "puVar1 + 0x2174" (identifier "puVar1") (+ "+") (number_literal "0x2174")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)" (( "(") (comma_expression "puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0" (assignment_expression "puVar5 = (undefined *)0x0" (identifier "puVar5") (= "=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (, ",") (binary_expression "*(int *)(puVar1 + 0x2178) != 0" (pointer_expression "*(int *)(puVar1 + 0x2178)" (* "*") (cast_expression "(int *)(puVar1 + 0x2178)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x2178)" (( "(") (binary_expression "puVar1 + 0x2178" (identifier "puVar1") (+ "+") (number_literal "0x2178")) () ")")))) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)" (( "(") (comma_expression "puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0" (assignment_expression "puVar5 = (undefined *)0x0" (identifier "puVar5") (= "=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (, ",") (binary_expression "*(int *)(puVar1 + 0x217c) != 0" (pointer_expression "*(int *)(puVar1 + 0x217c)" (* "*") (cast_expression "(int *)(puVar1 + 0x217c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x217c)" (( "(") (binary_expression "puVar1 + 0x217c" (identifier "puVar1") (+ "+") (number_literal "0x217c")) () ")")))) (!= "!=") (number_literal "0"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)" (( "(") (comma_expression "puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0" (assignment_expression "puVar5 = puVar6" (identifier "puVar5") (= "=") (identifier "puVar6")) (, ",") (binary_expression "*(int *)(puVar1 + 0x2180) == 0" (pointer_expression "*(int *)(puVar1 + 0x2180)" (* "*") (cast_expression "(int *)(puVar1 + 0x2180)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x2180)" (( "(") (binary_expression "puVar1 + 0x2180" (identifier "puVar1") (+ "+") (number_literal "0x2180")) () ")")))) (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\nLAB_00011170:\n    puVar5 = (undefined *)0x0;\n  }" ({ "{") (labeled_statement "LAB_00011170:\n    puVar5 = (undefined *)0x0;" (statement_identifier "LAB_00011170") (: ":") (expression_statement "puVar5 = (undefined *)0x0;" (assignment_expression "puVar5 = (undefined *)0x0" (identifier "puVar5") (= "=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (} "}"))) (return_statement "return puVar5;" (return "return") (identifier "puVar5") (; ";")) (} "}")))

type_1 * function_1(type_2 *d)

{
  type_3 *var_6;
  int var_1;
  int *piVar3;
  char *var_5;
  type_4 uVar5;
  type_1 *puVar6;
  type_1 *puVar7;
  char *var_7;
  
  do {
    do {
      var_1 = (*(type_5 *)PTR_readdir_00022078)(d);
      var_7 = (char *)(var_1 + 0xb);
      if (var_1 == 0) goto LAB_00011170;
      piVar3 = (int *)(*(type_5 *)PTR___ctype_b_loc_00022064)();
    } while ((*(type_6 *)(*piVar3 + *(char *)(var_1 + 0xb) * 2) & 8) == 0);
    var_1 = (*(type_5 *)PTR_strchr_00022098)(var_7,0x3a);
    var_6 = var_2;
  } while (var_1 != 0);
  puVar7 = (type_1 *)(var_2 + 0x2174);
  (*(type_5 *)PTR_memset_00022084)(puVar7,0,0x110);
  var_5 = var_3(var_7,var_4 + 0x1768);
  if (var_5 != (char *)0x0) {
    uVar5 = (*(type_5 *)PTR_strtoul_0002209c)(var_5,0,10);
    *(type_4 *)(var_6 + 0x2174) = uVar5;
  }
  var_5 = var_3(var_7,var_4 + 6000);
  if (var_5 != (char *)0x0) {
    uVar5 = (*(type_5 *)PTR_strtoul_0002209c)(var_5,0,10);
    *(type_4 *)(var_6 + 0x2178) = uVar5;
  }
  var_5 = var_3(var_7,var_4 + 0x1778);
  if (var_5 != (char *)0x0) {
    uVar5 = (*(type_5 *)PTR_strtoul_0002209c)(var_5,0,0x10);
    *(type_4 *)(var_6 + 0x217c) = uVar5;
  }
  var_5 = var_3(var_7,var_4 + 0x1784);
  if (var_5 != (char *)0x0) {
    uVar5 = (*(type_5 *)PTR_strtoul_0002209c)(var_5,0,0x10);
    *(type_4 *)(var_6 + 0x2180) = uVar5;
  }
  var_5 = var_3(var_7,var_4 + 0x1790);
  if (var_5 != (char *)0x0) {
    (*(type_5 *)PTR_strcpy_000220b0)(var_2 + 0x2184,var_5);
  }
  var_7 = var_3(var_7,var_4 + 0x17a0);
  if (var_7 != (char *)0x0) {
    (*(type_5 *)PTR_strcpy_000220b0)(var_2 + 0x2204,var_7);
  }
  puVar6 = (type_1 *)0x0;
  if ((((*(int *)(var_6 + 0x2174) != 0) &&
       (puVar6 = (type_1 *)0x0, *(int *)(var_6 + 0x2178) != 0)) &&
      (puVar6 = (type_1 *)0x0, *(int *)(var_6 + 0x217c) != 0)) &&
     (puVar6 = puVar7, *(int *)(var_6 + 0x2180) == 0)) {
LAB_00011170:
    puVar6 = (type_1 *)0x0;
  }
  return puVar6;
}


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

undefined * MASKED(undefined4 param_1)

{
  undefined *puVar1;
  int iVar2;
  int *piVar3;
  undefined4 uVar4;
  undefined *puVar5;
  undefined *puVar6;
  int iVar7;
  
  do {
    do {
      iVar2 = (*(code *)PTR_readdir_00022078)(param_1);
      iVar7 = iVar2 + 0xb;
      if (iVar2 == 0) goto LAB_00011170;
      piVar3 = (int *)(*(code *)PTR___ctype_b_loc_00022064)();
    } while ((*(ushort *)(*piVar3 + *(char *)(iVar2 + 0xb) * 2) & 8) == 0);
    iVar2 = (*(code *)PTR_strchr_00022098)(iVar7,0x3a);
    puVar1 = PTR_DAT_00022038;
  } while (iVar2 != 0);
  puVar6 = PTR_DAT_00022038 + 0x2174;
  (*(code *)PTR_memset_00022084)(puVar6,0,0x110);
  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1768);
  if (iVar2 != 0) {
    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);
    *(undefined4 *)(puVar1 + 0x2174) = uVar4;
  }
  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 6000);
  if (iVar2 != 0) {
    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,10);
    *(undefined4 *)(puVar1 + 0x2178) = uVar4;
  }
  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1778);
  if (iVar2 != 0) {
    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);
    *(undefined4 *)(puVar1 + 0x217c) = uVar4;
  }
  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1784);
  if (iVar2 != 0) {
    uVar4 = (*(code *)PTR_strtoul_0002209c)(iVar2,0,0x10);
    *(undefined4 *)(puVar1 + 0x2180) = uVar4;
  }
  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x1790);
  if (iVar2 != 0) {
    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2184,iVar2);
  }
  iVar2 = FUN_00010dc0(iVar7,PTR_00022044 + 0x17a0);
  if (iVar2 != 0) {
    (*(code *)PTR_strcpy_000220b0)(PTR_DAT_00022038 + 0x2204,iVar2);
  }
  puVar5 = (undefined *)0x0;
  if ((((*(int *)(puVar1 + 0x2174) != 0) &&
       (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x2178) != 0)) &&
      (puVar5 = (undefined *)0x0, *(int *)(puVar1 + 0x217c) != 0)) &&
     (puVar5 = puVar6, *(int *)(puVar1 + 0x2180) == 0)) {
LAB_00011170:
    puVar5 = (undefined *)0x0;
  }
  return puVar5;
}

