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

_Bool same_nameat(int source_dfd,char *source,int dest_dfd,char *dest)

{
  int iVar1;
  char *pcVar2;
  char *name;
  size_t __n;
  size_t sVar3;
  int iVar4;
  int *piVar5;
  _Bool _Var6;
  int in_GS_OFFSET;
  stat source_dir_stats;
  stat dest_dir_stats;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  pcVar2 = last_component(source);
  name = last_component(dest);
  __n = base_len(pcVar2);
  sVar3 = base_len(name);
  _Var6 = false;
  if (__n == sVar3) {
    _Var6 = false;
    iVar4 = memcmp(pcVar2,name,__n);
    if (iVar4 == 0) {
      pcVar2 = dir_name(source);
      iVar4 = __fxstatat64(3,source_dfd,pcVar2,(stat64 *)&source_dir_stats,0x100);
      if (iVar4 != 0) {
        piVar5 = __errno_location();
                    /* WARNING: Subroutine does not return */
        error(1,*piVar5,"%s",pcVar2);
      }
      free(pcVar2);
      pcVar2 = dir_name(dest);
      iVar4 = __fxstatat64(3,dest_dfd,pcVar2,(stat64 *)&dest_dir_stats,0x100);
      if (iVar4 != 0) {
        piVar5 = __errno_location();
                    /* WARNING: Subroutine does not return */
        error(1,*piVar5,"%s",pcVar2);
      }
      _Var6 = (source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&
              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino) &&
              ((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&
              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_);
      free(pcVar2);
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return _Var6;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

bool FUN_000179d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)

{
  void *__s1;
  void *__s2;
  size_t __n;
  size_t sVar1;
  int iVar2;
  char *pcVar3;
  int *piVar4;
  bool bVar5;
  int in_GS_OFFSET;
  stat64 local_e0;
  stat64 local_80;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x179d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  __s1 = (void *)FUN_00013fb0(param_2);
  __s2 = (void *)FUN_00013fb0(param_4);
  __n = FUN_00014000(__s1);
  sVar1 = FUN_00014000(__s2);
  bVar5 = false;
  if (__n == sVar1) {
    bVar5 = false;
    iVar2 = memcmp(__s1,__s2,__n);
    if (iVar2 == 0) {
      pcVar3 = (char *)FUN_00013ea0(param_2);
      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);
      if (iVar2 != 0) {
        piVar4 = __errno_location();
                    /* WARNING: Subroutine does not return */
        error(1,*piVar4,"%s",pcVar3);
      }
      free(pcVar3);
      pcVar3 = (char *)FUN_00013ea0(param_4);
      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);
      if (iVar2 != 0) {
        piVar4 = __errno_location();
                    /* WARNING: Subroutine does not return */
        error(1,*piVar4,"%s",pcVar3);
      }
      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&
              (int)local_e0.st_ino == (int)local_80.st_ino) &&
              ((int)local_e0.st_dev == (int)local_80.st_dev &&
              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);
      free(pcVar3);
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return bVar5;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001cbb0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012a00
ADD EBX,0xc627
SUB ESP,0xf8
MOV EDI,dword ptr [ESP + 0x118]
MOV EBP,dword ptr [ESP + 0x110]
MOV dword ptr [ESP + 0x18],EDI
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xe8],EAX
XOR EAX,EAX
PUSH EBP
CALL 0x00013fb0
MOV dword ptr [ESP],EDI
MOV ESI,EAX
CALL 0x00013fb0
MOV dword ptr [ESP],ESI
MOV EDI,EAX
CALL 0x00014000
MOV dword ptr [ESP],EDI
MOV dword ptr [ESP + 0x18],EAX
CALL 0x00014000
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x8]
XOR EDX,EDX
CMP ECX,EAX
JZ 0x00017a60
MOV EAX,EDX
MOV EDX,dword ptr [ESP + 0xdc]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x00017b76
ADD ESP,0xec
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV byte ptr [ESP + 0x8],DL
SUB ESP,0x4
PUSH ECX
PUSH EDI
PUSH ESI
CALL 0x00012120
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00017b29
SUB ESP,0xc
PUSH EBP
CALL 0x00013ea0
MOV dword ptr [ESP],0x100
MOV ESI,EAX
LEA EAX,[ESP + 0x2c]
PUSH EAX
PUSH ESI
PUSH dword ptr [ESP + 0x118]
PUSH 0x3
CALL 0x00012190
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00017b58
SUB ESP,0xc
PUSH ESI
CALL 0x00012590
POP EAX
PUSH dword ptr [ESP + 0x18]
CALL 0x00013ea0
MOV dword ptr [ESP],0x100
MOV ESI,EAX
LEA EAX,[ESP + 0x8c]
PUSH EAX
PUSH ESI
PUSH dword ptr [ESP + 0x120]
PUSH 0x3
CALL 0x00012190
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00017b38
MOV EAX,dword ptr [ESP + 0x74]
MOV ECX,dword ptr [ESP + 0x78]
XOR EDX,EDX
XOR EAX,dword ptr [ESP + 0xd4]
XOR ECX,dword ptr [ESP + 0xd8]
OR ECX,EAX
JNZ 0x00017b19
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x20]
XOR EDX,dword ptr [ESP + 0x7c]
XOR EAX,dword ptr [ESP + 0x80]
OR EDX,EAX
SETZ DL
MOV byte ptr [ESP + 0x8],DL
SUB ESP,0xc
PUSH ESI
CALL 0x00012590
ADD ESP,0x10
MOVZX EDX,byte ptr [ESP + 0x8]
JMP 0x00017a39
CALL 0x00012350
LEA EDX,[EBX + 0xffff952e]
PUSH ESI
PUSH EDX
PUSH dword ptr [EAX]
PUSH 0x1
CALL 0x00012230
CALL 0x00012350
LEA EDX,[EBX + 0xffff952e]
PUSH ESI
PUSH EDX
PUSH dword ptr [EAX]
PUSH 0x1
CALL 0x00012230
CALL 0x0001cbb0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool FUN_000179d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  void *__s1;\n  void *__s2;\n  size_t __n;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  int *piVar4;\n  bool bVar5;\n  int in_GS_OFFSET;\n  stat64 local_e0;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __s1 = (void *)FUN_00013fb0(param_2);\n  __s2 = (void *)FUN_00013fb0(param_4);\n  __n = FUN_00014000(__s1);\n  sVar1 = FUN_00014000(__s2);\n  bVar5 = false;\n  if (__n == sVar1) {\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001cbb0();\n}\n\n" comment (function_definition "bool FUN_000179d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  void *__s1;\n  void *__s2;\n  size_t __n;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  int *piVar4;\n  bool bVar5;\n  int in_GS_OFFSET;\n  stat64 local_e0;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __s1 = (void *)FUN_00013fb0(param_2);\n  __s2 = (void *)FUN_00013fb0(param_4);\n  __n = FUN_00014000(__s1);\n  sVar1 = FUN_00014000(__s2);\n  bVar5 = false;\n  if (__n == sVar1) {\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001cbb0();\n}" primitive_type (function_declarator "FUN_000179d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  void *__s1;\n  void *__s2;\n  size_t __n;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  int *piVar4;\n  bool bVar5;\n  int in_GS_OFFSET;\n  stat64 local_e0;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __s1 = (void *)FUN_00013fb0(param_2);\n  __s2 = (void *)FUN_00013fb0(param_4);\n  __n = FUN_00014000(__s1);\n  sVar1 = FUN_00014000(__s2);\n  bVar5 = false;\n  if (__n == sVar1) {\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar5;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0001cbb0();\n}" { (declaration "void *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "void *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "stat64 local_e0;" type_identifier identifier ;) (declaration "stat64 local_80;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x179d9;" (assignment_expression "uStack_14 = 0x179d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__s1 = (void *)FUN_00013fb0(param_2);" (assignment_expression "__s1 = (void *)FUN_00013fb0(param_2)" identifier = (cast_expression "(void *)FUN_00013fb0(param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00013fb0(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "__s2 = (void *)FUN_00013fb0(param_4);" (assignment_expression "__s2 = (void *)FUN_00013fb0(param_4)" identifier = (cast_expression "(void *)FUN_00013fb0(param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00013fb0(param_4)" identifier (argument_list "(param_4)" ( identifier ))))) ;) (expression_statement "__n = FUN_00014000(__s1);" (assignment_expression "__n = FUN_00014000(__s1)" identifier = (call_expression "FUN_00014000(__s1)" identifier (argument_list "(__s1)" ( identifier )))) ;) (expression_statement "sVar1 = FUN_00014000(__s2);" (assignment_expression "sVar1 = FUN_00014000(__s2)" identifier = (call_expression "FUN_00014000(__s2)" identifier (argument_list "(__s2)" ( identifier )))) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (if_statement "if (__n == sVar1) {\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }" if (parenthesized_expression "(__n == sVar1)" ( (binary_expression "__n == sVar1" identifier == identifier) )) (compound_statement "{\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "iVar2 = memcmp(__s1,__s2,__n);" (assignment_expression "iVar2 = memcmp(__s1,__s2,__n)" identifier = (call_expression "memcmp(__s1,__s2,__n)" identifier (argument_list "(__s1,__s2,__n)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }" { (expression_statement "pcVar3 = (char *)FUN_00013ea0(param_2);" (assignment_expression "pcVar3 = (char *)FUN_00013ea0(param_2)" identifier = (cast_expression "(char *)FUN_00013ea0(param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00013ea0(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);" (assignment_expression "iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100)" identifier = (call_expression "__fxstatat64(3,param_1,pcVar3,&local_e0,0x100)" identifier (argument_list "(3,param_1,pcVar3,&local_e0,0x100)" ( number_literal , identifier , identifier , (pointer_expression "&local_e0" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(1,*piVar4,"%s",pcVar3);" (call_expression "error(1,*piVar4,"%s",pcVar3)" identifier (argument_list "(1,*piVar4,"%s",pcVar3)" ( number_literal , (pointer_expression "*piVar4" * identifier) , (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "pcVar3 = (char *)FUN_00013ea0(param_4);" (assignment_expression "pcVar3 = (char *)FUN_00013ea0(param_4)" identifier = (cast_expression "(char *)FUN_00013ea0(param_4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00013ea0(param_4)" identifier (argument_list "(param_4)" ( identifier ))))) ;) (expression_statement "iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);" (assignment_expression "iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100)" identifier = (call_expression "__fxstatat64(3,param_3,pcVar3,&local_80,0x100)" identifier (argument_list "(3,param_3,pcVar3,&local_80,0x100)" ( number_literal , identifier , identifier , (pointer_expression "&local_80" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar4 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar4,"%s",pcVar3);\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(1,*piVar4,"%s",pcVar3);" (call_expression "error(1,*piVar4,"%s",pcVar3)" identifier (argument_list "(1,*piVar4,"%s",pcVar3)" ( number_literal , (pointer_expression "*piVar4" * identifier) , (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (expression_statement "bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);" (assignment_expression "bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_)" identifier = (binary_expression "(local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_)" (parenthesized_expression "(local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino)" ( (binary_expression "local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino" (binary_expression "local_e0.st_ino._4_4_ == local_80.st_ino._4_4_" (field_expression "local_e0.st_ino._4_4_" (field_expression "local_e0.st_ino" identifier . field_identifier) . field_identifier) == (field_expression "local_80.st_ino._4_4_" (field_expression "local_80.st_ino" identifier . field_identifier) . field_identifier)) && (binary_expression "(int)local_e0.st_ino == (int)local_80.st_ino" (cast_expression "(int)local_e0.st_ino" ( (type_descriptor "int" primitive_type) ) (field_expression "local_e0.st_ino" identifier . field_identifier)) == (cast_expression "(int)local_80.st_ino" ( (type_descriptor "int" primitive_type) ) (field_expression "local_80.st_ino" identifier . field_identifier)))) )) && (parenthesized_expression "((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_)" ( (binary_expression "(int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_" (binary_expression "(int)local_e0.st_dev == (int)local_80.st_dev" (cast_expression "(int)local_e0.st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "local_e0.st_dev" identifier . field_identifier)) == (cast_expression "(int)local_80.st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "local_80.st_dev" identifier . field_identifier))) && (binary_expression "local_e0.st_dev._4_4_ == local_80.st_dev._4_4_" (field_expression "local_e0.st_dev._4_4_" (field_expression "local_e0.st_dev" identifier . field_identifier) . field_identifier) == (field_expression "local_80.st_dev._4_4_" (field_expression "local_80.st_dev" identifier . field_identifier) . field_identifier))) )))) ;) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) })) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar5;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return bVar5;\n  }" { (return_statement "return bVar5;" return identifier ;) })) comment (expression_statement "FUN_0001cbb0();" (call_expression "FUN_0001cbb0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\n_Bool same_nameat(int source_dfd,char *source,int dest_dfd,char *dest)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *name;\n  size_t __n;\n  size_t sVar3;\n  int iVar4;\n  int *piVar5;\n  _Bool _Var6;\n  int in_GS_OFFSET;\n  stat source_dir_stats;\n  stat dest_dir_stats;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pcVar2 = last_component(source);\n  name = last_component(dest);\n  __n = base_len(pcVar2);\n  sVar3 = base_len(name);\n  _Var6 = false;\n  if (__n == sVar3) {\n    _Var6 = false;\n    iVar4 = memcmp(pcVar2,name,__n);\n    if (iVar4 == 0) {\n      pcVar2 = dir_name(source);\n      iVar4 = __fxstatat64(3,source_dfd,pcVar2,(stat64 *)&source_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      free(pcVar2);\n      pcVar2 = dir_name(dest);\n      iVar4 = __fxstatat64(3,dest_dfd,pcVar2,(stat64 *)&dest_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      _Var6 = (source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&\n              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino) &&\n              ((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&\n              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_);\n      free(pcVar2);\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var6;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "_Bool same_nameat(int source_dfd,char *source,int dest_dfd,char *dest)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *name;\n  size_t __n;\n  size_t sVar3;\n  int iVar4;\n  int *piVar5;\n  _Bool _Var6;\n  int in_GS_OFFSET;\n  stat source_dir_stats;\n  stat dest_dir_stats;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pcVar2 = last_component(source);\n  name = last_component(dest);\n  __n = base_len(pcVar2);\n  sVar3 = base_len(name);\n  _Var6 = false;\n  if (__n == sVar3) {\n    _Var6 = false;\n    iVar4 = memcmp(pcVar2,name,__n);\n    if (iVar4 == 0) {\n      pcVar2 = dir_name(source);\n      iVar4 = __fxstatat64(3,source_dfd,pcVar2,(stat64 *)&source_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      free(pcVar2);\n      pcVar2 = dir_name(dest);\n      iVar4 = __fxstatat64(3,dest_dfd,pcVar2,(stat64 *)&dest_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      _Var6 = (source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&\n              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino) &&\n              ((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&\n              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_);\n      free(pcVar2);\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var6;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (function_declarator "same_nameat(int source_dfd,char *source,int dest_dfd,char *dest)" identifier (parameter_list "(int source_dfd,char *source,int dest_dfd,char *dest)" ( (parameter_declaration "int source_dfd" primitive_type identifier) , (parameter_declaration "char *source" primitive_type (pointer_declarator "*source" * identifier)) , (parameter_declaration "int dest_dfd" primitive_type identifier) , (parameter_declaration "char *dest" primitive_type (pointer_declarator "*dest" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char *name;\n  size_t __n;\n  size_t sVar3;\n  int iVar4;\n  int *piVar5;\n  _Bool _Var6;\n  int in_GS_OFFSET;\n  stat source_dir_stats;\n  stat dest_dir_stats;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pcVar2 = last_component(source);\n  name = last_component(dest);\n  __n = base_len(pcVar2);\n  sVar3 = base_len(name);\n  _Var6 = false;\n  if (__n == sVar3) {\n    _Var6 = false;\n    iVar4 = memcmp(pcVar2,name,__n);\n    if (iVar4 == 0) {\n      pcVar2 = dir_name(source);\n      iVar4 = __fxstatat64(3,source_dfd,pcVar2,(stat64 *)&source_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      free(pcVar2);\n      pcVar2 = dir_name(dest);\n      iVar4 = __fxstatat64(3,dest_dfd,pcVar2,(stat64 *)&dest_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      _Var6 = (source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&\n              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino) &&\n              ((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&\n              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_);\n      free(pcVar2);\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var6;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *name;" primitive_type (pointer_declarator "*name" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "_Bool _Var6;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "stat source_dir_stats;" type_identifier identifier ;) (declaration "stat dest_dir_stats;" type_identifier identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pcVar2 = last_component(source);" (assignment_expression "pcVar2 = last_component(source)" identifier = (call_expression "last_component(source)" identifier (argument_list "(source)" ( identifier )))) ;) (expression_statement "name = last_component(dest);" (assignment_expression "name = last_component(dest)" identifier = (call_expression "last_component(dest)" identifier (argument_list "(dest)" ( identifier )))) ;) (expression_statement "__n = base_len(pcVar2);" (assignment_expression "__n = base_len(pcVar2)" identifier = (call_expression "base_len(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "sVar3 = base_len(name);" (assignment_expression "sVar3 = base_len(name)" identifier = (call_expression "base_len(name)" identifier (argument_list "(name)" ( identifier )))) ;) (expression_statement "_Var6 = false;" (assignment_expression "_Var6 = false" identifier = false) ;) (if_statement "if (__n == sVar3) {\n    _Var6 = false;\n    iVar4 = memcmp(pcVar2,name,__n);\n    if (iVar4 == 0) {\n      pcVar2 = dir_name(source);\n      iVar4 = __fxstatat64(3,source_dfd,pcVar2,(stat64 *)&source_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      free(pcVar2);\n      pcVar2 = dir_name(dest);\n      iVar4 = __fxstatat64(3,dest_dfd,pcVar2,(stat64 *)&dest_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      _Var6 = (source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&\n              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino) &&\n              ((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&\n              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_);\n      free(pcVar2);\n    }\n  }" if (parenthesized_expression "(__n == sVar3)" ( (binary_expression "__n == sVar3" identifier == identifier) )) (compound_statement "{\n    _Var6 = false;\n    iVar4 = memcmp(pcVar2,name,__n);\n    if (iVar4 == 0) {\n      pcVar2 = dir_name(source);\n      iVar4 = __fxstatat64(3,source_dfd,pcVar2,(stat64 *)&source_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      free(pcVar2);\n      pcVar2 = dir_name(dest);\n      iVar4 = __fxstatat64(3,dest_dfd,pcVar2,(stat64 *)&dest_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      _Var6 = (source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&\n              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino) &&\n              ((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&\n              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_);\n      free(pcVar2);\n    }\n  }" { (expression_statement "_Var6 = false;" (assignment_expression "_Var6 = false" identifier = false) ;) (expression_statement "iVar4 = memcmp(pcVar2,name,__n);" (assignment_expression "iVar4 = memcmp(pcVar2,name,__n)" identifier = (call_expression "memcmp(pcVar2,name,__n)" identifier (argument_list "(pcVar2,name,__n)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n      pcVar2 = dir_name(source);\n      iVar4 = __fxstatat64(3,source_dfd,pcVar2,(stat64 *)&source_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      free(pcVar2);\n      pcVar2 = dir_name(dest);\n      iVar4 = __fxstatat64(3,dest_dfd,pcVar2,(stat64 *)&dest_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      _Var6 = (source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&\n              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino) &&\n              ((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&\n              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_);\n      free(pcVar2);\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar2 = dir_name(source);\n      iVar4 = __fxstatat64(3,source_dfd,pcVar2,(stat64 *)&source_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      free(pcVar2);\n      pcVar2 = dir_name(dest);\n      iVar4 = __fxstatat64(3,dest_dfd,pcVar2,(stat64 *)&dest_dir_stats,0x100);\n      if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }\n      _Var6 = (source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&\n              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino) &&\n              ((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&\n              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_);\n      free(pcVar2);\n    }" { (expression_statement "pcVar2 = dir_name(source);" (assignment_expression "pcVar2 = dir_name(source)" identifier = (call_expression "dir_name(source)" identifier (argument_list "(source)" ( identifier )))) ;) (expression_statement "iVar4 = __fxstatat64(3,source_dfd,pcVar2,(stat64 *)&source_dir_stats,0x100);" (assignment_expression "iVar4 = __fxstatat64(3,source_dfd,pcVar2,(stat64 *)&source_dir_stats,0x100)" identifier = (call_expression "__fxstatat64(3,source_dfd,pcVar2,(stat64 *)&source_dir_stats,0x100)" identifier (argument_list "(3,source_dfd,pcVar2,(stat64 *)&source_dir_stats,0x100)" ( number_literal , identifier , identifier , (cast_expression "(stat64 *)&source_dir_stats" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&source_dir_stats" & identifier)) , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(1,*piVar5,"%s",pcVar2);" (call_expression "error(1,*piVar5,"%s",pcVar2)" identifier (argument_list "(1,*piVar5,"%s",pcVar2)" ( number_literal , (pointer_expression "*piVar5" * identifier) , (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (expression_statement "free(pcVar2);" (call_expression "free(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "pcVar2 = dir_name(dest);" (assignment_expression "pcVar2 = dir_name(dest)" identifier = (call_expression "dir_name(dest)" identifier (argument_list "(dest)" ( identifier )))) ;) (expression_statement "iVar4 = __fxstatat64(3,dest_dfd,pcVar2,(stat64 *)&dest_dir_stats,0x100);" (assignment_expression "iVar4 = __fxstatat64(3,dest_dfd,pcVar2,(stat64 *)&dest_dir_stats,0x100)" identifier = (call_expression "__fxstatat64(3,dest_dfd,pcVar2,(stat64 *)&dest_dir_stats,0x100)" identifier (argument_list "(3,dest_dfd,pcVar2,(stat64 *)&dest_dir_stats,0x100)" ( number_literal , identifier , identifier , (cast_expression "(stat64 *)&dest_dir_stats" ( (type_descriptor "stat64 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&dest_dir_stats" & identifier)) , number_literal )))) ;) (if_statement "if (iVar4 != 0) {\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar5 = __errno_location();\n                    /* WARNING: Subroutine does not return */\n        error(1,*piVar5,"%s",pcVar2);\n      }" { (expression_statement "piVar5 = __errno_location();" (assignment_expression "piVar5 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) comment (expression_statement "error(1,*piVar5,"%s",pcVar2);" (call_expression "error(1,*piVar5,"%s",pcVar2)" identifier (argument_list "(1,*piVar5,"%s",pcVar2)" ( number_literal , (pointer_expression "*piVar5" * identifier) , (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (expression_statement "_Var6 = (source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&\n              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino) &&\n              ((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&\n              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_);" (assignment_expression "_Var6 = (source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&\n              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino) &&\n              ((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&\n              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_)" identifier = (binary_expression "(source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&\n              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino) &&\n              ((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&\n              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_)" (parenthesized_expression "(source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&\n              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino)" ( (binary_expression "source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&\n              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino" (binary_expression "source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_" (field_expression "source_dir_stats.st_ino._4_4_" (field_expression "source_dir_stats.st_ino" identifier . field_identifier) . field_identifier) == (field_expression "dest_dir_stats.st_ino._4_4_" (field_expression "dest_dir_stats.st_ino" identifier . field_identifier) . field_identifier)) && (binary_expression "(int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino" (cast_expression "(int)source_dir_stats.st_ino" ( (type_descriptor "int" primitive_type) ) (field_expression "source_dir_stats.st_ino" identifier . field_identifier)) == (cast_expression "(int)dest_dir_stats.st_ino" ( (type_descriptor "int" primitive_type) ) (field_expression "dest_dir_stats.st_ino" identifier . field_identifier)))) )) && (parenthesized_expression "((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&\n              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_)" ( (binary_expression "(int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&\n              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_" (binary_expression "(int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev" (cast_expression "(int)source_dir_stats.st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "source_dir_stats.st_dev" identifier . field_identifier)) == (cast_expression "(int)dest_dir_stats.st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "dest_dir_stats.st_dev" identifier . field_identifier))) && (binary_expression "source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_" (field_expression "source_dir_stats.st_dev._4_4_" (field_expression "source_dir_stats.st_dev" identifier . field_identifier) . field_identifier) == (field_expression "dest_dir_stats.st_dev._4_4_" (field_expression "dest_dir_stats.st_dev" identifier . field_identifier) . field_identifier))) )))) ;) (expression_statement "free(pcVar2);" (call_expression "free(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) })) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return _Var6;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return _Var6;\n  }" { (return_statement "return _Var6;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "bool FUN_000179d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  void *__s1;\n  void *__s2;\n  size_t __n;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  int *piVar4;\n  bool bVar5;\n  int in_GS_OFFSET;\n  stat64 local_e0;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __s1 = (void *)FUN_00013fb0(param_2);\n  __s2 = (void *)FUN_00013fb0(param_4);\n  __n = FUN_00014000(__s1);\n  sVar1 = FUN_00014000(__s2);\n  bVar5 = false;\n  if (__n == sVar1) {\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar5;\n  }\n                    \n  FUN_0001cbb0();\n}\n\n" (function_definition "bool FUN_000179d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  void *__s1;\n  void *__s2;\n  size_t __n;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  int *piVar4;\n  bool bVar5;\n  int in_GS_OFFSET;\n  stat64 local_e0;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __s1 = (void *)FUN_00013fb0(param_2);\n  __s2 = (void *)FUN_00013fb0(param_4);\n  __n = FUN_00014000(__s1);\n  sVar1 = FUN_00014000(__s2);\n  bVar5 = false;\n  if (__n == sVar1) {\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar5;\n  }\n                    \n  FUN_0001cbb0();\n}" primitive_type (function_declarator "FUN_000179d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  void *__s1;\n  void *__s2;\n  size_t __n;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  int *piVar4;\n  bool bVar5;\n  int in_GS_OFFSET;\n  stat64 local_e0;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __s1 = (void *)FUN_00013fb0(param_2);\n  __s2 = (void *)FUN_00013fb0(param_4);\n  __n = FUN_00014000(__s1);\n  sVar1 = FUN_00014000(__s2);\n  bVar5 = false;\n  if (__n == sVar1) {\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar5;\n  }\n                    \n  FUN_0001cbb0();\n}" { (declaration "void *__s1;" primitive_type (pointer_declarator "*__s1" * identifier) ;) (declaration "void *__s2;" primitive_type (pointer_declarator "*__s2" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "bool bVar5;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "stat64 local_e0;" type_identifier identifier ;) (declaration "stat64 local_80;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x179d9;" (assignment_expression "uStack_14 = 0x179d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "__s1 = (void *)FUN_00013fb0(param_2);" (assignment_expression "__s1 = (void *)FUN_00013fb0(param_2)" identifier = (cast_expression "(void *)FUN_00013fb0(param_2)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00013fb0(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "__s2 = (void *)FUN_00013fb0(param_4);" (assignment_expression "__s2 = (void *)FUN_00013fb0(param_4)" identifier = (cast_expression "(void *)FUN_00013fb0(param_4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00013fb0(param_4)" identifier (argument_list "(param_4)" ( identifier ))))) ;) (expression_statement "__n = FUN_00014000(__s1);" (assignment_expression "__n = FUN_00014000(__s1)" identifier = (call_expression "FUN_00014000(__s1)" identifier (argument_list "(__s1)" ( identifier )))) ;) (expression_statement "sVar1 = FUN_00014000(__s2);" (assignment_expression "sVar1 = FUN_00014000(__s2)" identifier = (call_expression "FUN_00014000(__s2)" identifier (argument_list "(__s2)" ( identifier )))) ;) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (if_statement "if (__n == sVar1) {\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }" if (parenthesized_expression "(__n == sVar1)" ( (binary_expression "__n == sVar1" identifier == identifier) )) (compound_statement "{\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }" { (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" identifier = false) ;) (expression_statement "iVar2 = memcmp(__s1,__s2,__n);" (assignment_expression "iVar2 = memcmp(__s1,__s2,__n)" identifier = (call_expression "memcmp(__s1,__s2,__n)" identifier (argument_list "(__s1,__s2,__n)" ( identifier , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }" { (expression_statement "pcVar3 = (char *)FUN_00013ea0(param_2);" (assignment_expression "pcVar3 = (char *)FUN_00013ea0(param_2)" identifier = (cast_expression "(char *)FUN_00013ea0(param_2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00013ea0(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) (expression_statement "iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);" (assignment_expression "iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100)" identifier = (call_expression "__fxstatat64(3,param_1,pcVar3,&local_e0,0x100)" identifier (argument_list "(3,param_1,pcVar3,&local_e0,0x100)" ( number_literal , identifier , identifier , (pointer_expression "&local_e0" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(1,*piVar4,"%s",pcVar3);" (call_expression "error(1,*piVar4,"%s",pcVar3)" identifier (argument_list "(1,*piVar4,"%s",pcVar3)" ( number_literal , (pointer_expression "*piVar4" * identifier) , (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) (expression_statement "pcVar3 = (char *)FUN_00013ea0(param_4);" (assignment_expression "pcVar3 = (char *)FUN_00013ea0(param_4)" identifier = (cast_expression "(char *)FUN_00013ea0(param_4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00013ea0(param_4)" identifier (argument_list "(param_4)" ( identifier ))))) ;) (expression_statement "iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);" (assignment_expression "iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100)" identifier = (call_expression "__fxstatat64(3,param_3,pcVar3,&local_80,0x100)" identifier (argument_list "(3,param_3,pcVar3,&local_80,0x100)" ( number_literal , identifier , identifier , (pointer_expression "&local_80" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "error(1,*piVar4,"%s",pcVar3);" (call_expression "error(1,*piVar4,"%s",pcVar3)" identifier (argument_list "(1,*piVar4,"%s",pcVar3)" ( number_literal , (pointer_expression "*piVar4" * identifier) , (string_literal ""%s"" " string_content ") , identifier ))) ;) })) (expression_statement "bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);" (assignment_expression "bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_)" identifier = (binary_expression "(local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_)" (parenthesized_expression "(local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino)" ( (binary_expression "local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino" (binary_expression "local_e0.st_ino._4_4_ == local_80.st_ino._4_4_" (field_expression "local_e0.st_ino._4_4_" (field_expression "local_e0.st_ino" identifier . field_identifier) . field_identifier) == (field_expression "local_80.st_ino._4_4_" (field_expression "local_80.st_ino" identifier . field_identifier) . field_identifier)) && (binary_expression "(int)local_e0.st_ino == (int)local_80.st_ino" (cast_expression "(int)local_e0.st_ino" ( (type_descriptor "int" primitive_type) ) (field_expression "local_e0.st_ino" identifier . field_identifier)) == (cast_expression "(int)local_80.st_ino" ( (type_descriptor "int" primitive_type) ) (field_expression "local_80.st_ino" identifier . field_identifier)))) )) && (parenthesized_expression "((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_)" ( (binary_expression "(int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_" (binary_expression "(int)local_e0.st_dev == (int)local_80.st_dev" (cast_expression "(int)local_e0.st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "local_e0.st_dev" identifier . field_identifier)) == (cast_expression "(int)local_80.st_dev" ( (type_descriptor "int" primitive_type) ) (field_expression "local_80.st_dev" identifier . field_identifier))) && (binary_expression "local_e0.st_dev._4_4_ == local_80.st_dev._4_4_" (field_expression "local_e0.st_dev._4_4_" (field_expression "local_e0.st_dev" identifier . field_identifier) . field_identifier) == (field_expression "local_80.st_dev._4_4_" (field_expression "local_80.st_dev" identifier . field_identifier) . field_identifier))) )))) ;) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))) ;) })) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar5;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return bVar5;\n  }" { (return_statement "return bVar5;" return identifier ;) })) (expression_statement "FUN_0001cbb0();" (call_expression "FUN_0001cbb0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT , IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression * IDENT) , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) == (field_expression (field_expression IDENT . field_identifier) . field_identifier)) && (binary_expression (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT . field_identifier)) == (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT . field_identifier)))) )) && (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT . field_identifier)) == (cast_expression ( (type_descriptor TYPE) ) (field_expression IDENT . field_identifier))) && (binary_expression (field_expression (field_expression IDENT . field_identifier) . field_identifier) == (field_expression (field_expression IDENT . field_identifier) . field_identifier))) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "bool FUN_000179d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)\n\n{\n  void *__s1;\n  void *__s2;\n  size_t __n;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  int *piVar4;\n  bool bVar5;\n  int in_GS_OFFSET;\n  stat64 local_e0;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __s1 = (void *)FUN_00013fb0(param_2);\n  __s2 = (void *)FUN_00013fb0(param_4);\n  __n = FUN_00014000(__s1);\n  sVar1 = FUN_00014000(__s2);\n  bVar5 = false;\n  if (__n == sVar1) {\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar5;\n  }\n                    \n  FUN_0001cbb0();\n}" (primitive_type "bool") (function_declarator "FUN_000179d0(int param_1,undefined4 param_2,int param_3,undefined4 param_4)" (identifier "FUN_000179d0") (parameter_list "(int param_1,undefined4 param_2,int param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  void *__s1;\n  void *__s2;\n  size_t __n;\n  size_t sVar1;\n  int iVar2;\n  char *pcVar3;\n  int *piVar4;\n  bool bVar5;\n  int in_GS_OFFSET;\n  stat64 local_e0;\n  stat64 local_80;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x179d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  __s1 = (void *)FUN_00013fb0(param_2);\n  __s2 = (void *)FUN_00013fb0(param_4);\n  __n = FUN_00014000(__s1);\n  sVar1 = FUN_00014000(__s2);\n  bVar5 = false;\n  if (__n == sVar1) {\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar5;\n  }\n                    \n  FUN_0001cbb0();\n}" ({ "{") (declaration "void *__s1;" (primitive_type "void") (pointer_declarator "*__s1" (* "*") (identifier "__s1")) (; ";")) (declaration "void *__s2;" (primitive_type "void") (pointer_declarator "*__s2" (* "*") (identifier "__s2")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "size_t sVar1;" (primitive_type "size_t") (identifier "sVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "bool bVar5;" (primitive_type "bool") (identifier "bVar5") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "stat64 local_e0;" (type_identifier "stat64") (identifier "local_e0") (; ";")) (declaration "stat64 local_80;" (type_identifier "stat64") (identifier "local_80") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x179d9;" (assignment_expression "uStack_14 = 0x179d9" (identifier "uStack_14") (= "=") (number_literal "0x179d9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "__s1 = (void *)FUN_00013fb0(param_2);" (assignment_expression "__s1 = (void *)FUN_00013fb0(param_2)" (identifier "__s1") (= "=") (cast_expression "(void *)FUN_00013fb0(param_2)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00013fb0(param_2)" (identifier "FUN_00013fb0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "__s2 = (void *)FUN_00013fb0(param_4);" (assignment_expression "__s2 = (void *)FUN_00013fb0(param_4)" (identifier "__s2") (= "=") (cast_expression "(void *)FUN_00013fb0(param_4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00013fb0(param_4)" (identifier "FUN_00013fb0") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")"))))) (; ";")) (expression_statement "__n = FUN_00014000(__s1);" (assignment_expression "__n = FUN_00014000(__s1)" (identifier "__n") (= "=") (call_expression "FUN_00014000(__s1)" (identifier "FUN_00014000") (argument_list "(__s1)" (( "(") (identifier "__s1") () ")")))) (; ";")) (expression_statement "sVar1 = FUN_00014000(__s2);" (assignment_expression "sVar1 = FUN_00014000(__s2)" (identifier "sVar1") (= "=") (call_expression "FUN_00014000(__s2)" (identifier "FUN_00014000") (argument_list "(__s2)" (( "(") (identifier "__s2") () ")")))) (; ";")) (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (if_statement "if (__n == sVar1) {\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }" (if "if") (parenthesized_expression "(__n == sVar1)" (( "(") (binary_expression "__n == sVar1" (identifier "__n") (== "==") (identifier "sVar1")) () ")")) (compound_statement "{\n    bVar5 = false;\n    iVar2 = memcmp(__s1,__s2,__n);\n    if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }\n  }" ({ "{") (expression_statement "bVar5 = false;" (assignment_expression "bVar5 = false" (identifier "bVar5") (= "=") (false "false")) (; ";")) (expression_statement "iVar2 = memcmp(__s1,__s2,__n);" (assignment_expression "iVar2 = memcmp(__s1,__s2,__n)" (identifier "iVar2") (= "=") (call_expression "memcmp(__s1,__s2,__n)" (identifier "memcmp") (argument_list "(__s1,__s2,__n)" (( "(") (identifier "__s1") (, ",") (identifier "__s2") (, ",") (identifier "__n") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar3 = (char *)FUN_00013ea0(param_2);\n      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      free(pcVar3);\n      pcVar3 = (char *)FUN_00013ea0(param_4);\n      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);\n      if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }\n      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);\n      free(pcVar3);\n    }" ({ "{") (expression_statement "pcVar3 = (char *)FUN_00013ea0(param_2);" (assignment_expression "pcVar3 = (char *)FUN_00013ea0(param_2)" (identifier "pcVar3") (= "=") (cast_expression "(char *)FUN_00013ea0(param_2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00013ea0(param_2)" (identifier "FUN_00013ea0") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))))) (; ";")) (expression_statement "iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);" (assignment_expression "iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100)" (identifier "iVar2") (= "=") (call_expression "__fxstatat64(3,param_1,pcVar3,&local_e0,0x100)" (identifier "__fxstatat64") (argument_list "(3,param_1,pcVar3,&local_e0,0x100)" (( "(") (number_literal "3") (, ",") (identifier "param_1") (, ",") (identifier "pcVar3") (, ",") (pointer_expression "&local_e0" (& "&") (identifier "local_e0")) (, ",") (number_literal "0x100") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "error(1,*piVar4,"%s",pcVar3);" (call_expression "error(1,*piVar4,"%s",pcVar3)" (identifier "error") (argument_list "(1,*piVar4,"%s",pcVar3)" (( "(") (number_literal "1") (, ",") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (identifier "pcVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" (identifier "free") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")"))) (; ";")) (expression_statement "pcVar3 = (char *)FUN_00013ea0(param_4);" (assignment_expression "pcVar3 = (char *)FUN_00013ea0(param_4)" (identifier "pcVar3") (= "=") (cast_expression "(char *)FUN_00013ea0(param_4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00013ea0(param_4)" (identifier "FUN_00013ea0") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")"))))) (; ";")) (expression_statement "iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);" (assignment_expression "iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100)" (identifier "iVar2") (= "=") (call_expression "__fxstatat64(3,param_3,pcVar3,&local_80,0x100)" (identifier "__fxstatat64") (argument_list "(3,param_3,pcVar3,&local_80,0x100)" (( "(") (number_literal "3") (, ",") (identifier "param_3") (, ",") (identifier "pcVar3") (, ",") (pointer_expression "&local_80" (& "&") (identifier "local_80")) (, ",") (number_literal "0x100") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar4 = __errno_location();\n                    \n        error(1,*piVar4,"%s",pcVar3);\n      }" ({ "{") (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" (identifier "piVar4") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "error(1,*piVar4,"%s",pcVar3);" (call_expression "error(1,*piVar4,"%s",pcVar3)" (identifier "error") (argument_list "(1,*piVar4,"%s",pcVar3)" (( "(") (number_literal "1") (, ",") (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (, ",") (string_literal ""%s"" (" """) (string_content "%s") (" """)) (, ",") (identifier "pcVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);" (assignment_expression "bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_)" (identifier "bVar5") (= "=") (binary_expression "(local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino) &&\n              ((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_)" (parenthesized_expression "(local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino)" (( "(") (binary_expression "local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&\n              (int)local_e0.st_ino == (int)local_80.st_ino" (binary_expression "local_e0.st_ino._4_4_ == local_80.st_ino._4_4_" (field_expression "local_e0.st_ino._4_4_" (field_expression "local_e0.st_ino" (identifier "local_e0") (. ".") (field_identifier "st_ino")) (. ".") (field_identifier "_4_4_")) (== "==") (field_expression "local_80.st_ino._4_4_" (field_expression "local_80.st_ino" (identifier "local_80") (. ".") (field_identifier "st_ino")) (. ".") (field_identifier "_4_4_"))) (&& "&&") (binary_expression "(int)local_e0.st_ino == (int)local_80.st_ino" (cast_expression "(int)local_e0.st_ino" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (field_expression "local_e0.st_ino" (identifier "local_e0") (. ".") (field_identifier "st_ino"))) (== "==") (cast_expression "(int)local_80.st_ino" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (field_expression "local_80.st_ino" (identifier "local_80") (. ".") (field_identifier "st_ino"))))) () ")")) (&& "&&") (parenthesized_expression "((int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_)" (( "(") (binary_expression "(int)local_e0.st_dev == (int)local_80.st_dev &&\n              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_" (binary_expression "(int)local_e0.st_dev == (int)local_80.st_dev" (cast_expression "(int)local_e0.st_dev" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (field_expression "local_e0.st_dev" (identifier "local_e0") (. ".") (field_identifier "st_dev"))) (== "==") (cast_expression "(int)local_80.st_dev" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (field_expression "local_80.st_dev" (identifier "local_80") (. ".") (field_identifier "st_dev")))) (&& "&&") (binary_expression "local_e0.st_dev._4_4_ == local_80.st_dev._4_4_" (field_expression "local_e0.st_dev._4_4_" (field_expression "local_e0.st_dev" (identifier "local_e0") (. ".") (field_identifier "st_dev")) (. ".") (field_identifier "_4_4_")) (== "==") (field_expression "local_80.st_dev._4_4_" (field_expression "local_80.st_dev" (identifier "local_80") (. ".") (field_identifier "st_dev")) (. ".") (field_identifier "_4_4_")))) () ")")))) (; ";")) (expression_statement "free(pcVar3);" (call_expression "free(pcVar3)" (identifier "free") (argument_list "(pcVar3)" (( "(") (identifier "pcVar3") () ")"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return bVar5;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return bVar5;\n  }" ({ "{") (return_statement "return bVar5;" (return "return") (identifier "bVar5") (; ";")) (} "}"))) (expression_statement "FUN_0001cbb0();" (call_expression "FUN_0001cbb0()" (identifier "FUN_0001cbb0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 function_1(int source_dfd,char *source,int dest_dfd,char *dest)

{
  int var_13;
  char *pcVar2;
  char *name;
  size_t var_4;
  size_t var_5;
  int var_7;
  int *piVar5;
  type_1 _Var6;
  int var_1;
  type_2 source_dir_stats;
  type_2 dest_dir_stats;
  
  var_13 = *(int *)(var_1 + 0x14);
  pcVar2 = var_2(source);
  name = var_2(dest);
  var_4 = var_3(pcVar2);
  var_5 = var_3(name);
  _Var6 = false;
  if (var_4 == var_5) {
    _Var6 = false;
    var_7 = var_6(pcVar2,name,var_4);
    if (var_7 == 0) {
      pcVar2 = var_8(source);
      var_7 = var_9(3,source_dfd,pcVar2,(type_3 *)&source_dir_stats,0x100);
      if (var_7 != 0) {
        piVar5 = var_10();
                    /* WARNING: Subroutine does not return */
        var_11(1,*piVar5,"%s",pcVar2);
      }
      var_12(pcVar2);
      pcVar2 = var_8(dest);
      var_7 = var_9(3,dest_dfd,pcVar2,(type_3 *)&dest_dir_stats,0x100);
      if (var_7 != 0) {
        piVar5 = var_10();
                    /* WARNING: Subroutine does not return */
        var_11(1,*piVar5,"%s",pcVar2);
      }
      _Var6 = (source_dir_stats.st_ino._4_4_ == dest_dir_stats.st_ino._4_4_ &&
              (int)source_dir_stats.st_ino == (int)dest_dir_stats.st_ino) &&
              ((int)source_dir_stats.st_dev == (int)dest_dir_stats.st_dev &&
              source_dir_stats.st_dev._4_4_ == dest_dir_stats.st_dev._4_4_);
      var_12(pcVar2);
    }
  }
  if (var_13 == *(int *)(var_1 + 0x14)) {
    return _Var6;
  }
                    /* WARNING: Subroutine does not return */
  var_14();
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (false))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (false))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (string_literal (string_content)) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (string_literal (string_content)) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)) right: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier))) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (field_expression argument: (identifier) field: (field_identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (field_expression argument: (identifier) field: (field_identifier)))))) right: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (field_expression argument: (identifier) field: (field_identifier))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (field_expression argument: (identifier) field: (field_identifier)))) right: (binary_expression left: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)) right: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

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

{
  void *__s1;
  void *__s2;
  size_t __n;
  size_t sVar1;
  int iVar2;
  char *pcVar3;
  int *piVar4;
  bool bVar5;
  int in_GS_OFFSET;
  stat64 local_e0;
  stat64 local_80;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x179d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  __s1 = (void *)FUN_00013fb0(param_2);
  __s2 = (void *)FUN_00013fb0(param_4);
  __n = FUN_00014000(__s1);
  sVar1 = FUN_00014000(__s2);
  bVar5 = false;
  if (__n == sVar1) {
    bVar5 = false;
    iVar2 = memcmp(__s1,__s2,__n);
    if (iVar2 == 0) {
      pcVar3 = (char *)FUN_00013ea0(param_2);
      iVar2 = __fxstatat64(3,param_1,pcVar3,&local_e0,0x100);
      if (iVar2 != 0) {
        piVar4 = __errno_location();
                    /* WARNING: Subroutine does not return */
        error(1,*piVar4,"%s",pcVar3);
      }
      free(pcVar3);
      pcVar3 = (char *)FUN_00013ea0(param_4);
      iVar2 = __fxstatat64(3,param_3,pcVar3,&local_80,0x100);
      if (iVar2 != 0) {
        piVar4 = __errno_location();
                    /* WARNING: Subroutine does not return */
        error(1,*piVar4,"%s",pcVar3);
      }
      bVar5 = (local_e0.st_ino._4_4_ == local_80.st_ino._4_4_ &&
              (int)local_e0.st_ino == (int)local_80.st_ino) &&
              ((int)local_e0.st_dev == (int)local_80.st_dev &&
              local_e0.st_dev._4_4_ == local_80.st_dev._4_4_);
      free(pcVar3);
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return bVar5;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0001cbb0();
}

