
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void leave_dir(FTS * fts, FTSENT * ent, FTS * fts) */

void __regparm3 leave_dir(FTS *fts,FTSENT *ent,FTS *fts_1)

{
  int iVar1;
  _ftsent *p_Var2;
  _ftsent *p_Var3;
  DIR *pDVar4;
  _ftsent *p_Var5;
  void *__ptr;
  int in_GS_OFFSET;
  Active_dir obj;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (((uint)fts & 0x102) == 0) {
    p_Var2 = fts_1->fts_child;
    if ((p_Var2 != (_ftsent *)0x0) && (-1 < p_Var2->fts_level)) {
      p_Var3 = ent->fts_cycle;
      if (p_Var3->fts_pointer == (void *)0x0 && p_Var3->fts_number == 0)
      goto leave_dir_isra_12_cold_15;
      if ((p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&
           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]) &&
         (p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&
          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3])) {
        pDVar4 = *(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4);
        p_Var3->fts_link = *(_ftsent **)&p_Var2->fts_statp[0].st_dev;
        p_Var5 = *(_ftsent **)&p_Var2->fts_statp[0].st_ino;
        p_Var3->fts_dirp = pDVar4;
        p_Var2 = *(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4);
        p_Var3->fts_cycle = p_Var5;
        p_Var3->fts_parent = p_Var2;
      }
    }
  }
  else {
    obj.dev._0_4_ = (fts_1->fts_fd_ring).ir_data[3];
    obj.dev._4_4_ = (fts_1->fts_fd_ring).ir_default_val;
    obj.ino._0_4_ = fts_1[1].fts_fd_ring.ir_data[3];
    obj.ino._4_4_ = fts_1[1].fts_fd_ring.ir_default_val;
    __ptr = hash_delete((Hash_table *)ent->fts_cycle,&obj);
    if (__ptr == (void *)0x0) {
leave_dir_isra_12_cold_15:
                    /* WARNING: Subroutine does not return */
      abort();
    }
    free(__ptr);
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



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

void __regparm3 FUN_00019ef0(uint param_1,int *param_2,int param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  void *__ptr;
  int in_GS_OFFSET;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_1c;
  undefined4 local_18;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if ((param_1 & 0x102) == 0) {
    iVar1 = *(int *)(param_3 + 4);
    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {
      param_2 = (int *)*param_2;
      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;
      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&
         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {
        iVar2 = *(int *)(iVar1 + 0x48);
        param_2[2] = *(int *)(iVar1 + 0x44);
        iVar3 = *(int *)(iVar1 + 0x9c);
        param_2[3] = iVar2;
        iVar1 = *(int *)(iVar1 + 0xa0);
        *param_2 = iVar3;
        param_2[1] = iVar1;
      }
    }
  }
  else {
    local_24 = *(undefined4 *)(param_3 + 0x44);
    local_20 = *(undefined4 *)(param_3 + 0x48);
    local_1c = *(undefined4 *)(param_3 + 0x9c);
    local_18 = *(undefined4 *)(param_3 + 0xa0);
    __ptr = (void *)FUN_00015460(*param_2,&local_24);
    if (__ptr == (void *)0x0) {
FUN_0001269b:
                    /* WARNING: Subroutine does not return */
      abort();
    }
    free(__ptr);
  }
  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00020910();
  }
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00012a80
ADD EBX,0xf108
SUB ESP,0x20
MOV EDI,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x1c],EDI
XOR EDI,EDI
TEST EAX,0x102
JNZ 0x00019f70
MOV EAX,dword ptr [ECX + 0x4]
TEST EAX,EAX
JZ 0x00019f50
MOV ESI,dword ptr [EAX + 0x30]
TEST ESI,ESI
JS 0x00019f50
MOV EDX,dword ptr [EDX]
MOV ESI,dword ptr [EDX + 0x14]
OR ESI,dword ptr [EDX + 0x10]
JZ 0x0001269b
MOV EBX,dword ptr [EDX]
MOV ESI,dword ptr [EDX + 0x4]
XOR EBX,dword ptr [ECX + 0x9c]
XOR ESI,dword ptr [ECX + 0xa0]
OR ESI,EBX
JZ 0x00019fc0
LEA ESI,[ESI]
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x00019ff2
ADD ESP,0x20
POP EBX
POP ESI
POP EDI
RET
MOV ESI,dword ptr [ECX + 0x44]
MOV EDI,dword ptr [ECX + 0x48]
SUB ESP,0x8
MOV dword ptr [ESP + 0x10],ESI
MOV ESI,dword ptr [ECX + 0x9c]
MOV dword ptr [ESP + 0x14],EDI
MOV EDI,dword ptr [ECX + 0xa0]
MOV dword ptr [ESP + 0x18],ESI
MOV dword ptr [ESP + 0x1c],EDI
LEA EAX,[ESP + 0x10]
PUSH EAX
PUSH dword ptr [EDX]
CALL 0x00015460
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0001269b
SUB ESP,0xc
PUSH EAX
CALL 0x00012650
ADD ESP,0x10
JMP 0x00019f50
MOV EBX,dword ptr [EDX + 0x8]
MOV ESI,dword ptr [EDX + 0xc]
XOR EBX,dword ptr [ECX + 0x44]
XOR ESI,dword ptr [ECX + 0x48]
OR ESI,EBX
JNZ 0x00019f50
MOV ECX,dword ptr [EAX + 0x44]
MOV EBX,dword ptr [EAX + 0x48]
MOV dword ptr [EDX + 0x8],ECX
MOV ECX,dword ptr [EAX + 0x9c]
MOV dword ptr [EDX + 0xc],EBX
MOV EBX,dword ptr [EAX + 0xa0]
MOV dword ptr [EDX],ECX
MOV dword ptr [EDX + 0x4],EBX
JMP 0x00019f50
CALL 0x00020910
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_00019ef0(uint param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 & 0x102) == 0) {\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }\n  else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    free(__ptr);\n  }\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_00019ef0(uint param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 & 0x102) == 0) {\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }\n  else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    free(__ptr);\n  }\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00019ef0(uint param_1,int *param_2,int param_3)" identifier (parameter_list "(uint param_1,int *param_2,int param_3)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 & 0x102) == 0) {\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }\n  else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    free(__ptr);\n  }\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) (if_statement "if ((param_1 & 0x102) == 0) {\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }\n  else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    free(__ptr);\n  }" if (parenthesized_expression "((param_1 & 0x102) == 0)" ( (binary_expression "(param_1 & 0x102) == 0" (parenthesized_expression "(param_1 & 0x102)" ( (binary_expression "param_1 & 0x102" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }" { (expression_statement "iVar1 = *(int *)(param_3 + 4);" (assignment_expression "iVar1 = *(int *)(param_3 + 4)" identifier = (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }" if (parenthesized_expression "((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30)))" ( (binary_expression "(iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(-1 < *(int *)(iVar1 + 0x30))" ( (binary_expression "-1 < *(int *)(iVar1 + 0x30)" number_literal < (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ))) )) (compound_statement "{\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }" { (expression_statement "param_2 = (int *)*param_2;" (assignment_expression "param_2 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;" if (parenthesized_expression "(param_2[5] == 0 && param_2[4] == 0)" ( (binary_expression "param_2[5] == 0 && param_2[4] == 0" (binary_expression "param_2[5] == 0" (subscript_expression "param_2[5]" identifier [ number_literal ]) == number_literal) && (binary_expression "param_2[4] == 0" (subscript_expression "param_2[4]" identifier [ number_literal ]) == number_literal)) )) (goto_statement "goto FUN_0001269b;" goto statement_identifier ;)) (if_statement "if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }" if (parenthesized_expression "((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44)))" ( (binary_expression "(param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))" (parenthesized_expression "(param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c))" ( (binary_expression "param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)" (binary_expression "param_2[1] == *(int *)(param_3 + 0xa0)" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (pointer_expression "*(int *)(param_3 + 0xa0)" * (cast_expression "(int *)(param_3 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xa0)" ( (binary_expression "param_3 + 0xa0" identifier + number_literal) ))))) && (binary_expression "*param_2 == *(int *)(param_3 + 0x9c)" (pointer_expression "*param_2" * identifier) == (pointer_expression "*(int *)(param_3 + 0x9c)" * (cast_expression "(int *)(param_3 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x9c)" ( (binary_expression "param_3 + 0x9c" identifier + number_literal) )))))) )) && (parenthesized_expression "(param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))" ( (binary_expression "param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44)" (binary_expression "param_2[3] == *(int *)(param_3 + 0x48)" (subscript_expression "param_2[3]" identifier [ number_literal ]) == (pointer_expression "*(int *)(param_3 + 0x48)" * (cast_expression "(int *)(param_3 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x48)" ( (binary_expression "param_3 + 0x48" identifier + number_literal) ))))) && (binary_expression "param_2[2] == *(int *)(param_3 + 0x44)" (subscript_expression "param_2[2]" identifier [ number_literal ]) == (pointer_expression "*(int *)(param_3 + 0x44)" * (cast_expression "(int *)(param_3 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x44)" ( (binary_expression "param_3 + 0x44" identifier + number_literal) )))))) ))) )) (compound_statement "{\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }" { (expression_statement "iVar2 = *(int *)(iVar1 + 0x48);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x48)" identifier = (pointer_expression "*(int *)(iVar1 + 0x48)" * (cast_expression "(int *)(iVar1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x48)" ( (binary_expression "iVar1 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "param_2[2] = *(int *)(iVar1 + 0x44);" (assignment_expression "param_2[2] = *(int *)(iVar1 + 0x44)" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (pointer_expression "*(int *)(iVar1 + 0x44)" * (cast_expression "(int *)(iVar1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x44)" ( (binary_expression "iVar1 + 0x44" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 0x9c);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x9c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x9c)" * (cast_expression "(int *)(iVar1 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x9c)" ( (binary_expression "iVar1 + 0x9c" identifier + number_literal) ))))) ;) (expression_statement "param_2[3] = iVar2;" (assignment_expression "param_2[3] = iVar2" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = *(int *)(iVar1 + 0xa0);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0xa0)" identifier = (pointer_expression "*(int *)(iVar1 + 0xa0)" * (cast_expression "(int *)(iVar1 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xa0)" ( (binary_expression "iVar1 + 0xa0" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = iVar3;" (assignment_expression "*param_2 = iVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = iVar1;" (assignment_expression "param_2[1] = iVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) })) })) }) (else_clause "else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    free(__ptr);\n  }" else (compound_statement "{\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    free(__ptr);\n  }" { (expression_statement "local_24 = *(undefined4 *)(param_3 + 0x44);" (assignment_expression "local_24 = *(undefined4 *)(param_3 + 0x44)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x44)" * (cast_expression "(undefined4 *)(param_3 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x44)" ( (binary_expression "param_3 + 0x44" identifier + number_literal) ))))) ;) (expression_statement "local_20 = *(undefined4 *)(param_3 + 0x48);" (assignment_expression "local_20 = *(undefined4 *)(param_3 + 0x48)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x48)" * (cast_expression "(undefined4 *)(param_3 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x48)" ( (binary_expression "param_3 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "local_1c = *(undefined4 *)(param_3 + 0x9c);" (assignment_expression "local_1c = *(undefined4 *)(param_3 + 0x9c)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x9c)" * (cast_expression "(undefined4 *)(param_3 + 0x9c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x9c)" ( (binary_expression "param_3 + 0x9c" identifier + number_literal) ))))) ;) (expression_statement "local_18 = *(undefined4 *)(param_3 + 0xa0);" (assignment_expression "local_18 = *(undefined4 *)(param_3 + 0xa0)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0xa0)" * (cast_expression "(undefined4 *)(param_3 + 0xa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xa0)" ( (binary_expression "param_3 + 0xa0" identifier + number_literal) ))))) ;) (expression_statement "__ptr = (void *)FUN_00015460(*param_2,&local_24);" (assignment_expression "__ptr = (void *)FUN_00015460(*param_2,&local_24)" identifier = (cast_expression "(void *)FUN_00015460(*param_2,&local_24)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00015460(*param_2,&local_24)" identifier (argument_list "(*param_2,&local_24)" ( (pointer_expression "*param_2" * identifier) , (pointer_expression "&local_24" & identifier) ))))) ;) (if_statement "if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" if (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nFUN_0001269b:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" { (labeled_statement "FUN_0001269b:\n                    /* WARNING: Subroutine does not return */\n      abort();" statement_identifier : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }))) (if_statement "if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }" if (parenthesized_expression "(local_10 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 != *(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                    /* WARNING: Subroutine does not return */\n    FUN_00020910();\n  }" { comment (expression_statement "FUN_00020910();" (call_expression "FUN_00020910()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void leave_dir(FTS * fts, FTSENT * ent, FTS * fts) */\n\nvoid __regparm3 leave_dir(FTS *fts,FTSENT *ent,FTS *fts_1)\n\n{\n  int iVar1;\n  _ftsent *p_Var2;\n  _ftsent *p_Var3;\n  DIR *pDVar4;\n  _ftsent *p_Var5;\n  void *__ptr;\n  int in_GS_OFFSET;\n  Active_dir obj;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((uint)fts & 0x102) == 0) {\n    p_Var2 = fts_1->fts_child;\n    if ((p_Var2 != (_ftsent *)0x0) && (-1 < p_Var2->fts_level)) {\n      p_Var3 = ent->fts_cycle;\n      if (p_Var3->fts_pointer == (void *)0x0 && p_Var3->fts_number == 0)\n      goto leave_dir_isra_12_cold_15;\n      if ((p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&\n           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]) &&\n         (p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&\n          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3])) {\n        pDVar4 = *(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4);\n        p_Var3->fts_link = *(_ftsent **)&p_Var2->fts_statp[0].st_dev;\n        p_Var5 = *(_ftsent **)&p_Var2->fts_statp[0].st_ino;\n        p_Var3->fts_dirp = pDVar4;\n        p_Var2 = *(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4);\n        p_Var3->fts_cycle = p_Var5;\n        p_Var3->fts_parent = p_Var2;\n      }\n    }\n  }\n  else {\n    obj.dev._0_4_ = (fts_1->fts_fd_ring).ir_data[3];\n    obj.dev._4_4_ = (fts_1->fts_fd_ring).ir_default_val;\n    obj.ino._0_4_ = fts_1[1].fts_fd_ring.ir_data[3];\n    obj.ino._4_4_ = fts_1[1].fts_fd_ring.ir_default_val;\n    __ptr = hash_delete((Hash_table *)ent->fts_cycle,&obj);\n    if (__ptr == (void *)0x0) {\nleave_dir_isra_12_cold_15:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    free(__ptr);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment comment (function_definition "void __regparm3 leave_dir(FTS *fts,FTSENT *ent,FTS *fts_1)\n\n{\n  int iVar1;\n  _ftsent *p_Var2;\n  _ftsent *p_Var3;\n  DIR *pDVar4;\n  _ftsent *p_Var5;\n  void *__ptr;\n  int in_GS_OFFSET;\n  Active_dir obj;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((uint)fts & 0x102) == 0) {\n    p_Var2 = fts_1->fts_child;\n    if ((p_Var2 != (_ftsent *)0x0) && (-1 < p_Var2->fts_level)) {\n      p_Var3 = ent->fts_cycle;\n      if (p_Var3->fts_pointer == (void *)0x0 && p_Var3->fts_number == 0)\n      goto leave_dir_isra_12_cold_15;\n      if ((p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&\n           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]) &&\n         (p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&\n          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3])) {\n        pDVar4 = *(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4);\n        p_Var3->fts_link = *(_ftsent **)&p_Var2->fts_statp[0].st_dev;\n        p_Var5 = *(_ftsent **)&p_Var2->fts_statp[0].st_ino;\n        p_Var3->fts_dirp = pDVar4;\n        p_Var2 = *(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4);\n        p_Var3->fts_cycle = p_Var5;\n        p_Var3->fts_parent = p_Var2;\n      }\n    }\n  }\n  else {\n    obj.dev._0_4_ = (fts_1->fts_fd_ring).ir_data[3];\n    obj.dev._4_4_ = (fts_1->fts_fd_ring).ir_default_val;\n    obj.ino._0_4_ = fts_1[1].fts_fd_ring.ir_data[3];\n    obj.ino._4_4_ = fts_1[1].fts_fd_ring.ir_default_val;\n    __ptr = hash_delete((Hash_table *)ent->fts_cycle,&obj);\n    if (__ptr == (void *)0x0) {\nleave_dir_isra_12_cold_15:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    free(__ptr);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "leave_dir(FTS *fts,FTSENT *ent,FTS *fts_1)" identifier (parameter_list "(FTS *fts,FTSENT *ent,FTS *fts_1)" ( (parameter_declaration "FTS *fts" type_identifier (pointer_declarator "*fts" * identifier)) , (parameter_declaration "FTSENT *ent" type_identifier (pointer_declarator "*ent" * identifier)) , (parameter_declaration "FTS *fts_1" type_identifier (pointer_declarator "*fts_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  _ftsent *p_Var2;\n  _ftsent *p_Var3;\n  DIR *pDVar4;\n  _ftsent *p_Var5;\n  void *__ptr;\n  int in_GS_OFFSET;\n  Active_dir obj;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (((uint)fts & 0x102) == 0) {\n    p_Var2 = fts_1->fts_child;\n    if ((p_Var2 != (_ftsent *)0x0) && (-1 < p_Var2->fts_level)) {\n      p_Var3 = ent->fts_cycle;\n      if (p_Var3->fts_pointer == (void *)0x0 && p_Var3->fts_number == 0)\n      goto leave_dir_isra_12_cold_15;\n      if ((p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&\n           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]) &&\n         (p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&\n          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3])) {\n        pDVar4 = *(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4);\n        p_Var3->fts_link = *(_ftsent **)&p_Var2->fts_statp[0].st_dev;\n        p_Var5 = *(_ftsent **)&p_Var2->fts_statp[0].st_ino;\n        p_Var3->fts_dirp = pDVar4;\n        p_Var2 = *(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4);\n        p_Var3->fts_cycle = p_Var5;\n        p_Var3->fts_parent = p_Var2;\n      }\n    }\n  }\n  else {\n    obj.dev._0_4_ = (fts_1->fts_fd_ring).ir_data[3];\n    obj.dev._4_4_ = (fts_1->fts_fd_ring).ir_default_val;\n    obj.ino._0_4_ = fts_1[1].fts_fd_ring.ir_data[3];\n    obj.ino._4_4_ = fts_1[1].fts_fd_ring.ir_default_val;\n    __ptr = hash_delete((Hash_table *)ent->fts_cycle,&obj);\n    if (__ptr == (void *)0x0) {\nleave_dir_isra_12_cold_15:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    free(__ptr);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "_ftsent *p_Var2;" type_identifier (pointer_declarator "*p_Var2" * identifier) ;) (declaration "_ftsent *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "DIR *pDVar4;" type_identifier (pointer_declarator "*pDVar4" * identifier) ;) (declaration "_ftsent *p_Var5;" type_identifier (pointer_declarator "*p_Var5" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "Active_dir obj;" 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) ))))) ;) (if_statement "if (((uint)fts & 0x102) == 0) {\n    p_Var2 = fts_1->fts_child;\n    if ((p_Var2 != (_ftsent *)0x0) && (-1 < p_Var2->fts_level)) {\n      p_Var3 = ent->fts_cycle;\n      if (p_Var3->fts_pointer == (void *)0x0 && p_Var3->fts_number == 0)\n      goto leave_dir_isra_12_cold_15;\n      if ((p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&\n           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]) &&\n         (p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&\n          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3])) {\n        pDVar4 = *(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4);\n        p_Var3->fts_link = *(_ftsent **)&p_Var2->fts_statp[0].st_dev;\n        p_Var5 = *(_ftsent **)&p_Var2->fts_statp[0].st_ino;\n        p_Var3->fts_dirp = pDVar4;\n        p_Var2 = *(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4);\n        p_Var3->fts_cycle = p_Var5;\n        p_Var3->fts_parent = p_Var2;\n      }\n    }\n  }\n  else {\n    obj.dev._0_4_ = (fts_1->fts_fd_ring).ir_data[3];\n    obj.dev._4_4_ = (fts_1->fts_fd_ring).ir_default_val;\n    obj.ino._0_4_ = fts_1[1].fts_fd_ring.ir_data[3];\n    obj.ino._4_4_ = fts_1[1].fts_fd_ring.ir_default_val;\n    __ptr = hash_delete((Hash_table *)ent->fts_cycle,&obj);\n    if (__ptr == (void *)0x0) {\nleave_dir_isra_12_cold_15:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    free(__ptr);\n  }" if (parenthesized_expression "(((uint)fts & 0x102) == 0)" ( (binary_expression "((uint)fts & 0x102) == 0" (parenthesized_expression "((uint)fts & 0x102)" ( (binary_expression "(uint)fts & 0x102" (cast_expression "(uint)fts" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    p_Var2 = fts_1->fts_child;\n    if ((p_Var2 != (_ftsent *)0x0) && (-1 < p_Var2->fts_level)) {\n      p_Var3 = ent->fts_cycle;\n      if (p_Var3->fts_pointer == (void *)0x0 && p_Var3->fts_number == 0)\n      goto leave_dir_isra_12_cold_15;\n      if ((p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&\n           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]) &&\n         (p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&\n          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3])) {\n        pDVar4 = *(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4);\n        p_Var3->fts_link = *(_ftsent **)&p_Var2->fts_statp[0].st_dev;\n        p_Var5 = *(_ftsent **)&p_Var2->fts_statp[0].st_ino;\n        p_Var3->fts_dirp = pDVar4;\n        p_Var2 = *(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4);\n        p_Var3->fts_cycle = p_Var5;\n        p_Var3->fts_parent = p_Var2;\n      }\n    }\n  }" { (expression_statement "p_Var2 = fts_1->fts_child;" (assignment_expression "p_Var2 = fts_1->fts_child" identifier = (field_expression "fts_1->fts_child" identifier -> field_identifier)) ;) (if_statement "if ((p_Var2 != (_ftsent *)0x0) && (-1 < p_Var2->fts_level)) {\n      p_Var3 = ent->fts_cycle;\n      if (p_Var3->fts_pointer == (void *)0x0 && p_Var3->fts_number == 0)\n      goto leave_dir_isra_12_cold_15;\n      if ((p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&\n           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]) &&\n         (p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&\n          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3])) {\n        pDVar4 = *(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4);\n        p_Var3->fts_link = *(_ftsent **)&p_Var2->fts_statp[0].st_dev;\n        p_Var5 = *(_ftsent **)&p_Var2->fts_statp[0].st_ino;\n        p_Var3->fts_dirp = pDVar4;\n        p_Var2 = *(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4);\n        p_Var3->fts_cycle = p_Var5;\n        p_Var3->fts_parent = p_Var2;\n      }\n    }" if (parenthesized_expression "((p_Var2 != (_ftsent *)0x0) && (-1 < p_Var2->fts_level))" ( (binary_expression "(p_Var2 != (_ftsent *)0x0) && (-1 < p_Var2->fts_level)" (parenthesized_expression "(p_Var2 != (_ftsent *)0x0)" ( (binary_expression "p_Var2 != (_ftsent *)0x0" identifier != (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(-1 < p_Var2->fts_level)" ( (binary_expression "-1 < p_Var2->fts_level" number_literal < (field_expression "p_Var2->fts_level" identifier -> field_identifier)) ))) )) (compound_statement "{\n      p_Var3 = ent->fts_cycle;\n      if (p_Var3->fts_pointer == (void *)0x0 && p_Var3->fts_number == 0)\n      goto leave_dir_isra_12_cold_15;\n      if ((p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&\n           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]) &&\n         (p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&\n          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3])) {\n        pDVar4 = *(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4);\n        p_Var3->fts_link = *(_ftsent **)&p_Var2->fts_statp[0].st_dev;\n        p_Var5 = *(_ftsent **)&p_Var2->fts_statp[0].st_ino;\n        p_Var3->fts_dirp = pDVar4;\n        p_Var2 = *(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4);\n        p_Var3->fts_cycle = p_Var5;\n        p_Var3->fts_parent = p_Var2;\n      }\n    }" { (expression_statement "p_Var3 = ent->fts_cycle;" (assignment_expression "p_Var3 = ent->fts_cycle" identifier = (field_expression "ent->fts_cycle" identifier -> field_identifier)) ;) (if_statement "if (p_Var3->fts_pointer == (void *)0x0 && p_Var3->fts_number == 0)\n      goto leave_dir_isra_12_cold_15;" if (parenthesized_expression "(p_Var3->fts_pointer == (void *)0x0 && p_Var3->fts_number == 0)" ( (binary_expression "p_Var3->fts_pointer == (void *)0x0 && p_Var3->fts_number == 0" (binary_expression "p_Var3->fts_pointer == (void *)0x0" (field_expression "p_Var3->fts_pointer" identifier -> field_identifier) == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) && (binary_expression "p_Var3->fts_number == 0" (field_expression "p_Var3->fts_number" identifier -> field_identifier) == number_literal)) )) (goto_statement "goto leave_dir_isra_12_cold_15;" goto statement_identifier ;)) (if_statement "if ((p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&\n           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]) &&\n         (p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&\n          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3])) {\n        pDVar4 = *(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4);\n        p_Var3->fts_link = *(_ftsent **)&p_Var2->fts_statp[0].st_dev;\n        p_Var5 = *(_ftsent **)&p_Var2->fts_statp[0].st_ino;\n        p_Var3->fts_dirp = pDVar4;\n        p_Var2 = *(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4);\n        p_Var3->fts_cycle = p_Var5;\n        p_Var3->fts_parent = p_Var2;\n      }" if (parenthesized_expression "((p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&\n           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]) &&\n         (p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&\n          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3]))" ( (binary_expression "(p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&\n           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]) &&\n         (p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&\n          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3])" (parenthesized_expression "(p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&\n           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3])" ( (binary_expression "p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val &&\n           p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]" (binary_expression "p_Var3->fts_parent == (_ftsent *)fts_1[1].fts_fd_ring.ir_default_val" (field_expression "p_Var3->fts_parent" identifier -> field_identifier) == (cast_expression "(_ftsent *)fts_1[1].fts_fd_ring.ir_default_val" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "fts_1[1].fts_fd_ring.ir_default_val" (field_expression "fts_1[1].fts_fd_ring" (subscript_expression "fts_1[1]" identifier [ number_literal ]) . field_identifier) . field_identifier))) && (binary_expression "p_Var3->fts_cycle == (_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]" (field_expression "p_Var3->fts_cycle" identifier -> field_identifier) == (cast_expression "(_ftsent *)fts_1[1].fts_fd_ring.ir_data[3]" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "fts_1[1].fts_fd_ring.ir_data[3]" (field_expression "fts_1[1].fts_fd_ring.ir_data" (field_expression "fts_1[1].fts_fd_ring" (subscript_expression "fts_1[1]" identifier [ number_literal ]) . field_identifier) . field_identifier) [ number_literal ])))) )) && (parenthesized_expression "(p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&\n          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3])" ( (binary_expression "p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val &&\n          p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3]" (binary_expression "p_Var3->fts_dirp == (DIR *)(fts_1->fts_fd_ring).ir_default_val" (field_expression "p_Var3->fts_dirp" identifier -> field_identifier) == (cast_expression "(DIR *)(fts_1->fts_fd_ring).ir_default_val" ( (type_descriptor "DIR *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(fts_1->fts_fd_ring).ir_default_val" (parenthesized_expression "(fts_1->fts_fd_ring)" ( (field_expression "fts_1->fts_fd_ring" identifier -> field_identifier) )) . field_identifier))) && (binary_expression "p_Var3->fts_link == (_ftsent *)(fts_1->fts_fd_ring).ir_data[3]" (field_expression "p_Var3->fts_link" identifier -> field_identifier) == (cast_expression "(_ftsent *)(fts_1->fts_fd_ring).ir_data[3]" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "(fts_1->fts_fd_ring).ir_data[3]" (field_expression "(fts_1->fts_fd_ring).ir_data" (parenthesized_expression "(fts_1->fts_fd_ring)" ( (field_expression "fts_1->fts_fd_ring" identifier -> field_identifier) )) . field_identifier) [ number_literal ])))) ))) )) (compound_statement "{\n        pDVar4 = *(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4);\n        p_Var3->fts_link = *(_ftsent **)&p_Var2->fts_statp[0].st_dev;\n        p_Var5 = *(_ftsent **)&p_Var2->fts_statp[0].st_ino;\n        p_Var3->fts_dirp = pDVar4;\n        p_Var2 = *(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4);\n        p_Var3->fts_cycle = p_Var5;\n        p_Var3->fts_parent = p_Var2;\n      }" { (expression_statement "pDVar4 = *(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4);" (assignment_expression "pDVar4 = *(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4)" identifier = (pointer_expression "*(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4)" * (cast_expression "(DIR **)((int)&p_Var2->fts_statp[0].st_dev + 4)" ( (type_descriptor "DIR **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&p_Var2->fts_statp[0].st_dev + 4)" ( (binary_expression "(int)&p_Var2->fts_statp[0].st_dev + 4" (cast_expression "(int)&p_Var2->fts_statp[0].st_dev" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p_Var2->fts_statp[0].st_dev" & (field_expression "p_Var2->fts_statp[0].st_dev" (subscript_expression "p_Var2->fts_statp[0]" (field_expression "p_Var2->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier))) + number_literal) ))))) ;) (expression_statement "p_Var3->fts_link = *(_ftsent **)&p_Var2->fts_statp[0].st_dev;" (assignment_expression "p_Var3->fts_link = *(_ftsent **)&p_Var2->fts_statp[0].st_dev" (field_expression "p_Var3->fts_link" identifier -> field_identifier) = (pointer_expression "*(_ftsent **)&p_Var2->fts_statp[0].st_dev" * (cast_expression "(_ftsent **)&p_Var2->fts_statp[0].st_dev" ( (type_descriptor "_ftsent **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&p_Var2->fts_statp[0].st_dev" & (field_expression "p_Var2->fts_statp[0].st_dev" (subscript_expression "p_Var2->fts_statp[0]" (field_expression "p_Var2->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier))))) ;) (expression_statement "p_Var5 = *(_ftsent **)&p_Var2->fts_statp[0].st_ino;" (assignment_expression "p_Var5 = *(_ftsent **)&p_Var2->fts_statp[0].st_ino" identifier = (pointer_expression "*(_ftsent **)&p_Var2->fts_statp[0].st_ino" * (cast_expression "(_ftsent **)&p_Var2->fts_statp[0].st_ino" ( (type_descriptor "_ftsent **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&p_Var2->fts_statp[0].st_ino" & (field_expression "p_Var2->fts_statp[0].st_ino" (subscript_expression "p_Var2->fts_statp[0]" (field_expression "p_Var2->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier))))) ;) (expression_statement "p_Var3->fts_dirp = pDVar4;" (assignment_expression "p_Var3->fts_dirp = pDVar4" (field_expression "p_Var3->fts_dirp" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var2 = *(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4);" (assignment_expression "p_Var2 = *(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4)" identifier = (pointer_expression "*(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4)" * (cast_expression "(_ftsent **)((int)&p_Var2->fts_statp[0].st_ino + 4)" ( (type_descriptor "_ftsent **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)&p_Var2->fts_statp[0].st_ino + 4)" ( (binary_expression "(int)&p_Var2->fts_statp[0].st_ino + 4" (cast_expression "(int)&p_Var2->fts_statp[0].st_ino" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p_Var2->fts_statp[0].st_ino" & (field_expression "p_Var2->fts_statp[0].st_ino" (subscript_expression "p_Var2->fts_statp[0]" (field_expression "p_Var2->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier))) + number_literal) ))))) ;) (expression_statement "p_Var3->fts_cycle = p_Var5;" (assignment_expression "p_Var3->fts_cycle = p_Var5" (field_expression "p_Var3->fts_cycle" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var3->fts_parent = p_Var2;" (assignment_expression "p_Var3->fts_parent = p_Var2" (field_expression "p_Var3->fts_parent" identifier -> field_identifier) = identifier) ;) })) })) }) (else_clause "else {\n    obj.dev._0_4_ = (fts_1->fts_fd_ring).ir_data[3];\n    obj.dev._4_4_ = (fts_1->fts_fd_ring).ir_default_val;\n    obj.ino._0_4_ = fts_1[1].fts_fd_ring.ir_data[3];\n    obj.ino._4_4_ = fts_1[1].fts_fd_ring.ir_default_val;\n    __ptr = hash_delete((Hash_table *)ent->fts_cycle,&obj);\n    if (__ptr == (void *)0x0) {\nleave_dir_isra_12_cold_15:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    free(__ptr);\n  }" else (compound_statement "{\n    obj.dev._0_4_ = (fts_1->fts_fd_ring).ir_data[3];\n    obj.dev._4_4_ = (fts_1->fts_fd_ring).ir_default_val;\n    obj.ino._0_4_ = fts_1[1].fts_fd_ring.ir_data[3];\n    obj.ino._4_4_ = fts_1[1].fts_fd_ring.ir_default_val;\n    __ptr = hash_delete((Hash_table *)ent->fts_cycle,&obj);\n    if (__ptr == (void *)0x0) {\nleave_dir_isra_12_cold_15:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    free(__ptr);\n  }" { (expression_statement "obj.dev._0_4_ = (fts_1->fts_fd_ring).ir_data[3];" (assignment_expression "obj.dev._0_4_ = (fts_1->fts_fd_ring).ir_data[3]" (field_expression "obj.dev._0_4_" (field_expression "obj.dev" identifier . field_identifier) . field_identifier) = (subscript_expression "(fts_1->fts_fd_ring).ir_data[3]" (field_expression "(fts_1->fts_fd_ring).ir_data" (parenthesized_expression "(fts_1->fts_fd_ring)" ( (field_expression "fts_1->fts_fd_ring" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) (expression_statement "obj.dev._4_4_ = (fts_1->fts_fd_ring).ir_default_val;" (assignment_expression "obj.dev._4_4_ = (fts_1->fts_fd_ring).ir_default_val" (field_expression "obj.dev._4_4_" (field_expression "obj.dev" identifier . field_identifier) . field_identifier) = (field_expression "(fts_1->fts_fd_ring).ir_default_val" (parenthesized_expression "(fts_1->fts_fd_ring)" ( (field_expression "fts_1->fts_fd_ring" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "obj.ino._0_4_ = fts_1[1].fts_fd_ring.ir_data[3];" (assignment_expression "obj.ino._0_4_ = fts_1[1].fts_fd_ring.ir_data[3]" (field_expression "obj.ino._0_4_" (field_expression "obj.ino" identifier . field_identifier) . field_identifier) = (subscript_expression "fts_1[1].fts_fd_ring.ir_data[3]" (field_expression "fts_1[1].fts_fd_ring.ir_data" (field_expression "fts_1[1].fts_fd_ring" (subscript_expression "fts_1[1]" identifier [ number_literal ]) . field_identifier) . field_identifier) [ number_literal ])) ;) (expression_statement "obj.ino._4_4_ = fts_1[1].fts_fd_ring.ir_default_val;" (assignment_expression "obj.ino._4_4_ = fts_1[1].fts_fd_ring.ir_default_val" (field_expression "obj.ino._4_4_" (field_expression "obj.ino" identifier . field_identifier) . field_identifier) = (field_expression "fts_1[1].fts_fd_ring.ir_default_val" (field_expression "fts_1[1].fts_fd_ring" (subscript_expression "fts_1[1]" identifier [ number_literal ]) . field_identifier) . field_identifier)) ;) (expression_statement "__ptr = hash_delete((Hash_table *)ent->fts_cycle,&obj);" (assignment_expression "__ptr = hash_delete((Hash_table *)ent->fts_cycle,&obj)" identifier = (call_expression "hash_delete((Hash_table *)ent->fts_cycle,&obj)" identifier (argument_list "((Hash_table *)ent->fts_cycle,&obj)" ( (cast_expression "(Hash_table *)ent->fts_cycle" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "ent->fts_cycle" identifier -> field_identifier)) , (pointer_expression "&obj" & identifier) )))) ;) (if_statement "if (__ptr == (void *)0x0) {\nleave_dir_isra_12_cold_15:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" if (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nleave_dir_isra_12_cold_15:\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" { (labeled_statement "leave_dir_isra_12_cold_15:\n                    /* WARNING: Subroutine does not return */\n      abort();" statement_identifier : comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }))) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\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                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00019ef0(uint param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 & 0x102) == 0) {\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }\n  else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }\n    free(__ptr);\n  }\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00019ef0(uint param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 & 0x102) == 0) {\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }\n  else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }\n    free(__ptr);\n  }\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00019ef0(uint param_1,int *param_2,int param_3)" identifier (parameter_list "(uint param_1,int *param_2,int param_3)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 & 0x102) == 0) {\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }\n  else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }\n    free(__ptr);\n  }\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "undefined4 local_18;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(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) ))))) ;) (if_statement "if ((param_1 & 0x102) == 0) {\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }\n  else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }\n    free(__ptr);\n  }" if (parenthesized_expression "((param_1 & 0x102) == 0)" ( (binary_expression "(param_1 & 0x102) == 0" (parenthesized_expression "(param_1 & 0x102)" ( (binary_expression "param_1 & 0x102" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }" { (expression_statement "iVar1 = *(int *)(param_3 + 4);" (assignment_expression "iVar1 = *(int *)(param_3 + 4)" identifier = (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) ;) (if_statement "if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }" if (parenthesized_expression "((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30)))" ( (binary_expression "(iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))" (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(-1 < *(int *)(iVar1 + 0x30))" ( (binary_expression "-1 < *(int *)(iVar1 + 0x30)" number_literal < (pointer_expression "*(int *)(iVar1 + 0x30)" * (cast_expression "(int *)(iVar1 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ))) )) (compound_statement "{\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }" { (expression_statement "param_2 = (int *)*param_2;" (assignment_expression "param_2 = (int *)*param_2" identifier = (cast_expression "(int *)*param_2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_2" * identifier))) ;) (if_statement "if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;" if (parenthesized_expression "(param_2[5] == 0 && param_2[4] == 0)" ( (binary_expression "param_2[5] == 0 && param_2[4] == 0" (binary_expression "param_2[5] == 0" (subscript_expression "param_2[5]" identifier [ number_literal ]) == number_literal) && (binary_expression "param_2[4] == 0" (subscript_expression "param_2[4]" identifier [ number_literal ]) == number_literal)) )) (goto_statement "goto FUN_0001269b;" goto statement_identifier ;)) (if_statement "if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }" if (parenthesized_expression "((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44)))" ( (binary_expression "(param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))" (parenthesized_expression "(param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c))" ( (binary_expression "param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)" (binary_expression "param_2[1] == *(int *)(param_3 + 0xa0)" (subscript_expression "param_2[1]" identifier [ number_literal ]) == (pointer_expression "*(int *)(param_3 + 0xa0)" * (cast_expression "(int *)(param_3 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xa0)" ( (binary_expression "param_3 + 0xa0" identifier + number_literal) ))))) && (binary_expression "*param_2 == *(int *)(param_3 + 0x9c)" (pointer_expression "*param_2" * identifier) == (pointer_expression "*(int *)(param_3 + 0x9c)" * (cast_expression "(int *)(param_3 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x9c)" ( (binary_expression "param_3 + 0x9c" identifier + number_literal) )))))) )) && (parenthesized_expression "(param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))" ( (binary_expression "param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44)" (binary_expression "param_2[3] == *(int *)(param_3 + 0x48)" (subscript_expression "param_2[3]" identifier [ number_literal ]) == (pointer_expression "*(int *)(param_3 + 0x48)" * (cast_expression "(int *)(param_3 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x48)" ( (binary_expression "param_3 + 0x48" identifier + number_literal) ))))) && (binary_expression "param_2[2] == *(int *)(param_3 + 0x44)" (subscript_expression "param_2[2]" identifier [ number_literal ]) == (pointer_expression "*(int *)(param_3 + 0x44)" * (cast_expression "(int *)(param_3 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x44)" ( (binary_expression "param_3 + 0x44" identifier + number_literal) )))))) ))) )) (compound_statement "{\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }" { (expression_statement "iVar2 = *(int *)(iVar1 + 0x48);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x48)" identifier = (pointer_expression "*(int *)(iVar1 + 0x48)" * (cast_expression "(int *)(iVar1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x48)" ( (binary_expression "iVar1 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "param_2[2] = *(int *)(iVar1 + 0x44);" (assignment_expression "param_2[2] = *(int *)(iVar1 + 0x44)" (subscript_expression "param_2[2]" identifier [ number_literal ]) = (pointer_expression "*(int *)(iVar1 + 0x44)" * (cast_expression "(int *)(iVar1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x44)" ( (binary_expression "iVar1 + 0x44" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = *(int *)(iVar1 + 0x9c);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x9c)" identifier = (pointer_expression "*(int *)(iVar1 + 0x9c)" * (cast_expression "(int *)(iVar1 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x9c)" ( (binary_expression "iVar1 + 0x9c" identifier + number_literal) ))))) ;) (expression_statement "param_2[3] = iVar2;" (assignment_expression "param_2[3] = iVar2" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = *(int *)(iVar1 + 0xa0);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0xa0)" identifier = (pointer_expression "*(int *)(iVar1 + 0xa0)" * (cast_expression "(int *)(iVar1 + 0xa0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xa0)" ( (binary_expression "iVar1 + 0xa0" identifier + number_literal) ))))) ;) (expression_statement "*param_2 = iVar3;" (assignment_expression "*param_2 = iVar3" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "param_2[1] = iVar1;" (assignment_expression "param_2[1] = iVar1" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) })) })) }) (else_clause "else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }\n    free(__ptr);\n  }" else (compound_statement "{\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }\n    free(__ptr);\n  }" { (expression_statement "local_24 = *(undefined4 *)(param_3 + 0x44);" (assignment_expression "local_24 = *(undefined4 *)(param_3 + 0x44)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x44)" * (cast_expression "(undefined4 *)(param_3 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x44)" ( (binary_expression "param_3 + 0x44" identifier + number_literal) ))))) ;) (expression_statement "local_20 = *(undefined4 *)(param_3 + 0x48);" (assignment_expression "local_20 = *(undefined4 *)(param_3 + 0x48)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x48)" * (cast_expression "(undefined4 *)(param_3 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x48)" ( (binary_expression "param_3 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "local_1c = *(undefined4 *)(param_3 + 0x9c);" (assignment_expression "local_1c = *(undefined4 *)(param_3 + 0x9c)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0x9c)" * (cast_expression "(undefined4 *)(param_3 + 0x9c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0x9c)" ( (binary_expression "param_3 + 0x9c" identifier + number_literal) ))))) ;) (expression_statement "local_18 = *(undefined4 *)(param_3 + 0xa0);" (assignment_expression "local_18 = *(undefined4 *)(param_3 + 0xa0)" identifier = (pointer_expression "*(undefined4 *)(param_3 + 0xa0)" * (cast_expression "(undefined4 *)(param_3 + 0xa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xa0)" ( (binary_expression "param_3 + 0xa0" identifier + number_literal) ))))) ;) (expression_statement "__ptr = (void *)FUN_00015460(*param_2,&local_24);" (assignment_expression "__ptr = (void *)FUN_00015460(*param_2,&local_24)" identifier = (cast_expression "(void *)FUN_00015460(*param_2,&local_24)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00015460(*param_2,&local_24)" identifier (argument_list "(*param_2,&local_24)" ( (pointer_expression "*param_2" * identifier) , (pointer_expression "&local_24" & identifier) ))))) ;) (if_statement "if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }" if (parenthesized_expression "(__ptr == (void *)0x0)" ( (binary_expression "__ptr == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nFUN_0001269b:\n                    \n      abort();\n    }" { (labeled_statement "FUN_0001269b:\n                    \n      abort();" statement_identifier : (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) }))) (if_statement "if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }" if (parenthesized_expression "(local_10 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 != *(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                    \n    FUN_00020910();\n  }" { (expression_statement "FUN_00020910();" (call_expression "FUN_00020910()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) && (binary_expression (subscript_expression IDENT [ LIT ]) == LIT)) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) && (binary_expression (pointer_expression * IDENT) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) && (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) && (binary_expression (subscript_expression IDENT [ LIT ]) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) })) }) (else_clause else (compound_statement { (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 = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = (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 ( (pointer_expression * IDENT) , (pointer_expression & IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) (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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00019ef0(uint param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 & 0x102) == 0) {\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }\n  else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }\n    free(__ptr);\n  }\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00019ef0(uint param_1,int *param_2,int param_3)" (identifier "FUN_00019ef0") (parameter_list "(uint param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  int iVar3;\n  void *__ptr;\n  int in_GS_OFFSET;\n  undefined4 local_24;\n  undefined4 local_20;\n  undefined4 local_1c;\n  undefined4 local_18;\n  int local_10;\n  \n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if ((param_1 & 0x102) == 0) {\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }\n  else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }\n    free(__ptr);\n  }\n  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 local_1c;" (type_identifier "undefined4") (identifier "local_1c") (; ";")) (declaration "undefined4 local_18;" (type_identifier "undefined4") (identifier "local_18") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if ((param_1 & 0x102) == 0) {\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }\n  else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }\n    free(__ptr);\n  }" (if "if") (parenthesized_expression "((param_1 & 0x102) == 0)" (( "(") (binary_expression "(param_1 & 0x102) == 0" (parenthesized_expression "(param_1 & 0x102)" (( "(") (binary_expression "param_1 & 0x102" (identifier "param_1") (& "&") (number_literal "0x102")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = *(int *)(param_3 + 4);\n    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(param_3 + 4);" (assignment_expression "iVar1 = *(int *)(param_3 + 4)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }" (if "if") (parenthesized_expression "((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30)))" (( "(") (binary_expression "(iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))" (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(-1 < *(int *)(iVar1 + 0x30))" (( "(") (binary_expression "-1 < *(int *)(iVar1 + 0x30)" (number_literal "-1") (< "<") (pointer_expression "*(int *)(iVar1 + 0x30)" (* "*") (cast_expression "(int *)(iVar1 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n      param_2 = (int *)*param_2;\n      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;\n      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }\n    }" ({ "{") (expression_statement "param_2 = (int *)*param_2;" (assignment_expression "param_2 = (int *)*param_2" (identifier "param_2") (= "=") (cast_expression "(int *)*param_2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2")))) (; ";")) (if_statement "if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;" (if "if") (parenthesized_expression "(param_2[5] == 0 && param_2[4] == 0)" (( "(") (binary_expression "param_2[5] == 0 && param_2[4] == 0" (binary_expression "param_2[5] == 0" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (== "==") (number_literal "0")) (&& "&&") (binary_expression "param_2[4] == 0" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (== "==") (number_literal "0"))) () ")")) (goto_statement "goto FUN_0001269b;" (goto "goto") (statement_identifier "FUN_0001269b") (; ";"))) (if_statement "if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }" (if "if") (parenthesized_expression "((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44)))" (( "(") (binary_expression "(param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&\n         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))" (parenthesized_expression "(param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c))" (( "(") (binary_expression "param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)" (binary_expression "param_2[1] == *(int *)(param_3 + 0xa0)" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (== "==") (pointer_expression "*(int *)(param_3 + 0xa0)" (* "*") (cast_expression "(int *)(param_3 + 0xa0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xa0)" (( "(") (binary_expression "param_3 + 0xa0" (identifier "param_3") (+ "+") (number_literal "0xa0")) () ")"))))) (&& "&&") (binary_expression "*param_2 == *(int *)(param_3 + 0x9c)" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (== "==") (pointer_expression "*(int *)(param_3 + 0x9c)" (* "*") (cast_expression "(int *)(param_3 + 0x9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x9c)" (( "(") (binary_expression "param_3 + 0x9c" (identifier "param_3") (+ "+") (number_literal "0x9c")) () ")")))))) () ")")) (&& "&&") (parenthesized_expression "(param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))" (( "(") (binary_expression "param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44)" (binary_expression "param_2[3] == *(int *)(param_3 + 0x48)" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (== "==") (pointer_expression "*(int *)(param_3 + 0x48)" (* "*") (cast_expression "(int *)(param_3 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x48)" (( "(") (binary_expression "param_3 + 0x48" (identifier "param_3") (+ "+") (number_literal "0x48")) () ")"))))) (&& "&&") (binary_expression "param_2[2] == *(int *)(param_3 + 0x44)" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (== "==") (pointer_expression "*(int *)(param_3 + 0x44)" (* "*") (cast_expression "(int *)(param_3 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x44)" (( "(") (binary_expression "param_3 + 0x44" (identifier "param_3") (+ "+") (number_literal "0x44")) () ")")))))) () ")"))) () ")")) (compound_statement "{\n        iVar2 = *(int *)(iVar1 + 0x48);\n        param_2[2] = *(int *)(iVar1 + 0x44);\n        iVar3 = *(int *)(iVar1 + 0x9c);\n        param_2[3] = iVar2;\n        iVar1 = *(int *)(iVar1 + 0xa0);\n        *param_2 = iVar3;\n        param_2[1] = iVar1;\n      }" ({ "{") (expression_statement "iVar2 = *(int *)(iVar1 + 0x48);" (assignment_expression "iVar2 = *(int *)(iVar1 + 0x48)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(iVar1 + 0x48)" (* "*") (cast_expression "(int *)(iVar1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x48)" (( "(") (binary_expression "iVar1 + 0x48" (identifier "iVar1") (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (expression_statement "param_2[2] = *(int *)(iVar1 + 0x44);" (assignment_expression "param_2[2] = *(int *)(iVar1 + 0x44)" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "*(int *)(iVar1 + 0x44)" (* "*") (cast_expression "(int *)(iVar1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x44)" (( "(") (binary_expression "iVar1 + 0x44" (identifier "iVar1") (+ "+") (number_literal "0x44")) () ")"))))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar1 + 0x9c);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x9c)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar1 + 0x9c)" (* "*") (cast_expression "(int *)(iVar1 + 0x9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x9c)" (( "(") (binary_expression "iVar1 + 0x9c" (identifier "iVar1") (+ "+") (number_literal "0x9c")) () ")"))))) (; ";")) (expression_statement "param_2[3] = iVar2;" (assignment_expression "param_2[3] = iVar2" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar1 = *(int *)(iVar1 + 0xa0);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0xa0)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 0xa0)" (* "*") (cast_expression "(int *)(iVar1 + 0xa0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xa0)" (( "(") (binary_expression "iVar1 + 0xa0" (identifier "iVar1") (+ "+") (number_literal "0xa0")) () ")"))))) (; ";")) (expression_statement "*param_2 = iVar3;" (assignment_expression "*param_2 = iVar3" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "param_2[1] = iVar1;" (assignment_expression "param_2[1] = iVar1" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }\n    free(__ptr);\n  }" (else "else") (compound_statement "{\n    local_24 = *(undefined4 *)(param_3 + 0x44);\n    local_20 = *(undefined4 *)(param_3 + 0x48);\n    local_1c = *(undefined4 *)(param_3 + 0x9c);\n    local_18 = *(undefined4 *)(param_3 + 0xa0);\n    __ptr = (void *)FUN_00015460(*param_2,&local_24);\n    if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }\n    free(__ptr);\n  }" ({ "{") (expression_statement "local_24 = *(undefined4 *)(param_3 + 0x44);" (assignment_expression "local_24 = *(undefined4 *)(param_3 + 0x44)" (identifier "local_24") (= "=") (pointer_expression "*(undefined4 *)(param_3 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x44)" (( "(") (binary_expression "param_3 + 0x44" (identifier "param_3") (+ "+") (number_literal "0x44")) () ")"))))) (; ";")) (expression_statement "local_20 = *(undefined4 *)(param_3 + 0x48);" (assignment_expression "local_20 = *(undefined4 *)(param_3 + 0x48)" (identifier "local_20") (= "=") (pointer_expression "*(undefined4 *)(param_3 + 0x48)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x48)" (( "(") (binary_expression "param_3 + 0x48" (identifier "param_3") (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (expression_statement "local_1c = *(undefined4 *)(param_3 + 0x9c);" (assignment_expression "local_1c = *(undefined4 *)(param_3 + 0x9c)" (identifier "local_1c") (= "=") (pointer_expression "*(undefined4 *)(param_3 + 0x9c)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0x9c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0x9c)" (( "(") (binary_expression "param_3 + 0x9c" (identifier "param_3") (+ "+") (number_literal "0x9c")) () ")"))))) (; ";")) (expression_statement "local_18 = *(undefined4 *)(param_3 + 0xa0);" (assignment_expression "local_18 = *(undefined4 *)(param_3 + 0xa0)" (identifier "local_18") (= "=") (pointer_expression "*(undefined4 *)(param_3 + 0xa0)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0xa0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xa0)" (( "(") (binary_expression "param_3 + 0xa0" (identifier "param_3") (+ "+") (number_literal "0xa0")) () ")"))))) (; ";")) (expression_statement "__ptr = (void *)FUN_00015460(*param_2,&local_24);" (assignment_expression "__ptr = (void *)FUN_00015460(*param_2,&local_24)" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_00015460(*param_2,&local_24)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00015460(*param_2,&local_24)" (identifier "FUN_00015460") (argument_list "(*param_2,&local_24)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))))) (; ";")) (if_statement "if (__ptr == (void *)0x0) {\nFUN_0001269b:\n                    \n      abort();\n    }" (if "if") (parenthesized_expression "(__ptr == (void *)0x0)" (( "(") (binary_expression "__ptr == (void *)0x0" (identifier "__ptr") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nFUN_0001269b:\n                    \n      abort();\n    }" ({ "{") (labeled_statement "FUN_0001269b:\n                    \n      abort();" (statement_identifier "FUN_0001269b") (: ":") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00020910();\n  }" (if "if") (parenthesized_expression "(local_10 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (!= "!=") (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                    \n    FUN_00020910();\n  }" ({ "{") (expression_statement "FUN_00020910();" (call_expression "FUN_00020910()" (identifier "FUN_00020910") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void leave_dir(FTS * fts, FTSENT * ent, FTS * fts) */

void __regparm3 function_1(type_1 *fts,type_2 *ent,type_1 *fts_1)

{
  int var_7;
  type_3 *var_2;
  type_3 *p_Var3;
  type_4 *pDVar4;
  type_3 *p_Var5;
  void *var_4;
  int var_1;
  type_5 obj;
  
  var_7 = *(int *)(var_1 + 0x14);
  if (((type_6)fts & 0x102) == 0) {
    var_2 = fts_1->fts_child;
    if ((var_2 != (type_3 *)0x0) && (-1 < var_2->fts_level)) {
      p_Var3 = ent->fts_cycle;
      if (p_Var3->fts_pointer == (void *)0x0 && p_Var3->fts_number == 0)
      goto leave_dir_isra_12_cold_15;
      if ((p_Var3->fts_parent == (type_3 *)fts_1[1].fts_fd_ring.ir_default_val &&
           p_Var3->fts_cycle == (type_3 *)fts_1[1].fts_fd_ring.ir_data[3]) &&
         (p_Var3->fts_dirp == (type_4 *)(fts_1->fts_fd_ring).ir_default_val &&
          p_Var3->fts_link == (type_3 *)(fts_1->fts_fd_ring).ir_data[3])) {
        pDVar4 = *(type_4 **)((int)&var_2->fts_statp[0].st_dev + 4);
        p_Var3->fts_link = *(type_3 **)&var_2->fts_statp[0].st_dev;
        p_Var5 = *(type_3 **)&var_2->fts_statp[0].st_ino;
        p_Var3->fts_dirp = pDVar4;
        var_2 = *(type_3 **)((int)&var_2->fts_statp[0].st_ino + 4);
        p_Var3->fts_cycle = p_Var5;
        p_Var3->fts_parent = var_2;
      }
    }
  }
  else {
    obj.dev._0_4_ = (fts_1->fts_fd_ring).ir_data[3];
    obj.dev._4_4_ = (fts_1->fts_fd_ring).ir_default_val;
    obj.ino._0_4_ = fts_1[1].fts_fd_ring.ir_data[3];
    obj.ino._4_4_ = fts_1[1].fts_fd_ring.ir_default_val;
    var_4 = var_3((type_7 *)ent->fts_cycle,&obj);
    if (var_4 == (void *)0x0) {
leave_dir_isra_12_cold_15:
                    /* WARNING: Subroutine does not return */
      var_5();
    }
    var_6(var_4);
  }
  if (var_7 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_8();
  }
  return;
}


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

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

void __regparm3 MASKED(uint param_1,int *param_2,int param_3)

{
  int iVar1;
  int iVar2;
  int iVar3;
  void *__ptr;
  int in_GS_OFFSET;
  undefined4 local_24;
  undefined4 local_20;
  undefined4 local_1c;
  undefined4 local_18;
  int local_10;
  
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if ((param_1 & 0x102) == 0) {
    iVar1 = *(int *)(param_3 + 4);
    if ((iVar1 != 0) && (-1 < *(int *)(iVar1 + 0x30))) {
      param_2 = (int *)*param_2;
      if (param_2[5] == 0 && param_2[4] == 0) goto FUN_0001269b;
      if ((param_2[1] == *(int *)(param_3 + 0xa0) && *param_2 == *(int *)(param_3 + 0x9c)) &&
         (param_2[3] == *(int *)(param_3 + 0x48) && param_2[2] == *(int *)(param_3 + 0x44))) {
        iVar2 = *(int *)(iVar1 + 0x48);
        param_2[2] = *(int *)(iVar1 + 0x44);
        iVar3 = *(int *)(iVar1 + 0x9c);
        param_2[3] = iVar2;
        iVar1 = *(int *)(iVar1 + 0xa0);
        *param_2 = iVar3;
        param_2[1] = iVar1;
      }
    }
  }
  else {
    local_24 = *(undefined4 *)(param_3 + 0x44);
    local_20 = *(undefined4 *)(param_3 + 0x48);
    local_1c = *(undefined4 *)(param_3 + 0x9c);
    local_18 = *(undefined4 *)(param_3 + 0xa0);
    __ptr = (void *)FUN_00015460(*param_2,&local_24);
    if (__ptr == (void *)0x0) {
FUN_0001269b:
                    /* WARNING: Subroutine does not return */
      abort();
    }
    free(__ptr);
  }
  if (local_10 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00020910();
  }
  return;
}

