
/* DWARF original prototype: _Bool fts_palloc(FTS * sp, size_t more, FTS * sp) */

_Bool fts_palloc(FTS *sp,size_t more,FTS *sp_1)

{
  undefined *puVar1;
  undefined4 *puVar2;
  _ftsent *p_Var3;
  uint uVar4;
  
  puVar1 = PTR_realloc_00032370;
  uVar4 = (int)sp_1[2].fts_fd_ring.ir_data + *(uint *)more + 4;
  p_Var3 = sp->fts_cur;
  if (*(uint *)more <= uVar4) {
    *(uint *)more = uVar4;
    p_Var3 = (_ftsent *)(*(code *)puVar1)(p_Var3,uVar4);
    if (p_Var3 == (_ftsent *)0x0) {
      (*(code *)PTR_free_000323d4)(sp->fts_cur);
      sp->fts_cur = (_ftsent *)0x0;
    }
    else {
      sp->fts_cur = p_Var3;
    }
    return p_Var3 != (_ftsent *)0x0;
  }
  (*(code *)PTR_free_000323d4)(p_Var3);
  puVar1 = PTR___errno_location_00032328;
  sp->fts_cur = (_ftsent *)0x0;
  puVar2 = (undefined4 *)(*(code *)puVar1)();
  *puVar2 = 0x4e;
  return false;
}



bool FUN_00017a58(int *param_1,uint *param_2,int param_3)

{
  undefined *puVar1;
  undefined4 *puVar2;
  int iVar3;
  uint uVar4;
  
  puVar1 = PTR_realloc_00032370;
  uVar4 = *param_2 + 0x100 + param_3;
  iVar3 = *param_1;
  if (*param_2 <= uVar4) {
    *param_2 = uVar4;
    iVar3 = (*(code *)puVar1)(iVar3,uVar4);
    if (iVar3 == 0) {
      (*(code *)PTR_free_000323d4)(*param_1);
      *param_1 = 0;
    }
    else {
      *param_1 = iVar3;
    }
    return iVar3 != 0;
  }
  (*(code *)PTR_free_000323d4)(iVar3);
  puVar1 = PTR___errno_location_00032328;
  *param_1 = 0;
  puVar2 = (undefined4 *)(*(code *)puVar1)();
  *puVar2 = 0x4e;
  return false;
}


lui gp,0x2
addiu gp,gp,0x2678
addu gp,gp,t9
lw v1,0x0(a1)
addiu sp,sp,-0x20
addiu v0,v1,0x100
sw gp,0x10(sp)
sw s0,0x18(sp)
or s0,a0,zero
addu a2,v0,a2
sw ra,0x1c(sp)
sltu v1,a2,v1
bne v1,zero,0x00017ac8
_lw a0,0x0(a0)
or a3,a1,zero
lw t9,-0x7d60(gp)
or a1,a2,zero
jalr t9
_sw a2,0x0(a3)
beq v0,zero,0x00017b04
_lw gp,0x10(sp)
li v1,0x1
sw v0,0x0(s0)
lw ra,0x1c(sp)
or v0,v1,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7cfc(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x7da8(gp)
jalr t9
_sw zero,0x0(s0)
or v1,zero,zero
lw ra,0x1c(sp)
li a0,0x4e
lw s0,0x18(sp)
sw a0,0x0(v0)
or v0,v1,zero
jr ra
_addiu sp,sp,0x20
lw t9,-0x7cfc(gp)
jalr t9
_lw a0,0x0(s0)
or v1,zero,zero
b 0x00017ab4
_sw zero,0x0(s0)
(translation_unit "bool FUN_00017a58(int *param_1,uint *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  \n  puVar1 = PTR_realloc_00032370;\n  uVar4 = *param_2 + 0x100 + param_3;\n  iVar3 = *param_1;\n  if (*param_2 <= uVar4) {\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }\n  (*(code *)PTR_free_000323d4)(iVar3);\n  puVar1 = PTR___errno_location_00032328;\n  *param_1 = 0;\n  puVar2 = (undefined4 *)(*(code *)puVar1)();\n  *puVar2 = 0x4e;\n  return false;\n}\n\n" (function_definition "bool FUN_00017a58(int *param_1,uint *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  \n  puVar1 = PTR_realloc_00032370;\n  uVar4 = *param_2 + 0x100 + param_3;\n  iVar3 = *param_1;\n  if (*param_2 <= uVar4) {\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }\n  (*(code *)PTR_free_000323d4)(iVar3);\n  puVar1 = PTR___errno_location_00032328;\n  *param_1 = 0;\n  puVar2 = (undefined4 *)(*(code *)puVar1)();\n  *puVar2 = 0x4e;\n  return false;\n}" primitive_type (function_declarator "FUN_00017a58(int *param_1,uint *param_2,int param_3)" identifier (parameter_list "(int *param_1,uint *param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  \n  puVar1 = PTR_realloc_00032370;\n  uVar4 = *param_2 + 0x100 + param_3;\n  iVar3 = *param_1;\n  if (*param_2 <= uVar4) {\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }\n  (*(code *)PTR_free_000323d4)(iVar3);\n  puVar1 = PTR___errno_location_00032328;\n  *param_1 = 0;\n  puVar2 = (undefined4 *)(*(code *)puVar1)();\n  *puVar2 = 0x4e;\n  return false;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_realloc_00032370;" (assignment_expression "puVar1 = PTR_realloc_00032370" identifier = identifier) ;) (expression_statement "uVar4 = *param_2 + 0x100 + param_3;" (assignment_expression "uVar4 = *param_2 + 0x100 + param_3" identifier = (binary_expression "*param_2 + 0x100 + param_3" (binary_expression "*param_2 + 0x100" (pointer_expression "*param_2" * identifier) + number_literal) + identifier)) ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*param_2 <= uVar4) {\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }" if (parenthesized_expression "(*param_2 <= uVar4)" ( (binary_expression "*param_2 <= uVar4" (pointer_expression "*param_2" * identifier) <= identifier) )) (compound_statement "{\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }" { (expression_statement "*param_2 = uVar4;" (assignment_expression "*param_2 = uVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar3 = (*(code *)puVar1)(iVar3,uVar4);" (assignment_expression "iVar3 = (*(code *)puVar1)(iVar3,uVar4)" identifier = (call_expression "(*(code *)puVar1)(iVar3,uVar4)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }" { (expression_statement "(*(code *)PTR_free_000323d4)(*param_1);" (call_expression "(*(code *)PTR_free_000323d4)(*param_1)" (parenthesized_expression "(*(code *)PTR_free_000323d4)" ( (pointer_expression "*(code *)PTR_free_000323d4" * (cast_expression "(code *)PTR_free_000323d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) }) (else_clause "else {\n      *param_1 = iVar3;\n    }" else (compound_statement "{\n      *param_1 = iVar3;\n    }" { (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) }))) (return_statement "return iVar3 != 0;" return (binary_expression "iVar3 != 0" identifier != number_literal) ;) })) (expression_statement "(*(code *)PTR_free_000323d4)(iVar3);" (call_expression "(*(code *)PTR_free_000323d4)(iVar3)" (parenthesized_expression "(*(code *)PTR_free_000323d4)" ( (pointer_expression "*(code *)PTR_free_000323d4" * (cast_expression "(code *)PTR_free_000323d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "puVar1 = PTR___errno_location_00032328;" (assignment_expression "puVar1 = PTR___errno_location_00032328" identifier = identifier) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)puVar1)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)puVar1)()" identifier = (cast_expression "(undefined4 *)(*(code *)puVar1)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar2 = 0x4e;" (assignment_expression "*puVar2 = 0x4e" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return false;" return false ;) })))
(translation_unit "/* DWARF original prototype: _Bool fts_palloc(FTS * sp, size_t more, FTS * sp) */\n\n_Bool fts_palloc(FTS *sp,size_t more,FTS *sp_1)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  _ftsent *p_Var3;\n  uint uVar4;\n  \n  puVar1 = PTR_realloc_00032370;\n  uVar4 = (int)sp_1[2].fts_fd_ring.ir_data + *(uint *)more + 4;\n  p_Var3 = sp->fts_cur;\n  if (*(uint *)more <= uVar4) {\n    *(uint *)more = uVar4;\n    p_Var3 = (_ftsent *)(*(code *)puVar1)(p_Var3,uVar4);\n    if (p_Var3 == (_ftsent *)0x0) {\n      (*(code *)PTR_free_000323d4)(sp->fts_cur);\n      sp->fts_cur = (_ftsent *)0x0;\n    }\n    else {\n      sp->fts_cur = p_Var3;\n    }\n    return p_Var3 != (_ftsent *)0x0;\n  }\n  (*(code *)PTR_free_000323d4)(p_Var3);\n  puVar1 = PTR___errno_location_00032328;\n  sp->fts_cur = (_ftsent *)0x0;\n  puVar2 = (undefined4 *)(*(code *)puVar1)();\n  *puVar2 = 0x4e;\n  return false;\n}\n\n" comment (function_definition "_Bool fts_palloc(FTS *sp,size_t more,FTS *sp_1)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  _ftsent *p_Var3;\n  uint uVar4;\n  \n  puVar1 = PTR_realloc_00032370;\n  uVar4 = (int)sp_1[2].fts_fd_ring.ir_data + *(uint *)more + 4;\n  p_Var3 = sp->fts_cur;\n  if (*(uint *)more <= uVar4) {\n    *(uint *)more = uVar4;\n    p_Var3 = (_ftsent *)(*(code *)puVar1)(p_Var3,uVar4);\n    if (p_Var3 == (_ftsent *)0x0) {\n      (*(code *)PTR_free_000323d4)(sp->fts_cur);\n      sp->fts_cur = (_ftsent *)0x0;\n    }\n    else {\n      sp->fts_cur = p_Var3;\n    }\n    return p_Var3 != (_ftsent *)0x0;\n  }\n  (*(code *)PTR_free_000323d4)(p_Var3);\n  puVar1 = PTR___errno_location_00032328;\n  sp->fts_cur = (_ftsent *)0x0;\n  puVar2 = (undefined4 *)(*(code *)puVar1)();\n  *puVar2 = 0x4e;\n  return false;\n}" type_identifier (function_declarator "fts_palloc(FTS *sp,size_t more,FTS *sp_1)" identifier (parameter_list "(FTS *sp,size_t more,FTS *sp_1)" ( (parameter_declaration "FTS *sp" type_identifier (pointer_declarator "*sp" * identifier)) , (parameter_declaration "size_t more" primitive_type identifier) , (parameter_declaration "FTS *sp_1" type_identifier (pointer_declarator "*sp_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  _ftsent *p_Var3;\n  uint uVar4;\n  \n  puVar1 = PTR_realloc_00032370;\n  uVar4 = (int)sp_1[2].fts_fd_ring.ir_data + *(uint *)more + 4;\n  p_Var3 = sp->fts_cur;\n  if (*(uint *)more <= uVar4) {\n    *(uint *)more = uVar4;\n    p_Var3 = (_ftsent *)(*(code *)puVar1)(p_Var3,uVar4);\n    if (p_Var3 == (_ftsent *)0x0) {\n      (*(code *)PTR_free_000323d4)(sp->fts_cur);\n      sp->fts_cur = (_ftsent *)0x0;\n    }\n    else {\n      sp->fts_cur = p_Var3;\n    }\n    return p_Var3 != (_ftsent *)0x0;\n  }\n  (*(code *)PTR_free_000323d4)(p_Var3);\n  puVar1 = PTR___errno_location_00032328;\n  sp->fts_cur = (_ftsent *)0x0;\n  puVar2 = (undefined4 *)(*(code *)puVar1)();\n  *puVar2 = 0x4e;\n  return false;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "_ftsent *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_realloc_00032370;" (assignment_expression "puVar1 = PTR_realloc_00032370" identifier = identifier) ;) (expression_statement "uVar4 = (int)sp_1[2].fts_fd_ring.ir_data + *(uint *)more + 4;" (assignment_expression "uVar4 = (int)sp_1[2].fts_fd_ring.ir_data + *(uint *)more + 4" identifier = (binary_expression "(int)sp_1[2].fts_fd_ring.ir_data + *(uint *)more + 4" (binary_expression "(int)sp_1[2].fts_fd_ring.ir_data + *(uint *)more" (cast_expression "(int)sp_1[2].fts_fd_ring.ir_data" ( (type_descriptor "int" primitive_type) ) (field_expression "sp_1[2].fts_fd_ring.ir_data" (field_expression "sp_1[2].fts_fd_ring" (subscript_expression "sp_1[2]" identifier [ number_literal ]) . field_identifier) . field_identifier)) + (pointer_expression "*(uint *)more" * (cast_expression "(uint *)more" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) + number_literal)) ;) (expression_statement "p_Var3 = sp->fts_cur;" (assignment_expression "p_Var3 = sp->fts_cur" identifier = (field_expression "sp->fts_cur" identifier -> field_identifier)) ;) (if_statement "if (*(uint *)more <= uVar4) {\n    *(uint *)more = uVar4;\n    p_Var3 = (_ftsent *)(*(code *)puVar1)(p_Var3,uVar4);\n    if (p_Var3 == (_ftsent *)0x0) {\n      (*(code *)PTR_free_000323d4)(sp->fts_cur);\n      sp->fts_cur = (_ftsent *)0x0;\n    }\n    else {\n      sp->fts_cur = p_Var3;\n    }\n    return p_Var3 != (_ftsent *)0x0;\n  }" if (parenthesized_expression "(*(uint *)more <= uVar4)" ( (binary_expression "*(uint *)more <= uVar4" (pointer_expression "*(uint *)more" * (cast_expression "(uint *)more" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) <= identifier) )) (compound_statement "{\n    *(uint *)more = uVar4;\n    p_Var3 = (_ftsent *)(*(code *)puVar1)(p_Var3,uVar4);\n    if (p_Var3 == (_ftsent *)0x0) {\n      (*(code *)PTR_free_000323d4)(sp->fts_cur);\n      sp->fts_cur = (_ftsent *)0x0;\n    }\n    else {\n      sp->fts_cur = p_Var3;\n    }\n    return p_Var3 != (_ftsent *)0x0;\n  }" { (expression_statement "*(uint *)more = uVar4;" (assignment_expression "*(uint *)more = uVar4" (pointer_expression "*(uint *)more" * (cast_expression "(uint *)more" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "p_Var3 = (_ftsent *)(*(code *)puVar1)(p_Var3,uVar4);" (assignment_expression "p_Var3 = (_ftsent *)(*(code *)puVar1)(p_Var3,uVar4)" identifier = (cast_expression "(_ftsent *)(*(code *)puVar1)(p_Var3,uVar4)" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)(p_Var3,uVar4)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p_Var3,uVar4)" ( identifier , identifier ))))) ;) (if_statement "if (p_Var3 == (_ftsent *)0x0) {\n      (*(code *)PTR_free_000323d4)(sp->fts_cur);\n      sp->fts_cur = (_ftsent *)0x0;\n    }\n    else {\n      sp->fts_cur = p_Var3;\n    }" if (parenthesized_expression "(p_Var3 == (_ftsent *)0x0)" ( (binary_expression "p_Var3 == (_ftsent *)0x0" identifier == (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_free_000323d4)(sp->fts_cur);\n      sp->fts_cur = (_ftsent *)0x0;\n    }" { (expression_statement "(*(code *)PTR_free_000323d4)(sp->fts_cur);" (call_expression "(*(code *)PTR_free_000323d4)(sp->fts_cur)" (parenthesized_expression "(*(code *)PTR_free_000323d4)" ( (pointer_expression "*(code *)PTR_free_000323d4" * (cast_expression "(code *)PTR_free_000323d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(sp->fts_cur)" ( (field_expression "sp->fts_cur" identifier -> field_identifier) ))) ;) (expression_statement "sp->fts_cur = (_ftsent *)0x0;" (assignment_expression "sp->fts_cur = (_ftsent *)0x0" (field_expression "sp->fts_cur" identifier -> field_identifier) = (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      sp->fts_cur = p_Var3;\n    }" else (compound_statement "{\n      sp->fts_cur = p_Var3;\n    }" { (expression_statement "sp->fts_cur = p_Var3;" (assignment_expression "sp->fts_cur = p_Var3" (field_expression "sp->fts_cur" identifier -> field_identifier) = identifier) ;) }))) (return_statement "return p_Var3 != (_ftsent *)0x0;" return (binary_expression "p_Var3 != (_ftsent *)0x0" identifier != (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "(*(code *)PTR_free_000323d4)(p_Var3);" (call_expression "(*(code *)PTR_free_000323d4)(p_Var3)" (parenthesized_expression "(*(code *)PTR_free_000323d4)" ( (pointer_expression "*(code *)PTR_free_000323d4" * (cast_expression "(code *)PTR_free_000323d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(p_Var3)" ( identifier ))) ;) (expression_statement "puVar1 = PTR___errno_location_00032328;" (assignment_expression "puVar1 = PTR___errno_location_00032328" identifier = identifier) ;) (expression_statement "sp->fts_cur = (_ftsent *)0x0;" (assignment_expression "sp->fts_cur = (_ftsent *)0x0" (field_expression "sp->fts_cur" identifier -> field_identifier) = (cast_expression "(_ftsent *)0x0" ( (type_descriptor "_ftsent *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)puVar1)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)puVar1)()" identifier = (cast_expression "(undefined4 *)(*(code *)puVar1)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar2 = 0x4e;" (assignment_expression "*puVar2 = 0x4e" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return false;" return false ;) })))
(translation_unit "bool FUN_00017a58(int *param_1,uint *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  \n  puVar1 = PTR_realloc_00032370;\n  uVar4 = *param_2 + 0x100 + param_3;\n  iVar3 = *param_1;\n  if (*param_2 <= uVar4) {\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }\n  (*(code *)PTR_free_000323d4)(iVar3);\n  puVar1 = PTR___errno_location_00032328;\n  *param_1 = 0;\n  puVar2 = (undefined4 *)(*(code *)puVar1)();\n  *puVar2 = 0x4e;\n  return false;\n}\n\n" (function_definition "bool FUN_00017a58(int *param_1,uint *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  \n  puVar1 = PTR_realloc_00032370;\n  uVar4 = *param_2 + 0x100 + param_3;\n  iVar3 = *param_1;\n  if (*param_2 <= uVar4) {\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }\n  (*(code *)PTR_free_000323d4)(iVar3);\n  puVar1 = PTR___errno_location_00032328;\n  *param_1 = 0;\n  puVar2 = (undefined4 *)(*(code *)puVar1)();\n  *puVar2 = 0x4e;\n  return false;\n}" primitive_type (function_declarator "FUN_00017a58(int *param_1,uint *param_2,int param_3)" identifier (parameter_list "(int *param_1,uint *param_2,int param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  \n  puVar1 = PTR_realloc_00032370;\n  uVar4 = *param_2 + 0x100 + param_3;\n  iVar3 = *param_1;\n  if (*param_2 <= uVar4) {\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }\n  (*(code *)PTR_free_000323d4)(iVar3);\n  puVar1 = PTR___errno_location_00032328;\n  *param_1 = 0;\n  puVar2 = (undefined4 *)(*(code *)puVar1)();\n  *puVar2 = 0x4e;\n  return false;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_realloc_00032370;" (assignment_expression "puVar1 = PTR_realloc_00032370" identifier = identifier) ;) (expression_statement "uVar4 = *param_2 + 0x100 + param_3;" (assignment_expression "uVar4 = *param_2 + 0x100 + param_3" identifier = (binary_expression "*param_2 + 0x100 + param_3" (binary_expression "*param_2 + 0x100" (pointer_expression "*param_2" * identifier) + number_literal) + identifier)) ;) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (*param_2 <= uVar4) {\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }" if (parenthesized_expression "(*param_2 <= uVar4)" ( (binary_expression "*param_2 <= uVar4" (pointer_expression "*param_2" * identifier) <= identifier) )) (compound_statement "{\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }" { (expression_statement "*param_2 = uVar4;" (assignment_expression "*param_2 = uVar4" (pointer_expression "*param_2" * identifier) = identifier) ;) (expression_statement "iVar3 = (*(code *)puVar1)(iVar3,uVar4);" (assignment_expression "iVar3 = (*(code *)puVar1)(iVar3,uVar4)" identifier = (call_expression "(*(code *)puVar1)(iVar3,uVar4)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,uVar4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }" { (expression_statement "(*(code *)PTR_free_000323d4)(*param_1);" (call_expression "(*(code *)PTR_free_000323d4)(*param_1)" (parenthesized_expression "(*(code *)PTR_free_000323d4)" ( (pointer_expression "*(code *)PTR_free_000323d4" * (cast_expression "(code *)PTR_free_000323d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) }) (else_clause "else {\n      *param_1 = iVar3;\n    }" else (compound_statement "{\n      *param_1 = iVar3;\n    }" { (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" * identifier) = identifier) ;) }))) (return_statement "return iVar3 != 0;" return (binary_expression "iVar3 != 0" identifier != number_literal) ;) })) (expression_statement "(*(code *)PTR_free_000323d4)(iVar3);" (call_expression "(*(code *)PTR_free_000323d4)(iVar3)" (parenthesized_expression "(*(code *)PTR_free_000323d4)" ( (pointer_expression "*(code *)PTR_free_000323d4" * (cast_expression "(code *)PTR_free_000323d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "puVar1 = PTR___errno_location_00032328;" (assignment_expression "puVar1 = PTR___errno_location_00032328" identifier = identifier) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "puVar2 = (undefined4 *)(*(code *)puVar1)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)puVar1)()" identifier = (cast_expression "(undefined4 *)(*(code *)puVar1)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))))) ;) (expression_statement "*puVar2 = 0x4e;" (assignment_expression "*puVar2 = 0x4e" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (return_statement "return false;" return false ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT )))) ;) (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 ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (return_statement return (binary_expression IDENT != LIT) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (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 ( ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (return_statement return BOOL ;) })))
(function_definition "bool FUN_00017a58(int *param_1,uint *param_2,int param_3)\n\n{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  \n  puVar1 = PTR_realloc_00032370;\n  uVar4 = *param_2 + 0x100 + param_3;\n  iVar3 = *param_1;\n  if (*param_2 <= uVar4) {\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }\n  (*(code *)PTR_free_000323d4)(iVar3);\n  puVar1 = PTR___errno_location_00032328;\n  *param_1 = 0;\n  puVar2 = (undefined4 *)(*(code *)puVar1)();\n  *puVar2 = 0x4e;\n  return false;\n}" (primitive_type "bool") (function_declarator "FUN_00017a58(int *param_1,uint *param_2,int param_3)" (identifier "FUN_00017a58") (parameter_list "(int *param_1,uint *param_2,int param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  uint uVar4;\n  \n  puVar1 = PTR_realloc_00032370;\n  uVar4 = *param_2 + 0x100 + param_3;\n  iVar3 = *param_1;\n  if (*param_2 <= uVar4) {\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }\n  (*(code *)PTR_free_000323d4)(iVar3);\n  puVar1 = PTR___errno_location_00032328;\n  *param_1 = 0;\n  puVar2 = (undefined4 *)(*(code *)puVar1)();\n  *puVar2 = 0x4e;\n  return false;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (expression_statement "puVar1 = PTR_realloc_00032370;" (assignment_expression "puVar1 = PTR_realloc_00032370" (identifier "puVar1") (= "=") (identifier "PTR_realloc_00032370")) (; ";")) (expression_statement "uVar4 = *param_2 + 0x100 + param_3;" (assignment_expression "uVar4 = *param_2 + 0x100 + param_3" (identifier "uVar4") (= "=") (binary_expression "*param_2 + 0x100 + param_3" (binary_expression "*param_2 + 0x100" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "0x100")) (+ "+") (identifier "param_3"))) (; ";")) (expression_statement "iVar3 = *param_1;" (assignment_expression "iVar3 = *param_1" (identifier "iVar3") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (*param_2 <= uVar4) {\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }" (if "if") (parenthesized_expression "(*param_2 <= uVar4)" (( "(") (binary_expression "*param_2 <= uVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (<= "<=") (identifier "uVar4")) () ")")) (compound_statement "{\n    *param_2 = uVar4;\n    iVar3 = (*(code *)puVar1)(iVar3,uVar4);\n    if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }\n    return iVar3 != 0;\n  }" ({ "{") (expression_statement "*param_2 = uVar4;" (assignment_expression "*param_2 = uVar4" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "iVar3 = (*(code *)puVar1)(iVar3,uVar4);" (assignment_expression "iVar3 = (*(code *)puVar1)(iVar3,uVar4)" (identifier "iVar3") (= "=") (call_expression "(*(code *)puVar1)(iVar3,uVar4)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(iVar3,uVar4)" (( "(") (identifier "iVar3") (, ",") (identifier "uVar4") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }\n    else {\n      *param_1 = iVar3;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_free_000323d4)(*param_1);\n      *param_1 = 0;\n    }" ({ "{") (expression_statement "(*(code *)PTR_free_000323d4)(*param_1);" (call_expression "(*(code *)PTR_free_000323d4)(*param_1)" (parenthesized_expression "(*(code *)PTR_free_000323d4)" (( "(") (pointer_expression "*(code *)PTR_free_000323d4" (* "*") (cast_expression "(code *)PTR_free_000323d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_000323d4"))) () ")")) (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")"))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      *param_1 = iVar3;\n    }" (else "else") (compound_statement "{\n      *param_1 = iVar3;\n    }" ({ "{") (expression_statement "*param_1 = iVar3;" (assignment_expression "*param_1 = iVar3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar3")) (; ";")) (} "}")))) (return_statement "return iVar3 != 0;" (return "return") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_free_000323d4)(iVar3);" (call_expression "(*(code *)PTR_free_000323d4)(iVar3)" (parenthesized_expression "(*(code *)PTR_free_000323d4)" (( "(") (pointer_expression "*(code *)PTR_free_000323d4" (* "*") (cast_expression "(code *)PTR_free_000323d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_000323d4"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "puVar1 = PTR___errno_location_00032328;" (assignment_expression "puVar1 = PTR___errno_location_00032328" (identifier "puVar1") (= "=") (identifier "PTR___errno_location_00032328")) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = (undefined4 *)(*(code *)puVar1)();" (assignment_expression "puVar2 = (undefined4 *)(*(code *)puVar1)()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(*(code *)puVar1)()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)puVar1)()" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "*puVar2 = 0x4e;" (assignment_expression "*puVar2 = 0x4e" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0x4e")) (; ";")) (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}")))

/* DWARF original prototype: _Bool fts_palloc(FTS * sp, size_t more, FTS * sp) */

type_1 function_1(type_2 *sp,size_t more,type_2 *sp_1)

{
  type_3 *puVar1;
  type_4 *puVar2;
  type_5 *var_2;
  type_6 var_1;
  
  puVar1 = PTR_realloc_00032370;
  var_1 = (int)sp_1[2].fts_fd_ring.ir_data + *(type_6 *)more + 4;
  var_2 = sp->fts_cur;
  if (*(type_6 *)more <= var_1) {
    *(type_6 *)more = var_1;
    var_2 = (type_5 *)(*(type_7 *)puVar1)(var_2,var_1);
    if (var_2 == (type_5 *)0x0) {
      (*(type_7 *)PTR_free_000323d4)(sp->fts_cur);
      sp->fts_cur = (type_5 *)0x0;
    }
    else {
      sp->fts_cur = var_2;
    }
    return var_2 != (type_5 *)0x0;
  }
  (*(type_7 *)PTR_free_000323d4)(var_2);
  puVar1 = PTR___errno_location_00032328;
  sp->fts_cur = (type_5 *)0x0;
  puVar2 = (type_4 *)(*(type_7 *)puVar1)();
  *puVar2 = 0x4e;
  return false;
}


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

bool MASKED(int *param_1,uint *param_2,int param_3)

{
  undefined *puVar1;
  undefined4 *puVar2;
  int iVar3;
  uint uVar4;
  
  puVar1 = PTR_realloc_00032370;
  uVar4 = *param_2 + 0x100 + param_3;
  iVar3 = *param_1;
  if (*param_2 <= uVar4) {
    *param_2 = uVar4;
    iVar3 = (*(code *)puVar1)(iVar3,uVar4);
    if (iVar3 == 0) {
      (*(code *)PTR_free_000323d4)(*param_1);
      *param_1 = 0;
    }
    else {
      *param_1 = iVar3;
    }
    return iVar3 != 0;
  }
  (*(code *)PTR_free_000323d4)(iVar3);
  puVar1 = PTR___errno_location_00032328;
  *param_1 = 0;
  puVar2 = (undefined4 *)(*(code *)puVar1)();
  *puVar2 = 0x4e;
  return false;
}

