
_Bool enter_dir(FTS *fts,FTSENT *ent)

{
  undefined3 extraout_var;
  undefined4 *entry;
  undefined4 uVar1;
  undefined4 *puVar2;
  int iVar3;
  _Bool _Var4;
  
  if ((fts->fts_options & 0x102U) == 0) {
    _Var4 = cycle_check((fts->fts_cycle).state,ent->fts_statp);
    iVar3 = CONCAT31(extraout_var,_Var4);
    if (iVar3 == 0) {
      iVar3 = 1;
    }
    else {
      ent->fts_cycle = ent;
      ent->fts_info = 2;
    }
  }
  else {
    entry = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);
    if (entry == (undefined4 *)0x0) {
      iVar3 = 0;
    }
    else {
      entry[1] = ent->fts_statp[0].st_dev;
      *entry = 0;
      uVar1 = *(undefined4 *)&ent->fts_statp[0].st_ino;
      entry[3] = (int)ent->fts_statp[0].st_ino;
      entry[2] = uVar1;
      entry[4] = ent;
      puVar2 = (undefined4 *)hash_insert((fts->fts_cycle).ht,entry);
      if (entry == puVar2) {
        iVar3 = 1;
      }
      else {
        (*(code *)PTR_free_000323ec)(entry);
        if (puVar2 == (undefined4 *)0x0) {
          iVar3 = 0;
        }
        else {
          ent->fts_cycle = (_ftsent *)puVar2[4];
          ent->fts_info = 2;
          iVar3 = 1;
        }
      }
    }
  }
  return SUB41(iVar3,0);
}



int FUN_0001ad20(int param_1,undefined4 *param_2)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  int iVar4;
  
  if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {
    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);
    if (iVar4 == 0) {
      iVar4 = 1;
    }
    else {
      *param_2 = param_2;
      *(undefined2 *)(param_2 + 0xf) = 2;
    }
  }
  else {
    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);
    if (puVar1 == (undefined4 *)0x0) {
      iVar4 = 0;
    }
    else {
      puVar1[1] = param_2[0x12];
      *puVar1 = 0;
      uVar2 = param_2[0x16];
      puVar1[3] = param_2[0x17];
      puVar1[2] = uVar2;
      puVar1[4] = param_2;
      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);
      if (puVar1 == puVar3) {
        iVar4 = 1;
      }
      else {
        (*(code *)PTR_free_000323ec)(puVar1);
        if (puVar3 == (undefined4 *)0x0) {
          iVar4 = 0;
        }
        else {
          *param_2 = puVar3[4];
          *(undefined2 *)(param_2 + 0xf) = 2;
          iVar4 = 1;
        }
      }
    }
  }
  return iVar4;
}


lui gp,0x2
addiu gp,gp,-0xc50
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s2,a0,zero
lw v0,0x30(a0)
andi v0,v0,0x102
beq v0,zero,0x0001ade8
_or s0,a1,zero
li a0,0x18
lw t9,-0x7d4c(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq v0,zero,0x0001ae28
_or s1,v0,zero
lw v0,0x48(s0)
sw v0,0x4(s1)
sw zero,0x0(s1)
lw v1,0x5c(s0)
lw v0,0x58(s0)
sw v1,0xc(s1)
sw v0,0x8(s1)
sw s0,0x10(s1)
or a1,s1,zero
lw a0,0x38(s2)
lw t9,-0x7f1c(gp)
bal 0x00015e70
_nop
lw gp,0x10(sp)
beq s1,v0,0x0001ae30
_or s2,v0,zero
or a0,s1,zero
lw t9,-0x7ce4(gp)
jalr t9
_nop
lw gp,0x10(sp)
beq s2,zero,0x0001ae38
_nop
lw v0,0x10(s2)
sw v0,0x0(s0)
li v0,0x2
sh v0,0x3c(s0)
b 0x0001ae10
_li v0,0x1
addiu a1,a1,0x48
lw a0,0x38(a0)
lw t9,-0x7e7c(gp)
bal 0x0001f240
_nop
lw gp,0x10(sp)
beq v0,zero,0x0001ae40
_li v1,0x2
sw s0,0x0(s0)
sh v1,0x3c(s0)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
b 0x0001ae10
_or v0,zero,zero
b 0x0001ae10
_li v0,0x1
b 0x0001ae10
_or v0,zero,zero
b 0x0001ae10
_li v0,0x1
(translation_unit "int FUN_0001ad20(int param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_0001ad20(int param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_0001ad20(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }\n  return iVar4;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x30) & 0x102) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x30) & 0x102) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x30) & 0x102)" ( (binary_expression "*(uint *)(param_1 + 0x30) & 0x102" (pointer_expression "*(uint *)(param_1 + 0x30)" * (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }" { (expression_statement "iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);" (assignment_expression "iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12)" identifier = (call_expression "cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x38)" * (cast_expression "(undefined4 *)(param_1 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) , (binary_expression "param_2 + 0x12" identifier + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = 1;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }" else (compound_statement "{\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }" { (expression_statement "*param_2 = param_2;" (assignment_expression "*param_2 = param_2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*(undefined2 *)(param_2 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_2 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_2 + 0xf)" * (cast_expression "(undefined2 *)(param_2 + 0xf)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xf)" ( (binary_expression "param_2 + 0xf" identifier + number_literal) )))) = number_literal) ;) }))) }) (else_clause "else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }" else (compound_statement "{\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }" { (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_malloc_00032384)(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00032384)(0x18)" (parenthesized_expression "(*(code *)PTR_malloc_00032384)" ( (pointer_expression "*(code *)PTR_malloc_00032384" * (cast_expression "(code *)PTR_malloc_00032384" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x18)" ( number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar4 = 0;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }" else (compound_statement "{\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }" { (expression_statement "puVar1[1] = param_2[0x12];" (assignment_expression "puVar1[1] = param_2[0x12]" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (subscript_expression "param_2[0x12]" identifier [ number_literal ])) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "uVar2 = param_2[0x16];" (assignment_expression "uVar2 = param_2[0x16]" identifier = (subscript_expression "param_2[0x16]" identifier [ number_literal ])) ;) (expression_statement "puVar1[3] = param_2[0x17];" (assignment_expression "puVar1[3] = param_2[0x17]" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (subscript_expression "param_2[0x17]" identifier [ number_literal ])) ;) (expression_statement "puVar1[2] = uVar2;" (assignment_expression "puVar1[2] = uVar2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[4] = param_2;" (assignment_expression "puVar1[4] = param_2" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);" (assignment_expression "puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1)" identifier = (cast_expression "(undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x38),puVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x38)" * (cast_expression "(undefined4 *)(param_1 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) , identifier ))))) ;) (if_statement "if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }" if (parenthesized_expression "(puVar1 == puVar3)" ( (binary_expression "puVar1 == puVar3" identifier == identifier) )) (compound_statement "{\n        iVar4 = 1;\n      }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }" else (compound_statement "{\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }" { (expression_statement "(*(code *)PTR_free_000323ec)(puVar1);" (call_expression "(*(code *)PTR_free_000323ec)(puVar1)" (parenthesized_expression "(*(code *)PTR_free_000323ec)" ( (pointer_expression "*(code *)PTR_free_000323ec" * (cast_expression "(code *)PTR_free_000323ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1)" ( identifier ))) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\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          iVar4 = 0;\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }" else (compound_statement "{\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }" { (expression_statement "*param_2 = puVar3[4];" (assignment_expression "*param_2 = puVar3[4]" (pointer_expression "*param_2" * identifier) = (subscript_expression "puVar3[4]" identifier [ number_literal ])) ;) (expression_statement "*(undefined2 *)(param_2 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_2 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_2 + 0xf)" * (cast_expression "(undefined2 *)(param_2 + 0xf)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xf)" ( (binary_expression "param_2 + 0xf" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }))) }))) }))) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit "_Bool enter_dir(FTS *fts,FTSENT *ent)\n\n{\n  undefined3 extraout_var;\n  undefined4 *entry;\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  _Bool _Var4;\n  \n  if ((fts->fts_options & 0x102U) == 0) {\n    _Var4 = cycle_check((fts->fts_cycle).state,ent->fts_statp);\n    iVar3 = CONCAT31(extraout_var,_Var4);\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    else {\n      ent->fts_cycle = ent;\n      ent->fts_info = 2;\n    }\n  }\n  else {\n    entry = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (entry == (undefined4 *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      entry[1] = ent->fts_statp[0].st_dev;\n      *entry = 0;\n      uVar1 = *(undefined4 *)&ent->fts_statp[0].st_ino;\n      entry[3] = (int)ent->fts_statp[0].st_ino;\n      entry[2] = uVar1;\n      entry[4] = ent;\n      puVar2 = (undefined4 *)hash_insert((fts->fts_cycle).ht,entry);\n      if (entry == puVar2) {\n        iVar3 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(entry);\n        if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }\n      }\n    }\n  }\n  return SUB41(iVar3,0);\n}\n\n" (function_definition "_Bool enter_dir(FTS *fts,FTSENT *ent)\n\n{\n  undefined3 extraout_var;\n  undefined4 *entry;\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  _Bool _Var4;\n  \n  if ((fts->fts_options & 0x102U) == 0) {\n    _Var4 = cycle_check((fts->fts_cycle).state,ent->fts_statp);\n    iVar3 = CONCAT31(extraout_var,_Var4);\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    else {\n      ent->fts_cycle = ent;\n      ent->fts_info = 2;\n    }\n  }\n  else {\n    entry = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (entry == (undefined4 *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      entry[1] = ent->fts_statp[0].st_dev;\n      *entry = 0;\n      uVar1 = *(undefined4 *)&ent->fts_statp[0].st_ino;\n      entry[3] = (int)ent->fts_statp[0].st_ino;\n      entry[2] = uVar1;\n      entry[4] = ent;\n      puVar2 = (undefined4 *)hash_insert((fts->fts_cycle).ht,entry);\n      if (entry == puVar2) {\n        iVar3 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(entry);\n        if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }\n      }\n    }\n  }\n  return SUB41(iVar3,0);\n}" type_identifier (function_declarator "enter_dir(FTS *fts,FTSENT *ent)" identifier (parameter_list "(FTS *fts,FTSENT *ent)" ( (parameter_declaration "FTS *fts" type_identifier (pointer_declarator "*fts" * identifier)) , (parameter_declaration "FTSENT *ent" type_identifier (pointer_declarator "*ent" * identifier)) ))) (compound_statement "{\n  undefined3 extraout_var;\n  undefined4 *entry;\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  _Bool _Var4;\n  \n  if ((fts->fts_options & 0x102U) == 0) {\n    _Var4 = cycle_check((fts->fts_cycle).state,ent->fts_statp);\n    iVar3 = CONCAT31(extraout_var,_Var4);\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    else {\n      ent->fts_cycle = ent;\n      ent->fts_info = 2;\n    }\n  }\n  else {\n    entry = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (entry == (undefined4 *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      entry[1] = ent->fts_statp[0].st_dev;\n      *entry = 0;\n      uVar1 = *(undefined4 *)&ent->fts_statp[0].st_ino;\n      entry[3] = (int)ent->fts_statp[0].st_ino;\n      entry[2] = uVar1;\n      entry[4] = ent;\n      puVar2 = (undefined4 *)hash_insert((fts->fts_cycle).ht,entry);\n      if (entry == puVar2) {\n        iVar3 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(entry);\n        if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }\n      }\n    }\n  }\n  return SUB41(iVar3,0);\n}" { (declaration "undefined3 extraout_var;" type_identifier identifier ;) (declaration "undefined4 *entry;" type_identifier (pointer_declarator "*entry" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "_Bool _Var4;" type_identifier identifier ;) (if_statement "if ((fts->fts_options & 0x102U) == 0) {\n    _Var4 = cycle_check((fts->fts_cycle).state,ent->fts_statp);\n    iVar3 = CONCAT31(extraout_var,_Var4);\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    else {\n      ent->fts_cycle = ent;\n      ent->fts_info = 2;\n    }\n  }\n  else {\n    entry = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (entry == (undefined4 *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      entry[1] = ent->fts_statp[0].st_dev;\n      *entry = 0;\n      uVar1 = *(undefined4 *)&ent->fts_statp[0].st_ino;\n      entry[3] = (int)ent->fts_statp[0].st_ino;\n      entry[2] = uVar1;\n      entry[4] = ent;\n      puVar2 = (undefined4 *)hash_insert((fts->fts_cycle).ht,entry);\n      if (entry == puVar2) {\n        iVar3 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(entry);\n        if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }\n      }\n    }\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    _Var4 = cycle_check((fts->fts_cycle).state,ent->fts_statp);\n    iVar3 = CONCAT31(extraout_var,_Var4);\n    if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    else {\n      ent->fts_cycle = ent;\n      ent->fts_info = 2;\n    }\n  }" { (expression_statement "_Var4 = cycle_check((fts->fts_cycle).state,ent->fts_statp);" (assignment_expression "_Var4 = cycle_check((fts->fts_cycle).state,ent->fts_statp)" identifier = (call_expression "cycle_check((fts->fts_cycle).state,ent->fts_statp)" identifier (argument_list "((fts->fts_cycle).state,ent->fts_statp)" ( (field_expression "(fts->fts_cycle).state" (parenthesized_expression "(fts->fts_cycle)" ( (field_expression "fts->fts_cycle" identifier -> field_identifier) )) . field_identifier) , (field_expression "ent->fts_statp" identifier -> field_identifier) )))) ;) (expression_statement "iVar3 = CONCAT31(extraout_var,_Var4);" (assignment_expression "iVar3 = CONCAT31(extraout_var,_Var4)" identifier = (call_expression "CONCAT31(extraout_var,_Var4)" identifier (argument_list "(extraout_var,_Var4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      iVar3 = 1;\n    }\n    else {\n      ent->fts_cycle = ent;\n      ent->fts_info = 2;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar3 = 1;\n    }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      ent->fts_cycle = ent;\n      ent->fts_info = 2;\n    }" else (compound_statement "{\n      ent->fts_cycle = ent;\n      ent->fts_info = 2;\n    }" { (expression_statement "ent->fts_cycle = ent;" (assignment_expression "ent->fts_cycle = ent" (field_expression "ent->fts_cycle" identifier -> field_identifier) = identifier) ;) (expression_statement "ent->fts_info = 2;" (assignment_expression "ent->fts_info = 2" (field_expression "ent->fts_info" identifier -> field_identifier) = number_literal) ;) }))) }) (else_clause "else {\n    entry = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (entry == (undefined4 *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      entry[1] = ent->fts_statp[0].st_dev;\n      *entry = 0;\n      uVar1 = *(undefined4 *)&ent->fts_statp[0].st_ino;\n      entry[3] = (int)ent->fts_statp[0].st_ino;\n      entry[2] = uVar1;\n      entry[4] = ent;\n      puVar2 = (undefined4 *)hash_insert((fts->fts_cycle).ht,entry);\n      if (entry == puVar2) {\n        iVar3 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(entry);\n        if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }\n      }\n    }\n  }" else (compound_statement "{\n    entry = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (entry == (undefined4 *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      entry[1] = ent->fts_statp[0].st_dev;\n      *entry = 0;\n      uVar1 = *(undefined4 *)&ent->fts_statp[0].st_ino;\n      entry[3] = (int)ent->fts_statp[0].st_ino;\n      entry[2] = uVar1;\n      entry[4] = ent;\n      puVar2 = (undefined4 *)hash_insert((fts->fts_cycle).ht,entry);\n      if (entry == puVar2) {\n        iVar3 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(entry);\n        if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }\n      }\n    }\n  }" { (expression_statement "entry = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);" (assignment_expression "entry = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_malloc_00032384)(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00032384)(0x18)" (parenthesized_expression "(*(code *)PTR_malloc_00032384)" ( (pointer_expression "*(code *)PTR_malloc_00032384" * (cast_expression "(code *)PTR_malloc_00032384" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x18)" ( number_literal ))))) ;) (if_statement "if (entry == (undefined4 *)0x0) {\n      iVar3 = 0;\n    }\n    else {\n      entry[1] = ent->fts_statp[0].st_dev;\n      *entry = 0;\n      uVar1 = *(undefined4 *)&ent->fts_statp[0].st_ino;\n      entry[3] = (int)ent->fts_statp[0].st_ino;\n      entry[2] = uVar1;\n      entry[4] = ent;\n      puVar2 = (undefined4 *)hash_insert((fts->fts_cycle).ht,entry);\n      if (entry == puVar2) {\n        iVar3 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(entry);\n        if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }\n      }\n    }" if (parenthesized_expression "(entry == (undefined4 *)0x0)" ( (binary_expression "entry == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = 0;\n    }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      entry[1] = ent->fts_statp[0].st_dev;\n      *entry = 0;\n      uVar1 = *(undefined4 *)&ent->fts_statp[0].st_ino;\n      entry[3] = (int)ent->fts_statp[0].st_ino;\n      entry[2] = uVar1;\n      entry[4] = ent;\n      puVar2 = (undefined4 *)hash_insert((fts->fts_cycle).ht,entry);\n      if (entry == puVar2) {\n        iVar3 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(entry);\n        if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }\n      }\n    }" else (compound_statement "{\n      entry[1] = ent->fts_statp[0].st_dev;\n      *entry = 0;\n      uVar1 = *(undefined4 *)&ent->fts_statp[0].st_ino;\n      entry[3] = (int)ent->fts_statp[0].st_ino;\n      entry[2] = uVar1;\n      entry[4] = ent;\n      puVar2 = (undefined4 *)hash_insert((fts->fts_cycle).ht,entry);\n      if (entry == puVar2) {\n        iVar3 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(entry);\n        if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }\n      }\n    }" { (expression_statement "entry[1] = ent->fts_statp[0].st_dev;" (assignment_expression "entry[1] = ent->fts_statp[0].st_dev" (subscript_expression "entry[1]" identifier [ number_literal ]) = (field_expression "ent->fts_statp[0].st_dev" (subscript_expression "ent->fts_statp[0]" (field_expression "ent->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier)) ;) (expression_statement "*entry = 0;" (assignment_expression "*entry = 0" (pointer_expression "*entry" * identifier) = number_literal) ;) (expression_statement "uVar1 = *(undefined4 *)&ent->fts_statp[0].st_ino;" (assignment_expression "uVar1 = *(undefined4 *)&ent->fts_statp[0].st_ino" identifier = (pointer_expression "*(undefined4 *)&ent->fts_statp[0].st_ino" * (cast_expression "(undefined4 *)&ent->fts_statp[0].st_ino" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&ent->fts_statp[0].st_ino" & (field_expression "ent->fts_statp[0].st_ino" (subscript_expression "ent->fts_statp[0]" (field_expression "ent->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier))))) ;) (expression_statement "entry[3] = (int)ent->fts_statp[0].st_ino;" (assignment_expression "entry[3] = (int)ent->fts_statp[0].st_ino" (subscript_expression "entry[3]" identifier [ number_literal ]) = (cast_expression "(int)ent->fts_statp[0].st_ino" ( (type_descriptor "int" primitive_type) ) (field_expression "ent->fts_statp[0].st_ino" (subscript_expression "ent->fts_statp[0]" (field_expression "ent->fts_statp" identifier -> field_identifier) [ number_literal ]) . field_identifier))) ;) (expression_statement "entry[2] = uVar1;" (assignment_expression "entry[2] = uVar1" (subscript_expression "entry[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "entry[4] = ent;" (assignment_expression "entry[4] = ent" (subscript_expression "entry[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = (undefined4 *)hash_insert((fts->fts_cycle).ht,entry);" (assignment_expression "puVar2 = (undefined4 *)hash_insert((fts->fts_cycle).ht,entry)" identifier = (cast_expression "(undefined4 *)hash_insert((fts->fts_cycle).ht,entry)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_insert((fts->fts_cycle).ht,entry)" identifier (argument_list "((fts->fts_cycle).ht,entry)" ( (field_expression "(fts->fts_cycle).ht" (parenthesized_expression "(fts->fts_cycle)" ( (field_expression "fts->fts_cycle" identifier -> field_identifier) )) . field_identifier) , identifier ))))) ;) (if_statement "if (entry == puVar2) {\n        iVar3 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(entry);\n        if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }\n      }" if (parenthesized_expression "(entry == puVar2)" ( (binary_expression "entry == puVar2" identifier == identifier) )) (compound_statement "{\n        iVar3 = 1;\n      }" { (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        (*(code *)PTR_free_000323ec)(entry);\n        if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }\n      }" else (compound_statement "{\n        (*(code *)PTR_free_000323ec)(entry);\n        if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }\n      }" { (expression_statement "(*(code *)PTR_free_000323ec)(entry);" (call_expression "(*(code *)PTR_free_000323ec)(entry)" (parenthesized_expression "(*(code *)PTR_free_000323ec)" ( (pointer_expression "*(code *)PTR_free_000323ec" * (cast_expression "(code *)PTR_free_000323ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(entry)" ( identifier ))) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n          iVar3 = 0;\n        }\n        else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar3 = 0;\n        }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }" else (compound_statement "{\n          ent->fts_cycle = (_ftsent *)puVar2[4];\n          ent->fts_info = 2;\n          iVar3 = 1;\n        }" { (expression_statement "ent->fts_cycle = (_ftsent *)puVar2[4];" (assignment_expression "ent->fts_cycle = (_ftsent *)puVar2[4]" (field_expression "ent->fts_cycle" identifier -> field_identifier) = (cast_expression "(_ftsent *)puVar2[4]" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[4]" identifier [ number_literal ]))) ;) (expression_statement "ent->fts_info = 2;" (assignment_expression "ent->fts_info = 2" (field_expression "ent->fts_info" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar3 = 1;" (assignment_expression "iVar3 = 1" identifier = number_literal) ;) }))) }))) }))) }))) (return_statement "return SUB41(iVar3,0);" return (call_expression "SUB41(iVar3,0)" identifier (argument_list "(iVar3,0)" ( identifier , number_literal ))) ;) })))
(translation_unit "int FUN_0001ad20(int param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }\n  return iVar4;\n}\n\n" (function_definition "int FUN_0001ad20(int param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }\n  return iVar4;\n}" primitive_type (function_declarator "FUN_0001ad20(int param_1,undefined4 *param_2)" identifier (parameter_list "(int param_1,undefined4 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }\n  return iVar4;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }" if (parenthesized_expression "((*(uint *)(param_1 + 0x30) & 0x102) == 0)" ( (binary_expression "(*(uint *)(param_1 + 0x30) & 0x102) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x30) & 0x102)" ( (binary_expression "*(uint *)(param_1 + 0x30) & 0x102" (pointer_expression "*(uint *)(param_1 + 0x30)" * (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }" { (expression_statement "iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);" (assignment_expression "iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12)" identifier = (call_expression "cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x38)" * (cast_expression "(undefined4 *)(param_1 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) , (binary_expression "param_2 + 0x12" identifier + number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = 1;\n    }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }" else (compound_statement "{\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }" { (expression_statement "*param_2 = param_2;" (assignment_expression "*param_2 = param_2" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "*(undefined2 *)(param_2 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_2 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_2 + 0xf)" * (cast_expression "(undefined2 *)(param_2 + 0xf)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xf)" ( (binary_expression "param_2 + 0xf" identifier + number_literal) )))) = number_literal) ;) }))) }) (else_clause "else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }" else (compound_statement "{\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }" { (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_malloc_00032384)(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_00032384)(0x18)" (parenthesized_expression "(*(code *)PTR_malloc_00032384)" ( (pointer_expression "*(code *)PTR_malloc_00032384" * (cast_expression "(code *)PTR_malloc_00032384" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x18)" ( number_literal ))))) ;) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }" if (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" ( (binary_expression "puVar1 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar4 = 0;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }" else (compound_statement "{\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }" { (expression_statement "puVar1[1] = param_2[0x12];" (assignment_expression "puVar1[1] = param_2[0x12]" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (subscript_expression "param_2[0x12]" identifier [ number_literal ])) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "uVar2 = param_2[0x16];" (assignment_expression "uVar2 = param_2[0x16]" identifier = (subscript_expression "param_2[0x16]" identifier [ number_literal ])) ;) (expression_statement "puVar1[3] = param_2[0x17];" (assignment_expression "puVar1[3] = param_2[0x17]" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (subscript_expression "param_2[0x17]" identifier [ number_literal ])) ;) (expression_statement "puVar1[2] = uVar2;" (assignment_expression "puVar1[2] = uVar2" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar1[4] = param_2;" (assignment_expression "puVar1[4] = param_2" (subscript_expression "puVar1[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);" (assignment_expression "puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1)" identifier = (cast_expression "(undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x38),puVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x38)" * (cast_expression "(undefined4 *)(param_1 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) , identifier ))))) ;) (if_statement "if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }" if (parenthesized_expression "(puVar1 == puVar3)" ( (binary_expression "puVar1 == puVar3" identifier == identifier) )) (compound_statement "{\n        iVar4 = 1;\n      }" { (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }" else (compound_statement "{\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }" { (expression_statement "(*(code *)PTR_free_000323ec)(puVar1);" (call_expression "(*(code *)PTR_free_000323ec)(puVar1)" (parenthesized_expression "(*(code *)PTR_free_000323ec)" ( (pointer_expression "*(code *)PTR_free_000323ec" * (cast_expression "(code *)PTR_free_000323ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar1)" ( identifier ))) ;) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\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          iVar4 = 0;\n        }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }" else (compound_statement "{\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }" { (expression_statement "*param_2 = puVar3[4];" (assignment_expression "*param_2 = puVar3[4]" (pointer_expression "*param_2" * identifier) = (subscript_expression "puVar3[4]" identifier [ number_literal ])) ;) (expression_statement "*(undefined2 *)(param_2 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_2 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_2 + 0xf)" * (cast_expression "(undefined2 *)(param_2 + 0xf)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xf)" ( (binary_expression "param_2 + 0xf" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }))) }))) }))) }))) (return_statement "return iVar4;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (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) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_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 IDENT = LIT) ;) }))) }))) }))) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_0001ad20(int param_1,undefined4 *param_2)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }\n  return iVar4;\n}" (primitive_type "int") (function_declarator "FUN_0001ad20(int param_1,undefined4 *param_2)" (identifier "FUN_0001ad20") (parameter_list "(int param_1,undefined4 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  \n  if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }\n  return iVar4;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }\n  else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x30) & 0x102) == 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x30) & 0x102) == 0" (parenthesized_expression "(*(uint *)(param_1 + 0x30) & 0x102)" (( "(") (binary_expression "*(uint *)(param_1 + 0x30) & 0x102" (pointer_expression "*(uint *)(param_1 + 0x30)" (* "*") (cast_expression "(uint *)(param_1 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (& "&") (number_literal "0x102")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);\n    if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }\n  }" ({ "{") (expression_statement "iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);" (assignment_expression "iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12)" (identifier "iVar4") (= "=") (call_expression "cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12)" (identifier "cycle_check") (argument_list "(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x38)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (binary_expression "param_2 + 0x12" (identifier "param_2") (+ "+") (number_literal "0x12")) () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n      iVar4 = 1;\n    }\n    else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = 1;\n    }" ({ "{") (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }" (else "else") (compound_statement "{\n      *param_2 = param_2;\n      *(undefined2 *)(param_2 + 0xf) = 2;\n    }" ({ "{") (expression_statement "*param_2 = param_2;" (assignment_expression "*param_2 = param_2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined2 *)(param_2 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_2 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_2 + 0xf)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0xf)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xf)" (( "(") (binary_expression "param_2 + 0xf" (identifier "param_2") (+ "+") (number_literal "0xf")) () ")")))) (= "=") (number_literal "2")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }" (else "else") (compound_statement "{\n    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);\n    if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }\n  }" ({ "{") (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_malloc_00032384)(0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_malloc_00032384)(0x18)" (parenthesized_expression "(*(code *)PTR_malloc_00032384)" (( "(") (pointer_expression "*(code *)PTR_malloc_00032384" (* "*") (cast_expression "(code *)PTR_malloc_00032384" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_00032384"))) () ")")) (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")"))))) (; ";")) (if_statement "if (puVar1 == (undefined4 *)0x0) {\n      iVar4 = 0;\n    }\n    else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(puVar1 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar1 == (undefined4 *)0x0" (identifier "puVar1") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar4 = 0;\n    }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }" (else "else") (compound_statement "{\n      puVar1[1] = param_2[0x12];\n      *puVar1 = 0;\n      uVar2 = param_2[0x16];\n      puVar1[3] = param_2[0x17];\n      puVar1[2] = uVar2;\n      puVar1[4] = param_2;\n      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);\n      if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }\n    }" ({ "{") (expression_statement "puVar1[1] = param_2[0x12];" (assignment_expression "puVar1[1] = param_2[0x12]" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (subscript_expression "param_2[0x12]" (identifier "param_2") ([ "[") (number_literal "0x12") (] "]"))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = param_2[0x16];" (assignment_expression "uVar2 = param_2[0x16]" (identifier "uVar2") (= "=") (subscript_expression "param_2[0x16]" (identifier "param_2") ([ "[") (number_literal "0x16") (] "]"))) (; ";")) (expression_statement "puVar1[3] = param_2[0x17];" (assignment_expression "puVar1[3] = param_2[0x17]" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (subscript_expression "param_2[0x17]" (identifier "param_2") ([ "[") (number_literal "0x17") (] "]"))) (; ";")) (expression_statement "puVar1[2] = uVar2;" (assignment_expression "puVar1[2] = uVar2" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "puVar1[4] = param_2;" (assignment_expression "puVar1[4] = param_2" (subscript_expression "puVar1[4]" (identifier "puVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);" (assignment_expression "puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1)" (identifier "hash_insert") (argument_list "(*(undefined4 *)(param_1 + 0x38),puVar1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x38)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (, ",") (identifier "puVar1") () ")"))))) (; ";")) (if_statement "if (puVar1 == puVar3) {\n        iVar4 = 1;\n      }\n      else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }" (if "if") (parenthesized_expression "(puVar1 == puVar3)" (( "(") (binary_expression "puVar1 == puVar3" (identifier "puVar1") (== "==") (identifier "puVar3")) () ")")) (compound_statement "{\n        iVar4 = 1;\n      }" ({ "{") (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }" (else "else") (compound_statement "{\n        (*(code *)PTR_free_000323ec)(puVar1);\n        if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }\n      }" ({ "{") (expression_statement "(*(code *)PTR_free_000323ec)(puVar1);" (call_expression "(*(code *)PTR_free_000323ec)(puVar1)" (parenthesized_expression "(*(code *)PTR_free_000323ec)" (( "(") (pointer_expression "*(code *)PTR_free_000323ec" (* "*") (cast_expression "(code *)PTR_free_000323ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_000323ec"))) () ")")) (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (if_statement "if (puVar3 == (undefined4 *)0x0) {\n          iVar4 = 0;\n        }\n        else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\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          iVar4 = 0;\n        }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }" (else "else") (compound_statement "{\n          *param_2 = puVar3[4];\n          *(undefined2 *)(param_2 + 0xf) = 2;\n          iVar4 = 1;\n        }" ({ "{") (expression_statement "*param_2 = puVar3[4];" (assignment_expression "*param_2 = puVar3[4]" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "*(undefined2 *)(param_2 + 0xf) = 2;" (assignment_expression "*(undefined2 *)(param_2 + 0xf) = 2" (pointer_expression "*(undefined2 *)(param_2 + 0xf)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0xf)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xf)" (( "(") (binary_expression "param_2 + 0xf" (identifier "param_2") (+ "+") (number_literal "0xf")) () ")")))) (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (} "}")))) (} "}")))) (} "}")))) (} "}")))) (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) 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 (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))))) (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (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))))))) 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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (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: (pointer_expression argument: (identifier)) right: (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: (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: (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 (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))))) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (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: (identifier) right: (number_literal))))))))))))))) (return_statement (identifier)))))

int MASKED(int param_1,undefined4 *param_2)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  undefined4 *puVar3;
  int iVar4;
  
  if ((*(uint *)(param_1 + 0x30) & 0x102) == 0) {
    iVar4 = cycle_check(*(undefined4 *)(param_1 + 0x38),param_2 + 0x12);
    if (iVar4 == 0) {
      iVar4 = 1;
    }
    else {
      *param_2 = param_2;
      *(undefined2 *)(param_2 + 0xf) = 2;
    }
  }
  else {
    puVar1 = (undefined4 *)(*(code *)PTR_malloc_00032384)(0x18);
    if (puVar1 == (undefined4 *)0x0) {
      iVar4 = 0;
    }
    else {
      puVar1[1] = param_2[0x12];
      *puVar1 = 0;
      uVar2 = param_2[0x16];
      puVar1[3] = param_2[0x17];
      puVar1[2] = uVar2;
      puVar1[4] = param_2;
      puVar3 = (undefined4 *)hash_insert(*(undefined4 *)(param_1 + 0x38),puVar1);
      if (puVar1 == puVar3) {
        iVar4 = 1;
      }
      else {
        (*(code *)PTR_free_000323ec)(puVar1);
        if (puVar3 == (undefined4 *)0x0) {
          iVar4 = 0;
        }
        else {
          *param_2 = puVar3[4];
          *(undefined2 *)(param_2 + 0xf) = 2;
          iVar4 = 1;
        }
      }
    }
  }
  return iVar4;
}

