
int seek_file(WFile *f,uint64 offset,int whence)

{
  int iVar1;
  undefined4 in_a2;
  uint in_a3;
  
  if (in_a3 < 3) {
    iVar1 = (*(code *)PTR_lseek64_000b2ea0)
                      (f->fd,whence,whence,in_a2,
                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260));
    iVar1 = iVar1 >> 0x1f;
  }
  else {
    iVar1 = -1;
  }
  return iVar1;
}



int seek_file(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)

{
  int iVar1;
  
  if (param_4 < 3) {
    iVar1 = (*(code *)PTR_lseek64_000b2ea0)
                      (*param_1,param_2,param_2,param_3,
                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));
    iVar1 = iVar1 >> 0x1f;
  }
  else {
    iVar1 = -1;
  }
  return iVar1;
}


lui gp,0x3
addiu gp,gp,0x2f9c
addu gp,gp,t9
addiu sp,sp,-0x28
sltiu v1,a3,0x3
sw gp,0x18(sp)
sw ra,0x24(sp)
sw a1,0x2c(sp)
beq v1,zero,0x0008743c
_sw a2,0x30(sp)
lw v1,-0x7f80(gp)
or v0,a3,zero
sll v0,v0,0x2
lw t9,-0x74d0(gp)
lw a0,0x0(a0)
or a3,a2,zero
addiu v1,v1,0x260
or a2,a1,zero
addu v0,v0,v1
lw v0,0x0(v0)
jalr t9
_sw v0,0x10(sp)
sra v0,v0,0x1f
lw ra,0x24(sp)
jr ra
_addiu sp,sp,0x28
b 0x00087430
_li v0,-0x1
(translation_unit "int seek_file(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)\n\n{\n  int iVar1;\n  \n  if (param_4 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int seek_file(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)\n\n{\n  int iVar1;\n  \n  if (param_4 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "seek_file(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_4 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_4 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }" if (parenthesized_expression "(param_4 < 3)" ( (binary_expression "param_4 < 3" identifier < number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));" (assignment_expression "iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260))" identifier = (call_expression "(*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260))" (parenthesized_expression "(*(code *)PTR_lseek64_000b2ea0)" ( (pointer_expression "*(code *)PTR_lseek64_000b2ea0" * (cast_expression "(code *)PTR_lseek64_000b2ea0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260))" ( (pointer_expression "*param_1" * identifier) , identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260)" * (cast_expression "(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260)" ( (binary_expression "PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260" (binary_expression "PTR_s_entropy_source_000b23f0 + param_4 * 4" identifier + (binary_expression "param_4 * 4" identifier * number_literal)) + number_literal) )))) )))) ;) (expression_statement "iVar1 = iVar1 >> 0x1f;" (assignment_expression "iVar1 = iVar1 >> 0x1f" identifier = (binary_expression "iVar1 >> 0x1f" identifier >> number_literal)) ;) }) (else_clause "else {\n    iVar1 = -1;\n  }" else (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int seek_file(WFile *f,uint64 offset,int whence)\n\n{\n  int iVar1;\n  undefined4 in_a2;\n  uint in_a3;\n  \n  if (in_a3 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (f->fd,whence,whence,in_a2,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int seek_file(WFile *f,uint64 offset,int whence)\n\n{\n  int iVar1;\n  undefined4 in_a2;\n  uint in_a3;\n  \n  if (in_a3 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (f->fd,whence,whence,in_a2,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "seek_file(WFile *f,uint64 offset,int whence)" identifier (parameter_list "(WFile *f,uint64 offset,int whence)" ( (parameter_declaration "WFile *f" type_identifier (pointer_declarator "*f" * identifier)) , (parameter_declaration "uint64 offset" type_identifier identifier) , (parameter_declaration "int whence" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 in_a2;\n  uint in_a3;\n  \n  if (in_a3 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (f->fd,whence,whence,in_a2,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 in_a2;" type_identifier identifier ;) (declaration "uint in_a3;" type_identifier identifier ;) (if_statement "if (in_a3 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (f->fd,whence,whence,in_a2,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }" if (parenthesized_expression "(in_a3 < 3)" ( (binary_expression "in_a3 < 3" identifier < number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (f->fd,whence,whence,in_a2,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (f->fd,whence,whence,in_a2,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260));" (assignment_expression "iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (f->fd,whence,whence,in_a2,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260))" identifier = (call_expression "(*(code *)PTR_lseek64_000b2ea0)\n                      (f->fd,whence,whence,in_a2,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260))" (parenthesized_expression "(*(code *)PTR_lseek64_000b2ea0)" ( (pointer_expression "*(code *)PTR_lseek64_000b2ea0" * (cast_expression "(code *)PTR_lseek64_000b2ea0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(f->fd,whence,whence,in_a2,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260))" ( (field_expression "f->fd" identifier -> field_identifier) , identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260)" * (cast_expression "(undefined4 *)(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260)" ( (binary_expression "PTR_s_entropy_source_000b23f0 + in_a3 * 4 + 0x260" (binary_expression "PTR_s_entropy_source_000b23f0 + in_a3 * 4" identifier + (binary_expression "in_a3 * 4" identifier * number_literal)) + number_literal) )))) )))) ;) (expression_statement "iVar1 = iVar1 >> 0x1f;" (assignment_expression "iVar1 = iVar1 >> 0x1f" identifier = (binary_expression "iVar1 >> 0x1f" identifier >> number_literal)) ;) }) (else_clause "else {\n    iVar1 = -1;\n  }" else (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int seek_file(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)\n\n{\n  int iVar1;\n  \n  if (param_4 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}\n\n" (function_definition "int seek_file(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)\n\n{\n  int iVar1;\n  \n  if (param_4 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "seek_file(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)" identifier (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "uint param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_4 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_4 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }" if (parenthesized_expression "(param_4 < 3)" ( (binary_expression "param_4 < 3" identifier < number_literal) )) (compound_statement "{\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }" { (expression_statement "iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));" (assignment_expression "iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260))" identifier = (call_expression "(*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260))" (parenthesized_expression "(*(code *)PTR_lseek64_000b2ea0)" ( (pointer_expression "*(code *)PTR_lseek64_000b2ea0" * (cast_expression "(code *)PTR_lseek64_000b2ea0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260))" ( (pointer_expression "*param_1" * identifier) , identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260)" * (cast_expression "(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260)" ( (binary_expression "PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260" (binary_expression "PTR_s_entropy_source_000b23f0 + param_4 * 4" identifier + (binary_expression "param_4 * 4" identifier * number_literal)) + number_literal) )))) )))) ;) (expression_statement "iVar1 = iVar1 >> 0x1f;" (assignment_expression "iVar1 = iVar1 >> 0x1f" identifier = (binary_expression "iVar1 >> 0x1f" identifier >> number_literal)) ;) }) (else_clause "else {\n    iVar1 = -1;\n  }" else (compound_statement "{\n    iVar1 = -1;\n  }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) , IDENT , IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int seek_file(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)\n\n{\n  int iVar1;\n  \n  if (param_4 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" (primitive_type "int") (function_declarator "seek_file(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)" (identifier "seek_file") (parameter_list "(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "uint param_4" (type_identifier "uint") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_4 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_4 < 3) {\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }\n  else {\n    iVar1 = -1;\n  }" (if "if") (parenthesized_expression "(param_4 < 3)" (( "(") (binary_expression "param_4 < 3" (identifier "param_4") (< "<") (number_literal "3")) () ")")) (compound_statement "{\n    iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));\n    iVar1 = iVar1 >> 0x1f;\n  }" ({ "{") (expression_statement "iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));" (assignment_expression "iVar1 = (*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260))" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_lseek64_000b2ea0)\n                      (*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260))" (parenthesized_expression "(*(code *)PTR_lseek64_000b2ea0)" (( "(") (pointer_expression "*(code *)PTR_lseek64_000b2ea0" (* "*") (cast_expression "(code *)PTR_lseek64_000b2ea0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_lseek64_000b2ea0"))) () ")")) (argument_list "(*param_1,param_2,param_2,param_3,\n                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260))" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "param_2") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260)" (* "*") (cast_expression "(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260)" (( "(") (binary_expression "PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260" (binary_expression "PTR_s_entropy_source_000b23f0 + param_4 * 4" (identifier "PTR_s_entropy_source_000b23f0") (+ "+") (binary_expression "param_4 * 4" (identifier "param_4") (* "*") (number_literal "4"))) (+ "+") (number_literal "0x260")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar1 = iVar1 >> 0x1f;" (assignment_expression "iVar1 = iVar1 >> 0x1f" (identifier "iVar1") (= "=") (binary_expression "iVar1 >> 0x1f" (identifier "iVar1") (>> ">>") (number_literal "0x1f"))) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = -1;\n  }" (else "else") (compound_statement "{\n    iVar1 = -1;\n  }" ({ "{") (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (} "}")))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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 (pointer_expression argument: (identifier)) (identifier) (identifier) (identifier) (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: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (return_statement (identifier)))))

int MASKED(undefined4 *param_1,undefined4 param_2,undefined4 param_3,uint param_4)

{
  int iVar1;
  
  if (param_4 < 3) {
    iVar1 = (*(code *)PTR_lseek64_000b2ea0)
                      (*param_1,param_2,param_2,param_3,
                       *(undefined4 *)(PTR_s_entropy_source_000b23f0 + param_4 * 4 + 0x260));
    iVar1 = iVar1 >> 0x1f;
  }
  else {
    iVar1 = -1;
  }
  return iVar1;
}

