
/* std::wfilebuf::_M_seek(long long, std::_Ios_Seekdir, __mbstate_t) */

undefined4 * std::wfilebuf::_M_seek(undefined4 *param_1,wfilebuf *param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  longlong lVar4;
  undefined4 in_stack_00000014;
  undefined4 in_stack_00000018;
  
  param_1[1] = 0xffffffff;
  *param_1 = 0xffffffff;
  param_1[2] = 0;
  param_1[3] = 0;
  iVar1 = _M_terminate_output(param_2);
  if (iVar1 != 0) {
    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);
    if (lVar4 != -1) {
      uVar3 = *(undefined4 *)(param_2 + 0x7c);
      uVar2 = *(undefined4 *)(param_2 + 0x5c);
      *param_1 = (int)((ulonglong)lVar4 >> 0x20);
      param_2[0x65] = (wfilebuf)0x0;
      param_2[0x66] = (wfilebuf)0x0;
      *(undefined4 *)(param_2 + 0x88) = uVar3;
      *(undefined4 *)(param_2 + 0x84) = uVar3;
      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;
      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;
      param_1[1] = (int)lVar4;
      param_1[2] = in_stack_00000014;
      param_1[3] = in_stack_00000018;
      *(undefined4 *)(param_2 + 4) = uVar2;
      *(undefined4 *)(param_2 + 8) = uVar2;
      *(undefined4 *)(param_2 + 0xc) = uVar2;
      *(undefined4 *)(param_2 + 0x14) = 0;
      *(undefined4 *)(param_2 + 0x10) = 0;
      *(undefined4 *)(param_2 + 0x18) = 0;
      return param_1;
    }
  }
  return param_1;
}



/* std::wfilebuf::_M_seek(long long, std::_Ios_Seekdir, __mbstate_t) */

undefined4 * std::wfilebuf::_M_seek(undefined4 *param_1,wfilebuf *param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  longlong lVar4;
  undefined4 in_stack_00000014;
  undefined4 in_stack_00000018;
  
  param_1[1] = 0xffffffff;
  *param_1 = 0xffffffff;
  param_1[2] = 0;
  param_1[3] = 0;
  iVar1 = _M_terminate_output(param_2);
  if (iVar1 != 0) {
    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);
    if (lVar4 != -1) {
      uVar3 = *(undefined4 *)(param_2 + 0x7c);
      uVar2 = *(undefined4 *)(param_2 + 0x5c);
      *param_1 = (int)((ulonglong)lVar4 >> 0x20);
      param_2[0x65] = (wfilebuf)0x0;
      param_2[0x66] = (wfilebuf)0x0;
      *(undefined4 *)(param_2 + 0x88) = uVar3;
      *(undefined4 *)(param_2 + 0x84) = uVar3;
      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;
      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;
      param_1[1] = (int)lVar4;
      param_1[2] = in_stack_00000014;
      param_1[3] = in_stack_00000018;
      *(undefined4 *)(param_2 + 4) = uVar2;
      *(undefined4 *)(param_2 + 8) = uVar2;
      *(undefined4 *)(param_2 + 0xc) = uVar2;
      *(undefined4 *)(param_2 + 0x14) = 0;
      *(undefined4 *)(param_2 + 0x10) = 0;
      *(undefined4 *)(param_2 + 0x18) = 0;
      return param_1;
    }
  }
  return param_1;
}


lui gp,0x16
addiu gp,gp,-0x7034
addu gp,gp,t9
addiu sp,sp,-0x40
lw t9,-0x3d84(gp)
li v1,-0x1
li v0,-0x1
sw s0,0x2c(sp)
or s0,a0,zero
sw gp,0x18(sp)
or a0,a1,zero
sw s3,0x38(sp)
or s3,a3,zero
sw s2,0x34(sp)
or s2,a2,zero
sw s1,0x30(sp)
or s1,a1,zero
sw ra,0x3c(sp)
sw v1,0x4(s0)
sw v0,0x0(s0)
sw zero,0x8(s0)
bal 0x0036f078
_sw zero,0xc(s0)
bne v0,zero,0x003702f8
_lw gp,0x18(sp)
lw ra,0x3c(sp)
or v0,s0,zero
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
lw v0,0x50(sp)
addiu a0,s1,0x38
lw t9,-0x3db0(gp)
or a3,s3,zero
or a2,s2,zero
jalr t9
_sw v0,0x10(sp)
li a0,-0x1
beq v0,a0,0x00370390
_nop
lw a3,0x7c(s1)
lw a2,0x54(sp)
lw a1,0x58(sp)
lw a0,0x5c(s1)
sw v0,0x0(s0)
or v0,s0,zero
sb zero,0x65(s1)
sb zero,0x66(s1)
sw a3,0x88(s1)
sw a3,0x84(s1)
sw a2,0x4c(s1)
sw a1,0x50(s1)
sw v1,0x4(s0)
sw a2,0x8(s0)
sw a1,0xc(s0)
sw a0,0x4(s1)
sw a0,0x8(s1)
sw a0,0xc(s1)
sw zero,0x14(s1)
sw zero,0x10(s1)
sw zero,0x18(s1)
lw ra,0x3c(sp)
lw s3,0x38(sp)
lw s2,0x34(sp)
lw s1,0x30(sp)
lw s0,0x2c(sp)
jr ra
_addiu sp,sp,0x40
bne v1,v0,0x00370320
_lw ra,0x3c(sp)
b 0x003702e0
_or v0,s0,zero
(translation_unit "/* std::wfilebuf::_M_seek(long long, std::_Ios_Seekdir, __mbstate_t) */\n\nundefined4 * std::wfilebuf::_M_seek(undefined4 *param_1,wfilebuf *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  \n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  param_1[2] = 0;\n  param_1[3] = 0;\n  iVar1 = _M_terminate_output(param_2);\n  if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" comment (ERROR "undefined4 * std::" (binary_expression "undefined4 * std" identifier * identifier) : :) (labeled_statement "wfilebuf::_M_seek(undefined4 *param_1,wfilebuf *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  \n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  param_1[2] = 0;\n  param_1[3] = 0;\n  iVar1 = _M_terminate_output(param_2);\n  if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }\n  return param_1;\n}" statement_identifier : (ERROR ":_M_seek(undefined4 *param_1,wfilebuf *param_2)" : (call_expression "_M_seek(undefined4 *param_1,wfilebuf *param_2)" identifier (argument_list "(undefined4 *param_1,wfilebuf *param_2)" ( (binary_expression "undefined4 *param_1" identifier * identifier) , (binary_expression "wfilebuf *param_2" identifier * identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  \n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  param_1[2] = 0;\n  param_1[3] = 0;\n  iVar1 = _M_terminate_output(param_2);\n  if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "longlong lVar4;" type_identifier identifier ;) (declaration "undefined4 in_stack_00000014;" type_identifier identifier ;) (declaration "undefined4 in_stack_00000018;" type_identifier identifier ;) (expression_statement "param_1[1] = 0xffffffff;" (assignment_expression "param_1[1] = 0xffffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = _M_terminate_output(param_2);" (assignment_expression "iVar1 = _M_terminate_output(param_2)" identifier = (call_expression "_M_terminate_output(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }" { (expression_statement "lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);" (assignment_expression "lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38)" identifier = (call_expression "(*(code *)PTR_seekoff_004c5490)(param_2 + 0x38)" (parenthesized_expression "(*(code *)PTR_seekoff_004c5490)" ( (pointer_expression "*(code *)PTR_seekoff_004c5490" * (cast_expression "(code *)PTR_seekoff_004c5490" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) ;) (if_statement "if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }" if (parenthesized_expression "(lVar4 != -1)" ( (binary_expression "lVar4 != -1" identifier != number_literal) )) (compound_statement "{\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }" { (expression_statement "uVar3 = *(undefined4 *)(param_2 + 0x7c);" (assignment_expression "uVar3 = *(undefined4 *)(param_2 + 0x7c)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x7c)" * (cast_expression "(undefined4 *)(param_2 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x7c)" ( (binary_expression "param_2 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x5c)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x5c)" * (cast_expression "(undefined4 *)(param_2 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c)" ( (binary_expression "param_2 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = (int)((ulonglong)lVar4 >> 0x20);" (assignment_expression "*param_1 = (int)((ulonglong)lVar4 >> 0x20)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)((ulonglong)lVar4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)lVar4 >> 0x20)" ( (binary_expression "(ulonglong)lVar4 >> 0x20" (cast_expression "(ulonglong)lVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_2[0x65] = (wfilebuf)0x0;" (assignment_expression "param_2[0x65] = (wfilebuf)0x0" (subscript_expression "param_2[0x65]" identifier [ number_literal ]) = (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) ;) (expression_statement "param_2[0x66] = (wfilebuf)0x0;" (assignment_expression "param_2[0x66] = (wfilebuf)0x0" (subscript_expression "param_2[0x66]" identifier [ number_literal ]) = (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) ;) (expression_statement "*(undefined4 *)(param_2 + 0x88) = uVar3;" (assignment_expression "*(undefined4 *)(param_2 + 0x88) = uVar3" (pointer_expression "*(undefined4 *)(param_2 + 0x88)" * (cast_expression "(undefined4 *)(param_2 + 0x88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x88)" ( (binary_expression "param_2 + 0x88" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0x84) = uVar3;" (assignment_expression "*(undefined4 *)(param_2 + 0x84) = uVar3" (pointer_expression "*(undefined4 *)(param_2 + 0x84)" * (cast_expression "(undefined4 *)(param_2 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x84)" ( (binary_expression "param_2 + 0x84" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;" (assignment_expression "*(undefined4 *)(param_2 + 0x4c) = in_stack_00000014" (pointer_expression "*(undefined4 *)(param_2 + 0x4c)" * (cast_expression "(undefined4 *)(param_2 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x4c)" ( (binary_expression "param_2 + 0x4c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0x50) = in_stack_00000018;" (assignment_expression "*(undefined4 *)(param_2 + 0x50) = in_stack_00000018" (pointer_expression "*(undefined4 *)(param_2 + 0x50)" * (cast_expression "(undefined4 *)(param_2 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x50)" ( (binary_expression "param_2 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_1[1] = (int)lVar4;" (assignment_expression "param_1[1] = (int)lVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(int)lVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = in_stack_00000014;" (assignment_expression "param_1[2] = in_stack_00000014" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = in_stack_00000018;" (assignment_expression "param_1[3] = in_stack_00000018" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 4) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 4) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 8) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_2 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* std::wfilebuf::_M_seek(long long, std::_Ios_Seekdir, __mbstate_t) */\n\nundefined4 * std::wfilebuf::_M_seek(undefined4 *param_1,wfilebuf *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  \n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  param_1[2] = 0;\n  param_1[3] = 0;\n  iVar1 = _M_terminate_output(param_2);\n  if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" comment (ERROR "undefined4 * std::" (binary_expression "undefined4 * std" identifier * identifier) : :) (labeled_statement "wfilebuf::_M_seek(undefined4 *param_1,wfilebuf *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  \n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  param_1[2] = 0;\n  param_1[3] = 0;\n  iVar1 = _M_terminate_output(param_2);\n  if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }\n  return param_1;\n}" statement_identifier : (ERROR ":_M_seek(undefined4 *param_1,wfilebuf *param_2)" : (call_expression "_M_seek(undefined4 *param_1,wfilebuf *param_2)" identifier (argument_list "(undefined4 *param_1,wfilebuf *param_2)" ( (binary_expression "undefined4 *param_1" identifier * identifier) , (binary_expression "wfilebuf *param_2" identifier * identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  \n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  param_1[2] = 0;\n  param_1[3] = 0;\n  iVar1 = _M_terminate_output(param_2);\n  if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "longlong lVar4;" type_identifier identifier ;) (declaration "undefined4 in_stack_00000014;" type_identifier identifier ;) (declaration "undefined4 in_stack_00000018;" type_identifier identifier ;) (expression_statement "param_1[1] = 0xffffffff;" (assignment_expression "param_1[1] = 0xffffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = _M_terminate_output(param_2);" (assignment_expression "iVar1 = _M_terminate_output(param_2)" identifier = (call_expression "_M_terminate_output(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }" { (expression_statement "lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);" (assignment_expression "lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38)" identifier = (call_expression "(*(code *)PTR_seekoff_004c5490)(param_2 + 0x38)" (parenthesized_expression "(*(code *)PTR_seekoff_004c5490)" ( (pointer_expression "*(code *)PTR_seekoff_004c5490" * (cast_expression "(code *)PTR_seekoff_004c5490" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) ;) (if_statement "if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }" if (parenthesized_expression "(lVar4 != -1)" ( (binary_expression "lVar4 != -1" identifier != number_literal) )) (compound_statement "{\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }" { (expression_statement "uVar3 = *(undefined4 *)(param_2 + 0x7c);" (assignment_expression "uVar3 = *(undefined4 *)(param_2 + 0x7c)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x7c)" * (cast_expression "(undefined4 *)(param_2 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x7c)" ( (binary_expression "param_2 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x5c)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x5c)" * (cast_expression "(undefined4 *)(param_2 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c)" ( (binary_expression "param_2 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = (int)((ulonglong)lVar4 >> 0x20);" (assignment_expression "*param_1 = (int)((ulonglong)lVar4 >> 0x20)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)((ulonglong)lVar4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)lVar4 >> 0x20)" ( (binary_expression "(ulonglong)lVar4 >> 0x20" (cast_expression "(ulonglong)lVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_2[0x65] = (wfilebuf)0x0;" (assignment_expression "param_2[0x65] = (wfilebuf)0x0" (subscript_expression "param_2[0x65]" identifier [ number_literal ]) = (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) ;) (expression_statement "param_2[0x66] = (wfilebuf)0x0;" (assignment_expression "param_2[0x66] = (wfilebuf)0x0" (subscript_expression "param_2[0x66]" identifier [ number_literal ]) = (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) ;) (expression_statement "*(undefined4 *)(param_2 + 0x88) = uVar3;" (assignment_expression "*(undefined4 *)(param_2 + 0x88) = uVar3" (pointer_expression "*(undefined4 *)(param_2 + 0x88)" * (cast_expression "(undefined4 *)(param_2 + 0x88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x88)" ( (binary_expression "param_2 + 0x88" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0x84) = uVar3;" (assignment_expression "*(undefined4 *)(param_2 + 0x84) = uVar3" (pointer_expression "*(undefined4 *)(param_2 + 0x84)" * (cast_expression "(undefined4 *)(param_2 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x84)" ( (binary_expression "param_2 + 0x84" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;" (assignment_expression "*(undefined4 *)(param_2 + 0x4c) = in_stack_00000014" (pointer_expression "*(undefined4 *)(param_2 + 0x4c)" * (cast_expression "(undefined4 *)(param_2 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x4c)" ( (binary_expression "param_2 + 0x4c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0x50) = in_stack_00000018;" (assignment_expression "*(undefined4 *)(param_2 + 0x50) = in_stack_00000018" (pointer_expression "*(undefined4 *)(param_2 + 0x50)" * (cast_expression "(undefined4 *)(param_2 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x50)" ( (binary_expression "param_2 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_1[1] = (int)lVar4;" (assignment_expression "param_1[1] = (int)lVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(int)lVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = in_stack_00000014;" (assignment_expression "param_1[2] = in_stack_00000014" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = in_stack_00000018;" (assignment_expression "param_1[3] = in_stack_00000018" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 4) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 4) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 8) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_2 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "undefined4 * std::wfilebuf::_M_seek(undefined4 *param_1,wfilebuf *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  \n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  param_1[2] = 0;\n  param_1[3] = 0;\n  iVar1 = _M_terminate_output(param_2);\n  if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }\n  return param_1;\n}\n\n" (ERROR "undefined4 * std::" (binary_expression "undefined4 * std" identifier * identifier) : :) (labeled_statement "wfilebuf::_M_seek(undefined4 *param_1,wfilebuf *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  \n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  param_1[2] = 0;\n  param_1[3] = 0;\n  iVar1 = _M_terminate_output(param_2);\n  if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }\n  return param_1;\n}" statement_identifier : (ERROR ":_M_seek(undefined4 *param_1,wfilebuf *param_2)" : (call_expression "_M_seek(undefined4 *param_1,wfilebuf *param_2)" identifier (argument_list "(undefined4 *param_1,wfilebuf *param_2)" ( (binary_expression "undefined4 *param_1" identifier * identifier) , (binary_expression "wfilebuf *param_2" identifier * identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  \n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  param_1[2] = 0;\n  param_1[3] = 0;\n  iVar1 = _M_terminate_output(param_2);\n  if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }\n  return param_1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "longlong lVar4;" type_identifier identifier ;) (declaration "undefined4 in_stack_00000014;" type_identifier identifier ;) (declaration "undefined4 in_stack_00000018;" type_identifier identifier ;) (expression_statement "param_1[1] = 0xffffffff;" (assignment_expression "param_1[1] = 0xffffffff" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = _M_terminate_output(param_2);" (assignment_expression "iVar1 = _M_terminate_output(param_2)" identifier = (call_expression "_M_terminate_output(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }" { (expression_statement "lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);" (assignment_expression "lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38)" identifier = (call_expression "(*(code *)PTR_seekoff_004c5490)(param_2 + 0x38)" (parenthesized_expression "(*(code *)PTR_seekoff_004c5490)" ( (pointer_expression "*(code *)PTR_seekoff_004c5490" * (cast_expression "(code *)PTR_seekoff_004c5490" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) ;) (if_statement "if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }" if (parenthesized_expression "(lVar4 != -1)" ( (binary_expression "lVar4 != -1" identifier != number_literal) )) (compound_statement "{\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }" { (expression_statement "uVar3 = *(undefined4 *)(param_2 + 0x7c);" (assignment_expression "uVar3 = *(undefined4 *)(param_2 + 0x7c)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x7c)" * (cast_expression "(undefined4 *)(param_2 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x7c)" ( (binary_expression "param_2 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x5c)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x5c)" * (cast_expression "(undefined4 *)(param_2 + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x5c)" ( (binary_expression "param_2 + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = (int)((ulonglong)lVar4 >> 0x20);" (assignment_expression "*param_1 = (int)((ulonglong)lVar4 >> 0x20)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)((ulonglong)lVar4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)lVar4 >> 0x20)" ( (binary_expression "(ulonglong)lVar4 >> 0x20" (cast_expression "(ulonglong)lVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "param_2[0x65] = (wfilebuf)0x0;" (assignment_expression "param_2[0x65] = (wfilebuf)0x0" (subscript_expression "param_2[0x65]" identifier [ number_literal ]) = (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) ;) (expression_statement "param_2[0x66] = (wfilebuf)0x0;" (assignment_expression "param_2[0x66] = (wfilebuf)0x0" (subscript_expression "param_2[0x66]" identifier [ number_literal ]) = (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) ;) (expression_statement "*(undefined4 *)(param_2 + 0x88) = uVar3;" (assignment_expression "*(undefined4 *)(param_2 + 0x88) = uVar3" (pointer_expression "*(undefined4 *)(param_2 + 0x88)" * (cast_expression "(undefined4 *)(param_2 + 0x88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x88)" ( (binary_expression "param_2 + 0x88" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0x84) = uVar3;" (assignment_expression "*(undefined4 *)(param_2 + 0x84) = uVar3" (pointer_expression "*(undefined4 *)(param_2 + 0x84)" * (cast_expression "(undefined4 *)(param_2 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x84)" ( (binary_expression "param_2 + 0x84" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;" (assignment_expression "*(undefined4 *)(param_2 + 0x4c) = in_stack_00000014" (pointer_expression "*(undefined4 *)(param_2 + 0x4c)" * (cast_expression "(undefined4 *)(param_2 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x4c)" ( (binary_expression "param_2 + 0x4c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0x50) = in_stack_00000018;" (assignment_expression "*(undefined4 *)(param_2 + 0x50) = in_stack_00000018" (pointer_expression "*(undefined4 *)(param_2 + 0x50)" * (cast_expression "(undefined4 *)(param_2 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x50)" ( (binary_expression "param_2 + 0x50" identifier + number_literal) )))) = identifier) ;) (expression_statement "param_1[1] = (int)lVar4;" (assignment_expression "param_1[1] = (int)lVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (cast_expression "(int)lVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "param_1[2] = in_stack_00000014;" (assignment_expression "param_1[2] = in_stack_00000014" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = in_stack_00000018;" (assignment_expression "param_1[3] = in_stack_00000018" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 4) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 4) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 8) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_2 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" * (cast_expression "(undefined4 *)(param_2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_2 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(param_2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x18)" * (cast_expression "(undefined4 *)(param_2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (ERROR (binary_expression IDENT * IDENT) : :) (labeled_statement statement_identifier : (ERROR : (call_expression IDENT (argument_list ( (binary_expression IDENT * IDENT) , (binary_expression IDENT * IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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 ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) })) (return_statement return IDENT ;) })))
(ERROR "undefined4 * std::" (binary_expression "undefined4 * std" (identifier "undefined4") (* "*") (identifier "std")) (: ":") (: ":")) (labeled_statement "wfilebuf::_M_seek(undefined4 *param_1,wfilebuf *param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  \n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  param_1[2] = 0;\n  param_1[3] = 0;\n  iVar1 = _M_terminate_output(param_2);\n  if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }\n  return param_1;\n}" (statement_identifier "wfilebuf") (: ":") (ERROR ":_M_seek(undefined4 *param_1,wfilebuf *param_2)" (: ":") (call_expression "_M_seek(undefined4 *param_1,wfilebuf *param_2)" (identifier "_M_seek") (argument_list "(undefined4 *param_1,wfilebuf *param_2)" (( "(") (binary_expression "undefined4 *param_1" (identifier "undefined4") (* "*") (identifier "param_1")) (, ",") (binary_expression "wfilebuf *param_2" (identifier "wfilebuf") (* "*") (identifier "param_2")) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  longlong lVar4;\n  undefined4 in_stack_00000014;\n  undefined4 in_stack_00000018;\n  \n  param_1[1] = 0xffffffff;\n  *param_1 = 0xffffffff;\n  param_1[2] = 0;\n  param_1[3] = 0;\n  iVar1 = _M_terminate_output(param_2);\n  if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }\n  return param_1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "longlong lVar4;" (type_identifier "longlong") (identifier "lVar4") (; ";")) (declaration "undefined4 in_stack_00000014;" (type_identifier "undefined4") (identifier "in_stack_00000014") (; ";")) (declaration "undefined4 in_stack_00000018;" (type_identifier "undefined4") (identifier "in_stack_00000018") (; ";")) (expression_statement "param_1[1] = 0xffffffff;" (assignment_expression "param_1[1] = 0xffffffff" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "param_1[2] = 0;" (assignment_expression "param_1[2] = 0" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[3] = 0;" (assignment_expression "param_1[3] = 0" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = _M_terminate_output(param_2);" (assignment_expression "iVar1 = _M_terminate_output(param_2)" (identifier "iVar1") (= "=") (call_expression "_M_terminate_output(param_2)" (identifier "_M_terminate_output") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);\n    if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);" (assignment_expression "lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38)" (identifier "lVar4") (= "=") (call_expression "(*(code *)PTR_seekoff_004c5490)(param_2 + 0x38)" (parenthesized_expression "(*(code *)PTR_seekoff_004c5490)" (( "(") (pointer_expression "*(code *)PTR_seekoff_004c5490" (* "*") (cast_expression "(code *)PTR_seekoff_004c5490" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_seekoff_004c5490"))) () ")")) (argument_list "(param_2 + 0x38)" (( "(") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38")) () ")")))) (; ";")) (if_statement "if (lVar4 != -1) {\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }" (if "if") (parenthesized_expression "(lVar4 != -1)" (( "(") (binary_expression "lVar4 != -1" (identifier "lVar4") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n      uVar3 = *(undefined4 *)(param_2 + 0x7c);\n      uVar2 = *(undefined4 *)(param_2 + 0x5c);\n      *param_1 = (int)((ulonglong)lVar4 >> 0x20);\n      param_2[0x65] = (wfilebuf)0x0;\n      param_2[0x66] = (wfilebuf)0x0;\n      *(undefined4 *)(param_2 + 0x88) = uVar3;\n      *(undefined4 *)(param_2 + 0x84) = uVar3;\n      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;\n      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;\n      param_1[1] = (int)lVar4;\n      param_1[2] = in_stack_00000014;\n      param_1[3] = in_stack_00000018;\n      *(undefined4 *)(param_2 + 4) = uVar2;\n      *(undefined4 *)(param_2 + 8) = uVar2;\n      *(undefined4 *)(param_2 + 0xc) = uVar2;\n      *(undefined4 *)(param_2 + 0x14) = 0;\n      *(undefined4 *)(param_2 + 0x10) = 0;\n      *(undefined4 *)(param_2 + 0x18) = 0;\n      return param_1;\n    }" ({ "{") (expression_statement "uVar3 = *(undefined4 *)(param_2 + 0x7c);" (assignment_expression "uVar3 = *(undefined4 *)(param_2 + 0x7c)" (identifier "uVar3") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x7c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x7c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x7c)" (( "(") (binary_expression "param_2 + 0x7c" (identifier "param_2") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "uVar2 = *(undefined4 *)(param_2 + 0x5c);" (assignment_expression "uVar2 = *(undefined4 *)(param_2 + 0x5c)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x5c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x5c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x5c)" (( "(") (binary_expression "param_2 + 0x5c" (identifier "param_2") (+ "+") (number_literal "0x5c")) () ")"))))) (; ";")) (expression_statement "*param_1 = (int)((ulonglong)lVar4 >> 0x20);" (assignment_expression "*param_1 = (int)((ulonglong)lVar4 >> 0x20)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)((ulonglong)lVar4 >> 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((ulonglong)lVar4 >> 0x20)" (( "(") (binary_expression "(ulonglong)lVar4 >> 0x20" (cast_expression "(ulonglong)lVar4" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "lVar4")) (>> ">>") (number_literal "0x20")) () ")")))) (; ";")) (expression_statement "param_2[0x65] = (wfilebuf)0x0;" (assignment_expression "param_2[0x65] = (wfilebuf)0x0" (subscript_expression "param_2[0x65]" (identifier "param_2") ([ "[") (number_literal "0x65") (] "]")) (= "=") (cast_expression "(wfilebuf)0x0" (( "(") (type_descriptor "wfilebuf" (type_identifier "wfilebuf")) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "param_2[0x66] = (wfilebuf)0x0;" (assignment_expression "param_2[0x66] = (wfilebuf)0x0" (subscript_expression "param_2[0x66]" (identifier "param_2") ([ "[") (number_literal "0x66") (] "]")) (= "=") (cast_expression "(wfilebuf)0x0" (( "(") (type_descriptor "wfilebuf" (type_identifier "wfilebuf")) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x88) = uVar3;" (assignment_expression "*(undefined4 *)(param_2 + 0x88) = uVar3" (pointer_expression "*(undefined4 *)(param_2 + 0x88)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x88)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x88)" (( "(") (binary_expression "param_2 + 0x88" (identifier "param_2") (+ "+") (number_literal "0x88")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x84) = uVar3;" (assignment_expression "*(undefined4 *)(param_2 + 0x84) = uVar3" (pointer_expression "*(undefined4 *)(param_2 + 0x84)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x84)" (( "(") (binary_expression "param_2 + 0x84" (identifier "param_2") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;" (assignment_expression "*(undefined4 *)(param_2 + 0x4c) = in_stack_00000014" (pointer_expression "*(undefined4 *)(param_2 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x4c)" (( "(") (binary_expression "param_2 + 0x4c" (identifier "param_2") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (identifier "in_stack_00000014")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x50) = in_stack_00000018;" (assignment_expression "*(undefined4 *)(param_2 + 0x50) = in_stack_00000018" (pointer_expression "*(undefined4 *)(param_2 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x50)" (( "(") (binary_expression "param_2 + 0x50" (identifier "param_2") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (identifier "in_stack_00000018")) (; ";")) (expression_statement "param_1[1] = (int)lVar4;" (assignment_expression "param_1[1] = (int)lVar4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)lVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar4"))) (; ";")) (expression_statement "param_1[2] = in_stack_00000014;" (assignment_expression "param_1[2] = in_stack_00000014" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "in_stack_00000014")) (; ";")) (expression_statement "param_1[3] = in_stack_00000018;" (assignment_expression "param_1[3] = in_stack_00000018" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "in_stack_00000018")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 4) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 4) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 8) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(param_2 + 0xc) = uVar2" (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x14) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x10) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x18) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* std::wfilebuf::_M_seek(long long, std::_Ios_Seekdir, __mbstate_t) */

type_1 * std::wfilebuf::_M_seek(type_1 *param_1,type_5 *var_3)

{
  int var_2;
  type_1 uVar2;
  type_1 uVar3;
  type_2 var_4;
  type_1 in_stack_00000014;
  type_1 in_stack_00000018;
  
  param_1[1] = 0xffffffff;
  *param_1 = 0xffffffff;
  param_1[2] = 0;
  param_1[3] = 0;
  var_2 = var_1(var_3);
  if (var_2 != 0) {
    var_4 = (*(type_3 *)PTR_seekoff_004c5490)(var_3 + 0x38);
    if (var_4 != -1) {
      uVar3 = *(type_1 *)(var_3 + 0x7c);
      uVar2 = *(type_1 *)(var_3 + 0x5c);
      *param_1 = (int)((type_4)var_4 >> 0x20);
      var_3[0x65] = (type_5)0x0;
      var_3[0x66] = (type_5)0x0;
      *(type_1 *)(var_3 + 0x88) = uVar3;
      *(type_1 *)(var_3 + 0x84) = uVar3;
      *(type_1 *)(var_3 + 0x4c) = in_stack_00000014;
      *(type_1 *)(var_3 + 0x50) = in_stack_00000018;
      param_1[1] = (int)var_4;
      param_1[2] = in_stack_00000014;
      param_1[3] = in_stack_00000018;
      *(type_1 *)(var_3 + 4) = uVar2;
      *(type_1 *)(var_3 + 8) = uVar2;
      *(type_1 *)(var_3 + 0xc) = uVar2;
      *(type_1 *)(var_3 + 0x14) = 0;
      *(type_1 *)(var_3 + 0x10) = 0;
      *(type_1 *)(var_3 + 0x18) = 0;
      return param_1;
    }
  }
  return param_1;
}


(translation_unit (ERROR (binary_expression left: (identifier) right: (identifier))) (labeled_statement label: (statement_identifier) (ERROR (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (binary_expression left: (identifier) right: (identifier))))) (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (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: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (identifier)))))) (return_statement (identifier)))))

/* std::wfilebuf::MASKED(long long, std::_Ios_Seekdir, __mbstate_t) */

undefined4 * std::wfilebuf::MASKED(undefined4 *param_1,wfilebuf *param_2)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  longlong lVar4;
  undefined4 in_stack_00000014;
  undefined4 in_stack_00000018;
  
  param_1[1] = 0xffffffff;
  *param_1 = 0xffffffff;
  param_1[2] = 0;
  param_1[3] = 0;
  iVar1 = _M_terminate_output(param_2);
  if (iVar1 != 0) {
    lVar4 = (*(code *)PTR_seekoff_004c5490)(param_2 + 0x38);
    if (lVar4 != -1) {
      uVar3 = *(undefined4 *)(param_2 + 0x7c);
      uVar2 = *(undefined4 *)(param_2 + 0x5c);
      *param_1 = (int)((ulonglong)lVar4 >> 0x20);
      param_2[0x65] = (wfilebuf)0x0;
      param_2[0x66] = (wfilebuf)0x0;
      *(undefined4 *)(param_2 + 0x88) = uVar3;
      *(undefined4 *)(param_2 + 0x84) = uVar3;
      *(undefined4 *)(param_2 + 0x4c) = in_stack_00000014;
      *(undefined4 *)(param_2 + 0x50) = in_stack_00000018;
      param_1[1] = (int)lVar4;
      param_1[2] = in_stack_00000014;
      param_1[3] = in_stack_00000018;
      *(undefined4 *)(param_2 + 4) = uVar2;
      *(undefined4 *)(param_2 + 8) = uVar2;
      *(undefined4 *)(param_2 + 0xc) = uVar2;
      *(undefined4 *)(param_2 + 0x14) = 0;
      *(undefined4 *)(param_2 + 0x10) = 0;
      *(undefined4 *)(param_2 + 0x18) = 0;
      return param_1;
    }
  }
  return param_1;
}

