
FTSENT * fts_alloc(FTS *sp,char *name,size_t namelen)

{
  FTSENT *pFVar1;
  char *pcVar2;
  
  pFVar1 = (FTSENT *)(*(code *)PTR_malloc_000465f0)(namelen + 0xf0 & 0xfffffff8);
  if (pFVar1 != (FTSENT *)0x0) {
    (*(code *)PTR_memcpy_000466a4)(pFVar1 + 1,name,namelen);
    pcVar2 = sp->fts_path;
    *(undefined1 *)((int)pFVar1[1].fts_statp[0].st_pad1 + (namelen - 0x4c)) = 0;
    pFVar1->fts_path = pcVar2;
    pFVar1->fts_namelen = namelen;
    pFVar1->fts_fts = sp;
    pFVar1->fts_errno = 0;
    pFVar1->fts_dirp = (DIR *)0x0;
    pFVar1->fts_flags = 0;
    pFVar1->fts_instr = 3;
    pFVar1->fts_number = 0;
    pFVar1->fts_pointer = (void *)0x0;
  }
  return pFVar1;
}



int FUN_00029b50(int param_1,undefined4 param_2,int param_3)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);
  if (iVar1 != 0) {
    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);
    uVar2 = *(undefined4 *)(param_1 + 0x18);
    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;
    *(undefined4 *)(iVar1 + 0x1c) = uVar2;
    *(int *)(iVar1 + 0x34) = param_3;
    *(int *)(iVar1 + 0x2c) = param_1;
    *(undefined4 *)(iVar1 + 0x20) = 0;
    *(undefined4 *)(iVar1 + 0xc) = 0;
    *(undefined2 *)(iVar1 + 0x3e) = 0;
    *(undefined2 *)(iVar1 + 0x40) = 3;
    *(undefined4 *)(iVar1 + 0x10) = 0;
    *(undefined4 *)(iVar1 + 0x14) = 0;
  }
  return iVar1;
}


lui gp,0x2
addiu gp,gp,0x45c0
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7b20(gp)
addiu v0,a2,0xf0
sw s2,0x24(sp)
or s2,a0,zero
li a0,-0x8
sw gp,0x10(sp)
sw s3,0x28(sp)
or s3,a1,zero
sw s1,0x20(sp)
and a0,v0,a0
sw s0,0x1c(sp)
sw ra,0x2c(sp)
jalr t9
_or s1,a2,zero
lw gp,0x10(sp)
beq v0,zero,0x00029bec
_or s0,v0,zero
lw t9,-0x7a6c(gp)
addiu a0,v0,0xe8
or a2,s1,zero
jalr t9
_or a1,s3,zero
addu v1,s0,s1
lw v0,0x18(s2)
sb zero,0xe8(v1)
sw v0,0x1c(s0)
li v0,0x3
sw s1,0x34(s0)
sw s2,0x2c(s0)
sw zero,0x20(s0)
sw zero,0xc(s0)
sh zero,0x3e(s0)
sh v0,0x40(s0)
sw zero,0x10(s0)
sw zero,0x14(s0)
lw ra,0x2c(sp)
or v0,s0,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int FUN_00029b50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);\n  if (iVar1 != 0) {\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00029b50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);\n  if (iVar1 != 0) {\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00029b50(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);\n  if (iVar1 != 0) {\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);" (assignment_expression "iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8)" identifier = (call_expression "(*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8)" (parenthesized_expression "(*(code *)PTR_malloc_000465f0)" ( (pointer_expression "*(code *)PTR_malloc_000465f0" * (cast_expression "(code *)PTR_malloc_000465f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3 + 0xf0U & 0xfffffff8)" ( (binary_expression "param_3 + 0xf0U & 0xfffffff8" (binary_expression "param_3 + 0xf0U" identifier + number_literal) & number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }" { (expression_statement "(*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);" (call_expression "(*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_000466a4)" ( (pointer_expression "*(code *)PTR_memcpy_000466a4" * (cast_expression "(code *)PTR_memcpy_000466a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + 0xe8,param_2,param_3)" ( (binary_expression "iVar1 + 0xe8" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x18);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + param_3 + 0xe8) = 0" (pointer_expression "*(undefined1 *)(iVar1 + param_3 + 0xe8)" * (cast_expression "(undefined1 *)(iVar1 + param_3 + 0xe8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_3 + 0xe8)" ( (binary_expression "iVar1 + param_3 + 0xe8" (binary_expression "iVar1 + param_3" identifier + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" * (cast_expression "(undefined4 *)(iVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0x34) = param_3;" (assignment_expression "*(int *)(iVar1 + 0x34) = param_3" (pointer_expression "*(int *)(iVar1 + 0x34)" * (cast_expression "(int *)(iVar1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0x2c) = param_1;" (assignment_expression "*(int *)(iVar1 + 0x2c) = param_1" (pointer_expression "*(int *)(iVar1 + 0x2c)" * (cast_expression "(int *)(iVar1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar1 + 0x3e) = 0;" (assignment_expression "*(undefined2 *)(iVar1 + 0x3e) = 0" (pointer_expression "*(undefined2 *)(iVar1 + 0x3e)" * (cast_expression "(undefined2 *)(iVar1 + 0x3e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3e)" ( (binary_expression "iVar1 + 0x3e" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar1 + 0x40) = 3;" (assignment_expression "*(undefined2 *)(iVar1 + 0x40) = 3" (pointer_expression "*(undefined2 *)(iVar1 + 0x40)" * (cast_expression "(undefined2 *)(iVar1 + 0x40)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "FTSENT * fts_alloc(FTS *sp,char *name,size_t namelen)\n\n{\n  FTSENT *pFVar1;\n  char *pcVar2;\n  \n  pFVar1 = (FTSENT *)(*(code *)PTR_malloc_000465f0)(namelen + 0xf0 & 0xfffffff8);\n  if (pFVar1 != (FTSENT *)0x0) {\n    (*(code *)PTR_memcpy_000466a4)(pFVar1 + 1,name,namelen);\n    pcVar2 = sp->fts_path;\n    *(undefined1 *)((int)pFVar1[1].fts_statp[0].st_pad1 + (namelen - 0x4c)) = 0;\n    pFVar1->fts_path = pcVar2;\n    pFVar1->fts_namelen = namelen;\n    pFVar1->fts_fts = sp;\n    pFVar1->fts_errno = 0;\n    pFVar1->fts_dirp = (DIR *)0x0;\n    pFVar1->fts_flags = 0;\n    pFVar1->fts_instr = 3;\n    pFVar1->fts_number = 0;\n    pFVar1->fts_pointer = (void *)0x0;\n  }\n  return pFVar1;\n}\n\n" (function_definition "FTSENT * fts_alloc(FTS *sp,char *name,size_t namelen)\n\n{\n  FTSENT *pFVar1;\n  char *pcVar2;\n  \n  pFVar1 = (FTSENT *)(*(code *)PTR_malloc_000465f0)(namelen + 0xf0 & 0xfffffff8);\n  if (pFVar1 != (FTSENT *)0x0) {\n    (*(code *)PTR_memcpy_000466a4)(pFVar1 + 1,name,namelen);\n    pcVar2 = sp->fts_path;\n    *(undefined1 *)((int)pFVar1[1].fts_statp[0].st_pad1 + (namelen - 0x4c)) = 0;\n    pFVar1->fts_path = pcVar2;\n    pFVar1->fts_namelen = namelen;\n    pFVar1->fts_fts = sp;\n    pFVar1->fts_errno = 0;\n    pFVar1->fts_dirp = (DIR *)0x0;\n    pFVar1->fts_flags = 0;\n    pFVar1->fts_instr = 3;\n    pFVar1->fts_number = 0;\n    pFVar1->fts_pointer = (void *)0x0;\n  }\n  return pFVar1;\n}" type_identifier (pointer_declarator "* fts_alloc(FTS *sp,char *name,size_t namelen)" * (function_declarator "fts_alloc(FTS *sp,char *name,size_t namelen)" identifier (parameter_list "(FTS *sp,char *name,size_t namelen)" ( (parameter_declaration "FTS *sp" type_identifier (pointer_declarator "*sp" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "size_t namelen" primitive_type identifier) )))) (compound_statement "{\n  FTSENT *pFVar1;\n  char *pcVar2;\n  \n  pFVar1 = (FTSENT *)(*(code *)PTR_malloc_000465f0)(namelen + 0xf0 & 0xfffffff8);\n  if (pFVar1 != (FTSENT *)0x0) {\n    (*(code *)PTR_memcpy_000466a4)(pFVar1 + 1,name,namelen);\n    pcVar2 = sp->fts_path;\n    *(undefined1 *)((int)pFVar1[1].fts_statp[0].st_pad1 + (namelen - 0x4c)) = 0;\n    pFVar1->fts_path = pcVar2;\n    pFVar1->fts_namelen = namelen;\n    pFVar1->fts_fts = sp;\n    pFVar1->fts_errno = 0;\n    pFVar1->fts_dirp = (DIR *)0x0;\n    pFVar1->fts_flags = 0;\n    pFVar1->fts_instr = 3;\n    pFVar1->fts_number = 0;\n    pFVar1->fts_pointer = (void *)0x0;\n  }\n  return pFVar1;\n}" { (declaration "FTSENT *pFVar1;" type_identifier (pointer_declarator "*pFVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (expression_statement "pFVar1 = (FTSENT *)(*(code *)PTR_malloc_000465f0)(namelen + 0xf0 & 0xfffffff8);" (assignment_expression "pFVar1 = (FTSENT *)(*(code *)PTR_malloc_000465f0)(namelen + 0xf0 & 0xfffffff8)" identifier = (cast_expression "(FTSENT *)(*(code *)PTR_malloc_000465f0)(namelen + 0xf0 & 0xfffffff8)" ( (type_descriptor "FTSENT *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_malloc_000465f0)(namelen + 0xf0 & 0xfffffff8)" (parenthesized_expression "(*(code *)PTR_malloc_000465f0)" ( (pointer_expression "*(code *)PTR_malloc_000465f0" * (cast_expression "(code *)PTR_malloc_000465f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(namelen + 0xf0 & 0xfffffff8)" ( (binary_expression "namelen + 0xf0 & 0xfffffff8" (binary_expression "namelen + 0xf0" identifier + number_literal) & number_literal) ))))) ;) (if_statement "if (pFVar1 != (FTSENT *)0x0) {\n    (*(code *)PTR_memcpy_000466a4)(pFVar1 + 1,name,namelen);\n    pcVar2 = sp->fts_path;\n    *(undefined1 *)((int)pFVar1[1].fts_statp[0].st_pad1 + (namelen - 0x4c)) = 0;\n    pFVar1->fts_path = pcVar2;\n    pFVar1->fts_namelen = namelen;\n    pFVar1->fts_fts = sp;\n    pFVar1->fts_errno = 0;\n    pFVar1->fts_dirp = (DIR *)0x0;\n    pFVar1->fts_flags = 0;\n    pFVar1->fts_instr = 3;\n    pFVar1->fts_number = 0;\n    pFVar1->fts_pointer = (void *)0x0;\n  }" if (parenthesized_expression "(pFVar1 != (FTSENT *)0x0)" ( (binary_expression "pFVar1 != (FTSENT *)0x0" identifier != (cast_expression "(FTSENT *)0x0" ( (type_descriptor "FTSENT *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (*(code *)PTR_memcpy_000466a4)(pFVar1 + 1,name,namelen);\n    pcVar2 = sp->fts_path;\n    *(undefined1 *)((int)pFVar1[1].fts_statp[0].st_pad1 + (namelen - 0x4c)) = 0;\n    pFVar1->fts_path = pcVar2;\n    pFVar1->fts_namelen = namelen;\n    pFVar1->fts_fts = sp;\n    pFVar1->fts_errno = 0;\n    pFVar1->fts_dirp = (DIR *)0x0;\n    pFVar1->fts_flags = 0;\n    pFVar1->fts_instr = 3;\n    pFVar1->fts_number = 0;\n    pFVar1->fts_pointer = (void *)0x0;\n  }" { (expression_statement "(*(code *)PTR_memcpy_000466a4)(pFVar1 + 1,name,namelen);" (call_expression "(*(code *)PTR_memcpy_000466a4)(pFVar1 + 1,name,namelen)" (parenthesized_expression "(*(code *)PTR_memcpy_000466a4)" ( (pointer_expression "*(code *)PTR_memcpy_000466a4" * (cast_expression "(code *)PTR_memcpy_000466a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pFVar1 + 1,name,namelen)" ( (binary_expression "pFVar1 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "pcVar2 = sp->fts_path;" (assignment_expression "pcVar2 = sp->fts_path" identifier = (field_expression "sp->fts_path" identifier -> field_identifier)) ;) (expression_statement "*(undefined1 *)((int)pFVar1[1].fts_statp[0].st_pad1 + (namelen - 0x4c)) = 0;" (assignment_expression "*(undefined1 *)((int)pFVar1[1].fts_statp[0].st_pad1 + (namelen - 0x4c)) = 0" (pointer_expression "*(undefined1 *)((int)pFVar1[1].fts_statp[0].st_pad1 + (namelen - 0x4c))" * (cast_expression "(undefined1 *)((int)pFVar1[1].fts_statp[0].st_pad1 + (namelen - 0x4c))" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pFVar1[1].fts_statp[0].st_pad1 + (namelen - 0x4c))" ( (binary_expression "(int)pFVar1[1].fts_statp[0].st_pad1 + (namelen - 0x4c)" (cast_expression "(int)pFVar1[1].fts_statp[0].st_pad1" ( (type_descriptor "int" primitive_type) ) (field_expression "pFVar1[1].fts_statp[0].st_pad1" (subscript_expression "pFVar1[1].fts_statp[0]" (field_expression "pFVar1[1].fts_statp" (subscript_expression "pFVar1[1]" identifier [ number_literal ]) . field_identifier) [ number_literal ]) . field_identifier)) + (parenthesized_expression "(namelen - 0x4c)" ( (binary_expression "namelen - 0x4c" identifier - number_literal) ))) )))) = number_literal) ;) (expression_statement "pFVar1->fts_path = pcVar2;" (assignment_expression "pFVar1->fts_path = pcVar2" (field_expression "pFVar1->fts_path" identifier -> field_identifier) = identifier) ;) (expression_statement "pFVar1->fts_namelen = namelen;" (assignment_expression "pFVar1->fts_namelen = namelen" (field_expression "pFVar1->fts_namelen" identifier -> field_identifier) = identifier) ;) (expression_statement "pFVar1->fts_fts = sp;" (assignment_expression "pFVar1->fts_fts = sp" (field_expression "pFVar1->fts_fts" identifier -> field_identifier) = identifier) ;) (expression_statement "pFVar1->fts_errno = 0;" (assignment_expression "pFVar1->fts_errno = 0" (field_expression "pFVar1->fts_errno" identifier -> field_identifier) = number_literal) ;) (expression_statement "pFVar1->fts_dirp = (DIR *)0x0;" (assignment_expression "pFVar1->fts_dirp = (DIR *)0x0" (field_expression "pFVar1->fts_dirp" identifier -> field_identifier) = (cast_expression "(DIR *)0x0" ( (type_descriptor "DIR *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pFVar1->fts_flags = 0;" (assignment_expression "pFVar1->fts_flags = 0" (field_expression "pFVar1->fts_flags" identifier -> field_identifier) = number_literal) ;) (expression_statement "pFVar1->fts_instr = 3;" (assignment_expression "pFVar1->fts_instr = 3" (field_expression "pFVar1->fts_instr" identifier -> field_identifier) = number_literal) ;) (expression_statement "pFVar1->fts_number = 0;" (assignment_expression "pFVar1->fts_number = 0" (field_expression "pFVar1->fts_number" identifier -> field_identifier) = number_literal) ;) (expression_statement "pFVar1->fts_pointer = (void *)0x0;" (assignment_expression "pFVar1->fts_pointer = (void *)0x0" (field_expression "pFVar1->fts_pointer" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return pFVar1;" return identifier ;) })))
(translation_unit "int FUN_00029b50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);\n  if (iVar1 != 0) {\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }\n  return iVar1;\n}\n\n" (function_definition "int FUN_00029b50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);\n  if (iVar1 != 0) {\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00029b50(int param_1,undefined4 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);\n  if (iVar1 != 0) {\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);" (assignment_expression "iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8)" identifier = (call_expression "(*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8)" (parenthesized_expression "(*(code *)PTR_malloc_000465f0)" ( (pointer_expression "*(code *)PTR_malloc_000465f0" * (cast_expression "(code *)PTR_malloc_000465f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3 + 0xf0U & 0xfffffff8)" ( (binary_expression "param_3 + 0xf0U & 0xfffffff8" (binary_expression "param_3 + 0xf0U" identifier + number_literal) & number_literal) )))) ;) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }" { (expression_statement "(*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);" (call_expression "(*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_000466a4)" ( (pointer_expression "*(code *)PTR_memcpy_000466a4" * (cast_expression "(code *)PTR_memcpy_000466a4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1 + 0xe8,param_2,param_3)" ( (binary_expression "iVar1 + 0xe8" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x18);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + param_3 + 0xe8) = 0" (pointer_expression "*(undefined1 *)(iVar1 + param_3 + 0xe8)" * (cast_expression "(undefined1 *)(iVar1 + param_3 + 0xe8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + param_3 + 0xe8)" ( (binary_expression "iVar1 + param_3 + 0xe8" (binary_expression "iVar1 + param_3" identifier + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" * (cast_expression "(undefined4 *)(iVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0x34) = param_3;" (assignment_expression "*(int *)(iVar1 + 0x34) = param_3" (pointer_expression "*(int *)(iVar1 + 0x34)" * (cast_expression "(int *)(iVar1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar1 + 0x2c) = param_1;" (assignment_expression "*(int *)(iVar1 + 0x2c) = param_1" (pointer_expression "*(int *)(iVar1 + 0x2c)" * (cast_expression "(int *)(iVar1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar1 + 0x3e) = 0;" (assignment_expression "*(undefined2 *)(iVar1 + 0x3e) = 0" (pointer_expression "*(undefined2 *)(iVar1 + 0x3e)" * (cast_expression "(undefined2 *)(iVar1 + 0x3e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x3e)" ( (binary_expression "iVar1 + 0x3e" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(iVar1 + 0x40) = 3;" (assignment_expression "*(undefined2 *)(iVar1 + 0x40) = 3" (pointer_expression "*(undefined2 *)(iVar1 + 0x40)" * (cast_expression "(undefined2 *)(iVar1 + 0x40)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT + LIT) & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00029b50(int param_1,undefined4 param_2,int param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);\n  if (iVar1 != 0) {\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00029b50(int param_1,undefined4 param_2,int param_3)" (identifier "FUN_00029b50") (parameter_list "(int param_1,undefined4 param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);\n  if (iVar1 != 0) {\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);" (assignment_expression "iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8)" (parenthesized_expression "(*(code *)PTR_malloc_000465f0)" (( "(") (pointer_expression "*(code *)PTR_malloc_000465f0" (* "*") (cast_expression "(code *)PTR_malloc_000465f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_malloc_000465f0"))) () ")")) (argument_list "(param_3 + 0xf0U & 0xfffffff8)" (( "(") (binary_expression "param_3 + 0xf0U & 0xfffffff8" (binary_expression "param_3 + 0xf0U" (identifier "param_3") (+ "+") (number_literal "0xf0U")) (& "&") (number_literal "0xfffffff8")) () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);\n    uVar2 = *(undefined4 *)(param_1 + 0x18);\n    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;\n    *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n    *(int *)(iVar1 + 0x34) = param_3;\n    *(int *)(iVar1 + 0x2c) = param_1;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    *(undefined4 *)(iVar1 + 0xc) = 0;\n    *(undefined2 *)(iVar1 + 0x3e) = 0;\n    *(undefined2 *)(iVar1 + 0x40) = 3;\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n  }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);" (call_expression "(*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3)" (parenthesized_expression "(*(code *)PTR_memcpy_000466a4)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000466a4" (* "*") (cast_expression "(code *)PTR_memcpy_000466a4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000466a4"))) () ")")) (argument_list "(iVar1 + 0xe8,param_2,param_3)" (( "(") (binary_expression "iVar1 + 0xe8" (identifier "iVar1") (+ "+") (number_literal "0xe8")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_1 + 0x18);" (assignment_expression "uVar2 = *(undefined4 *)(param_1 + 0x18)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;" (assignment_expression "*(undefined1 *)(iVar1 + param_3 + 0xe8) = 0" (pointer_expression "*(undefined1 *)(iVar1 + param_3 + 0xe8)" (* "*") (cast_expression "(undefined1 *)(iVar1 + param_3 + 0xe8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + param_3 + 0xe8)" (( "(") (binary_expression "iVar1 + param_3 + 0xe8" (binary_expression "iVar1 + param_3" (identifier "iVar1") (+ "+") (identifier "param_3")) (+ "+") (number_literal "0xe8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(int *)(iVar1 + 0x34) = param_3;" (assignment_expression "*(int *)(iVar1 + 0x34) = param_3" (pointer_expression "*(int *)(iVar1 + 0x34)" (* "*") (cast_expression "(int *)(iVar1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x34)" (( "(") (binary_expression "iVar1 + 0x34" (identifier "iVar1") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(int *)(iVar1 + 0x2c) = param_1;" (assignment_expression "*(int *)(iVar1 + 0x2c) = param_1" (pointer_expression "*(int *)(iVar1 + 0x2c)" (* "*") (cast_expression "(int *)(iVar1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2c)" (( "(") (binary_expression "iVar1 + 0x2c" (identifier "iVar1") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(iVar1 + 0x3e) = 0;" (assignment_expression "*(undefined2 *)(iVar1 + 0x3e) = 0" (pointer_expression "*(undefined2 *)(iVar1 + 0x3e)" (* "*") (cast_expression "(undefined2 *)(iVar1 + 0x3e)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x3e)" (( "(") (binary_expression "iVar1 + 0x3e" (identifier "iVar1") (+ "+") (number_literal "0x3e")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(iVar1 + 0x40) = 3;" (assignment_expression "*(undefined2 *)(iVar1 + 0x40) = 3" (pointer_expression "*(undefined2 *)(iVar1 + 0x40)" (* "*") (cast_expression "(undefined2 *)(iVar1 + 0x40)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x40)" (( "(") (binary_expression "iVar1 + 0x40" (identifier "iVar1") (+ "+") (number_literal "0x40")) () ")")))) (= "=") (number_literal "3")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

type_1 * function_1(type_2 *sp,char *name,size_t var_1)

{
  type_1 *var_2;
  char *pcVar2;
  
  var_2 = (type_1 *)(*(type_3 *)PTR_malloc_000465f0)(var_1 + 0xf0 & 0xfffffff8);
  if (var_2 != (type_1 *)0x0) {
    (*(type_3 *)PTR_memcpy_000466a4)(var_2 + 1,name,var_1);
    pcVar2 = sp->fts_path;
    *(type_4 *)((int)var_2[1].fts_statp[0].st_pad1 + (var_1 - 0x4c)) = 0;
    var_2->fts_path = pcVar2;
    var_2->fts_namelen = var_1;
    var_2->fts_fts = sp;
    var_2->fts_errno = 0;
    var_2->fts_dirp = (type_5 *)0x0;
    var_2->fts_flags = 0;
    var_2->fts_instr = 3;
    var_2->fts_number = 0;
    var_2->fts_pointer = (void *)0x0;
  }
  return var_2;
}


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

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

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = (*(code *)PTR_malloc_000465f0)(param_3 + 0xf0U & 0xfffffff8);
  if (iVar1 != 0) {
    (*(code *)PTR_memcpy_000466a4)(iVar1 + 0xe8,param_2,param_3);
    uVar2 = *(undefined4 *)(param_1 + 0x18);
    *(undefined1 *)(iVar1 + param_3 + 0xe8) = 0;
    *(undefined4 *)(iVar1 + 0x1c) = uVar2;
    *(int *)(iVar1 + 0x34) = param_3;
    *(int *)(iVar1 + 0x2c) = param_1;
    *(undefined4 *)(iVar1 + 0x20) = 0;
    *(undefined4 *)(iVar1 + 0xc) = 0;
    *(undefined2 *)(iVar1 + 0x3e) = 0;
    *(undefined2 *)(iVar1 + 0x40) = 3;
    *(undefined4 *)(iVar1 + 0x10) = 0;
    *(undefined4 *)(iVar1 + 0x14) = 0;
  }
  return iVar1;
}

