
int rpl_fseeko(FILE *fp,off_t offset,int whence)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 in_a2;
  undefined4 in_a3;
  longlong lVar3;
  
  if (((fp->_IO_read_end == fp->_IO_read_ptr) && (fp->_IO_write_ptr == fp->_IO_write_base)) &&
     (fp->_IO_save_base == (char *)0x0)) {
    uVar2 = (*(code *)PTR_fileno_0002a24c)();
    lVar3 = (*(code *)PTR_lseek64_0002a29c)(uVar2);
    if (lVar3 == -1) {
      iVar1 = -1;
    }
    else {
      fp->_flags = fp->_flags & 0xffffffef;
      fp->_offset = lVar3;
      iVar1 = 0;
    }
  }
  else {
    iVar1 = (*(code *)PTR_fseeko64_0002a240)(fp,whence,in_a2,in_a3,offset._0_4_);
  }
  return iVar1;
}



undefined4
rpl_fseeko(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5
          )

{
  undefined4 uVar1;
  longlong lVar2;
  
  if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {
    uVar1 = (*(code *)PTR_fileno_0002a24c)();
    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);
    if (lVar2 == -1) {
      uVar1 = 0xffffffff;
    }
    else {
      *param_1 = *param_1 & 0xffffffef;
      *(longlong *)(param_1 + 0x14) = lVar2;
      uVar1 = 0;
    }
  }
  else {
    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);
  }
  return uVar1;
}


lui gp,0x2
addiu gp,gp,-0x4e00
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s3,0x28(sp)
sw s2,0x24(sp)
sw s0,0x20(sp)
sw gp,0x18(sp)
or s0,a0,zero
or s3,a3,zero
lw v1,0x8(a0)
lw v0,0x4(a0)
beq v1,v0,0x00016f48
_or s2,a2,zero
lw v0,0x40(sp)
sw v0,0x10(sp)
or a3,s3,zero
or a2,s2,zero
or a0,s0,zero
lw t9,-0x7e90(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x30
lw v1,0x14(a0)
lw v0,0x10(a0)
bne v1,v0,0x00016f10
_lw v0,0x40(sp)
lw v0,0x24(a0)
bne v0,zero,0x00016f10
_lw v0,0x40(sp)
lw t9,-0x7e84(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v1,0x40(sp)
sw v1,0x10(sp)
or a3,s3,zero
or a2,s2,zero
or a0,v0,zero
lw t9,-0x7e34(gp)
jalr t9
_nop
lw gp,0x18(sp)
li a0,-0x1
beq v0,a0,0x00016fc4
_nop
lw a0,0x0(s0)
li a1,-0x11
and a0,a0,a1
sw a0,0x0(s0)
sw v0,0x50(s0)
sw v1,0x54(s0)
b 0x00016f30
_or v0,zero,zero
bne v1,a0,0x00016fa4
_nop
b 0x00016f30
_li v0,-0x1
(translation_unit "undefined4\nrpl_fseeko(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          )\n\n{\n  undefined4 uVar1;\n  longlong lVar2;\n  \n  if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4\nrpl_fseeko(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          )\n\n{\n  undefined4 uVar1;\n  longlong lVar2;\n  \n  if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "rpl_fseeko(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          )" identifier (parameter_list "(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          )" ( (parameter_declaration "uint *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 "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  longlong lVar2;\n  \n  if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "longlong lVar2;" type_identifier identifier ;) (if_statement "if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }" if (parenthesized_expression "(((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0))" ( (binary_expression "((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)" (parenthesized_expression "((param_1[2] == param_1[1]) && (param_1[5] == param_1[4]))" ( (binary_expression "(param_1[2] == param_1[1]) && (param_1[5] == param_1[4])" (parenthesized_expression "(param_1[2] == param_1[1])" ( (binary_expression "param_1[2] == param_1[1]" (subscript_expression "param_1[2]" identifier [ number_literal ]) == (subscript_expression "param_1[1]" identifier [ number_literal ])) )) && (parenthesized_expression "(param_1[5] == param_1[4])" ( (binary_expression "param_1[5] == param_1[4]" (subscript_expression "param_1[5]" identifier [ number_literal ]) == (subscript_expression "param_1[4]" identifier [ number_literal ])) ))) )) && (parenthesized_expression "(param_1[9] == 0)" ( (binary_expression "param_1[9] == 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }" { (expression_statement "uVar1 = (*(code *)PTR_fileno_0002a24c)();" (assignment_expression "uVar1 = (*(code *)PTR_fileno_0002a24c)()" identifier = (call_expression "(*(code *)PTR_fileno_0002a24c)()" (parenthesized_expression "(*(code *)PTR_fileno_0002a24c)" ( (pointer_expression "*(code *)PTR_fileno_0002a24c" * (cast_expression "(code *)PTR_fileno_0002a24c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);" (assignment_expression "lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1)" identifier = (call_expression "(*(code *)PTR_lseek64_0002a29c)(uVar1)" (parenthesized_expression "(*(code *)PTR_lseek64_0002a29c)" ( (pointer_expression "*(code *)PTR_lseek64_0002a29c" * (cast_expression "(code *)PTR_lseek64_0002a29c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }" if (parenthesized_expression "(lVar2 == -1)" ( (binary_expression "lVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar1 = 0xffffffff;\n    }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }" else (compound_statement "{\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }" { (expression_statement "*param_1 = *param_1 & 0xffffffef;" (assignment_expression "*param_1 = *param_1 & 0xffffffef" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 & 0xffffffef" (pointer_expression "*param_1" * identifier) & number_literal)) ;) (expression_statement "*(longlong *)(param_1 + 0x14) = lVar2;" (assignment_expression "*(longlong *)(param_1 + 0x14) = lVar2" (pointer_expression "*(longlong *)(param_1 + 0x14)" * (cast_expression "(longlong *)(param_1 + 0x14)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }" else (compound_statement "{\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }" { (expression_statement "uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);" (assignment_expression "uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5)" identifier = (call_expression "(*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5)" (parenthesized_expression "(*(code *)PTR_fseeko64_0002a240)" ( (pointer_expression "*(code *)PTR_fseeko64_0002a240" * (cast_expression "(code *)PTR_fseeko64_0002a240" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "int rpl_fseeko(FILE *fp,off_t offset,int whence)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  longlong lVar3;\n  \n  if (((fp->_IO_read_end == fp->_IO_read_ptr) && (fp->_IO_write_ptr == fp->_IO_write_base)) &&\n     (fp->_IO_save_base == (char *)0x0)) {\n    uVar2 = (*(code *)PTR_fileno_0002a24c)();\n    lVar3 = (*(code *)PTR_lseek64_0002a29c)(uVar2);\n    if (lVar3 == -1) {\n      iVar1 = -1;\n    }\n    else {\n      fp->_flags = fp->_flags & 0xffffffef;\n      fp->_offset = lVar3;\n      iVar1 = 0;\n    }\n  }\n  else {\n    iVar1 = (*(code *)PTR_fseeko64_0002a240)(fp,whence,in_a2,in_a3,offset._0_4_);\n  }\n  return iVar1;\n}\n\n" (function_definition "int rpl_fseeko(FILE *fp,off_t offset,int whence)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  longlong lVar3;\n  \n  if (((fp->_IO_read_end == fp->_IO_read_ptr) && (fp->_IO_write_ptr == fp->_IO_write_base)) &&\n     (fp->_IO_save_base == (char *)0x0)) {\n    uVar2 = (*(code *)PTR_fileno_0002a24c)();\n    lVar3 = (*(code *)PTR_lseek64_0002a29c)(uVar2);\n    if (lVar3 == -1) {\n      iVar1 = -1;\n    }\n    else {\n      fp->_flags = fp->_flags & 0xffffffef;\n      fp->_offset = lVar3;\n      iVar1 = 0;\n    }\n  }\n  else {\n    iVar1 = (*(code *)PTR_fseeko64_0002a240)(fp,whence,in_a2,in_a3,offset._0_4_);\n  }\n  return iVar1;\n}" primitive_type (function_declarator "rpl_fseeko(FILE *fp,off_t offset,int whence)" identifier (parameter_list "(FILE *fp,off_t offset,int whence)" ( (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) , (parameter_declaration "off_t offset" type_identifier identifier) , (parameter_declaration "int whence" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 in_a2;\n  undefined4 in_a3;\n  longlong lVar3;\n  \n  if (((fp->_IO_read_end == fp->_IO_read_ptr) && (fp->_IO_write_ptr == fp->_IO_write_base)) &&\n     (fp->_IO_save_base == (char *)0x0)) {\n    uVar2 = (*(code *)PTR_fileno_0002a24c)();\n    lVar3 = (*(code *)PTR_lseek64_0002a29c)(uVar2);\n    if (lVar3 == -1) {\n      iVar1 = -1;\n    }\n    else {\n      fp->_flags = fp->_flags & 0xffffffef;\n      fp->_offset = lVar3;\n      iVar1 = 0;\n    }\n  }\n  else {\n    iVar1 = (*(code *)PTR_fseeko64_0002a240)(fp,whence,in_a2,in_a3,offset._0_4_);\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 in_a2;" type_identifier identifier ;) (declaration "undefined4 in_a3;" type_identifier identifier ;) (declaration "longlong lVar3;" type_identifier identifier ;) (if_statement "if (((fp->_IO_read_end == fp->_IO_read_ptr) && (fp->_IO_write_ptr == fp->_IO_write_base)) &&\n     (fp->_IO_save_base == (char *)0x0)) {\n    uVar2 = (*(code *)PTR_fileno_0002a24c)();\n    lVar3 = (*(code *)PTR_lseek64_0002a29c)(uVar2);\n    if (lVar3 == -1) {\n      iVar1 = -1;\n    }\n    else {\n      fp->_flags = fp->_flags & 0xffffffef;\n      fp->_offset = lVar3;\n      iVar1 = 0;\n    }\n  }\n  else {\n    iVar1 = (*(code *)PTR_fseeko64_0002a240)(fp,whence,in_a2,in_a3,offset._0_4_);\n  }" if (parenthesized_expression "(((fp->_IO_read_end == fp->_IO_read_ptr) && (fp->_IO_write_ptr == fp->_IO_write_base)) &&\n     (fp->_IO_save_base == (char *)0x0))" ( (binary_expression "((fp->_IO_read_end == fp->_IO_read_ptr) && (fp->_IO_write_ptr == fp->_IO_write_base)) &&\n     (fp->_IO_save_base == (char *)0x0)" (parenthesized_expression "((fp->_IO_read_end == fp->_IO_read_ptr) && (fp->_IO_write_ptr == fp->_IO_write_base))" ( (binary_expression "(fp->_IO_read_end == fp->_IO_read_ptr) && (fp->_IO_write_ptr == fp->_IO_write_base)" (parenthesized_expression "(fp->_IO_read_end == fp->_IO_read_ptr)" ( (binary_expression "fp->_IO_read_end == fp->_IO_read_ptr" (field_expression "fp->_IO_read_end" identifier -> field_identifier) == (field_expression "fp->_IO_read_ptr" identifier -> field_identifier)) )) && (parenthesized_expression "(fp->_IO_write_ptr == fp->_IO_write_base)" ( (binary_expression "fp->_IO_write_ptr == fp->_IO_write_base" (field_expression "fp->_IO_write_ptr" identifier -> field_identifier) == (field_expression "fp->_IO_write_base" identifier -> field_identifier)) ))) )) && (parenthesized_expression "(fp->_IO_save_base == (char *)0x0)" ( (binary_expression "fp->_IO_save_base == (char *)0x0" (field_expression "fp->_IO_save_base" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    uVar2 = (*(code *)PTR_fileno_0002a24c)();\n    lVar3 = (*(code *)PTR_lseek64_0002a29c)(uVar2);\n    if (lVar3 == -1) {\n      iVar1 = -1;\n    }\n    else {\n      fp->_flags = fp->_flags & 0xffffffef;\n      fp->_offset = lVar3;\n      iVar1 = 0;\n    }\n  }" { (expression_statement "uVar2 = (*(code *)PTR_fileno_0002a24c)();" (assignment_expression "uVar2 = (*(code *)PTR_fileno_0002a24c)()" identifier = (call_expression "(*(code *)PTR_fileno_0002a24c)()" (parenthesized_expression "(*(code *)PTR_fileno_0002a24c)" ( (pointer_expression "*(code *)PTR_fileno_0002a24c" * (cast_expression "(code *)PTR_fileno_0002a24c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "lVar3 = (*(code *)PTR_lseek64_0002a29c)(uVar2);" (assignment_expression "lVar3 = (*(code *)PTR_lseek64_0002a29c)(uVar2)" identifier = (call_expression "(*(code *)PTR_lseek64_0002a29c)(uVar2)" (parenthesized_expression "(*(code *)PTR_lseek64_0002a29c)" ( (pointer_expression "*(code *)PTR_lseek64_0002a29c" * (cast_expression "(code *)PTR_lseek64_0002a29c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar2)" ( identifier )))) ;) (if_statement "if (lVar3 == -1) {\n      iVar1 = -1;\n    }\n    else {\n      fp->_flags = fp->_flags & 0xffffffef;\n      fp->_offset = lVar3;\n      iVar1 = 0;\n    }" if (parenthesized_expression "(lVar3 == -1)" ( (binary_expression "lVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar1 = -1;\n    }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      fp->_flags = fp->_flags & 0xffffffef;\n      fp->_offset = lVar3;\n      iVar1 = 0;\n    }" else (compound_statement "{\n      fp->_flags = fp->_flags & 0xffffffef;\n      fp->_offset = lVar3;\n      iVar1 = 0;\n    }" { (expression_statement "fp->_flags = fp->_flags & 0xffffffef;" (assignment_expression "fp->_flags = fp->_flags & 0xffffffef" (field_expression "fp->_flags" identifier -> field_identifier) = (binary_expression "fp->_flags & 0xffffffef" (field_expression "fp->_flags" identifier -> field_identifier) & number_literal)) ;) (expression_statement "fp->_offset = lVar3;" (assignment_expression "fp->_offset = lVar3" (field_expression "fp->_offset" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n    iVar1 = (*(code *)PTR_fseeko64_0002a240)(fp,whence,in_a2,in_a3,offset._0_4_);\n  }" else (compound_statement "{\n    iVar1 = (*(code *)PTR_fseeko64_0002a240)(fp,whence,in_a2,in_a3,offset._0_4_);\n  }" { (expression_statement "iVar1 = (*(code *)PTR_fseeko64_0002a240)(fp,whence,in_a2,in_a3,offset._0_4_);" (assignment_expression "iVar1 = (*(code *)PTR_fseeko64_0002a240)(fp,whence,in_a2,in_a3,offset._0_4_)" identifier = (call_expression "(*(code *)PTR_fseeko64_0002a240)(fp,whence,in_a2,in_a3,offset._0_4_)" (parenthesized_expression "(*(code *)PTR_fseeko64_0002a240)" ( (pointer_expression "*(code *)PTR_fseeko64_0002a240" * (cast_expression "(code *)PTR_fseeko64_0002a240" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fp,whence,in_a2,in_a3,offset._0_4_)" ( identifier , identifier , identifier , identifier , (field_expression "offset._0_4_" identifier . field_identifier) )))) ;) }))) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4\nrpl_fseeko(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          )\n\n{\n  undefined4 uVar1;\n  longlong lVar2;\n  \n  if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4\nrpl_fseeko(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          )\n\n{\n  undefined4 uVar1;\n  longlong lVar2;\n  \n  if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "rpl_fseeko(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          )" identifier (parameter_list "(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          )" ( (parameter_declaration "uint *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 "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  longlong lVar2;\n  \n  if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "longlong lVar2;" type_identifier identifier ;) (if_statement "if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }" if (parenthesized_expression "(((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0))" ( (binary_expression "((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)" (parenthesized_expression "((param_1[2] == param_1[1]) && (param_1[5] == param_1[4]))" ( (binary_expression "(param_1[2] == param_1[1]) && (param_1[5] == param_1[4])" (parenthesized_expression "(param_1[2] == param_1[1])" ( (binary_expression "param_1[2] == param_1[1]" (subscript_expression "param_1[2]" identifier [ number_literal ]) == (subscript_expression "param_1[1]" identifier [ number_literal ])) )) && (parenthesized_expression "(param_1[5] == param_1[4])" ( (binary_expression "param_1[5] == param_1[4]" (subscript_expression "param_1[5]" identifier [ number_literal ]) == (subscript_expression "param_1[4]" identifier [ number_literal ])) ))) )) && (parenthesized_expression "(param_1[9] == 0)" ( (binary_expression "param_1[9] == 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }" { (expression_statement "uVar1 = (*(code *)PTR_fileno_0002a24c)();" (assignment_expression "uVar1 = (*(code *)PTR_fileno_0002a24c)()" identifier = (call_expression "(*(code *)PTR_fileno_0002a24c)()" (parenthesized_expression "(*(code *)PTR_fileno_0002a24c)" ( (pointer_expression "*(code *)PTR_fileno_0002a24c" * (cast_expression "(code *)PTR_fileno_0002a24c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);" (assignment_expression "lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1)" identifier = (call_expression "(*(code *)PTR_lseek64_0002a29c)(uVar1)" (parenthesized_expression "(*(code *)PTR_lseek64_0002a29c)" ( (pointer_expression "*(code *)PTR_lseek64_0002a29c" * (cast_expression "(code *)PTR_lseek64_0002a29c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar1)" ( identifier )))) ;) (if_statement "if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }" if (parenthesized_expression "(lVar2 == -1)" ( (binary_expression "lVar2 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar1 = 0xffffffff;\n    }" { (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" identifier = number_literal) ;) }) (else_clause "else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }" else (compound_statement "{\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }" { (expression_statement "*param_1 = *param_1 & 0xffffffef;" (assignment_expression "*param_1 = *param_1 & 0xffffffef" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 & 0xffffffef" (pointer_expression "*param_1" * identifier) & number_literal)) ;) (expression_statement "*(longlong *)(param_1 + 0x14) = lVar2;" (assignment_expression "*(longlong *)(param_1 + 0x14) = lVar2" (pointer_expression "*(longlong *)(param_1 + 0x14)" * (cast_expression "(longlong *)(param_1 + 0x14)" ( (type_descriptor "longlong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }" else (compound_statement "{\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }" { (expression_statement "uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);" (assignment_expression "uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5)" identifier = (call_expression "(*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5)" (parenthesized_expression "(*(code *)PTR_fseeko64_0002a240)" ( (pointer_expression "*(code *)PTR_fseeko64_0002a240" * (cast_expression "(code *)PTR_fseeko64_0002a240" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) }))) (return_statement "return uVar1;" 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) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (subscript_expression IDENT [ LIT ])) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == (subscript_expression IDENT [ LIT ])) ))) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == 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 ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) & 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 IDENT = LIT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4\nrpl_fseeko(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          )\n\n{\n  undefined4 uVar1;\n  longlong lVar2;\n  \n  if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "rpl_fseeko(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          )" (identifier "rpl_fseeko") (parameter_list "(uint *param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n          )" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (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 "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  longlong lVar2;\n  \n  if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "longlong lVar2;" (type_identifier "longlong") (identifier "lVar2") (; ";")) (if_statement "if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }\n  else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }" (if "if") (parenthesized_expression "(((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0))" (( "(") (binary_expression "((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)" (parenthesized_expression "((param_1[2] == param_1[1]) && (param_1[5] == param_1[4]))" (( "(") (binary_expression "(param_1[2] == param_1[1]) && (param_1[5] == param_1[4])" (parenthesized_expression "(param_1[2] == param_1[1])" (( "(") (binary_expression "param_1[2] == param_1[1]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (== "==") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[5] == param_1[4])" (( "(") (binary_expression "param_1[5] == param_1[4]" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (== "==") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(param_1[9] == 0)" (( "(") (binary_expression "param_1[9] == 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar1 = (*(code *)PTR_fileno_0002a24c)();\n    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_fileno_0002a24c)();" (assignment_expression "uVar1 = (*(code *)PTR_fileno_0002a24c)()" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_fileno_0002a24c)()" (parenthesized_expression "(*(code *)PTR_fileno_0002a24c)" (( "(") (pointer_expression "*(code *)PTR_fileno_0002a24c" (* "*") (cast_expression "(code *)PTR_fileno_0002a24c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fileno_0002a24c"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);" (assignment_expression "lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1)" (identifier "lVar2") (= "=") (call_expression "(*(code *)PTR_lseek64_0002a29c)(uVar1)" (parenthesized_expression "(*(code *)PTR_lseek64_0002a29c)" (( "(") (pointer_expression "*(code *)PTR_lseek64_0002a29c" (* "*") (cast_expression "(code *)PTR_lseek64_0002a29c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_lseek64_0002a29c"))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (if_statement "if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }" (if "if") (parenthesized_expression "(lVar2 == -1)" (( "(") (binary_expression "lVar2 == -1" (identifier "lVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      uVar1 = 0xffffffff;\n    }" ({ "{") (expression_statement "uVar1 = 0xffffffff;" (assignment_expression "uVar1 = 0xffffffff" (identifier "uVar1") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")) (else_clause "else {\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }" (else "else") (compound_statement "{\n      *param_1 = *param_1 & 0xffffffef;\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n    }" ({ "{") (expression_statement "*param_1 = *param_1 & 0xffffffef;" (assignment_expression "*param_1 = *param_1 & 0xffffffef" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*param_1 & 0xffffffef" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (& "&") (number_literal "0xffffffef"))) (; ";")) (expression_statement "*(longlong *)(param_1 + 0x14) = lVar2;" (assignment_expression "*(longlong *)(param_1 + 0x14) = lVar2" (pointer_expression "*(longlong *)(param_1 + 0x14)" (* "*") (cast_expression "(longlong *)(param_1 + 0x14)" (( "(") (type_descriptor "longlong *" (type_identifier "longlong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "lVar2")) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }" (else "else") (compound_statement "{\n    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);" (assignment_expression "uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5)" (parenthesized_expression "(*(code *)PTR_fseeko64_0002a240)" (( "(") (pointer_expression "*(code *)PTR_fseeko64_0002a240" (* "*") (cast_expression "(code *)PTR_fseeko64_0002a240" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fseeko64_0002a240"))) () ")")) (argument_list "(param_1,param_2,param_3,param_4,param_5)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

int function_1(type_1 *fp,type_2 offset,int whence)

{
  int iVar1;
  type_3 uVar2;
  type_3 in_a2;
  type_3 in_a3;
  type_4 var_1;
  
  if (((fp->_IO_read_end == fp->_IO_read_ptr) && (fp->_IO_write_ptr == fp->_IO_write_base)) &&
     (fp->_IO_save_base == (char *)0x0)) {
    uVar2 = (*(type_5 *)PTR_fileno_0002a24c)();
    var_1 = (*(type_5 *)PTR_lseek64_0002a29c)(uVar2);
    if (var_1 == -1) {
      iVar1 = -1;
    }
    else {
      fp->_flags = fp->_flags & 0xffffffef;
      fp->_offset = var_1;
      iVar1 = 0;
    }
  }
  else {
    iVar1 = (*(type_5 *)PTR_fseeko64_0002a240)(fp,whence,in_a2,in_a3,offset._0_4_);
  }
  return iVar1;
}


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

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

{
  undefined4 uVar1;
  longlong lVar2;
  
  if (((param_1[2] == param_1[1]) && (param_1[5] == param_1[4])) && (param_1[9] == 0)) {
    uVar1 = (*(code *)PTR_fileno_0002a24c)();
    lVar2 = (*(code *)PTR_lseek64_0002a29c)(uVar1);
    if (lVar2 == -1) {
      uVar1 = 0xffffffff;
    }
    else {
      *param_1 = *param_1 & 0xffffffef;
      *(longlong *)(param_1 + 0x14) = lVar2;
      uVar1 = 0;
    }
  }
  else {
    uVar1 = (*(code *)PTR_fseeko64_0002a240)(param_1,param_2,param_3,param_4,param_5);
  }
  return uVar1;
}

