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

{
  int iVar1;
  undefined4 uVar2;
  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_00031294)();
    lVar3 = (*(code *)PTR_lseek64_000312e4)(uVar2);
    if (lVar3 == -1) {
      iVar1 = -1;
    }
    else {
      fp->_offset = lVar3;
      iVar1 = 0;
      fp->_flags = fp->_flags & 0xffffffef;
    }
    return iVar1;
  }
                    /* WARNING: Could not recover jumptable at 0x0001b5bc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  iVar1 = (*(code *)PTR_fseeko64_00031280)(fp);
  return iVar1;
}



undefined4 rpl_fseeko(uint *param_1)

{
  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_00031294)();
    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);
    if (lVar2 == -1) {
      uVar1 = 0xffffffff;
    }
    else {
      *(longlong *)(param_1 + 0x14) = lVar2;
      uVar1 = 0;
      *param_1 = *param_1 & 0xffffffef;
    }
    return uVar1;
  }
                    /* WARNING: Could not recover jumptable at 0x0001b5bc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);
  return uVar1;
}


lui gp,0x2
addiu gp,gp,-0x2480
addu gp,gp,t9
addiu sp,sp,-0x38
lw a1,0x8(a0)
lw v1,0x4(a0)
sw gp,0x18(sp)
sw s1,0x28(sp)
sw s0,0x24(sp)
or s0,a0,zero
sw ra,0x34(sp)
sw s3,0x30(sp)
sw s2,0x2c(sp)
beq a1,v1,0x0001b5c4
_lw s1,0x48(sp)
lw ra,0x34(sp)
or a0,s0,zero
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s0,0x24(sp)
lw t9,-0x7e60(gp)
sw s1,0x48(sp)
lw s1,0x28(sp)
jr t9
_addiu sp,sp,0x38
lw a1,0x14(a0)
lw v1,0x10(a0)
bne a1,v1,0x0001b5a0
_lw ra,0x34(sp)
lw v1,0x24(a0)
bne v1,zero,0x0001b5a0
_lw t9,-0x7e4c(gp)
or s3,a3,zero
jalr t9
_or s2,a2,zero
or a3,s3,zero
lw gp,0x18(sp)
or a0,v0,zero
or a2,s2,zero
lw t9,-0x7dfc(gp)
jalr t9
_sw s1,0x10(sp)
li a0,-0x1
beq v0,a0,0x0001b64c
_nop
lw a0,0x0(s0)
sw v1,0x54(s0)
li v1,-0x11
sw v0,0x50(s0)
or v0,zero,zero
and a0,a0,v1
sw a0,0x0(s0)
lw ra,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x38
bne v1,v0,0x0001b614
_nop
b 0x0001b630
_li v0,-0x1
(translation_unit "undefined4 rpl_fseeko(uint *param_1)\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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001b5bc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);\n  return uVar1;\n}\n\n" (function_definition "undefined4 rpl_fseeko(uint *param_1)\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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001b5bc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);\n  return uVar1;\n}" type_identifier (function_declarator "rpl_fseeko(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * 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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001b5bc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);\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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_fileno_00031294)();" (assignment_expression "uVar1 = (*(code *)PTR_fileno_00031294)()" identifier = (call_expression "(*(code *)PTR_fileno_00031294)()" (parenthesized_expression "(*(code *)PTR_fileno_00031294)" ( (pointer_expression "*(code *)PTR_fileno_00031294" * (cast_expression "(code *)PTR_fileno_00031294" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);" (assignment_expression "lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1)" identifier = (call_expression "(*(code *)PTR_lseek64_000312e4)(uVar1)" (parenthesized_expression "(*(code *)PTR_lseek64_000312e4)" ( (pointer_expression "*(code *)PTR_lseek64_000312e4" * (cast_expression "(code *)PTR_lseek64_000312e4" ( (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      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\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      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }" else (compound_statement "{\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }" { (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) ;) (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)) ;) }))) (return_statement "return uVar1;" return identifier ;) })) comment comment (expression_statement "uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);" (assignment_expression "uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1)" identifier = (call_expression "(*(code *)PTR_fseeko64_00031280)(param_1)" (parenthesized_expression "(*(code *)PTR_fseeko64_00031280)" ( (pointer_expression "*(code *)PTR_fseeko64_00031280" * (cast_expression "(code *)PTR_fseeko64_00031280" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( 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  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_00031294)();\n    lVar3 = (*(code *)PTR_lseek64_000312e4)(uVar2);\n    if (lVar3 == -1) {\n      iVar1 = -1;\n    }\n    else {\n      fp->_offset = lVar3;\n      iVar1 = 0;\n      fp->_flags = fp->_flags & 0xffffffef;\n    }\n    return iVar1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001b5bc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*(code *)PTR_fseeko64_00031280)(fp);\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  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_00031294)();\n    lVar3 = (*(code *)PTR_lseek64_000312e4)(uVar2);\n    if (lVar3 == -1) {\n      iVar1 = -1;\n    }\n    else {\n      fp->_offset = lVar3;\n      iVar1 = 0;\n      fp->_flags = fp->_flags & 0xffffffef;\n    }\n    return iVar1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001b5bc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*(code *)PTR_fseeko64_00031280)(fp);\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  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_00031294)();\n    lVar3 = (*(code *)PTR_lseek64_000312e4)(uVar2);\n    if (lVar3 == -1) {\n      iVar1 = -1;\n    }\n    else {\n      fp->_offset = lVar3;\n      iVar1 = 0;\n      fp->_flags = fp->_flags & 0xffffffef;\n    }\n    return iVar1;\n  }\n                    /* WARNING: Could not recover jumptable at 0x0001b5bc. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  iVar1 = (*(code *)PTR_fseeko64_00031280)(fp);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" 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_00031294)();\n    lVar3 = (*(code *)PTR_lseek64_000312e4)(uVar2);\n    if (lVar3 == -1) {\n      iVar1 = -1;\n    }\n    else {\n      fp->_offset = lVar3;\n      iVar1 = 0;\n      fp->_flags = fp->_flags & 0xffffffef;\n    }\n    return iVar1;\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_00031294)();\n    lVar3 = (*(code *)PTR_lseek64_000312e4)(uVar2);\n    if (lVar3 == -1) {\n      iVar1 = -1;\n    }\n    else {\n      fp->_offset = lVar3;\n      iVar1 = 0;\n      fp->_flags = fp->_flags & 0xffffffef;\n    }\n    return iVar1;\n  }" { (expression_statement "uVar2 = (*(code *)PTR_fileno_00031294)();" (assignment_expression "uVar2 = (*(code *)PTR_fileno_00031294)()" identifier = (call_expression "(*(code *)PTR_fileno_00031294)()" (parenthesized_expression "(*(code *)PTR_fileno_00031294)" ( (pointer_expression "*(code *)PTR_fileno_00031294" * (cast_expression "(code *)PTR_fileno_00031294" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "lVar3 = (*(code *)PTR_lseek64_000312e4)(uVar2);" (assignment_expression "lVar3 = (*(code *)PTR_lseek64_000312e4)(uVar2)" identifier = (call_expression "(*(code *)PTR_lseek64_000312e4)(uVar2)" (parenthesized_expression "(*(code *)PTR_lseek64_000312e4)" ( (pointer_expression "*(code *)PTR_lseek64_000312e4" * (cast_expression "(code *)PTR_lseek64_000312e4" ( (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->_offset = lVar3;\n      iVar1 = 0;\n      fp->_flags = fp->_flags & 0xffffffef;\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->_offset = lVar3;\n      iVar1 = 0;\n      fp->_flags = fp->_flags & 0xffffffef;\n    }" else (compound_statement "{\n      fp->_offset = lVar3;\n      iVar1 = 0;\n      fp->_flags = fp->_flags & 0xffffffef;\n    }" { (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) ;) (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)) ;) }))) (return_statement "return iVar1;" return identifier ;) })) comment comment (expression_statement "iVar1 = (*(code *)PTR_fseeko64_00031280)(fp);" (assignment_expression "iVar1 = (*(code *)PTR_fseeko64_00031280)(fp)" identifier = (call_expression "(*(code *)PTR_fseeko64_00031280)(fp)" (parenthesized_expression "(*(code *)PTR_fseeko64_00031280)" ( (pointer_expression "*(code *)PTR_fseeko64_00031280" * (cast_expression "(code *)PTR_fseeko64_00031280" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fp)" ( identifier )))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 rpl_fseeko(uint *param_1)\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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\n  }\n                    \n                    \n  uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);\n  return uVar1;\n}\n\n" (function_definition "undefined4 rpl_fseeko(uint *param_1)\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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\n  }\n                    \n                    \n  uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);\n  return uVar1;\n}" type_identifier (function_declarator "rpl_fseeko(uint *param_1)" identifier (parameter_list "(uint *param_1)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * 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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\n  }\n                    \n                    \n  uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);\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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\n  }" { (expression_statement "uVar1 = (*(code *)PTR_fileno_00031294)();" (assignment_expression "uVar1 = (*(code *)PTR_fileno_00031294)()" identifier = (call_expression "(*(code *)PTR_fileno_00031294)()" (parenthesized_expression "(*(code *)PTR_fileno_00031294)" ( (pointer_expression "*(code *)PTR_fileno_00031294" * (cast_expression "(code *)PTR_fileno_00031294" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);" (assignment_expression "lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1)" identifier = (call_expression "(*(code *)PTR_lseek64_000312e4)(uVar1)" (parenthesized_expression "(*(code *)PTR_lseek64_000312e4)" ( (pointer_expression "*(code *)PTR_lseek64_000312e4" * (cast_expression "(code *)PTR_lseek64_000312e4" ( (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      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\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      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }" else (compound_statement "{\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }" { (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) ;) (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)) ;) }))) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);" (assignment_expression "uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1)" identifier = (call_expression "(*(code *)PTR_fseeko64_00031280)(param_1)" (parenthesized_expression "(*(code *)PTR_fseeko64_00031280)" ( (pointer_expression "*(code *)PTR_fseeko64_00031280" * (cast_expression "(code *)PTR_fseeko64_00031280" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * 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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) & LIT)) ;) }))) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 rpl_fseeko(uint *param_1)\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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\n  }\n                    \n                    \n  uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "rpl_fseeko(uint *param_1)" (identifier "rpl_fseeko") (parameter_list "(uint *param_1)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\n  }\n                    \n                    \n  uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);\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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\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_00031294)();\n    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);\n    if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }\n    return uVar1;\n  }" ({ "{") (expression_statement "uVar1 = (*(code *)PTR_fileno_00031294)();" (assignment_expression "uVar1 = (*(code *)PTR_fileno_00031294)()" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_fileno_00031294)()" (parenthesized_expression "(*(code *)PTR_fileno_00031294)" (( "(") (pointer_expression "*(code *)PTR_fileno_00031294" (* "*") (cast_expression "(code *)PTR_fileno_00031294" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fileno_00031294"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);" (assignment_expression "lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1)" (identifier "lVar2") (= "=") (call_expression "(*(code *)PTR_lseek64_000312e4)(uVar1)" (parenthesized_expression "(*(code *)PTR_lseek64_000312e4)" (( "(") (pointer_expression "*(code *)PTR_lseek64_000312e4" (* "*") (cast_expression "(code *)PTR_lseek64_000312e4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_lseek64_000312e4"))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")")))) (; ";")) (if_statement "if (lVar2 == -1) {\n      uVar1 = 0xffffffff;\n    }\n    else {\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\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      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }" (else "else") (compound_statement "{\n      *(longlong *)(param_1 + 0x14) = lVar2;\n      uVar1 = 0;\n      *param_1 = *param_1 & 0xffffffef;\n    }" ({ "{") (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")) (; ";")) (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"))) (; ";")) (} "}")))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);" (assignment_expression "uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_fseeko64_00031280)(param_1)" (parenthesized_expression "(*(code *)PTR_fseeko64_00031280)" (( "(") (pointer_expression "*(code *)PTR_fseeko64_00031280" (* "*") (cast_expression "(code *)PTR_fseeko64_00031280" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fseeko64_00031280"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))
(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))))) 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: (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))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) (return_statement (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))))) (return_statement (identifier)))))

undefined4 MASKED(uint *param_1)

{
  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_00031294)();
    lVar2 = (*(code *)PTR_lseek64_000312e4)(uVar1);
    if (lVar2 == -1) {
      uVar1 = 0xffffffff;
    }
    else {
      *(longlong *)(param_1 + 0x14) = lVar2;
      uVar1 = 0;
      *param_1 = *param_1 & 0xffffffef;
    }
    return uVar1;
  }
                    /* WARNING: Could not recover jumptable at 0x0001b5bc. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar1 = (*(code *)PTR_fseeko64_00031280)(param_1);
  return uVar1;
}

