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

undefined1  [16] __thiscall
std::filebuf::_M_seek(filebuf *this,undefined8 param_1,undefined4 param_3,ulong param_4)

{
  undefined8 uVar1;
  char cVar2;
  long lVar3;
  ulong uVar4;
  undefined1 auVar5 [16];
  
  cVar2 = _M_terminate_output(this);
  if (cVar2 == '\0') {
    param_4 = 0;
    uVar4 = 0;
    lVar3 = -1;
  }
  else {
    lVar3 = __basic_file<char>::seekoff((__basic_file<char> *)(this + 0x68),param_1,param_3);
    if (lVar3 == -1) {
      param_4 = 0;
      uVar4 = 0;
    }
    else {
      *(ulong *)(this + 0x84) = param_4;
      uVar4 = param_4 & 0xffffffff;
      param_4 = param_4 >> 0x20;
      *(undefined2 *)(this + 0xa9) = 0;
      *(undefined8 *)(this + 0x28) = 0;
      *(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0);
      *(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0);
      uVar1 = *(undefined8 *)(this + 0x98);
      *(undefined8 *)(this + 0x20) = 0;
      *(undefined8 *)(this + 8) = uVar1;
      *(undefined8 *)(this + 0x10) = uVar1;
      *(undefined8 *)(this + 0x18) = uVar1;
      *(undefined8 *)(this + 0x30) = 0;
    }
  }
  auVar5._8_8_ = uVar4 | param_4 << 0x20;
  auVar5._0_8_ = lVar3;
  return auVar5;
}



undefined1  [16] FUN_00303c50(long param_1,undefined8 param_2,undefined4 param_3,ulong param_4)

{
  undefined8 uVar1;
  char cVar2;
  long lVar3;
  ulong uVar4;
  undefined1 auVar5 [16];
  
  cVar2 = FUN_00303b40();
  if (cVar2 == '\0') {
    param_4 = 0;
    uVar4 = 0;
    lVar3 = -1;
  }
  else {
    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);
    if (lVar3 == -1) {
      param_4 = 0;
      uVar4 = 0;
    }
    else {
      *(ulong *)(param_1 + 0x84) = param_4;
      uVar4 = param_4 & 0xffffffff;
      param_4 = param_4 >> 0x20;
      *(undefined2 *)(param_1 + 0xa9) = 0;
      *(undefined8 *)(param_1 + 0x28) = 0;
      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);
      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);
      uVar1 = *(undefined8 *)(param_1 + 0x98);
      *(undefined8 *)(param_1 + 0x20) = 0;
      *(undefined8 *)(param_1 + 8) = uVar1;
      *(undefined8 *)(param_1 + 0x10) = uVar1;
      *(undefined8 *)(param_1 + 0x18) = uVar1;
      *(undefined8 *)(param_1 + 0x30) = 0;
    }
  }
  auVar5._8_8_ = uVar4 | param_4 << 0x20;
  auVar5._0_8_ = lVar3;
  return auVar5;
}


PUSH R13
MOV R13D,EDX
PUSH R12
MOV R12,RSI
PUSH RBP
MOV RBP,RDI
PUSH RBX
MOV RBX,RCX
SUB RSP,0x8
CALL 0x00303b40
TEST AL,AL
JNZ 0x00303c98
XOR EDX,EDX
XOR ESI,ESI
MOV RAX,-0x1
MOV RCX,RDX
ADD RSP,0x8
MOV EDX,ESI
SHL RCX,0x20
POP RBX
POP RBP
OR RDX,RCX
POP R12
POP R13
RET
LEA RDI,[RBP + 0x68]
MOV EDX,R13D
MOV RSI,R12
CALL 0x002db470
CMP RAX,-0x1
JNZ 0x00303cb8
XOR EDX,EDX
XOR ESI,ESI
JMP 0x00303c7a
XOR EDX,EDX
MOV qword ptr [RBP + 0x84],RBX
MOV ESI,EBX
SHR RBX,0x20
MOV word ptr [RBP + 0xa9],DX
MOV RDX,qword ptr [RBP + 0xd0]
MOV qword ptr [RBP + 0x28],0x0
MOV qword ptr [RBP + 0xe8],RDX
MOV qword ptr [RBP + 0xe0],RDX
MOV RDX,qword ptr [RBP + 0x98]
MOV qword ptr [RBP + 0x20],0x0
MOV qword ptr [RBP + 0x8],RDX
MOV qword ptr [RBP + 0x10],RDX
MOV qword ptr [RBP + 0x18],RDX
MOV RDX,RBX
MOV qword ptr [RBP + 0x30],0x0
JMP 0x00303c7a
(translation_unit "undefined1  [16] FUN_00303c50(long param_1,undefined8 param_2,undefined4 param_3,ulong param_4)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined1 auVar5 [16];\n  \n  cVar2 = FUN_00303b40();\n  if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }\n  auVar5._8_8_ = uVar4 | param_4 << 0x20;\n  auVar5._0_8_ = lVar3;\n  return auVar5;\n}\n\n" (expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" identifier [ number_literal ]) ;) (macro_type_specifier "FUN_00303c50(long param_1,undefined8 param_2,undefined4 param_3,ulong param_4)" identifier ( (ERROR "long param_1,undefined8 param_2,undefined4 param_3,ulong" (type_descriptor "long param_1" (sized_type_specifier "long param_1" long type_identifier)) , identifier identifier , identifier identifier , identifier) (type_descriptor "param_4" type_identifier) )) ; (compound_statement "{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined1 auVar5 [16];\n  \n  cVar2 = FUN_00303b40();\n  if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }\n  auVar5._8_8_ = uVar4 | param_4 << 0x20;\n  auVar5._0_8_ = lVar3;\n  return auVar5;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "undefined1 auVar5 [16];" type_identifier (array_declarator "auVar5 [16]" identifier [ number_literal ]) ;) (expression_statement "cVar2 = FUN_00303b40();" (assignment_expression "cVar2 = FUN_00303b40()" identifier = (call_expression "FUN_00303b40()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }" { (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "lVar3 = -1;" (assignment_expression "lVar3 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }" else (compound_statement "{\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }" { (expression_statement "lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);" (assignment_expression "lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3)" identifier = (call_expression "FUN_002db470(param_1 + 0x68,param_2,param_3)" identifier (argument_list "(param_1 + 0x68,param_2,param_3)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }" if (parenthesized_expression "(lVar3 == -1)" ( (binary_expression "lVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      param_4 = 0;\n      uVar4 = 0;\n    }" { (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }" else (compound_statement "{\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }" { (expression_statement "*(ulong *)(param_1 + 0x84) = param_4;" (assignment_expression "*(ulong *)(param_1 + 0x84) = param_4" (pointer_expression "*(ulong *)(param_1 + 0x84)" * (cast_expression "(ulong *)(param_1 + 0x84)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = param_4 & 0xffffffff;" (assignment_expression "uVar4 = param_4 & 0xffffffff" identifier = (binary_expression "param_4 & 0xffffffff" identifier & number_literal)) ;) (expression_statement "param_4 = param_4 >> 0x20;" (assignment_expression "param_4 = param_4 >> 0x20" identifier = (binary_expression "param_4 >> 0x20" identifier >> number_literal)) ;) (expression_statement "*(undefined2 *)(param_1 + 0xa9) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0xa9) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0xa9)" * (cast_expression "(undefined2 *)(param_1 + 0xa9)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa9)" ( (binary_expression "param_1 + 0xa9" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x28) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);" (assignment_expression "*(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0)" (pointer_expression "*(undefined8 *)(param_1 + 0xe8)" * (cast_expression "(undefined8 *)(param_1 + 0xe8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe8)" ( (binary_expression "param_1 + 0xe8" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" * (cast_expression "(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);" (assignment_expression "*(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0)" (pointer_expression "*(undefined8 *)(param_1 + 0xe0)" * (cast_expression "(undefined8 *)(param_1 + 0xe0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" * (cast_expression "(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "uVar1 = *(undefined8 *)(param_1 + 0x98)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x98)" * (cast_expression "(undefined8 *)(param_1 + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x30) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x30) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x30)" * (cast_expression "(undefined8 *)(param_1 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = number_literal) ;) }))) }))) (expression_statement "auVar5._8_8_ = uVar4 | param_4 << 0x20;" (assignment_expression "auVar5._8_8_ = uVar4 | param_4 << 0x20" (field_expression "auVar5._8_8_" identifier . field_identifier) = (binary_expression "uVar4 | param_4 << 0x20" identifier | (binary_expression "param_4 << 0x20" identifier << number_literal))) ;) (expression_statement "auVar5._0_8_ = lVar3;" (assignment_expression "auVar5._0_8_ = lVar3" (field_expression "auVar5._0_8_" identifier . field_identifier) = identifier) ;) (return_statement "return auVar5;" return identifier ;) }))
(translation_unit "/* std::filebuf::_M_seek(long, std::_Ios_Seekdir, __mbstate_t) */\n\nundefined1  [16] __thiscall\nstd::filebuf::_M_seek(filebuf *this,undefined8 param_1,undefined4 param_3,ulong param_4)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined1 auVar5 [16];\n  \n  cVar2 = _M_terminate_output(this);\n  if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = __basic_file<char>::seekoff((__basic_file<char> *)(this + 0x68),param_1,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(this + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(this + 0xa9) = 0;\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0);\n      *(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }\n  }\n  auVar5._8_8_ = uVar4 | param_4 << 0x20;\n  auVar5._0_8_ = lVar3;\n  return auVar5;\n}\n\n" comment (ERROR "undefined1  [16] __thiscall" (subscript_expression "undefined1  [16]" identifier [ number_literal ]) identifier) (labeled_statement "std::filebuf::_M_seek(filebuf *this,undefined8 param_1,undefined4 param_3,ulong param_4)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined1 auVar5 [16];\n  \n  cVar2 = _M_terminate_output(this);\n  if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = __basic_file<char>::seekoff((__basic_file<char> *)(this + 0x68),param_1,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(this + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(this + 0xa9) = 0;\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0);\n      *(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }\n  }\n  auVar5._8_8_ = uVar4 | param_4 << 0x20;\n  auVar5._0_8_ = lVar3;\n  return auVar5;\n}" statement_identifier : (ERROR ":" :) (labeled_statement "filebuf::_M_seek(filebuf *this,undefined8 param_1,undefined4 param_3,ulong param_4)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined1 auVar5 [16];\n  \n  cVar2 = _M_terminate_output(this);\n  if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = __basic_file<char>::seekoff((__basic_file<char> *)(this + 0x68),param_1,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(this + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(this + 0xa9) = 0;\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0);\n      *(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }\n  }\n  auVar5._8_8_ = uVar4 | param_4 << 0x20;\n  auVar5._0_8_ = lVar3;\n  return auVar5;\n}" statement_identifier : (ERROR ":_M_seek(filebuf *this,undefined8 param_1,undefined4 param_3,ulong param_4)" : (call_expression "_M_seek(filebuf *this,undefined8 param_1,undefined4 param_3,ulong param_4)" identifier (argument_list "(filebuf *this,undefined8 param_1,undefined4 param_3,ulong param_4)" ( (binary_expression "filebuf *this" identifier * identifier) , identifier (ERROR "param_1" identifier) , identifier (ERROR "param_3" identifier) , (ERROR "ulong" identifier) identifier )))) (compound_statement "{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined1 auVar5 [16];\n  \n  cVar2 = _M_terminate_output(this);\n  if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = __basic_file<char>::seekoff((__basic_file<char> *)(this + 0x68),param_1,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(this + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(this + 0xa9) = 0;\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0);\n      *(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }\n  }\n  auVar5._8_8_ = uVar4 | param_4 << 0x20;\n  auVar5._0_8_ = lVar3;\n  return auVar5;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "undefined1 auVar5 [16];" type_identifier (array_declarator "auVar5 [16]" identifier [ number_literal ]) ;) (expression_statement "cVar2 = _M_terminate_output(this);" (assignment_expression "cVar2 = _M_terminate_output(this)" identifier = (call_expression "_M_terminate_output(this)" identifier (argument_list "(this)" ( identifier )))) ;) (if_statement "if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = __basic_file<char>::seekoff((__basic_file<char> *)(this + 0x68),param_1,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(this + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(this + 0xa9) = 0;\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0);\n      *(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }\n  }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }" { (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "lVar3 = -1;" (assignment_expression "lVar3 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    lVar3 = __basic_file<char>::seekoff((__basic_file<char> *)(this + 0x68),param_1,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(this + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(this + 0xa9) = 0;\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0);\n      *(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }\n  }" else (compound_statement "{\n    lVar3 = __basic_file<char>::seekoff((__basic_file<char> *)(this + 0x68),param_1,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(this + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(this + 0xa9) = 0;\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0);\n      *(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }\n  }" { (expression_statement "lVar3 = __basic_file<char>::seekoff((__basic_file<char> *)(this + 0x68),param_1,param_3);" (assignment_expression "lVar3 = __basic_file<char>::seekoff((__basic_file<char> *)(this + 0x68),param_1,param_3)" identifier = (binary_expression "__basic_file<char>::seekoff((__basic_file<char> *)(this + 0x68),param_1,param_3)" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (call_expression "seekoff((__basic_file<char> *)(this + 0x68),param_1,param_3)" identifier (argument_list "((__basic_file<char> *)(this + 0x68),param_1,param_3)" ( (call_expression "(__basic_file<char> *)(this + 0x68)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) ))) , identifier , identifier ))))) ;) (if_statement "if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(this + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(this + 0xa9) = 0;\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0);\n      *(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }" if (parenthesized_expression "(lVar3 == -1)" ( (binary_expression "lVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      param_4 = 0;\n      uVar4 = 0;\n    }" { (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      *(ulong *)(this + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(this + 0xa9) = 0;\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0);\n      *(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }" else (compound_statement "{\n      *(ulong *)(this + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(this + 0xa9) = 0;\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0);\n      *(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }" { (expression_statement "*(ulong *)(this + 0x84) = param_4;" (assignment_expression "*(ulong *)(this + 0x84) = param_4" (pointer_expression "*(ulong *)(this + 0x84)" * (cast_expression "(ulong *)(this + 0x84)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x84)" ( (binary_expression "this + 0x84" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = param_4 & 0xffffffff;" (assignment_expression "uVar4 = param_4 & 0xffffffff" identifier = (binary_expression "param_4 & 0xffffffff" identifier & number_literal)) ;) (expression_statement "param_4 = param_4 >> 0x20;" (assignment_expression "param_4 = param_4 >> 0x20" identifier = (binary_expression "param_4 >> 0x20" identifier >> number_literal)) ;) (expression_statement "*(undefined2 *)(this + 0xa9) = 0;" (assignment_expression "*(undefined2 *)(this + 0xa9) = 0" (pointer_expression "*(undefined2 *)(this + 0xa9)" * (cast_expression "(undefined2 *)(this + 0xa9)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xa9)" ( (binary_expression "this + 0xa9" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x28) = 0;" (assignment_expression "*(undefined8 *)(this + 0x28) = 0" (pointer_expression "*(undefined8 *)(this + 0x28)" * (cast_expression "(undefined8 *)(this + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x28)" ( (binary_expression "this + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0);" (assignment_expression "*(undefined8 *)(this + 0xe8) = *(undefined8 *)(this + 0xd0)" (pointer_expression "*(undefined8 *)(this + 0xe8)" * (cast_expression "(undefined8 *)(this + 0xe8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xe8)" ( (binary_expression "this + 0xe8" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(this + 0xd0)" * (cast_expression "(undefined8 *)(this + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xd0)" ( (binary_expression "this + 0xd0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0);" (assignment_expression "*(undefined8 *)(this + 0xe0) = *(undefined8 *)(this + 0xd0)" (pointer_expression "*(undefined8 *)(this + 0xe0)" * (cast_expression "(undefined8 *)(this + 0xe0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xe0)" ( (binary_expression "this + 0xe0" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(this + 0xd0)" * (cast_expression "(undefined8 *)(this + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xd0)" ( (binary_expression "this + 0xd0" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined8 *)(this + 0x98);" (assignment_expression "uVar1 = *(undefined8 *)(this + 0x98)" identifier = (pointer_expression "*(undefined8 *)(this + 0x98)" * (cast_expression "(undefined8 *)(this + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x98)" ( (binary_expression "this + 0x98" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0x20) = 0;" (assignment_expression "*(undefined8 *)(this + 0x20) = 0" (pointer_expression "*(undefined8 *)(this + 0x20)" * (cast_expression "(undefined8 *)(this + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 8) = uVar1;" (assignment_expression "*(undefined8 *)(this + 8) = uVar1" (pointer_expression "*(undefined8 *)(this + 8)" * (cast_expression "(undefined8 *)(this + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x10) = uVar1;" (assignment_expression "*(undefined8 *)(this + 0x10) = uVar1" (pointer_expression "*(undefined8 *)(this + 0x10)" * (cast_expression "(undefined8 *)(this + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x18) = uVar1;" (assignment_expression "*(undefined8 *)(this + 0x18) = uVar1" (pointer_expression "*(undefined8 *)(this + 0x18)" * (cast_expression "(undefined8 *)(this + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x30) = 0;" (assignment_expression "*(undefined8 *)(this + 0x30) = 0" (pointer_expression "*(undefined8 *)(this + 0x30)" * (cast_expression "(undefined8 *)(this + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x30)" ( (binary_expression "this + 0x30" identifier + number_literal) )))) = number_literal) ;) }))) }))) (expression_statement "auVar5._8_8_ = uVar4 | param_4 << 0x20;" (assignment_expression "auVar5._8_8_ = uVar4 | param_4 << 0x20" (field_expression "auVar5._8_8_" identifier . field_identifier) = (binary_expression "uVar4 | param_4 << 0x20" identifier | (binary_expression "param_4 << 0x20" identifier << number_literal))) ;) (expression_statement "auVar5._0_8_ = lVar3;" (assignment_expression "auVar5._0_8_ = lVar3" (field_expression "auVar5._0_8_" identifier . field_identifier) = identifier) ;) (return_statement "return auVar5;" return identifier ;) }))))
(translation_unit "undefined1  [16] FUN_00303c50(long param_1,undefined8 param_2,undefined4 param_3,ulong param_4)\n\n{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined1 auVar5 [16];\n  \n  cVar2 = FUN_00303b40();\n  if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }\n  auVar5._8_8_ = uVar4 | param_4 << 0x20;\n  auVar5._0_8_ = lVar3;\n  return auVar5;\n}\n\n" (expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" identifier [ number_literal ]) ;) (macro_type_specifier "FUN_00303c50(long param_1,undefined8 param_2,undefined4 param_3,ulong param_4)" identifier ( (ERROR "long param_1,undefined8 param_2,undefined4 param_3,ulong" (type_descriptor "long param_1" (sized_type_specifier "long param_1" long type_identifier)) , identifier identifier , identifier identifier , identifier) (type_descriptor "param_4" type_identifier) )) ; (compound_statement "{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined1 auVar5 [16];\n  \n  cVar2 = FUN_00303b40();\n  if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }\n  auVar5._8_8_ = uVar4 | param_4 << 0x20;\n  auVar5._0_8_ = lVar3;\n  return auVar5;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar4;" type_identifier identifier ;) (declaration "undefined1 auVar5 [16];" type_identifier (array_declarator "auVar5 [16]" identifier [ number_literal ]) ;) (expression_statement "cVar2 = FUN_00303b40();" (assignment_expression "cVar2 = FUN_00303b40()" identifier = (call_expression "FUN_00303b40()" identifier (argument_list "()" ( )))) ;) (if_statement "if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }" { (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "lVar3 = -1;" (assignment_expression "lVar3 = -1" identifier = number_literal) ;) }) (else_clause "else {\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }" else (compound_statement "{\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }" { (expression_statement "lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);" (assignment_expression "lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3)" identifier = (call_expression "FUN_002db470(param_1 + 0x68,param_2,param_3)" identifier (argument_list "(param_1 + 0x68,param_2,param_3)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) , identifier , identifier )))) ;) (if_statement "if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }" if (parenthesized_expression "(lVar3 == -1)" ( (binary_expression "lVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      param_4 = 0;\n      uVar4 = 0;\n    }" { (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }" else (compound_statement "{\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }" { (expression_statement "*(ulong *)(param_1 + 0x84) = param_4;" (assignment_expression "*(ulong *)(param_1 + 0x84) = param_4" (pointer_expression "*(ulong *)(param_1 + 0x84)" * (cast_expression "(ulong *)(param_1 + 0x84)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar4 = param_4 & 0xffffffff;" (assignment_expression "uVar4 = param_4 & 0xffffffff" identifier = (binary_expression "param_4 & 0xffffffff" identifier & number_literal)) ;) (expression_statement "param_4 = param_4 >> 0x20;" (assignment_expression "param_4 = param_4 >> 0x20" identifier = (binary_expression "param_4 >> 0x20" identifier >> number_literal)) ;) (expression_statement "*(undefined2 *)(param_1 + 0xa9) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0xa9) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0xa9)" * (cast_expression "(undefined2 *)(param_1 + 0xa9)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa9)" ( (binary_expression "param_1 + 0xa9" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x28) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x28)" * (cast_expression "(undefined8 *)(param_1 + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);" (assignment_expression "*(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0)" (pointer_expression "*(undefined8 *)(param_1 + 0xe8)" * (cast_expression "(undefined8 *)(param_1 + 0xe8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe8)" ( (binary_expression "param_1 + 0xe8" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" * (cast_expression "(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);" (assignment_expression "*(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0)" (pointer_expression "*(undefined8 *)(param_1 + 0xe0)" * (cast_expression "(undefined8 *)(param_1 + 0xe0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xe0)" ( (binary_expression "param_1 + 0xe0" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" * (cast_expression "(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "uVar1 = *(undefined8 *)(param_1 + 0x98)" identifier = (pointer_expression "*(undefined8 *)(param_1 + 0x98)" * (cast_expression "(undefined8 *)(param_1 + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 8)" * (cast_expression "(undefined8 *)(param_1 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" * (cast_expression "(undefined8 *)(param_1 + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" * (cast_expression "(undefined8 *)(param_1 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x30) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x30) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x30)" * (cast_expression "(undefined8 *)(param_1 + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) = number_literal) ;) }))) }))) (expression_statement "auVar5._8_8_ = uVar4 | param_4 << 0x20;" (assignment_expression "auVar5._8_8_ = uVar4 | param_4 << 0x20" (field_expression "auVar5._8_8_" identifier . field_identifier) = (binary_expression "uVar4 | param_4 << 0x20" identifier | (binary_expression "param_4 << 0x20" identifier << number_literal))) ;) (expression_statement "auVar5._0_8_ = lVar3;" (assignment_expression "auVar5._0_8_ = lVar3" (field_expression "auVar5._0_8_" identifier . field_identifier) = identifier) ;) (return_statement "return auVar5;" return identifier ;) }))
(translation_unit (expression_statement (subscript_expression IDENT [ LIT ]) ;) (macro_type_specifier IDENT ( (ERROR (type_descriptor (sized_type_specifier long TYPE)) , IDENT IDENT , IDENT IDENT , IDENT) (type_descriptor TYPE) )) ; (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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 = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> 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) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (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 * (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) )))) = 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 (field_expression IDENT . field_identifier) = (binary_expression IDENT | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = IDENT) ;) (return_statement return IDENT ;) }))
(expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" (identifier "undefined1") ([ "[") (number_literal "16") (] "]")) (; "")) (macro_type_specifier "FUN_00303c50(long param_1,undefined8 param_2,undefined4 param_3,ulong param_4)" (identifier "FUN_00303c50") (( "(") (ERROR "long param_1,undefined8 param_2,undefined4 param_3,ulong" (type_descriptor "long param_1" (sized_type_specifier "long param_1" (long "long") (type_identifier "param_1"))) (, ",") (identifier "undefined8") (identifier "param_2") (, ",") (identifier "undefined4") (identifier "param_3") (, ",") (identifier "ulong")) (type_descriptor "param_4" (type_identifier "param_4")) () ")")) (; "") (compound_statement "{\n  undefined8 uVar1;\n  char cVar2;\n  long lVar3;\n  ulong uVar4;\n  undefined1 auVar5 [16];\n  \n  cVar2 = FUN_00303b40();\n  if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }\n  auVar5._8_8_ = uVar4 | param_4 << 0x20;\n  auVar5._0_8_ = lVar3;\n  return auVar5;\n}" ({ "{") (declaration "undefined8 uVar1;" (type_identifier "undefined8") (identifier "uVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "ulong uVar4;" (type_identifier "ulong") (identifier "uVar4") (; ";")) (declaration "undefined1 auVar5 [16];" (type_identifier "undefined1") (array_declarator "auVar5 [16]" (identifier "auVar5") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "cVar2 = FUN_00303b40();" (assignment_expression "cVar2 = FUN_00303b40()" (identifier "cVar2") (= "=") (call_expression "FUN_00303b40()" (identifier "FUN_00303b40") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (cVar2 == '\0') {\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }\n  else {\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    param_4 = 0;\n    uVar4 = 0;\n    lVar3 = -1;\n  }" ({ "{") (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" (identifier "param_4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar3 = -1;" (assignment_expression "lVar3 = -1" (identifier "lVar3") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }" (else "else") (compound_statement "{\n    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);\n    if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }\n  }" ({ "{") (expression_statement "lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);" (assignment_expression "lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3)" (identifier "lVar3") (= "=") (call_expression "FUN_002db470(param_1 + 0x68,param_2,param_3)" (identifier "FUN_002db470") (argument_list "(param_1 + 0x68,param_2,param_3)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (lVar3 == -1) {\n      param_4 = 0;\n      uVar4 = 0;\n    }\n    else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }" (if "if") (parenthesized_expression "(lVar3 == -1)" (( "(") (binary_expression "lVar3 == -1" (identifier "lVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      param_4 = 0;\n      uVar4 = 0;\n    }" ({ "{") (expression_statement "param_4 = 0;" (assignment_expression "param_4 = 0" (identifier "param_4") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }" (else "else") (compound_statement "{\n      *(ulong *)(param_1 + 0x84) = param_4;\n      uVar4 = param_4 & 0xffffffff;\n      param_4 = param_4 >> 0x20;\n      *(undefined2 *)(param_1 + 0xa9) = 0;\n      *(undefined8 *)(param_1 + 0x28) = 0;\n      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);\n      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);\n      uVar1 = *(undefined8 *)(param_1 + 0x98);\n      *(undefined8 *)(param_1 + 0x20) = 0;\n      *(undefined8 *)(param_1 + 8) = uVar1;\n      *(undefined8 *)(param_1 + 0x10) = uVar1;\n      *(undefined8 *)(param_1 + 0x18) = uVar1;\n      *(undefined8 *)(param_1 + 0x30) = 0;\n    }" ({ "{") (expression_statement "*(ulong *)(param_1 + 0x84) = param_4;" (assignment_expression "*(ulong *)(param_1 + 0x84) = param_4" (pointer_expression "*(ulong *)(param_1 + 0x84)" (* "*") (cast_expression "(ulong *)(param_1 + 0x84)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "uVar4 = param_4 & 0xffffffff;" (assignment_expression "uVar4 = param_4 & 0xffffffff" (identifier "uVar4") (= "=") (binary_expression "param_4 & 0xffffffff" (identifier "param_4") (& "&") (number_literal "0xffffffff"))) (; ";")) (expression_statement "param_4 = param_4 >> 0x20;" (assignment_expression "param_4 = param_4 >> 0x20" (identifier "param_4") (= "=") (binary_expression "param_4 >> 0x20" (identifier "param_4") (>> ">>") (number_literal "0x20"))) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0xa9) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0xa9) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0xa9)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0xa9)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa9)" (( "(") (binary_expression "param_1 + 0xa9" (identifier "param_1") (+ "+") (number_literal "0xa9")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x28) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x28) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);" (assignment_expression "*(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0)" (pointer_expression "*(undefined8 *)(param_1 + 0xe8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xe8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe8)" (( "(") (binary_expression "param_1 + 0xe8" (identifier "param_1") (+ "+") (number_literal "0xe8")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xd0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd0)" (( "(") (binary_expression "param_1 + 0xd0" (identifier "param_1") (+ "+") (number_literal "0xd0")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);" (assignment_expression "*(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0)" (pointer_expression "*(undefined8 *)(param_1 + 0xe0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xe0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xe0)" (( "(") (binary_expression "param_1 + 0xe0" (identifier "param_1") (+ "+") (number_literal "0xe0")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xd0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd0)" (( "(") (binary_expression "param_1 + 0xd0" (identifier "param_1") (+ "+") (number_literal "0xd0")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "uVar1 = *(undefined8 *)(param_1 + 0x98)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x98)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x98)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x98)" (( "(") (binary_expression "param_1 + 0x98" (identifier "param_1") (+ "+") (number_literal "0x98")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x20) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x20) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 8) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 8) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x10) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x10) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined8 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x30) = 0;" (assignment_expression "*(undefined8 *)(param_1 + 0x30) = 0" (pointer_expression "*(undefined8 *)(param_1 + 0x30)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x30)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}")))) (} "}")))) (expression_statement "auVar5._8_8_ = uVar4 | param_4 << 0x20;" (assignment_expression "auVar5._8_8_ = uVar4 | param_4 << 0x20" (field_expression "auVar5._8_8_" (identifier "auVar5") (. ".") (field_identifier "_8_8_")) (= "=") (binary_expression "uVar4 | param_4 << 0x20" (identifier "uVar4") (| "|") (binary_expression "param_4 << 0x20" (identifier "param_4") (<< "<<") (number_literal "0x20")))) (; ";")) (expression_statement "auVar5._0_8_ = lVar3;" (assignment_expression "auVar5._0_8_ = lVar3" (field_expression "auVar5._0_8_" (identifier "auVar5") (. ".") (field_identifier "_0_8_")) (= "=") (identifier "lVar3")) (; ";")) (return_statement "return auVar5;" (return "return") (identifier "auVar5") (; ";")) (} "}"))

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

type_3  [16] __thiscall
std::filebuf::_M_seek(filebuf *var_6,type_1 param_1,undefined4 param_3,type_2 var_8)

{
  type_1 uVar1;
  char var_2;
  long var_7;
  type_2 var_9;
  type_3 auVar5 [16];
  
  var_2 = var_1(var_6);
  if (var_2 == '\0') {
    var_8 = 0;
    var_9 = 0;
    var_7 = -1;
  }
  else {
    var_7 = var_3<var_4>::var_5((var_3<var_4> *)(var_6 + 0x68),param_1,param_3);
    if (var_7 == -1) {
      var_8 = 0;
      var_9 = 0;
    }
    else {
      *(type_2 *)(var_6 + 0x84) = var_8;
      var_9 = var_8 & 0xffffffff;
      var_8 = var_8 >> 0x20;
      *(type_4 *)(var_6 + 0xa9) = 0;
      *(type_1 *)(var_6 + 0x28) = 0;
      *(type_1 *)(var_6 + 0xe8) = *(type_1 *)(var_6 + 0xd0);
      *(type_1 *)(var_6 + 0xe0) = *(type_1 *)(var_6 + 0xd0);
      uVar1 = *(type_1 *)(var_6 + 0x98);
      *(type_1 *)(var_6 + 0x20) = 0;
      *(type_1 *)(var_6 + 8) = uVar1;
      *(type_1 *)(var_6 + 0x10) = uVar1;
      *(type_1 *)(var_6 + 0x18) = uVar1;
      *(type_1 *)(var_6 + 0x30) = 0;
    }
  }
  auVar5._8_8_ = var_9 | var_8 << 0x20;
  auVar5._0_8_ = var_7;
  return auVar5;
}


(translation_unit (expression_statement (subscript_expression argument: (identifier) index: (number_literal)) (MISSING ";")) (macro_type_specifier name: (identifier) (ERROR (type_descriptor type: (sized_type_specifier type: (type_identifier))) (identifier) (identifier) (identifier) (identifier) (identifier)) type: (type_descriptor type: (type_identifier))) (MISSING ";") (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (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))) (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: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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: (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: (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: (field_expression argument: (identifier) field: (field_identifier)) right: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (identifier))) (return_statement (identifier))))

undefined1  [16] MASKED(long param_1,undefined8 param_2,undefined4 param_3,ulong param_4)

{
  undefined8 uVar1;
  char cVar2;
  long lVar3;
  ulong uVar4;
  undefined1 auVar5 [16];
  
  cVar2 = FUN_00303b40();
  if (cVar2 == '\0') {
    param_4 = 0;
    uVar4 = 0;
    lVar3 = -1;
  }
  else {
    lVar3 = FUN_002db470(param_1 + 0x68,param_2,param_3);
    if (lVar3 == -1) {
      param_4 = 0;
      uVar4 = 0;
    }
    else {
      *(ulong *)(param_1 + 0x84) = param_4;
      uVar4 = param_4 & 0xffffffff;
      param_4 = param_4 >> 0x20;
      *(undefined2 *)(param_1 + 0xa9) = 0;
      *(undefined8 *)(param_1 + 0x28) = 0;
      *(undefined8 *)(param_1 + 0xe8) = *(undefined8 *)(param_1 + 0xd0);
      *(undefined8 *)(param_1 + 0xe0) = *(undefined8 *)(param_1 + 0xd0);
      uVar1 = *(undefined8 *)(param_1 + 0x98);
      *(undefined8 *)(param_1 + 0x20) = 0;
      *(undefined8 *)(param_1 + 8) = uVar1;
      *(undefined8 *)(param_1 + 0x10) = uVar1;
      *(undefined8 *)(param_1 + 0x18) = uVar1;
      *(undefined8 *)(param_1 + 0x30) = 0;
    }
  }
  auVar5._8_8_ = uVar4 | param_4 << 0x20;
  auVar5._0_8_ = lVar3;
  return auVar5;
}

