
_Bool setup_dir(FTS *fts)

{
  Hash_table *pHVar1;
  cycle_check_state *state;
  _Bool _Var2;
  
  if ((fts->fts_options & 0x102U) == 0) {
    state = (cycle_check_state *)malloc(0x20);
    (fts->fts_cycle).state = state;
    _Var2 = false;
    if (state != (cycle_check_state *)0x0) {
      cycle_check_init(state);
      _Var2 = true;
    }
  }
  else {
    pHVar1 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,
                             (Hash_data_freer)PTR_free_0010ff88);
    (fts->fts_cycle).ht = pHVar1;
    _Var2 = pHVar1 != (Hash_table *)0x0;
  }
  return _Var2;
}



bool FUN_00107f65(long param_1)

{
  long lVar1;
  void *pvVar2;
  bool bVar3;
  
  if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {
    pvVar2 = malloc(0x20);
    *(void **)(param_1 + 0x58) = pvVar2;
    bVar3 = false;
    if (pvVar2 != (void *)0x0) {
      FUN_00109ffb();
      bVar3 = true;
    }
  }
  else {
    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);
    *(long *)(param_1 + 0x58) = lVar1;
    bVar3 = lVar1 != 0;
  }
  return bVar3;
}


PUSH RBX
MOV RBX,RDI
TEST dword ptr [RDI + 0x48],0x102
JZ 0x00107fa2
MOV R8,qword ptr [0x0010ff88]
LEA RCX,[0x107b82]
LEA RDX,[0x107ba3]
MOV ESI,0x0
MOV EDI,0x1f
CALL 0x0010470d
MOV qword ptr [RBX + 0x58],RAX
TEST RAX,RAX
SETNZ AL
POP RBX
RET
MOV EDI,0x20
CALL 0x00102350
MOV RDI,RAX
MOV qword ptr [RBX + 0x58],RAX
MOV EAX,0x0
TEST RDI,RDI
JZ 0x00107fa0
CALL 0x00109ffb
MOV EAX,0x1
JMP 0x00107fa0
(translation_unit "bool FUN_00107f65(long param_1)\n\n{\n  long lVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }\n  else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }\n  return bVar3;\n}\n\n" (function_definition "bool FUN_00107f65(long param_1)\n\n{\n  long lVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }\n  else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }\n  return bVar3;\n}" primitive_type (function_declarator "FUN_00107f65(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }\n  else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }\n  return bVar3;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "bool bVar3;" primitive_type identifier ;) (if_statement "if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }\n  else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x48) & 0x102) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x48) & 0x102) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x48) & 0x102)" ( (binary_expression "*(uint *)(param_1 + 0x48) & 0x102" (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }" { (expression_statement "pvVar2 = malloc(0x20);" (assignment_expression "pvVar2 = malloc(0x20)" identifier = (call_expression "malloc(0x20)" identifier (argument_list "(0x20)" ( number_literal )))) ;) (expression_statement "*(void **)(param_1 + 0x58) = pvVar2;" (assignment_expression "*(void **)(param_1 + 0x58) = pvVar2" (pointer_expression "*(void **)(param_1 + 0x58)" * (cast_expression "(void **)(param_1 + 0x58)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = identifier) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_00109ffb();\n      bVar3 = true;\n    }" { (expression_statement "FUN_00109ffb();" (call_expression "FUN_00109ffb()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) })) }) (else_clause "else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }" else (compound_statement "{\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }" { (expression_statement "lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);" (assignment_expression "lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88)" identifier = (call_expression "FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88)" identifier (argument_list "(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88)" ( number_literal , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "*(long *)(param_1 + 0x58) = lVar1;" (assignment_expression "*(long *)(param_1 + 0x58) = lVar1" (pointer_expression "*(long *)(param_1 + 0x58)" * (cast_expression "(long *)(param_1 + 0x58)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = identifier) ;) (expression_statement "bVar3 = lVar1 != 0;" (assignment_expression "bVar3 = lVar1 != 0" identifier = (binary_expression "lVar1 != 0" identifier != number_literal)) ;) }))) (return_statement "return bVar3;" return identifier ;) })))
(translation_unit "_Bool setup_dir(FTS *fts)\n\n{\n  Hash_table *pHVar1;\n  cycle_check_state *state;\n  _Bool _Var2;\n  \n  if ((fts->fts_options & 0x102U) == 0) {\n    state = (cycle_check_state *)malloc(0x20);\n    (fts->fts_cycle).state = state;\n    _Var2 = false;\n    if (state != (cycle_check_state *)0x0) {\n      cycle_check_init(state);\n      _Var2 = true;\n    }\n  }\n  else {\n    pHVar1 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_0010ff88);\n    (fts->fts_cycle).ht = pHVar1;\n    _Var2 = pHVar1 != (Hash_table *)0x0;\n  }\n  return _Var2;\n}\n\n" (function_definition "_Bool setup_dir(FTS *fts)\n\n{\n  Hash_table *pHVar1;\n  cycle_check_state *state;\n  _Bool _Var2;\n  \n  if ((fts->fts_options & 0x102U) == 0) {\n    state = (cycle_check_state *)malloc(0x20);\n    (fts->fts_cycle).state = state;\n    _Var2 = false;\n    if (state != (cycle_check_state *)0x0) {\n      cycle_check_init(state);\n      _Var2 = true;\n    }\n  }\n  else {\n    pHVar1 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_0010ff88);\n    (fts->fts_cycle).ht = pHVar1;\n    _Var2 = pHVar1 != (Hash_table *)0x0;\n  }\n  return _Var2;\n}" type_identifier (function_declarator "setup_dir(FTS *fts)" identifier (parameter_list "(FTS *fts)" ( (parameter_declaration "FTS *fts" type_identifier (pointer_declarator "*fts" * identifier)) ))) (compound_statement "{\n  Hash_table *pHVar1;\n  cycle_check_state *state;\n  _Bool _Var2;\n  \n  if ((fts->fts_options & 0x102U) == 0) {\n    state = (cycle_check_state *)malloc(0x20);\n    (fts->fts_cycle).state = state;\n    _Var2 = false;\n    if (state != (cycle_check_state *)0x0) {\n      cycle_check_init(state);\n      _Var2 = true;\n    }\n  }\n  else {\n    pHVar1 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_0010ff88);\n    (fts->fts_cycle).ht = pHVar1;\n    _Var2 = pHVar1 != (Hash_table *)0x0;\n  }\n  return _Var2;\n}" { (declaration "Hash_table *pHVar1;" type_identifier (pointer_declarator "*pHVar1" * identifier) ;) (declaration "cycle_check_state *state;" type_identifier (pointer_declarator "*state" * identifier) ;) (declaration "_Bool _Var2;" type_identifier identifier ;) (if_statement "if ((fts->fts_options & 0x102U) == 0) {\n    state = (cycle_check_state *)malloc(0x20);\n    (fts->fts_cycle).state = state;\n    _Var2 = false;\n    if (state != (cycle_check_state *)0x0) {\n      cycle_check_init(state);\n      _Var2 = true;\n    }\n  }\n  else {\n    pHVar1 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_0010ff88);\n    (fts->fts_cycle).ht = pHVar1;\n    _Var2 = pHVar1 != (Hash_table *)0x0;\n  }" if (parenthesized_expression "((fts->fts_options & 0x102U) == 0)" ( (binary_expression "(fts->fts_options & 0x102U) == 0" (parenthesized_expression "(fts->fts_options & 0x102U)" ( (binary_expression "fts->fts_options & 0x102U" (field_expression "fts->fts_options" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    state = (cycle_check_state *)malloc(0x20);\n    (fts->fts_cycle).state = state;\n    _Var2 = false;\n    if (state != (cycle_check_state *)0x0) {\n      cycle_check_init(state);\n      _Var2 = true;\n    }\n  }" { (expression_statement "state = (cycle_check_state *)malloc(0x20);" (assignment_expression "state = (cycle_check_state *)malloc(0x20)" identifier = (cast_expression "(cycle_check_state *)malloc(0x20)" ( (type_descriptor "cycle_check_state *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "malloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "(fts->fts_cycle).state = state;" (assignment_expression "(fts->fts_cycle).state = state" (field_expression "(fts->fts_cycle).state" (parenthesized_expression "(fts->fts_cycle)" ( (field_expression "fts->fts_cycle" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "_Var2 = false;" (assignment_expression "_Var2 = false" identifier = false) ;) (if_statement "if (state != (cycle_check_state *)0x0) {\n      cycle_check_init(state);\n      _Var2 = true;\n    }" if (parenthesized_expression "(state != (cycle_check_state *)0x0)" ( (binary_expression "state != (cycle_check_state *)0x0" identifier != (cast_expression "(cycle_check_state *)0x0" ( (type_descriptor "cycle_check_state *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      cycle_check_init(state);\n      _Var2 = true;\n    }" { (expression_statement "cycle_check_init(state);" (call_expression "cycle_check_init(state)" identifier (argument_list "(state)" ( identifier ))) ;) (expression_statement "_Var2 = true;" (assignment_expression "_Var2 = true" identifier = true) ;) })) }) (else_clause "else {\n    pHVar1 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_0010ff88);\n    (fts->fts_cycle).ht = pHVar1;\n    _Var2 = pHVar1 != (Hash_table *)0x0;\n  }" else (compound_statement "{\n    pHVar1 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_0010ff88);\n    (fts->fts_cycle).ht = pHVar1;\n    _Var2 = pHVar1 != (Hash_table *)0x0;\n  }" { (expression_statement "pHVar1 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_0010ff88);" (assignment_expression "pHVar1 = hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_0010ff88)" identifier = (call_expression "hash_initialize(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_0010ff88)" identifier (argument_list "(0x1f,(Hash_tuning *)0x0,AD_hash,AD_compare,\n                             (Hash_data_freer)PTR_free_0010ff88)" ( number_literal , (cast_expression "(Hash_tuning *)0x0" ( (type_descriptor "Hash_tuning *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier , (cast_expression "(Hash_data_freer)PTR_free_0010ff88" ( (type_descriptor "Hash_data_freer" type_identifier) ) identifier) )))) ;) (expression_statement "(fts->fts_cycle).ht = pHVar1;" (assignment_expression "(fts->fts_cycle).ht = pHVar1" (field_expression "(fts->fts_cycle).ht" (parenthesized_expression "(fts->fts_cycle)" ( (field_expression "fts->fts_cycle" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "_Var2 = pHVar1 != (Hash_table *)0x0;" (assignment_expression "_Var2 = pHVar1 != (Hash_table *)0x0" identifier = (binary_expression "pHVar1 != (Hash_table *)0x0" identifier != (cast_expression "(Hash_table *)0x0" ( (type_descriptor "Hash_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) }))) (return_statement "return _Var2;" return identifier ;) })))
(translation_unit "bool FUN_00107f65(long param_1)\n\n{\n  long lVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }\n  else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }\n  return bVar3;\n}\n\n" (function_definition "bool FUN_00107f65(long param_1)\n\n{\n  long lVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }\n  else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }\n  return bVar3;\n}" primitive_type (function_declarator "FUN_00107f65(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  long lVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }\n  else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }\n  return bVar3;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "bool bVar3;" primitive_type identifier ;) (if_statement "if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }\n  else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x48) & 0x102) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x48) & 0x102) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x48) & 0x102)" ( (binary_expression "*(uint *)(param_1 + 0x48) & 0x102" (pointer_expression "*(uint *)(param_1 + 0x48)" * (cast_expression "(uint *)(param_1 + 0x48)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }" { (expression_statement "pvVar2 = malloc(0x20);" (assignment_expression "pvVar2 = malloc(0x20)" identifier = (call_expression "malloc(0x20)" identifier (argument_list "(0x20)" ( number_literal )))) ;) (expression_statement "*(void **)(param_1 + 0x58) = pvVar2;" (assignment_expression "*(void **)(param_1 + 0x58) = pvVar2" (pointer_expression "*(void **)(param_1 + 0x58)" * (cast_expression "(void **)(param_1 + 0x58)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = identifier) ;) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" identifier = false) ;) (if_statement "if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }" if (parenthesized_expression "(pvVar2 != (void *)0x0)" ( (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_00109ffb();\n      bVar3 = true;\n    }" { (expression_statement "FUN_00109ffb();" (call_expression "FUN_00109ffb()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" identifier = true) ;) })) }) (else_clause "else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }" else (compound_statement "{\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }" { (expression_statement "lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);" (assignment_expression "lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88)" identifier = (call_expression "FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88)" identifier (argument_list "(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88)" ( number_literal , number_literal , identifier , identifier , identifier )))) ;) (expression_statement "*(long *)(param_1 + 0x58) = lVar1;" (assignment_expression "*(long *)(param_1 + 0x58) = lVar1" (pointer_expression "*(long *)(param_1 + 0x58)" * (cast_expression "(long *)(param_1 + 0x58)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) = identifier) ;) (expression_statement "bVar3 = lVar1 != 0;" (assignment_expression "bVar3 = lVar1 != 0" identifier = (binary_expression "lVar1 != 0" identifier != number_literal)) ;) }))) (return_statement "return bVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) }))) (return_statement return IDENT ;) })))
(function_definition "bool FUN_00107f65(long param_1)\n\n{\n  long lVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }\n  else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }\n  return bVar3;\n}" (primitive_type "bool") (function_declarator "FUN_00107f65(long param_1)" (identifier "FUN_00107f65") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  long lVar1;\n  void *pvVar2;\n  bool bVar3;\n  \n  if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }\n  else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }\n  return bVar3;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "void *pvVar2;" (primitive_type "void") (pointer_declarator "*pvVar2" (* "*") (identifier "pvVar2")) (; ";")) (declaration "bool bVar3;" (primitive_type "bool") (identifier "bVar3") (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }\n  else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x48) & 0x102) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x48) & 0x102) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x48) & 0x102)" (( "(") (binary_expression "*(uint *)(param_1 + 0x48) & 0x102" (pointer_expression "*(uint *)(param_1 + 0x48)" (* "*") (cast_expression "(uint *)(param_1 + 0x48)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (& "&") (number_literal "0x102")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pvVar2 = malloc(0x20);\n    *(void **)(param_1 + 0x58) = pvVar2;\n    bVar3 = false;\n    if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }\n  }" ({ "{") (expression_statement "pvVar2 = malloc(0x20);" (assignment_expression "pvVar2 = malloc(0x20)" (identifier "pvVar2") (= "=") (call_expression "malloc(0x20)" (identifier "malloc") (argument_list "(0x20)" (( "(") (number_literal "0x20") () ")")))) (; ";")) (expression_statement "*(void **)(param_1 + 0x58) = pvVar2;" (assignment_expression "*(void **)(param_1 + 0x58) = pvVar2" (pointer_expression "*(void **)(param_1 + 0x58)" (* "*") (cast_expression "(void **)(param_1 + 0x58)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (identifier "pvVar2")) (; ";")) (expression_statement "bVar3 = false;" (assignment_expression "bVar3 = false" (identifier "bVar3") (= "=") (false "false")) (; ";")) (if_statement "if (pvVar2 != (void *)0x0) {\n      FUN_00109ffb();\n      bVar3 = true;\n    }" (if "if") (parenthesized_expression "(pvVar2 != (void *)0x0)" (( "(") (binary_expression "pvVar2 != (void *)0x0" (identifier "pvVar2") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      FUN_00109ffb();\n      bVar3 = true;\n    }" ({ "{") (expression_statement "FUN_00109ffb();" (call_expression "FUN_00109ffb()" (identifier "FUN_00109ffb") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "bVar3 = true;" (assignment_expression "bVar3 = true" (identifier "bVar3") (= "=") (true "true")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }" (else "else") (compound_statement "{\n    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);\n    *(long *)(param_1 + 0x58) = lVar1;\n    bVar3 = lVar1 != 0;\n  }" ({ "{") (expression_statement "lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);" (assignment_expression "lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88)" (identifier "lVar1") (= "=") (call_expression "FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88)" (identifier "FUN_0010470d") (argument_list "(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88)" (( "(") (number_literal "0x1f") (, ",") (number_literal "0") (, ",") (identifier "FUN_00107ba3") (, ",") (identifier "FUN_00107b82") (, ",") (identifier "PTR_free_0010ff88") () ")")))) (; ";")) (expression_statement "*(long *)(param_1 + 0x58) = lVar1;" (assignment_expression "*(long *)(param_1 + 0x58) = lVar1" (pointer_expression "*(long *)(param_1 + 0x58)" (* "*") (cast_expression "(long *)(param_1 + 0x58)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (identifier "lVar1")) (; ";")) (expression_statement "bVar3 = lVar1 != 0;" (assignment_expression "bVar3 = lVar1 != 0" (identifier "bVar3") (= "=") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0"))) (; ";")) (} "}")))) (return_statement "return bVar3;" (return "return") (identifier "bVar3") (; ";")) (} "}")))

type_1 function_1(type_2 *fts)

{
  type_3 *var_5;
  type_4 *var_2;
  type_1 _Var2;
  
  if ((fts->fts_options & 0x102U) == 0) {
    var_2 = (type_4 *)var_1(0x20);
    (fts->fts_cycle).var_2 = var_2;
    _Var2 = false;
    if (var_2 != (type_4 *)0x0) {
      var_3(var_2);
      _Var2 = true;
    }
  }
  else {
    var_5 = var_4(0x1f,(type_5 *)0x0,AD_hash,AD_compare,
                             (type_6)PTR_free_0010ff88);
    (fts->fts_cycle).ht = var_5;
    _Var2 = var_5 != (type_3 *)0x0;
  }
  return _Var2;
}


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

bool MASKED(long param_1)

{
  long lVar1;
  void *pvVar2;
  bool bVar3;
  
  if ((*(uint *)(param_1 + 0x48) & 0x102) == 0) {
    pvVar2 = malloc(0x20);
    *(void **)(param_1 + 0x58) = pvVar2;
    bVar3 = false;
    if (pvVar2 != (void *)0x0) {
      FUN_00109ffb();
      bVar3 = true;
    }
  }
  else {
    lVar1 = FUN_0010470d(0x1f,0,FUN_00107ba3,FUN_00107b82,PTR_free_0010ff88);
    *(long *)(param_1 + 0x58) = lVar1;
    bVar3 = lVar1 != 0;
  }
  return bVar3;
}

