
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

ushort __regparm3 fts_stat(FTS *sp,FTSENT *p,_Bool follow)

{
  stat *__stat_buf;
  char cVar1;
  ushort uVar2;
  int iVar3;
  int *piVar4;
  uint uVar5;
  undefined4 *puVar6;
  byte bVar7;
  
  bVar7 = 0;
  __stat_buf = p->fts_statp;
  if ((((p->fts_level == 0) && ((sp->fts_options & 1U) != 0)) || ((sp->fts_options & 2U) != 0)) ||
     (follow)) {
    iVar3 = __xstat64(3,p->fts_accpath,(stat64 *)__stat_buf);
    if (iVar3 == 0) {
LAB_00023933:
      uVar5 = p->fts_statp[0].st_mode & 0xf000;
      if (uVar5 == 0x4000) {
        uVar5 = p->fts_statp[0].st_nlink;
        if ((uVar5 < 2) || (p->fts_level < 1)) {
          uVar5 = 0xffffffff;
        }
        else if ((sp->fts_options & 0x20) == 0) {
          uVar5 = uVar5 - 2;
        }
        cVar1 = *(char *)&p[1].fts_cycle;
        p->fts_n_dirs_remaining = uVar5;
        uVar2 = 1;
        if ((cVar1 == '.') &&
           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||
            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))) {
          uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;
        }
      }
      else if (uVar5 == 0xa000) {
        uVar2 = 0xc;
      }
      else {
        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;
      }
      return uVar2;
    }
    piVar4 = __errno_location();
    iVar3 = *piVar4;
    if (iVar3 == 2) {
      iVar3 = __lxstat64(3,p->fts_accpath,(stat64 *)__stat_buf);
      if (iVar3 == 0) {
        *piVar4 = 0;
        return 0xd;
      }
      iVar3 = *piVar4;
    }
  }
  else {
    iVar3 = __fxstatat64(3,sp->fts_cwd_fd,p->fts_accpath,(stat64 *)__stat_buf,0x100);
    if (iVar3 == 0) goto LAB_00023933;
    piVar4 = __errno_location();
    iVar3 = *piVar4;
  }
  p->fts_errno = iVar3;
  puVar6 = (undefined4 *)((uint)((int)&p->fts_statp[0].st_dev + 4U) & 0xfffffffc);
  *(undefined4 *)&p->fts_statp[0].st_dev = 0;
  *(undefined4 *)((int)&p->fts_statp[0].st_ino + 4) = 0;
  uVar5 = (uint)((int)__stat_buf + (0x60 - (int)puVar6)) >> 2;
  for (; uVar5 != 0; uVar5 = uVar5 - 1) {
    *puVar6 = 0;
    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;
  }
  return 10;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int __regparm3 FUN_00023890(int param_1,int param_2,char param_3)

{
  stat64 *__stat_buf;
  int iVar1;
  int *piVar2;
  uint uVar3;
  undefined4 *puVar4;
  byte bVar5;
  
  bVar5 = 0;
  __stat_buf = (stat64 *)(param_2 + 0x44);
  if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||
      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {
    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);
    if (iVar1 == 0) {
LAB_00023933:
      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;
      if (uVar3 == 0x4000) {
        uVar3 = *(uint *)(param_2 + 0x58);
        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {
          uVar3 = 0xffffffff;
        }
        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {
          uVar3 = uVar3 - 2;
        }
        *(uint *)(param_2 + 0x38) = uVar3;
        iVar1 = 1;
        if ((*(char *)(param_2 + 0xa4) == '.') &&
           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)
            ))) {
          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;
        }
      }
      else if (uVar3 == 0xa000) {
        iVar1 = 0xc;
      }
      else {
        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;
      }
      return iVar1;
    }
    piVar2 = __errno_location();
    iVar1 = *piVar2;
    if (iVar1 == 2) {
      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);
      if (iVar1 == 0) {
        *piVar2 = 0;
        return 0xd;
      }
      iVar1 = *piVar2;
    }
  }
  else {
    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);
    if (iVar1 == 0) goto LAB_00023933;
    piVar2 = __errno_location();
    iVar1 = *piVar2;
  }
  *(int *)(param_2 + 0x20) = iVar1;
  puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);
  *(undefined4 *)(param_2 + 0x44) = 0;
  *(undefined4 *)(param_2 + 0xa0) = 0;
  uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;
  for (; uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar4 = 0;
    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
  }
  return 10;
}


PUSH EBP
LEA EBP,[EDX + 0x44]
PUSH EDI
MOV EDI,EAX
PUSH ESI
MOV ESI,EDX
PUSH EBX
CALL 0x000132c0
ADD EBX,0x15760
SUB ESP,0xc
CMP dword ptr [ESI + 0x30],0x0
MOV EAX,dword ptr [EAX + 0x2c]
MOV EDX,dword ptr [EDX + 0x18]
JNZ 0x00023910
TEST AL,0x1
JZ 0x00023910
SUB ESP,0x4
PUSH EBP
PUSH EDX
PUSH 0x3
CALL 0x00012860
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00023933
CALL 0x00012590
MOV EDI,EAX
MOV EAX,dword ptr [EAX]
CMP EAX,0x2
JNZ 0x0002396f
SUB ESP,0x4
PUSH EBP
PUSH dword ptr [ESI + 0x18]
PUSH 0x3
CALL 0x00012890
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00023a00
MOV dword ptr [EDI],0x0
ADD ESP,0xc
MOV EAX,0xd
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST AL,0x2
JNZ 0x000238b9
TEST CL,CL
JNZ 0x000238b9
SUB ESP,0xc
PUSH 0x100
PUSH EBP
PUSH EDX
PUSH dword ptr [EDI + 0x1c]
PUSH 0x3
CALL 0x00012290
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00023968
MOV EAX,dword ptr [ESI + 0x54]
AND EAX,0xf000
CMP EAX,0x4000
JZ 0x000239a0
CMP EAX,0xa000
JZ 0x00023a20
CMP EAX,0x8000
SETZ AL
MOVZX EAX,AL
LEA EAX,[EAX + EAX*0x4 + 0x3]
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00012590
MOV EAX,dword ptr [EAX]
LEA EDI,[EBP + 0x4]
MOV dword ptr [ESI + 0x20],EAX
XOR EAX,EAX
AND EDI,0xfffffffc
MOV dword ptr [ESI + 0x44],0x0
MOV dword ptr [EBP + 0x5c],0x0
SUB EBP,EDI
LEA ECX,[EBP + 0x60]
SHR ECX,0x2
STOSD.REP ES:EDI
ADD ESP,0xc
MOV EAX,0xa
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x58]
CMP EAX,0x1
JBE 0x00023a10
MOV EDX,dword ptr [ESI + 0x30]
TEST EDX,EDX
JLE 0x00023a10
LEA EDX,[EAX + -0x2]
TEST byte ptr [EDI + 0x2c],0x20
CMOVZ EAX,EDX
CMP byte ptr [ESI + 0xa4],0x2e
MOV dword ptr [ESI + 0x38],EAX
MOV EAX,0x1
JNZ 0x0002395c
CMP byte ptr [ESI + 0xa5],0x0
JZ 0x000239eb
MOV EDX,dword ptr [ESI + 0xa4]
AND EDX,0xffff00
CMP EDX,0x2e00
JNZ 0x0002395c
CMP dword ptr [ESI + 0x30],0x1
SBB EAX,EAX
AND EAX,0xfffffffc
ADD EAX,0x5
JMP 0x0002395c
MOV EAX,dword ptr [EDI]
JMP 0x0002396f
MOV EAX,0xffffffff
JMP 0x000239b9
MOV EAX,0xc
JMP 0x0002395c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_00023890(int param_1,int param_2,char param_3)\n\n{\n  stat64 *__stat_buf;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  __stat_buf = (stat64 *)(param_2 + 0x44);\n  if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }\n  else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }\n  *(int *)(param_2 + 0x20) = iVar1;\n  puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);\n  *(undefined4 *)(param_2 + 0x44) = 0;\n  *(undefined4 *)(param_2 + 0xa0) = 0;\n  uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  return 10;\n}\n\n" comment (function_definition "int __regparm3 FUN_00023890(int param_1,int param_2,char param_3)\n\n{\n  stat64 *__stat_buf;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  __stat_buf = (stat64 *)(param_2 + 0x44);\n  if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }\n  else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }\n  *(int *)(param_2 + 0x20) = iVar1;\n  puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);\n  *(undefined4 *)(param_2 + 0x44) = 0;\n  *(undefined4 *)(param_2 + 0xa0) = 0;\n  uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  return 10;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00023890(int param_1,int param_2,char param_3)" identifier (parameter_list "(int param_1,int param_2,char param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  stat64 *__stat_buf;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  __stat_buf = (stat64 *)(param_2 + 0x44);\n  if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }\n  else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }\n  *(int *)(param_2 + 0x20) = iVar1;\n  puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);\n  *(undefined4 *)(param_2 + 0x44) = 0;\n  *(undefined4 *)(param_2 + 0xa0) = 0;\n  uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  return 10;\n}" { (declaration "stat64 *__stat_buf;" type_identifier (pointer_declarator "*__stat_buf" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "__stat_buf = (stat64 *)(param_2 + 0x44);" (assignment_expression "__stat_buf = (stat64 *)(param_2 + 0x44)" identifier = (cast_expression "(stat64 *)(param_2 + 0x44)" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) ;) (if_statement "if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }\n  else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }" if (parenthesized_expression "((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0'))" ( (binary_expression "(((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')" (parenthesized_expression "(((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0))" ( (binary_expression "((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)" (parenthesized_expression "((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0))" ( (binary_expression "(*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)" (parenthesized_expression "(*(int *)(param_2 + 0x30) == 0)" ( (binary_expression "*(int *)(param_2 + 0x30) == 0" (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "((*(uint *)(param_1 + 0x2c) & 1) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x2c) & 1) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x2c) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x2c) & 1" (pointer_expression "*(uint *)(param_1 + 0x2c)" * (cast_expression "(uint *)(param_1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "((*(uint *)(param_1 + 0x2c) & 2) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x2c) & 2) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x2c) & 2)" ( (binary_expression "*(uint *)(param_1 + 0x2c) & 2" (pointer_expression "*(uint *)(param_1 + 0x2c)" * (cast_expression "(uint *)(param_1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "(param_3 != '\0')" ( (binary_expression "param_3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }" { (expression_statement "iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);" (assignment_expression "iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf)" identifier = (call_expression "__xstat64(3,*(char **)(param_2 + 0x18),__stat_buf)" identifier (argument_list "(3,*(char **)(param_2 + 0x18),__stat_buf)" ( number_literal , (pointer_expression "*(char **)(param_2 + 0x18)" * (cast_expression "(char **)(param_2 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }" { (labeled_statement "LAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;" statement_identifier : (expression_statement "uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;" (assignment_expression "uVar3 = *(uint *)(param_2 + 0x54) & 0xf000" identifier = (binary_expression "*(uint *)(param_2 + 0x54) & 0xf000" (pointer_expression "*(uint *)(param_2 + 0x54)" * (cast_expression "(uint *)(param_2 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x54)" ( (binary_expression "param_2 + 0x54" identifier + number_literal) )))) & number_literal)) ;)) (if_statement "if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" if (parenthesized_expression "(uVar3 == 0x4000)" ( (binary_expression "uVar3 == 0x4000" identifier == number_literal) )) (compound_statement "{\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }" { (expression_statement "uVar3 = *(uint *)(param_2 + 0x58);" (assignment_expression "uVar3 = *(uint *)(param_2 + 0x58)" identifier = (pointer_expression "*(uint *)(param_2 + 0x58)" * (cast_expression "(uint *)(param_2 + 0x58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) ))))) ;) (if_statement "if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }" if (parenthesized_expression "((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1))" ( (binary_expression "(uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)" (parenthesized_expression "(uVar3 < 2)" ( (binary_expression "uVar3 < 2" identifier < number_literal) )) || (parenthesized_expression "(*(int *)(param_2 + 0x30) < 1)" ( (binary_expression "*(int *)(param_2 + 0x30) < 1" (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) < number_literal) ))) )) (compound_statement "{\n          uVar3 = 0xffffffff;\n        }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }" else (if_statement "if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }" if (parenthesized_expression "((*(byte *)(param_1 + 0x2c) & 0x20) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x2c) & 0x20) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x2c) & 0x20)" ( (binary_expression "*(byte *)(param_1 + 0x2c) & 0x20" (pointer_expression "*(byte *)(param_1 + 0x2c)" * (cast_expression "(byte *)(param_1 + 0x2c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar3 = uVar3 - 2;\n        }" { (expression_statement "uVar3 = uVar3 - 2;" (assignment_expression "uVar3 = uVar3 - 2" identifier = (binary_expression "uVar3 - 2" identifier - number_literal)) ;) })))) (expression_statement "*(uint *)(param_2 + 0x38) = uVar3;" (assignment_expression "*(uint *)(param_2 + 0x38) = uVar3" (pointer_expression "*(uint *)(param_2 + 0x38)" * (cast_expression "(uint *)(param_2 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }" if (parenthesized_expression "((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            )))" ( (binary_expression "(*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))" (parenthesized_expression "(*(char *)(param_2 + 0xa4) == '.')" ( (binary_expression "*(char *)(param_2 + 0xa4) == '.'" (pointer_expression "*(char *)(param_2 + 0xa4)" * (cast_expression "(char *)(param_2 + 0xa4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa4)" ( (binary_expression "param_2 + 0xa4" identifier + number_literal) )))) == (char_literal "'.'" ' character ')) )) && (parenthesized_expression "((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))" ( (parenthesized_expression "(*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            )" ( (binary_expression "*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)" (binary_expression "*(char *)(param_2 + 0xa5) == '\0'" (pointer_expression "*(char *)(param_2 + 0xa5)" * (cast_expression "(char *)(param_2 + 0xa5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa5)" ( (binary_expression "param_2 + 0xa5" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)" ( (binary_expression "(*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00" (parenthesized_expression "(*(uint *)(param_2 + 0xa4) & 0xffff00)" ( (binary_expression "*(uint *)(param_2 + 0xa4) & 0xffff00" (pointer_expression "*(uint *)(param_2 + 0xa4)" * (cast_expression "(uint *)(param_2 + 0xa4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa4)" ( (binary_expression "param_2 + 0xa4" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) ))) )) (compound_statement "{\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }" { (expression_statement "iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;" (assignment_expression "iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5" identifier = (binary_expression "(-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5" (parenthesized_expression "(-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc)" ( (binary_expression "-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc" (unary_expression "-(uint)(*(int *)(param_2 + 0x30) == 0)" - (call_expression "(uint)(*(int *)(param_2 + 0x30) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_2 + 0x30) == 0)" ( (binary_expression "*(int *)(param_2 + 0x30) == 0" (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) == number_literal) )))) & number_literal) )) + number_literal)) ;) })) }) (else_clause "else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" else (if_statement "if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" if (parenthesized_expression "(uVar3 == 0xa000)" ( (binary_expression "uVar3 == 0xa000" identifier == number_literal) )) (compound_statement "{\n        iVar1 = 0xc;\n      }" { (expression_statement "iVar1 = 0xc;" (assignment_expression "iVar1 = 0xc" identifier = number_literal) ;) }) (else_clause "else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" else (compound_statement "{\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" { (expression_statement "iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;" (assignment_expression "iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3" identifier = (binary_expression "(uint)(uVar3 == 0x8000) * 5 + 3" (binary_expression "(uint)(uVar3 == 0x8000) * 5" (call_expression "(uint)(uVar3 == 0x8000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 == 0x8000)" ( (binary_expression "uVar3 == 0x8000" identifier == number_literal) ))) * number_literal) + number_literal)) ;) }))))) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }" { (expression_statement "iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);" (assignment_expression "iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf)" identifier = (call_expression "__lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf)" identifier (argument_list "(3,*(char **)(param_2 + 0x18),__stat_buf)" ( number_literal , (pointer_expression "*(char **)(param_2 + 0x18)" * (cast_expression "(char **)(param_2 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        *piVar2 = 0;\n        return 0xd;\n      }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (return_statement "return 0xd;" return number_literal ;) })) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) }) (else_clause "else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }" else (compound_statement "{\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }" { (expression_statement "iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);" (assignment_expression "iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100)" identifier = (call_expression "__fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100)" identifier (argument_list "(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100)" ( number_literal , (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) , (pointer_expression "*(char **)(param_2 + 0x18)" * (cast_expression "(char **)(param_2 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) goto LAB_00023933;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00023933;" goto statement_identifier ;)) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }))) (expression_statement "*(int *)(param_2 + 0x20) = iVar1;" (assignment_expression "*(int *)(param_2 + 0x20) = iVar1" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)(param_2 + 0x48U & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x48U & 0xfffffffc)" ( (binary_expression "param_2 + 0x48U & 0xfffffffc" (binary_expression "param_2 + 0x48U" identifier + number_literal) & number_literal) )))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x44) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x44) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x44)" * (cast_expression "(undefined4 *)(param_2 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_2 + 0xa0) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0xa0) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0xa0)" * (cast_expression "(undefined4 *)(param_2 + 0xa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa0)" ( (binary_expression "param_2 + 0xa0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;" (assignment_expression "uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2" identifier = (binary_expression "(uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2" (call_expression "(uint)((int)__stat_buf + (0x60 - (int)puVar4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)__stat_buf + (0x60 - (int)puVar4))" ( (binary_expression "(int)__stat_buf + (0x60 - (int)puVar4)" (cast_expression "(int)__stat_buf" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x60 - (int)puVar4)" ( (binary_expression "0x60 - (int)puVar4" number_literal - (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" for ( ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return 10;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nushort __regparm3 fts_stat(FTS *sp,FTSENT *p,_Bool follow)\n\n{\n  stat *__stat_buf;\n  char cVar1;\n  ushort uVar2;\n  int iVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  __stat_buf = p->fts_statp;\n  if ((((p->fts_level == 0) && ((sp->fts_options & 1U) != 0)) || ((sp->fts_options & 2U) != 0)) ||\n     (follow)) {\n    iVar3 = __xstat64(3,p->fts_accpath,(stat64 *)__stat_buf);\n    if (iVar3 == 0) {\nLAB_00023933:\n      uVar5 = p->fts_statp[0].st_mode & 0xf000;\n      if (uVar5 == 0x4000) {\n        uVar5 = p->fts_statp[0].st_nlink;\n        if ((uVar5 < 2) || (p->fts_level < 1)) {\n          uVar5 = 0xffffffff;\n        }\n        else if ((sp->fts_options & 0x20) == 0) {\n          uVar5 = uVar5 - 2;\n        }\n        cVar1 = *(char *)&p[1].fts_cycle;\n        p->fts_n_dirs_remaining = uVar5;\n        uVar2 = 1;\n        if ((cVar1 == '.') &&\n           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))) {\n          uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;\n        }\n      }\n      else if (uVar5 == 0xa000) {\n        uVar2 = 0xc;\n      }\n      else {\n        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;\n      }\n      return uVar2;\n    }\n    piVar4 = __errno_location();\n    iVar3 = *piVar4;\n    if (iVar3 == 2) {\n      iVar3 = __lxstat64(3,p->fts_accpath,(stat64 *)__stat_buf);\n      if (iVar3 == 0) {\n        *piVar4 = 0;\n        return 0xd;\n      }\n      iVar3 = *piVar4;\n    }\n  }\n  else {\n    iVar3 = __fxstatat64(3,sp->fts_cwd_fd,p->fts_accpath,(stat64 *)__stat_buf,0x100);\n    if (iVar3 == 0) goto LAB_00023933;\n    piVar4 = __errno_location();\n    iVar3 = *piVar4;\n  }\n  p->fts_errno = iVar3;\n  puVar6 = (undefined4 *)((uint)((int)&p->fts_statp[0].st_dev + 4U) & 0xfffffffc);\n  *(undefined4 *)&p->fts_statp[0].st_dev = 0;\n  *(undefined4 *)((int)&p->fts_statp[0].st_ino + 4) = 0;\n  uVar5 = (uint)((int)__stat_buf + (0x60 - (int)puVar6)) >> 2;\n  for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }\n  return 10;\n}\n\n" comment (function_definition "ushort __regparm3 fts_stat(FTS *sp,FTSENT *p,_Bool follow)\n\n{\n  stat *__stat_buf;\n  char cVar1;\n  ushort uVar2;\n  int iVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  __stat_buf = p->fts_statp;\n  if ((((p->fts_level == 0) && ((sp->fts_options & 1U) != 0)) || ((sp->fts_options & 2U) != 0)) ||\n     (follow)) {\n    iVar3 = __xstat64(3,p->fts_accpath,(stat64 *)__stat_buf);\n    if (iVar3 == 0) {\nLAB_00023933:\n      uVar5 = p->fts_statp[0].st_mode & 0xf000;\n      if (uVar5 == 0x4000) {\n        uVar5 = p->fts_statp[0].st_nlink;\n        if ((uVar5 < 2) || (p->fts_level < 1)) {\n          uVar5 = 0xffffffff;\n        }\n        else if ((sp->fts_options & 0x20) == 0) {\n          uVar5 = uVar5 - 2;\n        }\n        cVar1 = *(char *)&p[1].fts_cycle;\n        p->fts_n_dirs_remaining = uVar5;\n        uVar2 = 1;\n        if ((cVar1 == '.') &&\n           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))) {\n          uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;\n        }\n      }\n      else if (uVar5 == 0xa000) {\n        uVar2 = 0xc;\n      }\n      else {\n        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;\n      }\n      return uVar2;\n    }\n    piVar4 = __errno_location();\n    iVar3 = *piVar4;\n    if (iVar3 == 2) {\n      iVar3 = __lxstat64(3,p->fts_accpath,(stat64 *)__stat_buf);\n      if (iVar3 == 0) {\n        *piVar4 = 0;\n        return 0xd;\n      }\n      iVar3 = *piVar4;\n    }\n  }\n  else {\n    iVar3 = __fxstatat64(3,sp->fts_cwd_fd,p->fts_accpath,(stat64 *)__stat_buf,0x100);\n    if (iVar3 == 0) goto LAB_00023933;\n    piVar4 = __errno_location();\n    iVar3 = *piVar4;\n  }\n  p->fts_errno = iVar3;\n  puVar6 = (undefined4 *)((uint)((int)&p->fts_statp[0].st_dev + 4U) & 0xfffffffc);\n  *(undefined4 *)&p->fts_statp[0].st_dev = 0;\n  *(undefined4 *)((int)&p->fts_statp[0].st_ino + 4) = 0;\n  uVar5 = (uint)((int)__stat_buf + (0x60 - (int)puVar6)) >> 2;\n  for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }\n  return 10;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "fts_stat(FTS *sp,FTSENT *p,_Bool follow)" identifier (parameter_list "(FTS *sp,FTSENT *p,_Bool follow)" ( (parameter_declaration "FTS *sp" type_identifier (pointer_declarator "*sp" * identifier)) , (parameter_declaration "FTSENT *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "_Bool follow" type_identifier identifier) ))) (compound_statement "{\n  stat *__stat_buf;\n  char cVar1;\n  ushort uVar2;\n  int iVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  byte bVar7;\n  \n  bVar7 = 0;\n  __stat_buf = p->fts_statp;\n  if ((((p->fts_level == 0) && ((sp->fts_options & 1U) != 0)) || ((sp->fts_options & 2U) != 0)) ||\n     (follow)) {\n    iVar3 = __xstat64(3,p->fts_accpath,(stat64 *)__stat_buf);\n    if (iVar3 == 0) {\nLAB_00023933:\n      uVar5 = p->fts_statp[0].st_mode & 0xf000;\n      if (uVar5 == 0x4000) {\n        uVar5 = p->fts_statp[0].st_nlink;\n        if ((uVar5 < 2) || (p->fts_level < 1)) {\n          uVar5 = 0xffffffff;\n        }\n        else if ((sp->fts_options & 0x20) == 0) {\n          uVar5 = uVar5 - 2;\n        }\n        cVar1 = *(char *)&p[1].fts_cycle;\n        p->fts_n_dirs_remaining = uVar5;\n        uVar2 = 1;\n        if ((cVar1 == '.') &&\n           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))) {\n          uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;\n        }\n      }\n      else if (uVar5 == 0xa000) {\n        uVar2 = 0xc;\n      }\n      else {\n        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;\n      }\n      return uVar2;\n    }\n    piVar4 = __errno_location();\n    iVar3 = *piVar4;\n    if (iVar3 == 2) {\n      iVar3 = __lxstat64(3,p->fts_accpath,(stat64 *)__stat_buf);\n      if (iVar3 == 0) {\n        *piVar4 = 0;\n        return 0xd;\n      }\n      iVar3 = *piVar4;\n    }\n  }\n  else {\n    iVar3 = __fxstatat64(3,sp->fts_cwd_fd,p->fts_accpath,(stat64 *)__stat_buf,0x100);\n    if (iVar3 == 0) goto LAB_00023933;\n    piVar4 = __errno_location();\n    iVar3 = *piVar4;\n  }\n  p->fts_errno = iVar3;\n  puVar6 = (undefined4 *)((uint)((int)&p->fts_statp[0].st_dev + 4U) & 0xfffffffc);\n  *(undefined4 *)&p->fts_statp[0].st_dev = 0;\n  *(undefined4 *)((int)&p->fts_statp[0].st_ino + 4) = 0;\n  uVar5 = (uint)((int)__stat_buf + (0x60 - (int)puVar6)) >> 2;\n  for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }\n  return 10;\n}" { (declaration "stat *__stat_buf;" type_identifier (pointer_declarator "*__stat_buf" * identifier) ;) (declaration "char cVar1;" primitive_type identifier ;) (declaration "ushort uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "byte bVar7;" type_identifier identifier ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "__stat_buf = p->fts_statp;" (assignment_expression "__stat_buf = p->fts_statp" identifier = (field_expression "p->fts_statp" identifier -> field_identifier)) ;) (if_statement "if ((((p->fts_level == 0) && ((sp->fts_options & 1U) != 0)) || ((sp->fts_options & 2U) != 0)) ||\n     (follow)) {\n    iVar3 = __xstat64(3,p->fts_accpath,(stat64 *)__stat_buf);\n    if (iVar3 == 0) {\nLAB_00023933:\n      uVar5 = p->fts_statp[0].st_mode & 0xf000;\n      if (uVar5 == 0x4000) {\n        uVar5 = p->fts_statp[0].st_nlink;\n        if ((uVar5 < 2) || (p->fts_level < 1)) {\n          uVar5 = 0xffffffff;\n        }\n        else if ((sp->fts_options & 0x20) == 0) {\n          uVar5 = uVar5 - 2;\n        }\n        cVar1 = *(char *)&p[1].fts_cycle;\n        p->fts_n_dirs_remaining = uVar5;\n        uVar2 = 1;\n        if ((cVar1 == '.') &&\n           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))) {\n          uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;\n        }\n      }\n      else if (uVar5 == 0xa000) {\n        uVar2 = 0xc;\n      }\n      else {\n        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;\n      }\n      return uVar2;\n    }\n    piVar4 = __errno_location();\n    iVar3 = *piVar4;\n    if (iVar3 == 2) {\n      iVar3 = __lxstat64(3,p->fts_accpath,(stat64 *)__stat_buf);\n      if (iVar3 == 0) {\n        *piVar4 = 0;\n        return 0xd;\n      }\n      iVar3 = *piVar4;\n    }\n  }\n  else {\n    iVar3 = __fxstatat64(3,sp->fts_cwd_fd,p->fts_accpath,(stat64 *)__stat_buf,0x100);\n    if (iVar3 == 0) goto LAB_00023933;\n    piVar4 = __errno_location();\n    iVar3 = *piVar4;\n  }" if (parenthesized_expression "((((p->fts_level == 0) && ((sp->fts_options & 1U) != 0)) || ((sp->fts_options & 2U) != 0)) ||\n     (follow))" ( (binary_expression "(((p->fts_level == 0) && ((sp->fts_options & 1U) != 0)) || ((sp->fts_options & 2U) != 0)) ||\n     (follow)" (parenthesized_expression "(((p->fts_level == 0) && ((sp->fts_options & 1U) != 0)) || ((sp->fts_options & 2U) != 0))" ( (binary_expression "((p->fts_level == 0) && ((sp->fts_options & 1U) != 0)) || ((sp->fts_options & 2U) != 0)" (parenthesized_expression "((p->fts_level == 0) && ((sp->fts_options & 1U) != 0))" ( (binary_expression "(p->fts_level == 0) && ((sp->fts_options & 1U) != 0)" (parenthesized_expression "(p->fts_level == 0)" ( (binary_expression "p->fts_level == 0" (field_expression "p->fts_level" identifier -> field_identifier) == number_literal) )) && (parenthesized_expression "((sp->fts_options & 1U) != 0)" ( (binary_expression "(sp->fts_options & 1U) != 0" (parenthesized_expression "(sp->fts_options & 1U)" ( (binary_expression "sp->fts_options & 1U" (field_expression "sp->fts_options" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "((sp->fts_options & 2U) != 0)" ( (binary_expression "(sp->fts_options & 2U) != 0" (parenthesized_expression "(sp->fts_options & 2U)" ( (binary_expression "sp->fts_options & 2U" (field_expression "sp->fts_options" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "(follow)" ( identifier ))) )) (compound_statement "{\n    iVar3 = __xstat64(3,p->fts_accpath,(stat64 *)__stat_buf);\n    if (iVar3 == 0) {\nLAB_00023933:\n      uVar5 = p->fts_statp[0].st_mode & 0xf000;\n      if (uVar5 == 0x4000) {\n        uVar5 = p->fts_statp[0].st_nlink;\n        if ((uVar5 < 2) || (p->fts_level < 1)) {\n          uVar5 = 0xffffffff;\n        }\n        else if ((sp->fts_options & 0x20) == 0) {\n          uVar5 = uVar5 - 2;\n        }\n        cVar1 = *(char *)&p[1].fts_cycle;\n        p->fts_n_dirs_remaining = uVar5;\n        uVar2 = 1;\n        if ((cVar1 == '.') &&\n           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))) {\n          uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;\n        }\n      }\n      else if (uVar5 == 0xa000) {\n        uVar2 = 0xc;\n      }\n      else {\n        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;\n      }\n      return uVar2;\n    }\n    piVar4 = __errno_location();\n    iVar3 = *piVar4;\n    if (iVar3 == 2) {\n      iVar3 = __lxstat64(3,p->fts_accpath,(stat64 *)__stat_buf);\n      if (iVar3 == 0) {\n        *piVar4 = 0;\n        return 0xd;\n      }\n      iVar3 = *piVar4;\n    }\n  }" { (expression_statement "iVar3 = __xstat64(3,p->fts_accpath,(stat64 *)__stat_buf);" (assignment_expression "iVar3 = __xstat64(3,p->fts_accpath,(stat64 *)__stat_buf)" identifier = (call_expression "__xstat64(3,p->fts_accpath,(stat64 *)__stat_buf)" identifier (argument_list "(3,p->fts_accpath,(stat64 *)__stat_buf)" ( number_literal , (field_expression "p->fts_accpath" identifier -> field_identifier) , (cast_expression "(stat64 *)__stat_buf" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar3 == 0) {\nLAB_00023933:\n      uVar5 = p->fts_statp[0].st_mode & 0xf000;\n      if (uVar5 == 0x4000) {\n        uVar5 = p->fts_statp[0].st_nlink;\n        if ((uVar5 < 2) || (p->fts_level < 1)) {\n          uVar5 = 0xffffffff;\n        }\n        else if ((sp->fts_options & 0x20) == 0) {\n          uVar5 = uVar5 - 2;\n        }\n        cVar1 = *(char *)&p[1].fts_cycle;\n        p->fts_n_dirs_remaining = uVar5;\n        uVar2 = 1;\n        if ((cVar1 == '.') &&\n           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))) {\n          uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;\n        }\n      }\n      else if (uVar5 == 0xa000) {\n        uVar2 = 0xc;\n      }\n      else {\n        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;\n      }\n      return uVar2;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00023933:\n      uVar5 = p->fts_statp[0].st_mode & 0xf000;\n      if (uVar5 == 0x4000) {\n        uVar5 = p->fts_statp[0].st_nlink;\n        if ((uVar5 < 2) || (p->fts_level < 1)) {\n          uVar5 = 0xffffffff;\n        }\n        else if ((sp->fts_options & 0x20) == 0) {\n          uVar5 = uVar5 - 2;\n        }\n        cVar1 = *(char *)&p[1].fts_cycle;\n        p->fts_n_dirs_remaining = uVar5;\n        uVar2 = 1;\n        if ((cVar1 == '.') &&\n           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))) {\n          uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;\n        }\n      }\n      else if (uVar5 == 0xa000) {\n        uVar2 = 0xc;\n      }\n      else {\n        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;\n      }\n      return uVar2;\n    }" { (labeled_statement "LAB_00023933:\n      uVar5 = p->fts_statp[0].st_mode & 0xf000;" statement_identifier : (expression_statement "uVar5 = p->fts_statp[0].st_mode & 0xf000;" (assignment_expression "uVar5 = p->fts_statp[0].st_mode & 0xf000" identifier = (binary_expression "p->fts_statp[0].st_mode & 0xf000" (field_expression "p->fts_statp[0].st_mode" (subscript_expression "p->fts_statp[0]" (field_expression "p->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier) & number_literal)) ;)) (if_statement "if (uVar5 == 0x4000) {\n        uVar5 = p->fts_statp[0].st_nlink;\n        if ((uVar5 < 2) || (p->fts_level < 1)) {\n          uVar5 = 0xffffffff;\n        }\n        else if ((sp->fts_options & 0x20) == 0) {\n          uVar5 = uVar5 - 2;\n        }\n        cVar1 = *(char *)&p[1].fts_cycle;\n        p->fts_n_dirs_remaining = uVar5;\n        uVar2 = 1;\n        if ((cVar1 == '.') &&\n           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))) {\n          uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;\n        }\n      }\n      else if (uVar5 == 0xa000) {\n        uVar2 = 0xc;\n      }\n      else {\n        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;\n      }" if (parenthesized_expression "(uVar5 == 0x4000)" ( (binary_expression "uVar5 == 0x4000" identifier == number_literal) )) (compound_statement "{\n        uVar5 = p->fts_statp[0].st_nlink;\n        if ((uVar5 < 2) || (p->fts_level < 1)) {\n          uVar5 = 0xffffffff;\n        }\n        else if ((sp->fts_options & 0x20) == 0) {\n          uVar5 = uVar5 - 2;\n        }\n        cVar1 = *(char *)&p[1].fts_cycle;\n        p->fts_n_dirs_remaining = uVar5;\n        uVar2 = 1;\n        if ((cVar1 == '.') &&\n           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))) {\n          uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;\n        }\n      }" { (expression_statement "uVar5 = p->fts_statp[0].st_nlink;" (assignment_expression "uVar5 = p->fts_statp[0].st_nlink" identifier = (field_expression "p->fts_statp[0].st_nlink" (subscript_expression "p->fts_statp[0]" (field_expression "p->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ;) (if_statement "if ((uVar5 < 2) || (p->fts_level < 1)) {\n          uVar5 = 0xffffffff;\n        }\n        else if ((sp->fts_options & 0x20) == 0) {\n          uVar5 = uVar5 - 2;\n        }" if (parenthesized_expression "((uVar5 < 2) || (p->fts_level < 1))" ( (binary_expression "(uVar5 < 2) || (p->fts_level < 1)" (parenthesized_expression "(uVar5 < 2)" ( (binary_expression "uVar5 < 2" identifier < number_literal) )) || (parenthesized_expression "(p->fts_level < 1)" ( (binary_expression "p->fts_level < 1" (field_expression "p->fts_level" identifier -> field_identifier) < number_literal) ))) )) (compound_statement "{\n          uVar5 = 0xffffffff;\n        }" { (expression_statement "uVar5 = 0xffffffff;" (assignment_expression "uVar5 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else if ((sp->fts_options & 0x20) == 0) {\n          uVar5 = uVar5 - 2;\n        }" else (if_statement "if ((sp->fts_options & 0x20) == 0) {\n          uVar5 = uVar5 - 2;\n        }" if (parenthesized_expression "((sp->fts_options & 0x20) == 0)" ( (binary_expression "(sp->fts_options & 0x20) == 0" (parenthesized_expression "(sp->fts_options & 0x20)" ( (binary_expression "sp->fts_options & 0x20" (field_expression "sp->fts_options" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar5 = uVar5 - 2;\n        }" { (expression_statement "uVar5 = uVar5 - 2;" (assignment_expression "uVar5 = uVar5 - 2" identifier = (binary_expression "uVar5 - 2" identifier - number_literal)) ;) })))) (expression_statement "cVar1 = *(char *)&p[1].fts_cycle;" (assignment_expression "cVar1 = *(char *)&p[1].fts_cycle" identifier = (pointer_expression "*(char *)&p[1].fts_cycle" * (cast_expression "(char *)&p[1].fts_cycle" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p[1].fts_cycle" & (field_expression "p[1].fts_cycle" (subscript_expression "p[1]" identifier [ number_literal ]) . field_identifier))))) ;) (expression_statement "p->fts_n_dirs_remaining = uVar5;" (assignment_expression "p->fts_n_dirs_remaining = uVar5" (field_expression "p->fts_n_dirs_remaining" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if ((cVar1 == '.') &&\n           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))) {\n          uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;\n        }" if (parenthesized_expression "((cVar1 == '.') &&\n           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00))))" ( (binary_expression "(cVar1 == '.') &&\n           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))" (parenthesized_expression "(cVar1 == '.')" ( (binary_expression "cVar1 == '.'" identifier == (char_literal "'.'" ' character ')) )) && (parenthesized_expression "((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)))" ( (parenthesized_expression "(*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00))" ( (binary_expression "*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||\n            (((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)" (binary_expression "*(char *)((int)&p[1].fts_cycle + 1) == '\0'" (pointer_expression "*(char *)((int)&p[1].fts_cycle + 1)" * (cast_expression "(char *)((int)&p[1].fts_cycle + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p[1].fts_cycle + 1)" ( (binary_expression "(int)&p[1].fts_cycle + 1" (cast_expression "(int)&p[1].fts_cycle" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p[1].fts_cycle" & (field_expression "p[1].fts_cycle" (subscript_expression "p[1]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "(((uint)p[1].fts_cycle & 0xffff00) == 0x2e00)" ( (binary_expression "((uint)p[1].fts_cycle & 0xffff00) == 0x2e00" (parenthesized_expression "((uint)p[1].fts_cycle & 0xffff00)" ( (binary_expression "(uint)p[1].fts_cycle & 0xffff00" (cast_expression "(uint)p[1].fts_cycle" ( (type_descriptor "uint" type_identifier) ) (field_expression "p[1].fts_cycle" (subscript_expression "p[1]" identifier [ number_literal ]) . field_identifier)) & number_literal) )) == number_literal) ))) )) ))) )) (compound_statement "{\n          uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;\n        }" { (expression_statement "uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5;" (assignment_expression "uVar2 = (-(ushort)(p->fts_level == 0) & 0xfffc) + 5" identifier = (binary_expression "(-(ushort)(p->fts_level == 0) & 0xfffc) + 5" (parenthesized_expression "(-(ushort)(p->fts_level == 0) & 0xfffc)" ( (binary_expression "-(ushort)(p->fts_level == 0) & 0xfffc" (unary_expression "-(ushort)(p->fts_level == 0)" - (call_expression "(ushort)(p->fts_level == 0)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(p->fts_level == 0)" ( (binary_expression "p->fts_level == 0" (field_expression "p->fts_level" identifier -> field_identifier) == number_literal) )))) & number_literal) )) + number_literal)) ;) })) }) (else_clause "else if (uVar5 == 0xa000) {\n        uVar2 = 0xc;\n      }\n      else {\n        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;\n      }" else (if_statement "if (uVar5 == 0xa000) {\n        uVar2 = 0xc;\n      }\n      else {\n        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;\n      }" if (parenthesized_expression "(uVar5 == 0xa000)" ( (binary_expression "uVar5 == 0xa000" identifier == number_literal) )) (compound_statement "{\n        uVar2 = 0xc;\n      }" { (expression_statement "uVar2 = 0xc;" (assignment_expression "uVar2 = 0xc" identifier = number_literal) ;) }) (else_clause "else {\n        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;\n      }" else (compound_statement "{\n        uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;\n      }" { (expression_statement "uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3;" (assignment_expression "uVar2 = (ushort)(uVar5 == 0x8000) * 5 + 3" identifier = (binary_expression "(ushort)(uVar5 == 0x8000) * 5 + 3" (binary_expression "(ushort)(uVar5 == 0x8000) * 5" (call_expression "(ushort)(uVar5 == 0x8000)" (parenthesized_expression "(ushort)" ( identifier )) (argument_list "(uVar5 == 0x8000)" ( (binary_expression "uVar5 == 0x8000" identifier == number_literal) ))) * number_literal) + number_literal)) ;) }))))) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (if_statement "if (iVar3 == 2) {\n      iVar3 = __lxstat64(3,p->fts_accpath,(stat64 *)__stat_buf);\n      if (iVar3 == 0) {\n        *piVar4 = 0;\n        return 0xd;\n      }\n      iVar3 = *piVar4;\n    }" if (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) )) (compound_statement "{\n      iVar3 = __lxstat64(3,p->fts_accpath,(stat64 *)__stat_buf);\n      if (iVar3 == 0) {\n        *piVar4 = 0;\n        return 0xd;\n      }\n      iVar3 = *piVar4;\n    }" { (expression_statement "iVar3 = __lxstat64(3,p->fts_accpath,(stat64 *)__stat_buf);" (assignment_expression "iVar3 = __lxstat64(3,p->fts_accpath,(stat64 *)__stat_buf)" identifier = (call_expression "__lxstat64(3,p->fts_accpath,(stat64 *)__stat_buf)" identifier (argument_list "(3,p->fts_accpath,(stat64 *)__stat_buf)" ( number_literal , (field_expression "p->fts_accpath" identifier -> field_identifier) , (cast_expression "(stat64 *)__stat_buf" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n        *piVar4 = 0;\n        return 0xd;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        *piVar4 = 0;\n        return 0xd;\n      }" { (expression_statement "*piVar4 = 0;" (assignment_expression "*piVar4 = 0" (pointer_expression "*piVar4" * identifier) = number_literal) ;) (return_statement "return 0xd;" return number_literal ;) })) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) })) }) (else_clause "else {\n    iVar3 = __fxstatat64(3,sp->fts_cwd_fd,p->fts_accpath,(stat64 *)__stat_buf,0x100);\n    if (iVar3 == 0) goto LAB_00023933;\n    piVar4 = __errno_location();\n    iVar3 = *piVar4;\n  }" else (compound_statement "{\n    iVar3 = __fxstatat64(3,sp->fts_cwd_fd,p->fts_accpath,(stat64 *)__stat_buf,0x100);\n    if (iVar3 == 0) goto LAB_00023933;\n    piVar4 = __errno_location();\n    iVar3 = *piVar4;\n  }" { (expression_statement "iVar3 = __fxstatat64(3,sp->fts_cwd_fd,p->fts_accpath,(stat64 *)__stat_buf,0x100);" (assignment_expression "iVar3 = __fxstatat64(3,sp->fts_cwd_fd,p->fts_accpath,(stat64 *)__stat_buf,0x100)" identifier = (call_expression "__fxstatat64(3,sp->fts_cwd_fd,p->fts_accpath,(stat64 *)__stat_buf,0x100)" identifier (argument_list "(3,sp->fts_cwd_fd,p->fts_accpath,(stat64 *)__stat_buf,0x100)" ( number_literal , (field_expression "sp->fts_cwd_fd" identifier -> field_identifier) , (field_expression "p->fts_accpath" identifier -> field_identifier) , (cast_expression "(stat64 *)__stat_buf" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal )))) ;) (if_statement "if (iVar3 == 0) goto LAB_00023933;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00023933;" goto statement_identifier ;)) (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) }))) (expression_statement "p->fts_errno = iVar3;" (assignment_expression "p->fts_errno = iVar3" (field_expression "p->fts_errno" identifier -> field_identifier) = identifier) ;) (expression_statement "puVar6 = (undefined4 *)((uint)((int)&p->fts_statp[0].st_dev + 4U) & 0xfffffffc);" (assignment_expression "puVar6 = (undefined4 *)((uint)((int)&p->fts_statp[0].st_dev + 4U) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)((int)&p->fts_statp[0].st_dev + 4U) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)((int)&p->fts_statp[0].st_dev + 4U) & 0xfffffffc)" ( (binary_expression "(uint)((int)&p->fts_statp[0].st_dev + 4U) & 0xfffffffc" (call_expression "(uint)((int)&p->fts_statp[0].st_dev + 4U)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)&p->fts_statp[0].st_dev + 4U)" ( (binary_expression "(int)&p->fts_statp[0].st_dev + 4U" (cast_expression "(int)&p->fts_statp[0].st_dev" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->fts_statp[0].st_dev" & (field_expression "p->fts_statp[0].st_dev" (subscript_expression "p->fts_statp[0]" (field_expression "p->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier))) + number_literal) ))) & number_literal) )))) ;) (expression_statement "*(undefined4 *)&p->fts_statp[0].st_dev = 0;" (assignment_expression "*(undefined4 *)&p->fts_statp[0].st_dev = 0" (pointer_expression "*(undefined4 *)&p->fts_statp[0].st_dev" * (cast_expression "(undefined4 *)&p->fts_statp[0].st_dev" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&p->fts_statp[0].st_dev" & (field_expression "p->fts_statp[0].st_dev" (subscript_expression "p->fts_statp[0]" (field_expression "p->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&p->fts_statp[0].st_ino + 4) = 0;" (assignment_expression "*(undefined4 *)((int)&p->fts_statp[0].st_ino + 4) = 0" (pointer_expression "*(undefined4 *)((int)&p->fts_statp[0].st_ino + 4)" * (cast_expression "(undefined4 *)((int)&p->fts_statp[0].st_ino + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&p->fts_statp[0].st_ino + 4)" ( (binary_expression "(int)&p->fts_statp[0].st_ino + 4" (cast_expression "(int)&p->fts_statp[0].st_ino" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->fts_statp[0].st_ino" & (field_expression "p->fts_statp[0].st_ino" (subscript_expression "p->fts_statp[0]" (field_expression "p->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "uVar5 = (uint)((int)__stat_buf + (0x60 - (int)puVar6)) >> 2;" (assignment_expression "uVar5 = (uint)((int)__stat_buf + (0x60 - (int)puVar6)) >> 2" identifier = (binary_expression "(uint)((int)__stat_buf + (0x60 - (int)puVar6)) >> 2" (call_expression "(uint)((int)__stat_buf + (0x60 - (int)puVar6))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)__stat_buf + (0x60 - (int)puVar6))" ( (binary_expression "(int)__stat_buf + (0x60 - (int)puVar6)" (cast_expression "(int)__stat_buf" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x60 - (int)puVar6)" ( (binary_expression "0x60 - (int)puVar6" number_literal - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n    *puVar6 = 0;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }" for ( ; (binary_expression "uVar5 != 0" identifier != number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar6 = 0;\n    puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n  }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6 = puVar6 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "puVar6 + (uint)bVar7 * -2 + 1" (binary_expression "puVar6 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return 10;" return number_literal ;) })))
(translation_unit "int __regparm3 FUN_00023890(int param_1,int param_2,char param_3)\n\n{\n  stat64 *__stat_buf;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  __stat_buf = (stat64 *)(param_2 + 0x44);\n  if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }\n  else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }\n  *(int *)(param_2 + 0x20) = iVar1;\n  puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);\n  *(undefined4 *)(param_2 + 0x44) = 0;\n  *(undefined4 *)(param_2 + 0xa0) = 0;\n  uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  return 10;\n}\n\n" (function_definition "int __regparm3 FUN_00023890(int param_1,int param_2,char param_3)\n\n{\n  stat64 *__stat_buf;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  __stat_buf = (stat64 *)(param_2 + 0x44);\n  if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }\n  else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }\n  *(int *)(param_2 + 0x20) = iVar1;\n  puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);\n  *(undefined4 *)(param_2 + 0x44) = 0;\n  *(undefined4 *)(param_2 + 0xa0) = 0;\n  uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  return 10;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00023890(int param_1,int param_2,char param_3)" identifier (parameter_list "(int param_1,int param_2,char param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "char param_3" primitive_type identifier) ))) (compound_statement "{\n  stat64 *__stat_buf;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  __stat_buf = (stat64 *)(param_2 + 0x44);\n  if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }\n  else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }\n  *(int *)(param_2 + 0x20) = iVar1;\n  puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);\n  *(undefined4 *)(param_2 + 0x44) = 0;\n  *(undefined4 *)(param_2 + 0xa0) = 0;\n  uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  return 10;\n}" { (declaration "stat64 *__stat_buf;" type_identifier (pointer_declarator "*__stat_buf" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "byte bVar5;" type_identifier identifier ;) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" identifier = number_literal) ;) (expression_statement "__stat_buf = (stat64 *)(param_2 + 0x44);" (assignment_expression "__stat_buf = (stat64 *)(param_2 + 0x44)" identifier = (cast_expression "(stat64 *)(param_2 + 0x44)" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) ;) (if_statement "if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }\n  else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }" if (parenthesized_expression "((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0'))" ( (binary_expression "(((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')" (parenthesized_expression "(((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0))" ( (binary_expression "((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)" (parenthesized_expression "((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0))" ( (binary_expression "(*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)" (parenthesized_expression "(*(int *)(param_2 + 0x30) == 0)" ( (binary_expression "*(int *)(param_2 + 0x30) == 0" (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "((*(uint *)(param_1 + 0x2c) & 1) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x2c) & 1) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x2c) & 1)" ( (binary_expression "*(uint *)(param_1 + 0x2c) & 1" (pointer_expression "*(uint *)(param_1 + 0x2c)" * (cast_expression "(uint *)(param_1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "((*(uint *)(param_1 + 0x2c) & 2) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x2c) & 2) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x2c) & 2)" ( (binary_expression "*(uint *)(param_1 + 0x2c) & 2" (pointer_expression "*(uint *)(param_1 + 0x2c)" * (cast_expression "(uint *)(param_1 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) || (parenthesized_expression "(param_3 != '\0')" ( (binary_expression "param_3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }" { (expression_statement "iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);" (assignment_expression "iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf)" identifier = (call_expression "__xstat64(3,*(char **)(param_2 + 0x18),__stat_buf)" identifier (argument_list "(3,*(char **)(param_2 + 0x18),__stat_buf)" ( number_literal , (pointer_expression "*(char **)(param_2 + 0x18)" * (cast_expression "(char **)(param_2 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }" { (labeled_statement "LAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;" statement_identifier : (expression_statement "uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;" (assignment_expression "uVar3 = *(uint *)(param_2 + 0x54) & 0xf000" identifier = (binary_expression "*(uint *)(param_2 + 0x54) & 0xf000" (pointer_expression "*(uint *)(param_2 + 0x54)" * (cast_expression "(uint *)(param_2 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x54)" ( (binary_expression "param_2 + 0x54" identifier + number_literal) )))) & number_literal)) ;)) (if_statement "if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" if (parenthesized_expression "(uVar3 == 0x4000)" ( (binary_expression "uVar3 == 0x4000" identifier == number_literal) )) (compound_statement "{\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }" { (expression_statement "uVar3 = *(uint *)(param_2 + 0x58);" (assignment_expression "uVar3 = *(uint *)(param_2 + 0x58)" identifier = (pointer_expression "*(uint *)(param_2 + 0x58)" * (cast_expression "(uint *)(param_2 + 0x58)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) ))))) ;) (if_statement "if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }" if (parenthesized_expression "((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1))" ( (binary_expression "(uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)" (parenthesized_expression "(uVar3 < 2)" ( (binary_expression "uVar3 < 2" identifier < number_literal) )) || (parenthesized_expression "(*(int *)(param_2 + 0x30) < 1)" ( (binary_expression "*(int *)(param_2 + 0x30) < 1" (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) < number_literal) ))) )) (compound_statement "{\n          uVar3 = 0xffffffff;\n        }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }" else (if_statement "if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }" if (parenthesized_expression "((*(byte *)(param_1 + 0x2c) & 0x20) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x2c) & 0x20) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x2c) & 0x20)" ( (binary_expression "*(byte *)(param_1 + 0x2c) & 0x20" (pointer_expression "*(byte *)(param_1 + 0x2c)" * (cast_expression "(byte *)(param_1 + 0x2c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n          uVar3 = uVar3 - 2;\n        }" { (expression_statement "uVar3 = uVar3 - 2;" (assignment_expression "uVar3 = uVar3 - 2" identifier = (binary_expression "uVar3 - 2" identifier - number_literal)) ;) })))) (expression_statement "*(uint *)(param_2 + 0x38) = uVar3;" (assignment_expression "*(uint *)(param_2 + 0x38) = uVar3" (pointer_expression "*(uint *)(param_2 + 0x38)" * (cast_expression "(uint *)(param_2 + 0x38)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) (if_statement "if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }" if (parenthesized_expression "((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            )))" ( (binary_expression "(*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))" (parenthesized_expression "(*(char *)(param_2 + 0xa4) == '.')" ( (binary_expression "*(char *)(param_2 + 0xa4) == '.'" (pointer_expression "*(char *)(param_2 + 0xa4)" * (cast_expression "(char *)(param_2 + 0xa4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa4)" ( (binary_expression "param_2 + 0xa4" identifier + number_literal) )))) == (char_literal "'.'" ' character ')) )) && (parenthesized_expression "((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))" ( (parenthesized_expression "(*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            )" ( (binary_expression "*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)" (binary_expression "*(char *)(param_2 + 0xa5) == '\0'" (pointer_expression "*(char *)(param_2 + 0xa5)" * (cast_expression "(char *)(param_2 + 0xa5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa5)" ( (binary_expression "param_2 + 0xa5" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)" ( (binary_expression "(*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00" (parenthesized_expression "(*(uint *)(param_2 + 0xa4) & 0xffff00)" ( (binary_expression "*(uint *)(param_2 + 0xa4) & 0xffff00" (pointer_expression "*(uint *)(param_2 + 0xa4)" * (cast_expression "(uint *)(param_2 + 0xa4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa4)" ( (binary_expression "param_2 + 0xa4" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) ))) )) (compound_statement "{\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }" { (expression_statement "iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;" (assignment_expression "iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5" identifier = (binary_expression "(-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5" (parenthesized_expression "(-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc)" ( (binary_expression "-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc" (unary_expression "-(uint)(*(int *)(param_2 + 0x30) == 0)" - (call_expression "(uint)(*(int *)(param_2 + 0x30) == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(*(int *)(param_2 + 0x30) == 0)" ( (binary_expression "*(int *)(param_2 + 0x30) == 0" (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) == number_literal) )))) & number_literal) )) + number_literal)) ;) })) }) (else_clause "else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" else (if_statement "if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" if (parenthesized_expression "(uVar3 == 0xa000)" ( (binary_expression "uVar3 == 0xa000" identifier == number_literal) )) (compound_statement "{\n        iVar1 = 0xc;\n      }" { (expression_statement "iVar1 = 0xc;" (assignment_expression "iVar1 = 0xc" identifier = number_literal) ;) }) (else_clause "else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" else (compound_statement "{\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" { (expression_statement "iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;" (assignment_expression "iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3" identifier = (binary_expression "(uint)(uVar3 == 0x8000) * 5 + 3" (binary_expression "(uint)(uVar3 == 0x8000) * 5" (call_expression "(uint)(uVar3 == 0x8000)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar3 == 0x8000)" ( (binary_expression "uVar3 == 0x8000" identifier == number_literal) ))) * number_literal) + number_literal)) ;) }))))) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }" { (expression_statement "iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);" (assignment_expression "iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf)" identifier = (call_expression "__lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf)" identifier (argument_list "(3,*(char **)(param_2 + 0x18),__stat_buf)" ( number_literal , (pointer_expression "*(char **)(param_2 + 0x18)" * (cast_expression "(char **)(param_2 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        *piVar2 = 0;\n        return 0xd;\n      }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (return_statement "return 0xd;" return number_literal ;) })) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) })) }) (else_clause "else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }" else (compound_statement "{\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }" { (expression_statement "iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);" (assignment_expression "iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100)" identifier = (call_expression "__fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100)" identifier (argument_list "(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100)" ( number_literal , (pointer_expression "*(int *)(param_1 + 0x1c)" * (cast_expression "(int *)(param_1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) )))) , (pointer_expression "*(char **)(param_2 + 0x18)" * (cast_expression "(char **)(param_2 + 0x18)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , identifier , number_literal )))) ;) (if_statement "if (iVar1 == 0) goto LAB_00023933;" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00023933;" goto statement_identifier ;)) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }))) (expression_statement "*(int *)(param_2 + 0x20) = iVar1;" (assignment_expression "*(int *)(param_2 + 0x20) = iVar1" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) = identifier) ;) (expression_statement "puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)(param_2 + 0x48U & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x48U & 0xfffffffc)" ( (binary_expression "param_2 + 0x48U & 0xfffffffc" (binary_expression "param_2 + 0x48U" identifier + number_literal) & number_literal) )))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x44) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x44) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x44)" * (cast_expression "(undefined4 *)(param_2 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x44)" ( (binary_expression "param_2 + 0x44" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_2 + 0xa0) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0xa0) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0xa0)" * (cast_expression "(undefined4 *)(param_2 + 0xa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa0)" ( (binary_expression "param_2 + 0xa0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;" (assignment_expression "uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2" identifier = (binary_expression "(uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2" (call_expression "(uint)((int)__stat_buf + (0x60 - (int)puVar4))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)__stat_buf + (0x60 - (int)puVar4))" ( (binary_expression "(int)__stat_buf + (0x60 - (int)puVar4)" (cast_expression "(int)__stat_buf" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x60 - (int)puVar4)" ( (binary_expression "0x60 - (int)puVar4" number_literal - (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" for ( ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" { (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" identifier = (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" identifier + (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (return_statement "return 10;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (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 ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) ))) )) || (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) )) != LIT) ))) )) || (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (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) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - 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 = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' character ')) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) || (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) )) == LIT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression - (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )))) & LIT) )) + LIT)) ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))) * LIT) + LIT)) ;) }))))) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) & LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ))) >> LIT)) ;) (for_statement for ( ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_00023890(int param_1,int param_2,char param_3)\n\n{\n  stat64 *__stat_buf;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  __stat_buf = (stat64 *)(param_2 + 0x44);\n  if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }\n  else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }\n  *(int *)(param_2 + 0x20) = iVar1;\n  puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);\n  *(undefined4 *)(param_2 + 0x44) = 0;\n  *(undefined4 *)(param_2 + 0xa0) = 0;\n  uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  return 10;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00023890(int param_1,int param_2,char param_3)" (identifier "FUN_00023890") (parameter_list "(int param_1,int param_2,char param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "char param_3" (primitive_type "char") (identifier "param_3")) () ")"))) (compound_statement "{\n  stat64 *__stat_buf;\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  undefined4 *puVar4;\n  byte bVar5;\n  \n  bVar5 = 0;\n  __stat_buf = (stat64 *)(param_2 + 0x44);\n  if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }\n  else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }\n  *(int *)(param_2 + 0x20) = iVar1;\n  puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);\n  *(undefined4 *)(param_2 + 0x44) = 0;\n  *(undefined4 *)(param_2 + 0xa0) = 0;\n  uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;\n  for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }\n  return 10;\n}" ({ "{") (declaration "stat64 *__stat_buf;" (type_identifier "stat64") (pointer_declarator "*__stat_buf" (* "*") (identifier "__stat_buf")) (; ";")) (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "byte bVar5;" (type_identifier "byte") (identifier "bVar5") (; ";")) (expression_statement "bVar5 = 0;" (assignment_expression "bVar5 = 0" (identifier "bVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "__stat_buf = (stat64 *)(param_2 + 0x44);" (assignment_expression "__stat_buf = (stat64 *)(param_2 + 0x44)" (identifier "__stat_buf") (= "=") (cast_expression "(stat64 *)(param_2 + 0x44)" (( "(") (type_descriptor "stat64 *" (type_identifier "stat64") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x44)" (( "(") (binary_expression "param_2 + 0x44" (identifier "param_2") (+ "+") (number_literal "0x44")) () ")")))) (; ";")) (if_statement "if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }\n  else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }" (if "if") (parenthesized_expression "((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0'))" (( "(") (binary_expression "(((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')" (parenthesized_expression "(((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0))" (( "(") (binary_expression "((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||\n      ((*(uint *)(param_1 + 0x2c) & 2) != 0)" (parenthesized_expression "((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0))" (( "(") (binary_expression "(*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)" (parenthesized_expression "(*(int *)(param_2 + 0x30) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x30) == 0" (pointer_expression "*(int *)(param_2 + 0x30)" (* "*") (cast_expression "(int *)(param_2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(uint *)(param_1 + 0x2c) & 1) != 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x2c) & 1) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x2c) & 1)" (( "(") (binary_expression "*(uint *)(param_1 + 0x2c) & 1" (pointer_expression "*(uint *)(param_1 + 0x2c)" (* "*") (cast_expression "(uint *)(param_1 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "((*(uint *)(param_1 + 0x2c) & 2) != 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x2c) & 2) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x2c) & 2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x2c) & 2" (pointer_expression "*(uint *)(param_1 + 0x2c)" (* "*") (cast_expression "(uint *)(param_1 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(param_3 != '\0')" (( "(") (binary_expression "param_3 != '\0'" (identifier "param_3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n    if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n    if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }\n  }" ({ "{") (expression_statement "iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);" (assignment_expression "iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf)" (identifier "iVar1") (= "=") (call_expression "__xstat64(3,*(char **)(param_2 + 0x18),__stat_buf)" (identifier "__xstat64") (argument_list "(3,*(char **)(param_2 + 0x18),__stat_buf)" (( "(") (number_literal "3") (, ",") (pointer_expression "*(char **)(param_2 + 0x18)" (* "*") (cast_expression "(char **)(param_2 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (identifier "__stat_buf") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;\n      if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }\n      return iVar1;\n    }" ({ "{") (labeled_statement "LAB_00023933:\n      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;" (statement_identifier "LAB_00023933") (: ":") (expression_statement "uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;" (assignment_expression "uVar3 = *(uint *)(param_2 + 0x54) & 0xf000" (identifier "uVar3") (= "=") (binary_expression "*(uint *)(param_2 + 0x54) & 0xf000" (pointer_expression "*(uint *)(param_2 + 0x54)" (* "*") (cast_expression "(uint *)(param_2 + 0x54)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x54)" (( "(") (binary_expression "param_2 + 0x54" (identifier "param_2") (+ "+") (number_literal "0x54")) () ")")))) (& "&") (number_literal "0xf000"))) (; ";"))) (if_statement "if (uVar3 == 0x4000) {\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }\n      else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" (if "if") (parenthesized_expression "(uVar3 == 0x4000)" (( "(") (binary_expression "uVar3 == 0x4000" (identifier "uVar3") (== "==") (number_literal "0x4000")) () ")")) (compound_statement "{\n        uVar3 = *(uint *)(param_2 + 0x58);\n        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }\n        *(uint *)(param_2 + 0x38) = uVar3;\n        iVar1 = 1;\n        if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }\n      }" ({ "{") (expression_statement "uVar3 = *(uint *)(param_2 + 0x58);" (assignment_expression "uVar3 = *(uint *)(param_2 + 0x58)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_2 + 0x58)" (* "*") (cast_expression "(uint *)(param_2 + 0x58)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x58)" (( "(") (binary_expression "param_2 + 0x58" (identifier "param_2") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (if_statement "if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {\n          uVar3 = 0xffffffff;\n        }\n        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }" (if "if") (parenthesized_expression "((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1))" (( "(") (binary_expression "(uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)" (parenthesized_expression "(uVar3 < 2)" (( "(") (binary_expression "uVar3 < 2" (identifier "uVar3") (< "<") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_2 + 0x30) < 1)" (( "(") (binary_expression "*(int *)(param_2 + 0x30) < 1" (pointer_expression "*(int *)(param_2 + 0x30)" (* "*") (cast_expression "(int *)(param_2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) (< "<") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n          uVar3 = 0xffffffff;\n        }" ({ "{") (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" (identifier "uVar3") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }" (else "else") (if_statement "if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {\n          uVar3 = uVar3 - 2;\n        }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x2c) & 0x20) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x2c) & 0x20) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x2c) & 0x20)" (( "(") (binary_expression "*(byte *)(param_1 + 0x2c) & 0x20" (pointer_expression "*(byte *)(param_1 + 0x2c)" (* "*") (cast_expression "(byte *)(param_1 + 0x2c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          uVar3 = uVar3 - 2;\n        }" ({ "{") (expression_statement "uVar3 = uVar3 - 2;" (assignment_expression "uVar3 = uVar3 - 2" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 2" (identifier "uVar3") (- "-") (number_literal "2"))) (; ";")) (} "}"))))) (expression_statement "*(uint *)(param_2 + 0x38) = uVar3;" (assignment_expression "*(uint *)(param_2 + 0x38) = uVar3" (pointer_expression "*(uint *)(param_2 + 0x38)" (* "*") (cast_expression "(uint *)(param_2 + 0x38)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x38)" (( "(") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" (identifier "iVar1") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))) {\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }" (if "if") (parenthesized_expression "((*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            )))" (( "(") (binary_expression "(*(char *)(param_2 + 0xa4) == '.') &&\n           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))" (parenthesized_expression "(*(char *)(param_2 + 0xa4) == '.')" (( "(") (binary_expression "*(char *)(param_2 + 0xa4) == '.'" (pointer_expression "*(char *)(param_2 + 0xa4)" (* "*") (cast_expression "(char *)(param_2 + 0xa4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xa4)" (( "(") (binary_expression "param_2 + 0xa4" (identifier "param_2") (+ "+") (number_literal "0xa4")) () ")")))) (== "==") (char_literal "'.'" (' "'") (character ".") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            ))" (( "(") (parenthesized_expression "(*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)\n            )" (( "(") (binary_expression "*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)" (binary_expression "*(char *)(param_2 + 0xa5) == '\0'" (pointer_expression "*(char *)(param_2 + 0xa5)" (* "*") (cast_expression "(char *)(param_2 + 0xa5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xa5)" (( "(") (binary_expression "param_2 + 0xa5" (identifier "param_2") (+ "+") (number_literal "0xa5")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (|| "||") (parenthesized_expression "((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)" (( "(") (binary_expression "(*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00" (parenthesized_expression "(*(uint *)(param_2 + 0xa4) & 0xffff00)" (( "(") (binary_expression "*(uint *)(param_2 + 0xa4) & 0xffff00" (pointer_expression "*(uint *)(param_2 + 0xa4)" (* "*") (cast_expression "(uint *)(param_2 + 0xa4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xa4)" (( "(") (binary_expression "param_2 + 0xa4" (identifier "param_2") (+ "+") (number_literal "0xa4")) () ")")))) (& "&") (number_literal "0xffff00")) () ")")) (== "==") (number_literal "0x2e00")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;\n        }" ({ "{") (expression_statement "iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;" (assignment_expression "iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5" (identifier "iVar1") (= "=") (binary_expression "(-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5" (parenthesized_expression "(-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc)" (( "(") (binary_expression "-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc" (unary_expression "-(uint)(*(int *)(param_2 + 0x30) == 0)" (- "-") (call_expression "(uint)(*(int *)(param_2 + 0x30) == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(*(int *)(param_2 + 0x30) == 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x30) == 0" (pointer_expression "*(int *)(param_2 + 0x30)" (* "*") (cast_expression "(int *)(param_2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) (== "==") (number_literal "0")) () ")")))) (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (number_literal "5"))) (; ";")) (} "}"))) (} "}")) (else_clause "else if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" (else "else") (if_statement "if (uVar3 == 0xa000) {\n        iVar1 = 0xc;\n      }\n      else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" (if "if") (parenthesized_expression "(uVar3 == 0xa000)" (( "(") (binary_expression "uVar3 == 0xa000" (identifier "uVar3") (== "==") (number_literal "0xa000")) () ")")) (compound_statement "{\n        iVar1 = 0xc;\n      }" ({ "{") (expression_statement "iVar1 = 0xc;" (assignment_expression "iVar1 = 0xc" (identifier "iVar1") (= "=") (number_literal "0xc")) (; ";")) (} "}")) (else_clause "else {\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" (else "else") (compound_statement "{\n        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;\n      }" ({ "{") (expression_statement "iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;" (assignment_expression "iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3" (identifier "iVar1") (= "=") (binary_expression "(uint)(uVar3 == 0x8000) * 5 + 3" (binary_expression "(uint)(uVar3 == 0x8000) * 5" (call_expression "(uint)(uVar3 == 0x8000)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar3 == 0x8000)" (( "(") (binary_expression "uVar3 == 0x8000" (identifier "uVar3") (== "==") (number_literal "0x8000")) () ")"))) (* "*") (number_literal "5")) (+ "+") (number_literal "3"))) (; ";")) (} "}")))))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (if_statement "if (iVar1 == 2) {\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }" (if "if") (parenthesized_expression "(iVar1 == 2)" (( "(") (binary_expression "iVar1 == 2" (identifier "iVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);\n      if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }\n      iVar1 = *piVar2;\n    }" ({ "{") (expression_statement "iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);" (assignment_expression "iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf)" (identifier "iVar1") (= "=") (call_expression "__lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf)" (identifier "__lxstat64") (argument_list "(3,*(char **)(param_2 + 0x18),__stat_buf)" (( "(") (number_literal "3") (, ",") (pointer_expression "*(char **)(param_2 + 0x18)" (* "*") (cast_expression "(char **)(param_2 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (identifier "__stat_buf") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n        *piVar2 = 0;\n        return 0xd;\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *piVar2 = 0;\n        return 0xd;\n      }" ({ "{") (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (return_statement "return 0xd;" (return "return") (number_literal "0xd") (; ";")) (} "}"))) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }" (else "else") (compound_statement "{\n    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);\n    if (iVar1 == 0) goto LAB_00023933;\n    piVar2 = __errno_location();\n    iVar1 = *piVar2;\n  }" ({ "{") (expression_statement "iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);" (assignment_expression "iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100)" (identifier "iVar1") (= "=") (call_expression "__fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100)" (identifier "__fxstatat64") (argument_list "(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100)" (( "(") (number_literal "3") (, ",") (pointer_expression "*(int *)(param_1 + 0x1c)" (* "*") (cast_expression "(int *)(param_1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c)" (( "(") (binary_expression "param_1 + 0x1c" (identifier "param_1") (+ "+") (number_literal "0x1c")) () ")")))) (, ",") (pointer_expression "*(char **)(param_2 + 0x18)" (* "*") (cast_expression "(char **)(param_2 + 0x18)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (identifier "__stat_buf") (, ",") (number_literal "0x100") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) goto LAB_00023933;" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00023933;" (goto "goto") (statement_identifier "LAB_00023933") (; ";"))) (expression_statement "piVar2 = __errno_location();" (assignment_expression "piVar2 = __errno_location()" (identifier "piVar2") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}")))) (expression_statement "*(int *)(param_2 + 0x20) = iVar1;" (assignment_expression "*(int *)(param_2 + 0x20) = iVar1" (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);" (assignment_expression "puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(param_2 + 0x48U & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x48U & 0xfffffffc)" (( "(") (binary_expression "param_2 + 0x48U & 0xfffffffc" (binary_expression "param_2 + 0x48U" (identifier "param_2") (+ "+") (number_literal "0x48U")) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x44) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x44) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x44)" (( "(") (binary_expression "param_2 + 0x44" (identifier "param_2") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0xa0) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0xa0) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0xa0)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xa0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xa0)" (( "(") (binary_expression "param_2 + 0xa0" (identifier "param_2") (+ "+") (number_literal "0xa0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;" (assignment_expression "uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2" (identifier "uVar3") (= "=") (binary_expression "(uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2" (call_expression "(uint)((int)__stat_buf + (0x60 - (int)puVar4))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)__stat_buf + (0x60 - (int)puVar4))" (( "(") (binary_expression "(int)__stat_buf + (0x60 - (int)puVar4)" (cast_expression "(int)__stat_buf" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__stat_buf")) (+ "+") (parenthesized_expression "(0x60 - (int)puVar4)" (( "(") (binary_expression "0x60 - (int)puVar4" (number_literal "0x60") (- "-") (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4"))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";")) (for_statement "for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" (for "for") (( "(") (; ";") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n    *puVar4 = 0;\n    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;\n  }" ({ "{") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = puVar4 + (uint)bVar5 * -2 + 1;" (assignment_expression "puVar4 = puVar4 + (uint)bVar5 * -2 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + (uint)bVar5 * -2 + 1" (binary_expression "puVar4 + (uint)bVar5 * -2" (identifier "puVar4") (+ "+") (binary_expression "(uint)bVar5 * -2" (cast_expression "(uint)bVar5" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar5")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (return_statement "return 10;" (return "return") (number_literal "10") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_1 __regparm3 function_1(type_2 *sp,type_3 *p,type_4 follow)

{
  type_5 *__stat_buf;
  char var_4;
  type_1 uVar2;
  int var_2;
  int *piVar4;
  type_6 var_3;
  type_7 *var_8;
  type_8 bVar7;
  
  bVar7 = 0;
  __stat_buf = p->fts_statp;
  if ((((p->fts_level == 0) && ((sp->fts_options & 1U) != 0)) || ((sp->fts_options & 2U) != 0)) ||
     (follow)) {
    var_2 = var_1(3,p->fts_accpath,(type_9 *)__stat_buf);
    if (var_2 == 0) {
LAB_00023933:
      var_3 = p->fts_statp[0].st_mode & 0xf000;
      if (var_3 == 0x4000) {
        var_3 = p->fts_statp[0].st_nlink;
        if ((var_3 < 2) || (p->fts_level < 1)) {
          var_3 = 0xffffffff;
        }
        else if ((sp->fts_options & 0x20) == 0) {
          var_3 = var_3 - 2;
        }
        var_4 = *(char *)&p[1].fts_cycle;
        p->fts_n_dirs_remaining = var_3;
        uVar2 = 1;
        if ((var_4 == '.') &&
           ((*(char *)((int)&p[1].fts_cycle + 1) == '\0' ||
            (((type_6)p[1].fts_cycle & 0xffff00) == 0x2e00)))) {
          uVar2 = (-(type_1)(p->fts_level == 0) & 0xfffc) + 5;
        }
      }
      else if (var_3 == 0xa000) {
        uVar2 = 0xc;
      }
      else {
        uVar2 = (type_1)(var_3 == 0x8000) * 5 + 3;
      }
      return uVar2;
    }
    piVar4 = var_5();
    var_2 = *piVar4;
    if (var_2 == 2) {
      var_2 = var_6(3,p->fts_accpath,(type_9 *)__stat_buf);
      if (var_2 == 0) {
        *piVar4 = 0;
        return 0xd;
      }
      var_2 = *piVar4;
    }
  }
  else {
    var_2 = var_7(3,sp->fts_cwd_fd,p->fts_accpath,(type_9 *)__stat_buf,0x100);
    if (var_2 == 0) goto LAB_00023933;
    piVar4 = var_5();
    var_2 = *piVar4;
  }
  p->fts_errno = var_2;
  var_8 = (type_7 *)((type_6)((int)&p->fts_statp[0].st_dev + 4U) & 0xfffffffc);
  *(type_7 *)&p->fts_statp[0].st_dev = 0;
  *(type_7 *)((int)&p->fts_statp[0].st_ino + 4) = 0;
  var_3 = (type_6)((int)__stat_buf + (0x60 - (int)var_8)) >> 2;
  for (; var_3 != 0; var_3 = var_3 - 1) {
    *var_8 = 0;
    var_8 = var_8 + (type_6)bVar7 * -2 + 1;
  }
  return 10;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  stat64 *__stat_buf;
  int iVar1;
  int *piVar2;
  uint uVar3;
  undefined4 *puVar4;
  byte bVar5;
  
  bVar5 = 0;
  __stat_buf = (stat64 *)(param_2 + 0x44);
  if ((((*(int *)(param_2 + 0x30) == 0) && ((*(uint *)(param_1 + 0x2c) & 1) != 0)) ||
      ((*(uint *)(param_1 + 0x2c) & 2) != 0)) || (param_3 != '\0')) {
    iVar1 = __xstat64(3,*(char **)(param_2 + 0x18),__stat_buf);
    if (iVar1 == 0) {
LAB_00023933:
      uVar3 = *(uint *)(param_2 + 0x54) & 0xf000;
      if (uVar3 == 0x4000) {
        uVar3 = *(uint *)(param_2 + 0x58);
        if ((uVar3 < 2) || (*(int *)(param_2 + 0x30) < 1)) {
          uVar3 = 0xffffffff;
        }
        else if ((*(byte *)(param_1 + 0x2c) & 0x20) == 0) {
          uVar3 = uVar3 - 2;
        }
        *(uint *)(param_2 + 0x38) = uVar3;
        iVar1 = 1;
        if ((*(char *)(param_2 + 0xa4) == '.') &&
           ((*(char *)(param_2 + 0xa5) == '\0' || ((*(uint *)(param_2 + 0xa4) & 0xffff00) == 0x2e00)
            ))) {
          iVar1 = (-(uint)(*(int *)(param_2 + 0x30) == 0) & 0xfffffffc) + 5;
        }
      }
      else if (uVar3 == 0xa000) {
        iVar1 = 0xc;
      }
      else {
        iVar1 = (uint)(uVar3 == 0x8000) * 5 + 3;
      }
      return iVar1;
    }
    piVar2 = __errno_location();
    iVar1 = *piVar2;
    if (iVar1 == 2) {
      iVar1 = __lxstat64(3,*(char **)(param_2 + 0x18),__stat_buf);
      if (iVar1 == 0) {
        *piVar2 = 0;
        return 0xd;
      }
      iVar1 = *piVar2;
    }
  }
  else {
    iVar1 = __fxstatat64(3,*(int *)(param_1 + 0x1c),*(char **)(param_2 + 0x18),__stat_buf,0x100);
    if (iVar1 == 0) goto LAB_00023933;
    piVar2 = __errno_location();
    iVar1 = *piVar2;
  }
  *(int *)(param_2 + 0x20) = iVar1;
  puVar4 = (undefined4 *)(param_2 + 0x48U & 0xfffffffc);
  *(undefined4 *)(param_2 + 0x44) = 0;
  *(undefined4 *)(param_2 + 0xa0) = 0;
  uVar3 = (uint)((int)__stat_buf + (0x60 - (int)puVar4)) >> 2;
  for (; uVar3 != 0; uVar3 = uVar3 - 1) {
    *puVar4 = 0;
    puVar4 = puVar4 + (uint)bVar5 * -2 + 1;
  }
  return 10;
}

