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

_Bool __regparm3 enter_dir(FTS *fts,FTSENT *ent,FTS *fts_1)

{
  int iVar1;
  int iVar2;
  _ftsent *p_Var3;
  _Bool _Var4;
  int *entry;
  int *piVar5;
  
  if (((uint)fts & 0x102) == 0) {
    _Var4 = cycle_check((cycle_check_state *)ent->fts_cycle,
                        (stat *)((fts_1->fts_fd_ring).ir_data + 3));
    if (_Var4) {
      fts_1->fts_cur = (_ftsent *)fts_1;
      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;
      return _Var4;
    }
  }
  else {
    entry = (int *)malloc(0x14);
    if (entry == (int *)0x0) {
      return false;
    }
    iVar1 = (fts_1->fts_fd_ring).ir_data[3];
    iVar2 = (fts_1->fts_fd_ring).ir_default_val;
    entry[4] = (int)fts_1;
    p_Var3 = ent->fts_cycle;
    *entry = iVar1;
    entry[1] = iVar2;
    iVar1 = fts_1[1].fts_fd_ring.ir_default_val;
    entry[2] = fts_1[1].fts_fd_ring.ir_data[3];
    entry[3] = iVar1;
    piVar5 = (int *)hash_insert((Hash_table *)p_Var3,entry);
    if (entry != piVar5) {
      free(entry);
      if (piVar5 == (int *)0x0) {
        return false;
      }
      p_Var3 = (_ftsent *)piVar5[4];
      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;
      fts_1->fts_cur = p_Var3;
    }
  }
  return true;
}



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

undefined4 __regparm3 FUN_00025840(uint param_1,undefined4 *param_2,undefined4 *param_3)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 *__ptr;
  undefined4 *puVar3;
  undefined4 uVar4;
  
  if ((param_1 & 0x102) == 0) {
    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);
    if ((char)uVar4 != '\0') {
      *param_3 = param_3;
      *(undefined2 *)(param_3 + 0xf) = 2;
      return uVar4;
    }
  }
  else {
    __ptr = (undefined4 *)malloc(0x14);
    if (__ptr == (undefined4 *)0x0) {
      return 0;
    }
    uVar4 = param_3[0x11];
    uVar1 = param_3[0x12];
    __ptr[4] = param_3;
    uVar2 = *param_2;
    *__ptr = uVar4;
    __ptr[1] = uVar1;
    uVar4 = param_3[0x28];
    __ptr[2] = param_3[0x27];
    __ptr[3] = uVar4;
    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);
    if (__ptr != puVar3) {
      free(__ptr);
      if (puVar3 == (undefined4 *)0x0) {
        return 0;
      }
      uVar4 = puVar3[4];
      *(undefined2 *)(param_3 + 0xf) = 2;
      *param_3 = uVar4;
    }
  }
  return 1;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
MOV ESI,ECX
PUSH EBX
CALL 0x00013950
ADD EBX,0x157b3
SUB ESP,0xc
TEST EAX,0x102
JZ 0x000258d8
SUB ESP,0xc
PUSH 0x14
CALL 0x00012460
ADD ESP,0x10
MOV EDI,EAX
TEST EAX,EAX
JZ 0x00025900
SUB ESP,0x8
MOV EAX,dword ptr [ESI + 0x44]
MOV EDX,dword ptr [ESI + 0x48]
MOV dword ptr [EDI + 0x10],ESI
PUSH EDI
PUSH dword ptr [EBP]
MOV dword ptr [EDI],EAX
MOV dword ptr [EDI + 0x4],EDX
MOV EAX,dword ptr [ESI + 0x9c]
MOV EDX,dword ptr [ESI + 0xa0]
MOV dword ptr [EDI + 0x8],EAX
MOV dword ptr [EDI + 0xc],EDX
CALL 0x0001e360
ADD ESP,0x10
MOV EBP,EAX
CMP EDI,EAX
JZ 0x000258c7
SUB ESP,0xc
PUSH EDI
CALL 0x00012a70
ADD ESP,0x10
TEST EBP,EBP
JZ 0x00025900
MOV EAX,dword ptr [EBP + 0x10]
MOV ECX,0x2
MOV word ptr [ESI + 0x3c],CX
MOV dword ptr [ESI],EAX
ADD ESP,0xc
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
LEA EAX,[ECX + 0x44]
PUSH EAX
PUSH dword ptr [EDX]
CALL 0x000294a0
ADD ESP,0x10
TEST AL,AL
JZ 0x000258c7
MOV EDX,0x2
MOV dword ptr [ESI],ESI
MOV word ptr [ESI + 0x3c],DX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_00025840(uint param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *__ptr;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if ((param_1 & 0x102) == 0) {\n    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }\n  else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }\n  return 1;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_00025840(uint param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *__ptr;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if ((param_1 & 0x102) == 0) {\n    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }\n  else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00025840(uint param_1,undefined4 *param_2,undefined4 *param_3)" identifier (parameter_list "(uint param_1,undefined4 *param_2,undefined4 *param_3)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *__ptr;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if ((param_1 & 0x102) == 0) {\n    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }\n  else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if ((param_1 & 0x102) == 0) {\n    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }\n  else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\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    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }" { (expression_statement "uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);" (assignment_expression "uVar4 = FUN_000294a0(*param_2,param_3 + 0x11)" identifier = (call_expression "FUN_000294a0(*param_2,param_3 + 0x11)" identifier (argument_list "(*param_2,param_3 + 0x11)" ( (pointer_expression "*param_2" * identifier) , (binary_expression "param_3 + 0x11" identifier + number_literal) )))) ;) (if_statement "if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }" if (parenthesized_expression "((char)uVar4 != '\0')" ( (binary_expression "(char)uVar4 != '\0'" (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }" { (expression_statement "*param_3 = param_3;" (assignment_expression "*param_3 = param_3" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*(undefined2 *)(param_3 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_3 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_3 + 0xf)" * (cast_expression "(undefined2 *)(param_3 + 0xf)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xf)" ( (binary_expression "param_3 + 0xf" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar4;" return identifier ;) })) }) (else_clause "else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }" else (compound_statement "{\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }" { (expression_statement "__ptr = (undefined4 *)malloc(0x14);" (assignment_expression "__ptr = (undefined4 *)malloc(0x14)" identifier = (cast_expression "(undefined4 *)malloc(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (if_statement "if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(__ptr == (undefined4 *)0x0)" ( (binary_expression "__ptr == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = param_3[0x11];" (assignment_expression "uVar4 = param_3[0x11]" identifier = (subscript_expression "param_3[0x11]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = param_3[0x12];" (assignment_expression "uVar1 = param_3[0x12]" identifier = (subscript_expression "param_3[0x12]" identifier [ number_literal ])) ;) (expression_statement "__ptr[4] = param_3;" (assignment_expression "__ptr[4] = param_3" (subscript_expression "__ptr[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*__ptr = uVar4;" (assignment_expression "*__ptr = uVar4" (pointer_expression "*__ptr" * identifier) = identifier) ;) (expression_statement "__ptr[1] = uVar1;" (assignment_expression "__ptr[1] = uVar1" (subscript_expression "__ptr[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar4 = param_3[0x28];" (assignment_expression "uVar4 = param_3[0x28]" identifier = (subscript_expression "param_3[0x28]" identifier [ number_literal ])) ;) (expression_statement "__ptr[2] = param_3[0x27];" (assignment_expression "__ptr[2] = param_3[0x27]" (subscript_expression "__ptr[2]" identifier [ number_literal ]) = (subscript_expression "param_3[0x27]" identifier [ number_literal ])) ;) (expression_statement "__ptr[3] = uVar4;" (assignment_expression "__ptr[3] = uVar4" (subscript_expression "__ptr[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);" (assignment_expression "puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr)" identifier = (cast_expression "(undefined4 *)FUN_0001e360(uVar2,__ptr)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001e360(uVar2,__ptr)" identifier (argument_list "(uVar2,__ptr)" ( identifier , identifier ))))) ;) (if_statement "if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }" if (parenthesized_expression "(__ptr != puVar3)" ( (binary_expression "__ptr != puVar3" identifier != identifier) )) (compound_statement "{\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = puVar3[4];" (assignment_expression "uVar4 = puVar3[4]" identifier = (subscript_expression "puVar3[4]" identifier [ number_literal ])) ;) (expression_statement "*(undefined2 *)(param_3 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_3 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_3 + 0xf)" * (cast_expression "(undefined2 *)(param_3 + 0xf)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xf)" ( (binary_expression "param_3 + 0xf" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*param_3 = uVar4;" (assignment_expression "*param_3 = uVar4" (pointer_expression "*param_3" * identifier) = identifier) ;) })) }))) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: _Bool enter_dir(FTS * fts, FTSENT * ent, FTS * fts) */\n\n_Bool __regparm3 enter_dir(FTS *fts,FTSENT *ent,FTS *fts_1)\n\n{\n  int iVar1;\n  int iVar2;\n  _ftsent *p_Var3;\n  _Bool _Var4;\n  int *entry;\n  int *piVar5;\n  \n  if (((uint)fts & 0x102) == 0) {\n    _Var4 = cycle_check((cycle_check_state *)ent->fts_cycle,\n                        (stat *)((fts_1->fts_fd_ring).ir_data + 3));\n    if (_Var4) {\n      fts_1->fts_cur = (_ftsent *)fts_1;\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      return _Var4;\n    }\n  }\n  else {\n    entry = (int *)malloc(0x14);\n    if (entry == (int *)0x0) {\n      return false;\n    }\n    iVar1 = (fts_1->fts_fd_ring).ir_data[3];\n    iVar2 = (fts_1->fts_fd_ring).ir_default_val;\n    entry[4] = (int)fts_1;\n    p_Var3 = ent->fts_cycle;\n    *entry = iVar1;\n    entry[1] = iVar2;\n    iVar1 = fts_1[1].fts_fd_ring.ir_default_val;\n    entry[2] = fts_1[1].fts_fd_ring.ir_data[3];\n    entry[3] = iVar1;\n    piVar5 = (int *)hash_insert((Hash_table *)p_Var3,entry);\n    if (entry != piVar5) {\n      free(entry);\n      if (piVar5 == (int *)0x0) {\n        return false;\n      }\n      p_Var3 = (_ftsent *)piVar5[4];\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      fts_1->fts_cur = p_Var3;\n    }\n  }\n  return true;\n}\n\n" comment comment (function_definition "_Bool __regparm3 enter_dir(FTS *fts,FTSENT *ent,FTS *fts_1)\n\n{\n  int iVar1;\n  int iVar2;\n  _ftsent *p_Var3;\n  _Bool _Var4;\n  int *entry;\n  int *piVar5;\n  \n  if (((uint)fts & 0x102) == 0) {\n    _Var4 = cycle_check((cycle_check_state *)ent->fts_cycle,\n                        (stat *)((fts_1->fts_fd_ring).ir_data + 3));\n    if (_Var4) {\n      fts_1->fts_cur = (_ftsent *)fts_1;\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      return _Var4;\n    }\n  }\n  else {\n    entry = (int *)malloc(0x14);\n    if (entry == (int *)0x0) {\n      return false;\n    }\n    iVar1 = (fts_1->fts_fd_ring).ir_data[3];\n    iVar2 = (fts_1->fts_fd_ring).ir_default_val;\n    entry[4] = (int)fts_1;\n    p_Var3 = ent->fts_cycle;\n    *entry = iVar1;\n    entry[1] = iVar2;\n    iVar1 = fts_1[1].fts_fd_ring.ir_default_val;\n    entry[2] = fts_1[1].fts_fd_ring.ir_data[3];\n    entry[3] = iVar1;\n    piVar5 = (int *)hash_insert((Hash_table *)p_Var3,entry);\n    if (entry != piVar5) {\n      free(entry);\n      if (piVar5 == (int *)0x0) {\n        return false;\n      }\n      p_Var3 = (_ftsent *)piVar5[4];\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      fts_1->fts_cur = p_Var3;\n    }\n  }\n  return true;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "enter_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  int iVar2;\n  _ftsent *p_Var3;\n  _Bool _Var4;\n  int *entry;\n  int *piVar5;\n  \n  if (((uint)fts & 0x102) == 0) {\n    _Var4 = cycle_check((cycle_check_state *)ent->fts_cycle,\n                        (stat *)((fts_1->fts_fd_ring).ir_data + 3));\n    if (_Var4) {\n      fts_1->fts_cur = (_ftsent *)fts_1;\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      return _Var4;\n    }\n  }\n  else {\n    entry = (int *)malloc(0x14);\n    if (entry == (int *)0x0) {\n      return false;\n    }\n    iVar1 = (fts_1->fts_fd_ring).ir_data[3];\n    iVar2 = (fts_1->fts_fd_ring).ir_default_val;\n    entry[4] = (int)fts_1;\n    p_Var3 = ent->fts_cycle;\n    *entry = iVar1;\n    entry[1] = iVar2;\n    iVar1 = fts_1[1].fts_fd_ring.ir_default_val;\n    entry[2] = fts_1[1].fts_fd_ring.ir_data[3];\n    entry[3] = iVar1;\n    piVar5 = (int *)hash_insert((Hash_table *)p_Var3,entry);\n    if (entry != piVar5) {\n      free(entry);\n      if (piVar5 == (int *)0x0) {\n        return false;\n      }\n      p_Var3 = (_ftsent *)piVar5[4];\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      fts_1->fts_cur = p_Var3;\n    }\n  }\n  return true;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "_ftsent *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "_Bool _Var4;" type_identifier identifier ;) (declaration "int *entry;" primitive_type (pointer_declarator "*entry" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (if_statement "if (((uint)fts & 0x102) == 0) {\n    _Var4 = cycle_check((cycle_check_state *)ent->fts_cycle,\n                        (stat *)((fts_1->fts_fd_ring).ir_data + 3));\n    if (_Var4) {\n      fts_1->fts_cur = (_ftsent *)fts_1;\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      return _Var4;\n    }\n  }\n  else {\n    entry = (int *)malloc(0x14);\n    if (entry == (int *)0x0) {\n      return false;\n    }\n    iVar1 = (fts_1->fts_fd_ring).ir_data[3];\n    iVar2 = (fts_1->fts_fd_ring).ir_default_val;\n    entry[4] = (int)fts_1;\n    p_Var3 = ent->fts_cycle;\n    *entry = iVar1;\n    entry[1] = iVar2;\n    iVar1 = fts_1[1].fts_fd_ring.ir_default_val;\n    entry[2] = fts_1[1].fts_fd_ring.ir_data[3];\n    entry[3] = iVar1;\n    piVar5 = (int *)hash_insert((Hash_table *)p_Var3,entry);\n    if (entry != piVar5) {\n      free(entry);\n      if (piVar5 == (int *)0x0) {\n        return false;\n      }\n      p_Var3 = (_ftsent *)piVar5[4];\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      fts_1->fts_cur = p_Var3;\n    }\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    _Var4 = cycle_check((cycle_check_state *)ent->fts_cycle,\n                        (stat *)((fts_1->fts_fd_ring).ir_data + 3));\n    if (_Var4) {\n      fts_1->fts_cur = (_ftsent *)fts_1;\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      return _Var4;\n    }\n  }" { (expression_statement "_Var4 = cycle_check((cycle_check_state *)ent->fts_cycle,\n                        (stat *)((fts_1->fts_fd_ring).ir_data + 3));" (assignment_expression "_Var4 = cycle_check((cycle_check_state *)ent->fts_cycle,\n                        (stat *)((fts_1->fts_fd_ring).ir_data + 3))" identifier = (call_expression "cycle_check((cycle_check_state *)ent->fts_cycle,\n                        (stat *)((fts_1->fts_fd_ring).ir_data + 3))" identifier (argument_list "((cycle_check_state *)ent->fts_cycle,\n                        (stat *)((fts_1->fts_fd_ring).ir_data + 3))" ( (cast_expression "(cycle_check_state *)ent->fts_cycle" ( (type_descriptor "cycle_check_state *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "ent->fts_cycle" identifier -> field_identifier)) , (cast_expression "(stat *)((fts_1->fts_fd_ring).ir_data + 3)" ( (type_descriptor "stat *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((fts_1->fts_fd_ring).ir_data + 3)" ( (binary_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) ))) )))) ;) (if_statement "if (_Var4) {\n      fts_1->fts_cur = (_ftsent *)fts_1;\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      return _Var4;\n    }" if (parenthesized_expression "(_Var4)" ( identifier )) (compound_statement "{\n      fts_1->fts_cur = (_ftsent *)fts_1;\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      return _Var4;\n    }" { (expression_statement "fts_1->fts_cur = (_ftsent *)fts_1;" (assignment_expression "fts_1->fts_cur = (_ftsent *)fts_1" (field_expression "fts_1->fts_cur" identifier -> field_identifier) = (cast_expression "(_ftsent *)fts_1" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "*(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;" (assignment_expression "*(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2" (pointer_expression "*(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1)" * (cast_expression "(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((fts_1->fts_fd_ring).ir_data + 1)" ( (binary_expression "(fts_1->fts_fd_ring).ir_data + 1" (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) )))) = number_literal) ;) (return_statement "return _Var4;" return identifier ;) })) }) (else_clause "else {\n    entry = (int *)malloc(0x14);\n    if (entry == (int *)0x0) {\n      return false;\n    }\n    iVar1 = (fts_1->fts_fd_ring).ir_data[3];\n    iVar2 = (fts_1->fts_fd_ring).ir_default_val;\n    entry[4] = (int)fts_1;\n    p_Var3 = ent->fts_cycle;\n    *entry = iVar1;\n    entry[1] = iVar2;\n    iVar1 = fts_1[1].fts_fd_ring.ir_default_val;\n    entry[2] = fts_1[1].fts_fd_ring.ir_data[3];\n    entry[3] = iVar1;\n    piVar5 = (int *)hash_insert((Hash_table *)p_Var3,entry);\n    if (entry != piVar5) {\n      free(entry);\n      if (piVar5 == (int *)0x0) {\n        return false;\n      }\n      p_Var3 = (_ftsent *)piVar5[4];\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      fts_1->fts_cur = p_Var3;\n    }\n  }" else (compound_statement "{\n    entry = (int *)malloc(0x14);\n    if (entry == (int *)0x0) {\n      return false;\n    }\n    iVar1 = (fts_1->fts_fd_ring).ir_data[3];\n    iVar2 = (fts_1->fts_fd_ring).ir_default_val;\n    entry[4] = (int)fts_1;\n    p_Var3 = ent->fts_cycle;\n    *entry = iVar1;\n    entry[1] = iVar2;\n    iVar1 = fts_1[1].fts_fd_ring.ir_default_val;\n    entry[2] = fts_1[1].fts_fd_ring.ir_data[3];\n    entry[3] = iVar1;\n    piVar5 = (int *)hash_insert((Hash_table *)p_Var3,entry);\n    if (entry != piVar5) {\n      free(entry);\n      if (piVar5 == (int *)0x0) {\n        return false;\n      }\n      p_Var3 = (_ftsent *)piVar5[4];\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      fts_1->fts_cur = p_Var3;\n    }\n  }" { (expression_statement "entry = (int *)malloc(0x14);" (assignment_expression "entry = (int *)malloc(0x14)" identifier = (cast_expression "(int *)malloc(0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (if_statement "if (entry == (int *)0x0) {\n      return false;\n    }" if (parenthesized_expression "(entry == (int *)0x0)" ( (binary_expression "entry == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return false;\n    }" { (return_statement "return false;" return false ;) })) (expression_statement "iVar1 = (fts_1->fts_fd_ring).ir_data[3];" (assignment_expression "iVar1 = (fts_1->fts_fd_ring).ir_data[3]" 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 "iVar2 = (fts_1->fts_fd_ring).ir_default_val;" (assignment_expression "iVar2 = (fts_1->fts_fd_ring).ir_default_val" 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 "entry[4] = (int)fts_1;" (assignment_expression "entry[4] = (int)fts_1" (subscript_expression "entry[4]" identifier [ number_literal ]) = (cast_expression "(int)fts_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "p_Var3 = ent->fts_cycle;" (assignment_expression "p_Var3 = ent->fts_cycle" identifier = (field_expression "ent->fts_cycle" identifier -> field_identifier)) ;) (expression_statement "*entry = iVar1;" (assignment_expression "*entry = iVar1" (pointer_expression "*entry" * identifier) = identifier) ;) (expression_statement "entry[1] = iVar2;" (assignment_expression "entry[1] = iVar2" (subscript_expression "entry[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = fts_1[1].fts_fd_ring.ir_default_val;" (assignment_expression "iVar1 = fts_1[1].fts_fd_ring.ir_default_val" 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 "entry[2] = fts_1[1].fts_fd_ring.ir_data[3];" (assignment_expression "entry[2] = fts_1[1].fts_fd_ring.ir_data[3]" (subscript_expression "entry[2]" identifier [ number_literal ]) = (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 "entry[3] = iVar1;" (assignment_expression "entry[3] = iVar1" (subscript_expression "entry[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar5 = (int *)hash_insert((Hash_table *)p_Var3,entry);" (assignment_expression "piVar5 = (int *)hash_insert((Hash_table *)p_Var3,entry)" identifier = (cast_expression "(int *)hash_insert((Hash_table *)p_Var3,entry)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "hash_insert((Hash_table *)p_Var3,entry)" identifier (argument_list "((Hash_table *)p_Var3,entry)" ( (cast_expression "(Hash_table *)p_Var3" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))))) ;) (if_statement "if (entry != piVar5) {\n      free(entry);\n      if (piVar5 == (int *)0x0) {\n        return false;\n      }\n      p_Var3 = (_ftsent *)piVar5[4];\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      fts_1->fts_cur = p_Var3;\n    }" if (parenthesized_expression "(entry != piVar5)" ( (binary_expression "entry != piVar5" identifier != identifier) )) (compound_statement "{\n      free(entry);\n      if (piVar5 == (int *)0x0) {\n        return false;\n      }\n      p_Var3 = (_ftsent *)piVar5[4];\n      *(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;\n      fts_1->fts_cur = p_Var3;\n    }" { (expression_statement "free(entry);" (call_expression "free(entry)" identifier (argument_list "(entry)" ( identifier ))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n        return false;\n      }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return false;\n      }" { (return_statement "return false;" return false ;) })) (expression_statement "p_Var3 = (_ftsent *)piVar5[4];" (assignment_expression "p_Var3 = (_ftsent *)piVar5[4]" identifier = (cast_expression "(_ftsent *)piVar5[4]" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar5[4]" identifier [ number_literal ]))) ;) (expression_statement "*(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;" (assignment_expression "*(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1) = 2" (pointer_expression "*(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1)" * (cast_expression "(undefined2 *)((fts_1->fts_fd_ring).ir_data + 1)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((fts_1->fts_fd_ring).ir_data + 1)" ( (binary_expression "(fts_1->fts_fd_ring).ir_data + 1" (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) )))) = number_literal) ;) (expression_statement "fts_1->fts_cur = p_Var3;" (assignment_expression "fts_1->fts_cur = p_Var3" (field_expression "fts_1->fts_cur" identifier -> field_identifier) = identifier) ;) })) }))) (return_statement "return true;" return true ;) })))
(translation_unit "undefined4 __regparm3 FUN_00025840(uint param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *__ptr;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if ((param_1 & 0x102) == 0) {\n    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }\n  else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_00025840(uint param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *__ptr;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if ((param_1 & 0x102) == 0) {\n    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }\n  else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00025840(uint param_1,undefined4 *param_2,undefined4 *param_3)" identifier (parameter_list "(uint param_1,undefined4 *param_2,undefined4 *param_3)" ( (parameter_declaration "uint param_1" type_identifier identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *__ptr;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if ((param_1 & 0x102) == 0) {\n    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }\n  else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }\n  return 1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *__ptr;" type_identifier (pointer_declarator "*__ptr" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (if_statement "if ((param_1 & 0x102) == 0) {\n    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }\n  else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\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    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }" { (expression_statement "uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);" (assignment_expression "uVar4 = FUN_000294a0(*param_2,param_3 + 0x11)" identifier = (call_expression "FUN_000294a0(*param_2,param_3 + 0x11)" identifier (argument_list "(*param_2,param_3 + 0x11)" ( (pointer_expression "*param_2" * identifier) , (binary_expression "param_3 + 0x11" identifier + number_literal) )))) ;) (if_statement "if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }" if (parenthesized_expression "((char)uVar4 != '\0')" ( (binary_expression "(char)uVar4 != '\0'" (cast_expression "(char)uVar4" ( (type_descriptor "char" primitive_type) ) identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }" { (expression_statement "*param_3 = param_3;" (assignment_expression "*param_3 = param_3" (pointer_expression "*param_3" * identifier) = identifier) ;) (expression_statement "*(undefined2 *)(param_3 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_3 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_3 + 0xf)" * (cast_expression "(undefined2 *)(param_3 + 0xf)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xf)" ( (binary_expression "param_3 + 0xf" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar4;" return identifier ;) })) }) (else_clause "else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }" else (compound_statement "{\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }" { (expression_statement "__ptr = (undefined4 *)malloc(0x14);" (assignment_expression "__ptr = (undefined4 *)malloc(0x14)" identifier = (cast_expression "(undefined4 *)malloc(0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (if_statement "if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }" if (parenthesized_expression "(__ptr == (undefined4 *)0x0)" ( (binary_expression "__ptr == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = param_3[0x11];" (assignment_expression "uVar4 = param_3[0x11]" identifier = (subscript_expression "param_3[0x11]" identifier [ number_literal ])) ;) (expression_statement "uVar1 = param_3[0x12];" (assignment_expression "uVar1 = param_3[0x12]" identifier = (subscript_expression "param_3[0x12]" identifier [ number_literal ])) ;) (expression_statement "__ptr[4] = param_3;" (assignment_expression "__ptr[4] = param_3" (subscript_expression "__ptr[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*__ptr = uVar4;" (assignment_expression "*__ptr = uVar4" (pointer_expression "*__ptr" * identifier) = identifier) ;) (expression_statement "__ptr[1] = uVar1;" (assignment_expression "__ptr[1] = uVar1" (subscript_expression "__ptr[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar4 = param_3[0x28];" (assignment_expression "uVar4 = param_3[0x28]" identifier = (subscript_expression "param_3[0x28]" identifier [ number_literal ])) ;) (expression_statement "__ptr[2] = param_3[0x27];" (assignment_expression "__ptr[2] = param_3[0x27]" (subscript_expression "__ptr[2]" identifier [ number_literal ]) = (subscript_expression "param_3[0x27]" identifier [ number_literal ])) ;) (expression_statement "__ptr[3] = uVar4;" (assignment_expression "__ptr[3] = uVar4" (subscript_expression "__ptr[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);" (assignment_expression "puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr)" identifier = (cast_expression "(undefined4 *)FUN_0001e360(uVar2,__ptr)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001e360(uVar2,__ptr)" identifier (argument_list "(uVar2,__ptr)" ( identifier , identifier ))))) ;) (if_statement "if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }" if (parenthesized_expression "(__ptr != puVar3)" ( (binary_expression "__ptr != puVar3" identifier != identifier) )) (compound_statement "{\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }" { (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }" if (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" ( (binary_expression "puVar3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar4 = puVar3[4];" (assignment_expression "uVar4 = puVar3[4]" identifier = (subscript_expression "puVar3[4]" identifier [ number_literal ])) ;) (expression_statement "*(undefined2 *)(param_3 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_3 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_3 + 0xf)" * (cast_expression "(undefined2 *)(param_3 + 0xf)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xf)" ( (binary_expression "param_3 + 0xf" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*param_3 = uVar4;" (assignment_expression "*param_3 = uVar4" (pointer_expression "*param_3" * identifier) = identifier) ;) })) }))) (return_statement "return 1;" return number_literal ;) })))
(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 (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) }))) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_00025840(uint param_1,undefined4 *param_2,undefined4 *param_3)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *__ptr;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if ((param_1 & 0x102) == 0) {\n    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }\n  else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00025840(uint param_1,undefined4 *param_2,undefined4 *param_3)" (identifier "FUN_00025840") (parameter_list "(uint param_1,undefined4 *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 *__ptr;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  \n  if ((param_1 & 0x102) == 0) {\n    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }\n  else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }\n  return 1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *__ptr;" (type_identifier "undefined4") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (if_statement "if ((param_1 & 0x102) == 0) {\n    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }\n  else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\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    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);\n    if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }\n  }" ({ "{") (expression_statement "uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);" (assignment_expression "uVar4 = FUN_000294a0(*param_2,param_3 + 0x11)" (identifier "uVar4") (= "=") (call_expression "FUN_000294a0(*param_2,param_3 + 0x11)" (identifier "FUN_000294a0") (argument_list "(*param_2,param_3 + 0x11)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (binary_expression "param_3 + 0x11" (identifier "param_3") (+ "+") (number_literal "0x11")) () ")")))) (; ";")) (if_statement "if ((char)uVar4 != '\0') {\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }" (if "if") (parenthesized_expression "((char)uVar4 != '\0')" (( "(") (binary_expression "(char)uVar4 != '\0'" (cast_expression "(char)uVar4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar4")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *param_3 = param_3;\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      return uVar4;\n    }" ({ "{") (expression_statement "*param_3 = param_3;" (assignment_expression "*param_3 = param_3" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined2 *)(param_3 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_3 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_3 + 0xf)" (* "*") (cast_expression "(undefined2 *)(param_3 + 0xf)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xf)" (( "(") (binary_expression "param_3 + 0xf" (identifier "param_3") (+ "+") (number_literal "0xf")) () ")")))) (= "=") (number_literal "2")) (; ";")) (return_statement "return uVar4;" (return "return") (identifier "uVar4") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }" (else "else") (compound_statement "{\n    __ptr = (undefined4 *)malloc(0x14);\n    if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }\n    uVar4 = param_3[0x11];\n    uVar1 = param_3[0x12];\n    __ptr[4] = param_3;\n    uVar2 = *param_2;\n    *__ptr = uVar4;\n    __ptr[1] = uVar1;\n    uVar4 = param_3[0x28];\n    __ptr[2] = param_3[0x27];\n    __ptr[3] = uVar4;\n    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);\n    if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }\n  }" ({ "{") (expression_statement "__ptr = (undefined4 *)malloc(0x14);" (assignment_expression "__ptr = (undefined4 *)malloc(0x14)" (identifier "__ptr") (= "=") (cast_expression "(undefined4 *)malloc(0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "malloc(0x14)" (identifier "malloc") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")"))))) (; ";")) (if_statement "if (__ptr == (undefined4 *)0x0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(__ptr == (undefined4 *)0x0)" (( "(") (binary_expression "__ptr == (undefined4 *)0x0" (identifier "__ptr") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar4 = param_3[0x11];" (assignment_expression "uVar4 = param_3[0x11]" (identifier "uVar4") (= "=") (subscript_expression "param_3[0x11]" (identifier "param_3") ([ "[") (number_literal "0x11") (] "]"))) (; ";")) (expression_statement "uVar1 = param_3[0x12];" (assignment_expression "uVar1 = param_3[0x12]" (identifier "uVar1") (= "=") (subscript_expression "param_3[0x12]" (identifier "param_3") ([ "[") (number_literal "0x12") (] "]"))) (; ";")) (expression_statement "__ptr[4] = param_3;" (assignment_expression "__ptr[4] = param_3" (subscript_expression "__ptr[4]" (identifier "__ptr") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "uVar2 = *param_2;" (assignment_expression "uVar2 = *param_2" (identifier "uVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*__ptr = uVar4;" (assignment_expression "*__ptr = uVar4" (pointer_expression "*__ptr" (* "*") (identifier "__ptr")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "__ptr[1] = uVar1;" (assignment_expression "__ptr[1] = uVar1" (subscript_expression "__ptr[1]" (identifier "__ptr") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "uVar4 = param_3[0x28];" (assignment_expression "uVar4 = param_3[0x28]" (identifier "uVar4") (= "=") (subscript_expression "param_3[0x28]" (identifier "param_3") ([ "[") (number_literal "0x28") (] "]"))) (; ";")) (expression_statement "__ptr[2] = param_3[0x27];" (assignment_expression "__ptr[2] = param_3[0x27]" (subscript_expression "__ptr[2]" (identifier "__ptr") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_3[0x27]" (identifier "param_3") ([ "[") (number_literal "0x27") (] "]"))) (; ";")) (expression_statement "__ptr[3] = uVar4;" (assignment_expression "__ptr[3] = uVar4" (subscript_expression "__ptr[3]" (identifier "__ptr") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);" (assignment_expression "puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_0001e360(uVar2,__ptr)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001e360(uVar2,__ptr)" (identifier "FUN_0001e360") (argument_list "(uVar2,__ptr)" (( "(") (identifier "uVar2") (, ",") (identifier "__ptr") () ")"))))) (; ";")) (if_statement "if (__ptr != puVar3) {\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }" (if "if") (parenthesized_expression "(__ptr != puVar3)" (( "(") (binary_expression "__ptr != puVar3" (identifier "__ptr") (!= "!=") (identifier "puVar3")) () ")")) (compound_statement "{\n      free(__ptr);\n      if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }\n      uVar4 = puVar3[4];\n      *(undefined2 *)(param_3 + 0xf) = 2;\n      *param_3 = uVar4;\n    }" ({ "{") (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(puVar3 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar3 == (undefined4 *)0x0" (identifier "puVar3") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar4 = puVar3[4];" (assignment_expression "uVar4 = puVar3[4]" (identifier "uVar4") (= "=") (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "*(undefined2 *)(param_3 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_3 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_3 + 0xf)" (* "*") (cast_expression "(undefined2 *)(param_3 + 0xf)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xf)" (( "(") (binary_expression "param_3 + 0xf" (identifier "param_3") (+ "+") (number_literal "0xf")) () ")")))) (= "=") (number_literal "2")) (; ";")) (expression_statement "*param_3 = uVar4;" (assignment_expression "*param_3 = uVar4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (} "}")))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

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

{
  int iVar1;
  int iVar2;
  type_4 *p_Var3;
  type_1 _Var4;
  int *var_3;
  int *var_5;
  
  if (((type_5)fts & 0x102) == 0) {
    _Var4 = var_1((type_6 *)ent->fts_cycle,
                        (type_7 *)((fts_1->fts_fd_ring).ir_data + 3));
    if (_Var4) {
      fts_1->fts_cur = (type_4 *)fts_1;
      *(type_8 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;
      return _Var4;
    }
  }
  else {
    var_3 = (int *)var_2(0x14);
    if (var_3 == (int *)0x0) {
      return false;
    }
    iVar1 = (fts_1->fts_fd_ring).ir_data[3];
    iVar2 = (fts_1->fts_fd_ring).ir_default_val;
    var_3[4] = (int)fts_1;
    p_Var3 = ent->fts_cycle;
    *var_3 = iVar1;
    var_3[1] = iVar2;
    iVar1 = fts_1[1].fts_fd_ring.ir_default_val;
    var_3[2] = fts_1[1].fts_fd_ring.ir_data[3];
    var_3[3] = iVar1;
    var_5 = (int *)var_4((type_9 *)p_Var3,var_3);
    if (var_3 != var_5) {
      var_6(var_3);
      if (var_5 == (int *)0x0) {
        return false;
      }
      p_Var3 = (type_4 *)var_5[4];
      *(type_8 *)((fts_1->fts_fd_ring).ir_data + 1) = 2;
      fts_1->fts_cur = p_Var3;
    }
  }
  return true;
}


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

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

undefined4 __regparm3 MASKED(uint param_1,undefined4 *param_2,undefined4 *param_3)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 *__ptr;
  undefined4 *puVar3;
  undefined4 uVar4;
  
  if ((param_1 & 0x102) == 0) {
    uVar4 = FUN_000294a0(*param_2,param_3 + 0x11);
    if ((char)uVar4 != '\0') {
      *param_3 = param_3;
      *(undefined2 *)(param_3 + 0xf) = 2;
      return uVar4;
    }
  }
  else {
    __ptr = (undefined4 *)malloc(0x14);
    if (__ptr == (undefined4 *)0x0) {
      return 0;
    }
    uVar4 = param_3[0x11];
    uVar1 = param_3[0x12];
    __ptr[4] = param_3;
    uVar2 = *param_2;
    *__ptr = uVar4;
    __ptr[1] = uVar1;
    uVar4 = param_3[0x28];
    __ptr[2] = param_3[0x27];
    __ptr[3] = uVar4;
    puVar3 = (undefined4 *)FUN_0001e360(uVar2,__ptr);
    if (__ptr != puVar3) {
      free(__ptr);
      if (puVar3 == (undefined4 *)0x0) {
        return 0;
      }
      uVar4 = puVar3[4];
      *(undefined2 *)(param_3 + 0xf) = 2;
      *param_3 = uVar4;
    }
  }
  return 1;
}

