
/* std::wfilebuf::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode) */

undefined1  [16] std::wfilebuf::seekoff(wfilebuf *param_1,long param_2,int param_3)

{
  bool bVar1;
  char cVar2;
  int iVar3;
  int iVar4;
  long lVar5;
  uint uVar6;
  ulong uVar7;
  wfilebuf wVar8;
  undefined1 auVar9 [16];
  __mbstate_t local_40 [2];
  
  if (*(long **)(param_1 + 200) == (long *)0x0) {
    bVar1 = true;
    iVar4 = 0;
  }
  else {
    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();
    iVar4 = 0;
    if (-1 < iVar3) {
      iVar4 = iVar3;
    }
    bVar1 = iVar3 < 1;
  }
  cVar2 = __basic_file<char>::is_open((__basic_file<char> *)(param_1 + 0x68));
  uVar7 = 0;
  uVar6 = 0;
  lVar5 = -1;
  if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;
  if (((param_3 == 1) && (param_2 == 0)) &&
     ((param_1[0xaa] == (wfilebuf)0x0 ||
      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {
    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);
    wVar8 = param_1[0xa9];
    param_2 = 0;
    if (wVar8 != (wfilebuf)0x0) {
LAB_00363bb0:
      local_40[0] = *(__mbstate_t *)(param_1 + 0x8c);
      iVar4 = _M_get_ext_pos(param_1,local_40);
      param_2 = param_2 + iVar4;
      if (wVar8 == (wfilebuf)0x0) goto LAB_00363b85;
    }
    if (param_1[0xaa] != (wfilebuf)0x0) {
      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;
    }
    lVar5 = __basic_file<char>::seekoff((__basic_file<char> *)(param_1 + 0x68),0,1);
    if (lVar5 == -1) {
      uVar7 = 0;
      uVar6 = 0;
      lVar5 = -1;
    }
    else {
      lVar5 = lVar5 + param_2;
      uVar6 = local_40[0].__count;
      uVar7 = (ulong)local_40[0] >> 0x20;
    }
  }
  else {
    if (param_1[0xc0] != (wfilebuf)0x0) {
      param_1[0xc0] = (wfilebuf)0x0;
      lVar5 = *(long *)(param_1 + 0xb0) +
              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;
      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);
      *(long *)(param_1 + 0xb0) = lVar5;
      *(long *)(param_1 + 0x10) = lVar5;
      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);
    }
    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);
    param_2 = param_2 * iVar4;
    if ((param_1[0xa9] != (wfilebuf)0x0) && (wVar8 = (wfilebuf)0x0, param_3 == 1))
    goto LAB_00363bb0;
LAB_00363b85:
    auVar9 = _M_seek(param_1,param_2,param_3,local_40[0]);
    lVar5 = auVar9._0_8_;
    uVar6 = auVar9._8_4_;
    uVar7 = auVar9._8_8_ >> 0x20;
  }
LAB_00363a5f:
  auVar9._8_8_ = (ulong)uVar6 | uVar7 << 0x20;
  auVar9._0_8_ = lVar5;
  return auVar9;
}



undefined1  [16] FUN_00363a00(long param_1,long param_2,int param_3)

{
  bool bVar1;
  char cVar2;
  int iVar3;
  int iVar4;
  long lVar5;
  uint uVar6;
  undefined1 auVar7 [16];
  ulong local_40 [2];
  
  if (*(long **)(param_1 + 200) == (long *)0x0) {
    bVar1 = true;
    iVar4 = 0;
  }
  else {
    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();
    iVar4 = 0;
    if (-1 < iVar3) {
      iVar4 = iVar3;
    }
    bVar1 = iVar3 < 1;
  }
  cVar2 = FUN_00338f30(param_1 + 0x68);
  local_40[0] = 0;
  uVar6 = 0;
  lVar5 = -1;
  if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;
  if (((param_3 == 1) && (param_2 == 0)) &&
     ((*(char *)(param_1 + 0xaa) == '\0' ||
      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {
    local_40[0] = *(ulong *)(param_1 + 0x7c);
    cVar2 = *(char *)(param_1 + 0xa9);
    param_2 = 0;
    if (cVar2 != '\0') {
LAB_00363bb0:
      local_40[0] = *(ulong *)(param_1 + 0x8c);
      iVar4 = FUN_00363580(param_1,local_40);
      param_2 = param_2 + iVar4;
      if (cVar2 == '\0') goto LAB_00363b85;
    }
    if (*(char *)(param_1 + 0xaa) != '\0') {
      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;
    }
    lVar5 = FUN_00339250(param_1 + 0x68,0,1);
    if (lVar5 == -1) {
      local_40[0] = 0;
      uVar6 = 0;
      lVar5 = -1;
    }
    else {
      lVar5 = lVar5 + param_2;
      uVar6 = (uint)local_40[0];
      local_40[0] = local_40[0] >> 0x20;
    }
  }
  else {
    if (*(char *)(param_1 + 0xc0) != '\0') {
      *(undefined1 *)(param_1 + 0xc0) = 0;
      lVar5 = *(long *)(param_1 + 0xb0) +
              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;
      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);
      *(long *)(param_1 + 0xb0) = lVar5;
      *(long *)(param_1 + 0x10) = lVar5;
      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);
    }
    local_40[0] = *(ulong *)(param_1 + 0x7c);
    param_2 = param_2 * iVar4;
    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;
LAB_00363b85:
    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);
    lVar5 = auVar7._0_8_;
    uVar6 = auVar7._8_4_;
    local_40[0] = auVar7._8_8_ >> 0x20;
  }
LAB_00363a5f:
  auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;
  auVar7._0_8_ = lVar5;
  return auVar7;
}


PUSH R15
MOV R15,RDI
PUSH R14
MOV R14D,EDX
PUSH R13
PUSH R12
MOV R12,RSI
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV RDI,qword ptr [RDI + 0xc8]
TEST RDI,RDI
JZ 0x00363a80
MOV RAX,qword ptr [RDI]
MOV EBP,0x0
CALL qword ptr [RAX + 0x28]
TEST EAX,EAX
CMOVNS EBP,EAX
SETLE AL
TEST R12,R12
LEA R13,[R15 + 0x68]
SETNZ BL
MOV RDI,R13
AND EBX,EAX
CALL 0x00338f30
XOR EDX,EDX
XOR ECX,ECX
XOR EAX,0x1
MOV ESI,EAX
MOV RAX,-0x1
OR BL,SIL
JZ 0x00363a90
MOV RSI,RDX
ADD RSP,0x18
MOV EDX,ECX
SHL RSI,0x20
POP RBX
POP RBP
OR RDX,RSI
POP R12
POP R13
POP R14
POP R15
RET
MOV EAX,0x1
XOR EBP,EBP
JMP 0x00363a36
CMP R14D,0x1
JNZ 0x00363b20
TEST R12,R12
JNZ 0x00363b20
CMP byte ptr [R15 + 0xaa],0x0
JZ 0x00363abe
MOV RDI,qword ptr [R15 + 0xc8]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x30]
TEST AL,AL
JZ 0x00363b20
MOV RAX,qword ptr [R15 + 0x7c]
MOVZX EBX,byte ptr [R15 + 0xa9]
XOR R12D,R12D
MOV qword ptr [RSP + 0x8],RAX
TEST BL,BL
JNZ 0x00363bb0
CMP byte ptr [R15 + 0xaa],0x0
JZ 0x00363af0
MOV R12,qword ptr [R15 + 0x28]
SUB R12,qword ptr [R15 + 0x20]
SAR R12,0x2
XOR ESI,ESI
MOV EDX,0x1
MOV RDI,R13
CALL 0x00339250
CMP RAX,-0x1
JZ 0x00363be0
MOV RDX,qword ptr [RSP + 0x8]
ADD RAX,R12
MOV ECX,EDX
SHR RDX,0x20
JMP 0x00363a5f
CMP byte ptr [R15 + 0xc0],0x0
JZ 0x00363b6b
MOV RAX,qword ptr [R15 + 0x8]
XOR EDX,EDX
CMP qword ptr [R15 + 0x10],RAX
MOV byte ptr [R15 + 0xc0],0x0
MOV RAX,qword ptr [R15 + 0xb0]
SETNZ DL
MOV RCX,qword ptr [R15 + 0x98]
LEA RAX,[RAX + RDX*0x4]
MOV RDX,qword ptr [R15 + 0xb8]
MOV qword ptr [R15 + 0x8],RCX
MOV qword ptr [R15 + 0xb0],RAX
MOV qword ptr [R15 + 0x10],RAX
MOV qword ptr [R15 + 0x18],RDX
MOV RAX,qword ptr [R15 + 0x7c]
MOVSXD RBP,EBP
IMUL R12,RBP
CMP byte ptr [R15 + 0xa9],0x0
MOV qword ptr [RSP + 0x8],RAX
JNZ 0x00363ba8
MOV RCX,qword ptr [RSP + 0x8]
MOV EDX,R14D
MOV RSI,R12
MOV RDI,R15
CALL 0x00363700
MOV ECX,EDX
SHR RDX,0x20
JMP 0x00363a5f
CMP R14D,0x1
JNZ 0x00363b85
NOP
MOV RAX,qword ptr [R15 + 0x8c]
LEA RSI,[RSP + 0x8]
MOV RDI,R15
MOV qword ptr [RSP + 0x8],RAX
CALL 0x00363580
CDQE
ADD R12,RAX
TEST BL,BL
JNZ 0x00363ada
JMP 0x00363b85
XOR EDX,EDX
XOR ECX,ECX
JMP 0x00363a5f
(translation_unit "undefined1  [16] FUN_00363a00(long param_1,long param_2,int param_3)\n\n{\n  bool bVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  undefined1 auVar7 [16];\n  ulong local_40 [2];\n  \n  if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }\n  cVar2 = FUN_00338f30(param_1 + 0x68);\n  local_40[0] = 0;\n  uVar6 = 0;\n  lVar5 = -1;\n  if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;\n  if (((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    cVar2 = *(char *)(param_1 + 0xa9);\n    param_2 = 0;\n    if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }\n    if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = FUN_00339250(param_1 + 0x68,0,1);\n    if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }\nLAB_00363a5f:\n  auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;\n  auVar7._0_8_ = lVar5;\n  return auVar7;\n}\n\n" (expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" identifier [ number_literal ]) ;) (macro_type_specifier "FUN_00363a00(long param_1,long param_2,int param_3)" identifier ( (ERROR "long param_1,long param_2,int" (type_descriptor "long param_1" (sized_type_specifier "long param_1" long type_identifier)) , (type_descriptor "long param_2" (sized_type_specifier "long param_2" long type_identifier)) , primitive_type) (type_descriptor "param_3" type_identifier) )) ; (compound_statement "{\n  bool bVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  undefined1 auVar7 [16];\n  ulong local_40 [2];\n  \n  if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }\n  cVar2 = FUN_00338f30(param_1 + 0x68);\n  local_40[0] = 0;\n  uVar6 = 0;\n  lVar5 = -1;\n  if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;\n  if (((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    cVar2 = *(char *)(param_1 + 0xa9);\n    param_2 = 0;\n    if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }\n    if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = FUN_00339250(param_1 + 0x68,0,1);\n    if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }\nLAB_00363a5f:\n  auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;\n  auVar7._0_8_ = lVar5;\n  return auVar7;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined1 auVar7 [16];" type_identifier (array_declarator "auVar7 [16]" identifier [ number_literal ]) ;) (declaration "ulong local_40 [2];" type_identifier (array_declarator "local_40 [2]" identifier [ number_literal ]) ;) (if_statement "if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }" if (parenthesized_expression "(*(long **)(param_1 + 200) == (long *)0x0)" ( (binary_expression "*(long **)(param_1 + 200) == (long *)0x0" (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) )))) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    bVar1 = true;\n    iVar4 = 0;\n  }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }" else (compound_statement "{\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }" { (expression_statement "iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();" (assignment_expression "iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))()" identifier = (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x28))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x28))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x28)" * (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x28)" * (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 200) + 0x28)" ( (binary_expression "**(long **)(param_1 + 200) + 0x28" (pointer_expression "**(long **)(param_1 + 200)" * (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n      iVar4 = iVar3;\n    }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) })) (expression_statement "bVar1 = iVar3 < 1;" (assignment_expression "bVar1 = iVar3 < 1" identifier = (binary_expression "iVar3 < 1" identifier < number_literal)) ;) }))) (expression_statement "cVar2 = FUN_00338f30(param_1 + 0x68);" (assignment_expression "cVar2 = FUN_00338f30(param_1 + 0x68)" identifier = (call_expression "FUN_00338f30(param_1 + 0x68)" identifier (argument_list "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) ;) (expression_statement "local_40[0] = 0;" (assignment_expression "local_40[0] = 0" (subscript_expression "local_40[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" identifier = number_literal) ;) (if_statement "if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;" if (parenthesized_expression "((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01')" ( (binary_expression "(bool)(param_2 != 0 & bVar1) || cVar2 != '\x01'" (cast_expression "(bool)(param_2 != 0 & bVar1)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(param_2 != 0 & bVar1)" ( (binary_expression "param_2 != 0 & bVar1" (binary_expression "param_2 != 0" identifier != number_literal) & identifier) ))) || (binary_expression "cVar2 != '\x01'" identifier != (char_literal "'\x01'" ' escape_sequence '))) )) (goto_statement "goto LAB_00363a5f;" goto statement_identifier ;)) (if_statement "if (((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    cVar2 = *(char *)(param_1 + 0xa9);\n    param_2 = 0;\n    if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }\n    if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = FUN_00339250(param_1 + 0x68,0,1);\n    if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }" if (parenthesized_expression "(((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0'))))" ( (binary_expression "((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))" (parenthesized_expression "((param_3 == 1) && (param_2 == 0))" ( (binary_expression "(param_3 == 1) && (param_2 == 0)" (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) && (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) && (parenthesized_expression "((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))" ( (parenthesized_expression "(*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0'))" ( (binary_expression "*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')" (binary_expression "*(char *)(param_1 + 0xaa) == '\0'" (pointer_expression "*(char *)(param_1 + 0xaa)" * (cast_expression "(char *)(param_1 + 0xaa)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xaa)" ( (binary_expression "param_1 + 0xaa" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "(cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')" ( (comma_expression "cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0'" (assignment_expression "cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))()" identifier = (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x30)" * (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x30)" * (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 200) + 0x30)" ( (binary_expression "**(long **)(param_1 + 200) + 0x30" (pointer_expression "**(long **)(param_1 + 200)" * (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) , (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) ))) )) (compound_statement "{\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    cVar2 = *(char *)(param_1 + 0xa9);\n    param_2 = 0;\n    if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }\n    if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = FUN_00339250(param_1 + 0x68,0,1);\n    if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }\n  }" { (expression_statement "local_40[0] = *(ulong *)(param_1 + 0x7c);" (assignment_expression "local_40[0] = *(ulong *)(param_1 + 0x7c)" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (pointer_expression "*(ulong *)(param_1 + 0x7c)" * (cast_expression "(ulong *)(param_1 + 0x7c)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "cVar2 = *(char *)(param_1 + 0xa9);" (assignment_expression "cVar2 = *(char *)(param_1 + 0xa9)" identifier = (pointer_expression "*(char *)(param_1 + 0xa9)" * (cast_expression "(char *)(param_1 + 0xa9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa9)" ( (binary_expression "param_1 + 0xa9" identifier + number_literal) ))))) ;) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (if_statement "if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }" { (labeled_statement "LAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);" statement_identifier : (expression_statement "local_40[0] = *(ulong *)(param_1 + 0x8c);" (assignment_expression "local_40[0] = *(ulong *)(param_1 + 0x8c)" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (pointer_expression "*(ulong *)(param_1 + 0x8c)" * (cast_expression "(ulong *)(param_1 + 0x8c)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x8c)" ( (binary_expression "param_1 + 0x8c" identifier + number_literal) ))))) ;)) (expression_statement "iVar4 = FUN_00363580(param_1,local_40);" (assignment_expression "iVar4 = FUN_00363580(param_1,local_40)" identifier = (call_expression "FUN_00363580(param_1,local_40)" identifier (argument_list "(param_1,local_40)" ( identifier , identifier )))) ;) (expression_statement "param_2 = param_2 + iVar4;" (assignment_expression "param_2 = param_2 + iVar4" identifier = (binary_expression "param_2 + iVar4" identifier + identifier)) ;) (if_statement "if (cVar2 == '\0') goto LAB_00363b85;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00363b85;" goto statement_identifier ;)) })) (if_statement "if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0xaa) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xaa) != '\0'" (pointer_expression "*(char *)(param_1 + 0xaa)" * (cast_expression "(char *)(param_1 + 0xaa)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xaa)" ( (binary_expression "param_1 + 0xaa" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }" { (expression_statement "param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;" (assignment_expression "param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2" identifier = (binary_expression "*(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2" (binary_expression "*(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20)" (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) >> number_literal)) ;) })) (expression_statement "lVar5 = FUN_00339250(param_1 + 0x68,0,1);" (assignment_expression "lVar5 = FUN_00339250(param_1 + 0x68,0,1)" identifier = (call_expression "FUN_00339250(param_1 + 0x68,0,1)" identifier (argument_list "(param_1 + 0x68,0,1)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) , number_literal , number_literal )))) ;) (if_statement "if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }" if (parenthesized_expression "(lVar5 == -1)" ( (binary_expression "lVar5 == -1" identifier == number_literal) )) (compound_statement "{\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }" { (expression_statement "local_40[0] = 0;" (assignment_expression "local_40[0] = 0" (subscript_expression "local_40[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }" else (compound_statement "{\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }" { (expression_statement "lVar5 = lVar5 + param_2;" (assignment_expression "lVar5 = lVar5 + param_2" identifier = (binary_expression "lVar5 + param_2" identifier + identifier)) ;) (expression_statement "uVar6 = (uint)local_40[0];" (assignment_expression "uVar6 = (uint)local_40[0]" identifier = (cast_expression "(uint)local_40[0]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_40[0]" identifier [ number_literal ]))) ;) (expression_statement "local_40[0] = local_40[0] >> 0x20;" (assignment_expression "local_40[0] = local_40[0] >> 0x20" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (binary_expression "local_40[0] >> 0x20" (subscript_expression "local_40[0]" identifier [ number_literal ]) >> number_literal)) ;) }))) }) (else_clause "else {\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }" else (compound_statement "{\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }" { (if_statement "if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0xc0) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xc0) != '\0'" (pointer_expression "*(char *)(param_1 + 0xc0)" * (cast_expression "(char *)(param_1 + 0xc0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }" { (expression_statement "*(undefined1 *)(param_1 + 0xc0) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc0) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc0)" * (cast_expression "(undefined1 *)(param_1 + 0xc0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;" (assignment_expression "lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4" identifier = (binary_expression "*(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4" (pointer_expression "*(long *)(param_1 + 0xb0)" * (cast_expression "(long *)(param_1 + 0xb0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) + (binary_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4" (call_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" ( (binary_expression "*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ))) * number_literal))) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98)" (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) )))) = (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 "*(long *)(param_1 + 0xb0) = lVar5;" (assignment_expression "*(long *)(param_1 + 0xb0) = lVar5" (pointer_expression "*(long *)(param_1 + 0xb0)" * (cast_expression "(long *)(param_1 + 0xb0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_1 + 0x10) = lVar5;" (assignment_expression "*(long *)(param_1 + 0x10) = lVar5" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8)" (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) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0xb8)" * (cast_expression "(undefined8 *)(param_1 + 0xb8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) ))))) ;) })) (expression_statement "local_40[0] = *(ulong *)(param_1 + 0x7c);" (assignment_expression "local_40[0] = *(ulong *)(param_1 + 0x7c)" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (pointer_expression "*(ulong *)(param_1 + 0x7c)" * (cast_expression "(ulong *)(param_1 + 0x7c)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "param_2 = param_2 * iVar4;" (assignment_expression "param_2 = param_2 * iVar4" identifier = (binary_expression "param_2 * iVar4" identifier * identifier)) ;) (if_statement "if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;" if (parenthesized_expression "((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1))" ( (binary_expression "(*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)" (parenthesized_expression "(*(char *)(param_1 + 0xa9) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xa9) != '\0'" (pointer_expression "*(char *)(param_1 + 0xa9)" * (cast_expression "(char *)(param_1 + 0xa9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa9)" ( (binary_expression "param_1 + 0xa9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar2 = '\0', param_3 == 1)" ( (comma_expression "cVar2 = '\0', param_3 == 1" (assignment_expression "cVar2 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) , (binary_expression "param_3 == 1" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00363bb0;" goto statement_identifier ;)) (labeled_statement "LAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);" statement_identifier : (expression_statement "auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);" (assignment_expression "auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0])" identifier = (call_expression "FUN_00363700(param_1,param_2,param_3,local_40[0])" identifier (argument_list "(param_1,param_2,param_3,local_40[0])" ( identifier , identifier , identifier , (subscript_expression "local_40[0]" identifier [ number_literal ]) )))) ;)) (expression_statement "lVar5 = auVar7._0_8_;" (assignment_expression "lVar5 = auVar7._0_8_" identifier = (field_expression "auVar7._0_8_" identifier . field_identifier)) ;) (expression_statement "uVar6 = auVar7._8_4_;" (assignment_expression "uVar6 = auVar7._8_4_" identifier = (field_expression "auVar7._8_4_" identifier . field_identifier)) ;) (expression_statement "local_40[0] = auVar7._8_8_ >> 0x20;" (assignment_expression "local_40[0] = auVar7._8_8_ >> 0x20" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (binary_expression "auVar7._8_8_ >> 0x20" (field_expression "auVar7._8_8_" identifier . field_identifier) >> number_literal)) ;) }))) (labeled_statement "LAB_00363a5f:\n  auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;" statement_identifier : (expression_statement "auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;" (assignment_expression "auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20" (field_expression "auVar7._8_8_" identifier . field_identifier) = (binary_expression "(ulong)uVar6 | local_40[0] << 0x20" (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) | (binary_expression "local_40[0] << 0x20" (subscript_expression "local_40[0]" identifier [ number_literal ]) << number_literal))) ;)) (expression_statement "auVar7._0_8_ = lVar5;" (assignment_expression "auVar7._0_8_ = lVar5" (field_expression "auVar7._0_8_" identifier . field_identifier) = identifier) ;) (return_statement "return auVar7;" return identifier ;) }))
(translation_unit "/* std::wfilebuf::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode) */\n\nundefined1  [16] std::wfilebuf::seekoff(wfilebuf *param_1,long param_2,int param_3)\n\n{\n  bool bVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  ulong uVar7;\n  wfilebuf wVar8;\n  undefined1 auVar9 [16];\n  __mbstate_t local_40 [2];\n  \n  if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }\n  cVar2 = __basic_file<char>::is_open((__basic_file<char> *)(param_1 + 0x68));\n  uVar7 = 0;\n  uVar6 = 0;\n  lVar5 = -1;\n  if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;\n  if (((param_3 == 1) && (param_2 == 0)) &&\n     ((param_1[0xaa] == (wfilebuf)0x0 ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    wVar8 = param_1[0xa9];\n    param_2 = 0;\n    if (wVar8 != (wfilebuf)0x0) {\nLAB_00363bb0:\n      local_40[0] = *(__mbstate_t *)(param_1 + 0x8c);\n      iVar4 = _M_get_ext_pos(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (wVar8 == (wfilebuf)0x0) goto LAB_00363b85;\n    }\n    if (param_1[0xaa] != (wfilebuf)0x0) {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = __basic_file<char>::seekoff((__basic_file<char> *)(param_1 + 0x68),0,1);\n    if (lVar5 == -1) {\n      uVar7 = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = local_40[0].__count;\n      uVar7 = (ulong)local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (param_1[0xc0] != (wfilebuf)0x0) {\n      param_1[0xc0] = (wfilebuf)0x0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((param_1[0xa9] != (wfilebuf)0x0) && (wVar8 = (wfilebuf)0x0, param_3 == 1))\n    goto LAB_00363bb0;\nLAB_00363b85:\n    auVar9 = _M_seek(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar9._0_8_;\n    uVar6 = auVar9._8_4_;\n    uVar7 = auVar9._8_8_ >> 0x20;\n  }\nLAB_00363a5f:\n  auVar9._8_8_ = (ulong)uVar6 | uVar7 << 0x20;\n  auVar9._0_8_ = lVar5;\n  return auVar9;\n}\n\n" comment (expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" identifier [ number_literal ]) ;) (labeled_statement "std::wfilebuf::seekoff(wfilebuf *param_1,long param_2,int param_3)\n\n{\n  bool bVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  ulong uVar7;\n  wfilebuf wVar8;\n  undefined1 auVar9 [16];\n  __mbstate_t local_40 [2];\n  \n  if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }\n  cVar2 = __basic_file<char>::is_open((__basic_file<char> *)(param_1 + 0x68));\n  uVar7 = 0;\n  uVar6 = 0;\n  lVar5 = -1;\n  if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;\n  if (((param_3 == 1) && (param_2 == 0)) &&\n     ((param_1[0xaa] == (wfilebuf)0x0 ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    wVar8 = param_1[0xa9];\n    param_2 = 0;\n    if (wVar8 != (wfilebuf)0x0) {\nLAB_00363bb0:\n      local_40[0] = *(__mbstate_t *)(param_1 + 0x8c);\n      iVar4 = _M_get_ext_pos(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (wVar8 == (wfilebuf)0x0) goto LAB_00363b85;\n    }\n    if (param_1[0xaa] != (wfilebuf)0x0) {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = __basic_file<char>::seekoff((__basic_file<char> *)(param_1 + 0x68),0,1);\n    if (lVar5 == -1) {\n      uVar7 = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = local_40[0].__count;\n      uVar7 = (ulong)local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (param_1[0xc0] != (wfilebuf)0x0) {\n      param_1[0xc0] = (wfilebuf)0x0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((param_1[0xa9] != (wfilebuf)0x0) && (wVar8 = (wfilebuf)0x0, param_3 == 1))\n    goto LAB_00363bb0;\nLAB_00363b85:\n    auVar9 = _M_seek(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar9._0_8_;\n    uVar6 = auVar9._8_4_;\n    uVar7 = auVar9._8_8_ >> 0x20;\n  }\nLAB_00363a5f:\n  auVar9._8_8_ = (ulong)uVar6 | uVar7 << 0x20;\n  auVar9._0_8_ = lVar5;\n  return auVar9;\n}" statement_identifier : (ERROR ":" :) (labeled_statement "wfilebuf::seekoff(wfilebuf *param_1,long param_2,int param_3)\n\n{\n  bool bVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  ulong uVar7;\n  wfilebuf wVar8;\n  undefined1 auVar9 [16];\n  __mbstate_t local_40 [2];\n  \n  if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }\n  cVar2 = __basic_file<char>::is_open((__basic_file<char> *)(param_1 + 0x68));\n  uVar7 = 0;\n  uVar6 = 0;\n  lVar5 = -1;\n  if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;\n  if (((param_3 == 1) && (param_2 == 0)) &&\n     ((param_1[0xaa] == (wfilebuf)0x0 ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    wVar8 = param_1[0xa9];\n    param_2 = 0;\n    if (wVar8 != (wfilebuf)0x0) {\nLAB_00363bb0:\n      local_40[0] = *(__mbstate_t *)(param_1 + 0x8c);\n      iVar4 = _M_get_ext_pos(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (wVar8 == (wfilebuf)0x0) goto LAB_00363b85;\n    }\n    if (param_1[0xaa] != (wfilebuf)0x0) {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = __basic_file<char>::seekoff((__basic_file<char> *)(param_1 + 0x68),0,1);\n    if (lVar5 == -1) {\n      uVar7 = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = local_40[0].__count;\n      uVar7 = (ulong)local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (param_1[0xc0] != (wfilebuf)0x0) {\n      param_1[0xc0] = (wfilebuf)0x0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((param_1[0xa9] != (wfilebuf)0x0) && (wVar8 = (wfilebuf)0x0, param_3 == 1))\n    goto LAB_00363bb0;\nLAB_00363b85:\n    auVar9 = _M_seek(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar9._0_8_;\n    uVar6 = auVar9._8_4_;\n    uVar7 = auVar9._8_8_ >> 0x20;\n  }\nLAB_00363a5f:\n  auVar9._8_8_ = (ulong)uVar6 | uVar7 << 0x20;\n  auVar9._0_8_ = lVar5;\n  return auVar9;\n}" statement_identifier : (ERROR ":seekoff(wfilebuf *param_1,long param_2,int param_3)" : (call_expression "seekoff(wfilebuf *param_1,long param_2,int param_3)" identifier (argument_list "(wfilebuf *param_1,long param_2,int param_3)" ( (binary_expression "wfilebuf *param_1" identifier * identifier) , (ERROR "long" identifier) identifier , (ERROR "int" identifier) identifier )))) (compound_statement "{\n  bool bVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  ulong uVar7;\n  wfilebuf wVar8;\n  undefined1 auVar9 [16];\n  __mbstate_t local_40 [2];\n  \n  if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }\n  cVar2 = __basic_file<char>::is_open((__basic_file<char> *)(param_1 + 0x68));\n  uVar7 = 0;\n  uVar6 = 0;\n  lVar5 = -1;\n  if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;\n  if (((param_3 == 1) && (param_2 == 0)) &&\n     ((param_1[0xaa] == (wfilebuf)0x0 ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    wVar8 = param_1[0xa9];\n    param_2 = 0;\n    if (wVar8 != (wfilebuf)0x0) {\nLAB_00363bb0:\n      local_40[0] = *(__mbstate_t *)(param_1 + 0x8c);\n      iVar4 = _M_get_ext_pos(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (wVar8 == (wfilebuf)0x0) goto LAB_00363b85;\n    }\n    if (param_1[0xaa] != (wfilebuf)0x0) {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = __basic_file<char>::seekoff((__basic_file<char> *)(param_1 + 0x68),0,1);\n    if (lVar5 == -1) {\n      uVar7 = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = local_40[0].__count;\n      uVar7 = (ulong)local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (param_1[0xc0] != (wfilebuf)0x0) {\n      param_1[0xc0] = (wfilebuf)0x0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((param_1[0xa9] != (wfilebuf)0x0) && (wVar8 = (wfilebuf)0x0, param_3 == 1))\n    goto LAB_00363bb0;\nLAB_00363b85:\n    auVar9 = _M_seek(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar9._0_8_;\n    uVar6 = auVar9._8_4_;\n    uVar7 = auVar9._8_8_ >> 0x20;\n  }\nLAB_00363a5f:\n  auVar9._8_8_ = (ulong)uVar6 | uVar7 << 0x20;\n  auVar9._0_8_ = lVar5;\n  return auVar9;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "ulong uVar7;" type_identifier identifier ;) (declaration "wfilebuf wVar8;" type_identifier identifier ;) (declaration "undefined1 auVar9 [16];" type_identifier (array_declarator "auVar9 [16]" identifier [ number_literal ]) ;) (declaration "__mbstate_t local_40 [2];" type_identifier (array_declarator "local_40 [2]" identifier [ number_literal ]) ;) (if_statement "if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }" if (parenthesized_expression "(*(long **)(param_1 + 200) == (long *)0x0)" ( (binary_expression "*(long **)(param_1 + 200) == (long *)0x0" (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) )))) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    bVar1 = true;\n    iVar4 = 0;\n  }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }" else (compound_statement "{\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }" { (expression_statement "iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();" (assignment_expression "iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))()" identifier = (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x28))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x28))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x28)" * (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x28)" * (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 200) + 0x28)" ( (binary_expression "**(long **)(param_1 + 200) + 0x28" (pointer_expression "**(long **)(param_1 + 200)" * (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n      iVar4 = iVar3;\n    }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) })) (expression_statement "bVar1 = iVar3 < 1;" (assignment_expression "bVar1 = iVar3 < 1" identifier = (binary_expression "iVar3 < 1" identifier < number_literal)) ;) }))) (expression_statement "cVar2 = __basic_file<char>::is_open((__basic_file<char> *)(param_1 + 0x68));" (assignment_expression "cVar2 = __basic_file<char>::is_open((__basic_file<char> *)(param_1 + 0x68))" identifier = (binary_expression "__basic_file<char>::is_open((__basic_file<char> *)(param_1 + 0x68))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (call_expression "is_open((__basic_file<char> *)(param_1 + 0x68))" identifier (argument_list "((__basic_file<char> *)(param_1 + 0x68))" ( (call_expression "(__basic_file<char> *)(param_1 + 0x68)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))) ))))) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" identifier = number_literal) ;) (if_statement "if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;" if (parenthesized_expression "((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01')" ( (binary_expression "(bool)(param_2 != 0 & bVar1) || cVar2 != '\x01'" (cast_expression "(bool)(param_2 != 0 & bVar1)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(param_2 != 0 & bVar1)" ( (binary_expression "param_2 != 0 & bVar1" (binary_expression "param_2 != 0" identifier != number_literal) & identifier) ))) || (binary_expression "cVar2 != '\x01'" identifier != (char_literal "'\x01'" ' escape_sequence '))) )) (goto_statement "goto LAB_00363a5f;" goto statement_identifier ;)) (if_statement "if (((param_3 == 1) && (param_2 == 0)) &&\n     ((param_1[0xaa] == (wfilebuf)0x0 ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    wVar8 = param_1[0xa9];\n    param_2 = 0;\n    if (wVar8 != (wfilebuf)0x0) {\nLAB_00363bb0:\n      local_40[0] = *(__mbstate_t *)(param_1 + 0x8c);\n      iVar4 = _M_get_ext_pos(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (wVar8 == (wfilebuf)0x0) goto LAB_00363b85;\n    }\n    if (param_1[0xaa] != (wfilebuf)0x0) {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = __basic_file<char>::seekoff((__basic_file<char> *)(param_1 + 0x68),0,1);\n    if (lVar5 == -1) {\n      uVar7 = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = local_40[0].__count;\n      uVar7 = (ulong)local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (param_1[0xc0] != (wfilebuf)0x0) {\n      param_1[0xc0] = (wfilebuf)0x0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((param_1[0xa9] != (wfilebuf)0x0) && (wVar8 = (wfilebuf)0x0, param_3 == 1))\n    goto LAB_00363bb0;\nLAB_00363b85:\n    auVar9 = _M_seek(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar9._0_8_;\n    uVar6 = auVar9._8_4_;\n    uVar7 = auVar9._8_8_ >> 0x20;\n  }" if (parenthesized_expression "(((param_3 == 1) && (param_2 == 0)) &&\n     ((param_1[0xaa] == (wfilebuf)0x0 ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0'))))" ( (binary_expression "((param_3 == 1) && (param_2 == 0)) &&\n     ((param_1[0xaa] == (wfilebuf)0x0 ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))" (parenthesized_expression "((param_3 == 1) && (param_2 == 0))" ( (binary_expression "(param_3 == 1) && (param_2 == 0)" (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) && (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) && (parenthesized_expression "((param_1[0xaa] == (wfilebuf)0x0 ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))" ( (parenthesized_expression "(param_1[0xaa] == (wfilebuf)0x0 ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0'))" ( (binary_expression "param_1[0xaa] == (wfilebuf)0x0 ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')" (binary_expression "param_1[0xaa] == (wfilebuf)0x0" (subscript_expression "param_1[0xaa]" identifier [ number_literal ]) == (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) || (parenthesized_expression "(cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')" ( (comma_expression "cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0'" (assignment_expression "cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))()" identifier = (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x30)" * (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x30)" * (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 200) + 0x30)" ( (binary_expression "**(long **)(param_1 + 200) + 0x30" (pointer_expression "**(long **)(param_1 + 200)" * (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) , (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) ))) )) (compound_statement "{\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    wVar8 = param_1[0xa9];\n    param_2 = 0;\n    if (wVar8 != (wfilebuf)0x0) {\nLAB_00363bb0:\n      local_40[0] = *(__mbstate_t *)(param_1 + 0x8c);\n      iVar4 = _M_get_ext_pos(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (wVar8 == (wfilebuf)0x0) goto LAB_00363b85;\n    }\n    if (param_1[0xaa] != (wfilebuf)0x0) {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = __basic_file<char>::seekoff((__basic_file<char> *)(param_1 + 0x68),0,1);\n    if (lVar5 == -1) {\n      uVar7 = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = local_40[0].__count;\n      uVar7 = (ulong)local_40[0] >> 0x20;\n    }\n  }" { (expression_statement "local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);" (assignment_expression "local_40[0] = *(__mbstate_t *)(param_1 + 0x7c)" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (pointer_expression "*(__mbstate_t *)(param_1 + 0x7c)" * (cast_expression "(__mbstate_t *)(param_1 + 0x7c)" ( (type_descriptor "__mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "wVar8 = param_1[0xa9];" (assignment_expression "wVar8 = param_1[0xa9]" identifier = (subscript_expression "param_1[0xa9]" identifier [ number_literal ])) ;) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (if_statement "if (wVar8 != (wfilebuf)0x0) {\nLAB_00363bb0:\n      local_40[0] = *(__mbstate_t *)(param_1 + 0x8c);\n      iVar4 = _M_get_ext_pos(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (wVar8 == (wfilebuf)0x0) goto LAB_00363b85;\n    }" if (parenthesized_expression "(wVar8 != (wfilebuf)0x0)" ( (binary_expression "wVar8 != (wfilebuf)0x0" identifier != (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) )) (compound_statement "{\nLAB_00363bb0:\n      local_40[0] = *(__mbstate_t *)(param_1 + 0x8c);\n      iVar4 = _M_get_ext_pos(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (wVar8 == (wfilebuf)0x0) goto LAB_00363b85;\n    }" { (labeled_statement "LAB_00363bb0:\n      local_40[0] = *(__mbstate_t *)(param_1 + 0x8c);" statement_identifier : (expression_statement "local_40[0] = *(__mbstate_t *)(param_1 + 0x8c);" (assignment_expression "local_40[0] = *(__mbstate_t *)(param_1 + 0x8c)" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (pointer_expression "*(__mbstate_t *)(param_1 + 0x8c)" * (cast_expression "(__mbstate_t *)(param_1 + 0x8c)" ( (type_descriptor "__mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x8c)" ( (binary_expression "param_1 + 0x8c" identifier + number_literal) ))))) ;)) (expression_statement "iVar4 = _M_get_ext_pos(param_1,local_40);" (assignment_expression "iVar4 = _M_get_ext_pos(param_1,local_40)" identifier = (call_expression "_M_get_ext_pos(param_1,local_40)" identifier (argument_list "(param_1,local_40)" ( identifier , identifier )))) ;) (expression_statement "param_2 = param_2 + iVar4;" (assignment_expression "param_2 = param_2 + iVar4" identifier = (binary_expression "param_2 + iVar4" identifier + identifier)) ;) (if_statement "if (wVar8 == (wfilebuf)0x0) goto LAB_00363b85;" if (parenthesized_expression "(wVar8 == (wfilebuf)0x0)" ( (binary_expression "wVar8 == (wfilebuf)0x0" identifier == (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) )) (goto_statement "goto LAB_00363b85;" goto statement_identifier ;)) })) (if_statement "if (param_1[0xaa] != (wfilebuf)0x0) {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }" if (parenthesized_expression "(param_1[0xaa] != (wfilebuf)0x0)" ( (binary_expression "param_1[0xaa] != (wfilebuf)0x0" (subscript_expression "param_1[0xaa]" identifier [ number_literal ]) != (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) )) (compound_statement "{\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }" { (expression_statement "param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;" (assignment_expression "param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2" identifier = (binary_expression "*(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2" (binary_expression "*(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20)" (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) >> number_literal)) ;) })) (expression_statement "lVar5 = __basic_file<char>::seekoff((__basic_file<char> *)(param_1 + 0x68),0,1);" (assignment_expression "lVar5 = __basic_file<char>::seekoff((__basic_file<char> *)(param_1 + 0x68),0,1)" identifier = (binary_expression "__basic_file<char>::seekoff((__basic_file<char> *)(param_1 + 0x68),0,1)" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (call_expression "seekoff((__basic_file<char> *)(param_1 + 0x68),0,1)" identifier (argument_list "((__basic_file<char> *)(param_1 + 0x68),0,1)" ( (call_expression "(__basic_file<char> *)(param_1 + 0x68)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))) , number_literal , number_literal ))))) ;) (if_statement "if (lVar5 == -1) {\n      uVar7 = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = local_40[0].__count;\n      uVar7 = (ulong)local_40[0] >> 0x20;\n    }" if (parenthesized_expression "(lVar5 == -1)" ( (binary_expression "lVar5 == -1" identifier == number_literal) )) (compound_statement "{\n      uVar7 = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = local_40[0].__count;\n      uVar7 = (ulong)local_40[0] >> 0x20;\n    }" else (compound_statement "{\n      lVar5 = lVar5 + param_2;\n      uVar6 = local_40[0].__count;\n      uVar7 = (ulong)local_40[0] >> 0x20;\n    }" { (expression_statement "lVar5 = lVar5 + param_2;" (assignment_expression "lVar5 = lVar5 + param_2" identifier = (binary_expression "lVar5 + param_2" identifier + identifier)) ;) (expression_statement "uVar6 = local_40[0].__count;" (assignment_expression "uVar6 = local_40[0].__count" identifier = (field_expression "local_40[0].__count" (subscript_expression "local_40[0]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "uVar7 = (ulong)local_40[0] >> 0x20;" (assignment_expression "uVar7 = (ulong)local_40[0] >> 0x20" identifier = (binary_expression "(ulong)local_40[0] >> 0x20" (cast_expression "(ulong)local_40[0]" ( (type_descriptor "ulong" type_identifier) ) (subscript_expression "local_40[0]" identifier [ number_literal ])) >> number_literal)) ;) }))) }) (else_clause "else {\n    if (param_1[0xc0] != (wfilebuf)0x0) {\n      param_1[0xc0] = (wfilebuf)0x0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((param_1[0xa9] != (wfilebuf)0x0) && (wVar8 = (wfilebuf)0x0, param_3 == 1))\n    goto LAB_00363bb0;\nLAB_00363b85:\n    auVar9 = _M_seek(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar9._0_8_;\n    uVar6 = auVar9._8_4_;\n    uVar7 = auVar9._8_8_ >> 0x20;\n  }" else (compound_statement "{\n    if (param_1[0xc0] != (wfilebuf)0x0) {\n      param_1[0xc0] = (wfilebuf)0x0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((param_1[0xa9] != (wfilebuf)0x0) && (wVar8 = (wfilebuf)0x0, param_3 == 1))\n    goto LAB_00363bb0;\nLAB_00363b85:\n    auVar9 = _M_seek(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar9._0_8_;\n    uVar6 = auVar9._8_4_;\n    uVar7 = auVar9._8_8_ >> 0x20;\n  }" { (if_statement "if (param_1[0xc0] != (wfilebuf)0x0) {\n      param_1[0xc0] = (wfilebuf)0x0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }" if (parenthesized_expression "(param_1[0xc0] != (wfilebuf)0x0)" ( (binary_expression "param_1[0xc0] != (wfilebuf)0x0" (subscript_expression "param_1[0xc0]" identifier [ number_literal ]) != (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) )) (compound_statement "{\n      param_1[0xc0] = (wfilebuf)0x0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }" { (expression_statement "param_1[0xc0] = (wfilebuf)0x0;" (assignment_expression "param_1[0xc0] = (wfilebuf)0x0" (subscript_expression "param_1[0xc0]" identifier [ number_literal ]) = (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) ;) (expression_statement "lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;" (assignment_expression "lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4" identifier = (binary_expression "*(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4" (pointer_expression "*(long *)(param_1 + 0xb0)" * (cast_expression "(long *)(param_1 + 0xb0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) + (binary_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4" (call_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" ( (binary_expression "*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ))) * number_literal))) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98)" (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) )))) = (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 "*(long *)(param_1 + 0xb0) = lVar5;" (assignment_expression "*(long *)(param_1 + 0xb0) = lVar5" (pointer_expression "*(long *)(param_1 + 0xb0)" * (cast_expression "(long *)(param_1 + 0xb0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_1 + 0x10) = lVar5;" (assignment_expression "*(long *)(param_1 + 0x10) = lVar5" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8)" (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) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0xb8)" * (cast_expression "(undefined8 *)(param_1 + 0xb8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) ))))) ;) })) (expression_statement "local_40[0] = *(__mbstate_t *)(param_1 + 0x7c);" (assignment_expression "local_40[0] = *(__mbstate_t *)(param_1 + 0x7c)" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (pointer_expression "*(__mbstate_t *)(param_1 + 0x7c)" * (cast_expression "(__mbstate_t *)(param_1 + 0x7c)" ( (type_descriptor "__mbstate_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "param_2 = param_2 * iVar4;" (assignment_expression "param_2 = param_2 * iVar4" identifier = (binary_expression "param_2 * iVar4" identifier * identifier)) ;) (if_statement "if ((param_1[0xa9] != (wfilebuf)0x0) && (wVar8 = (wfilebuf)0x0, param_3 == 1))\n    goto LAB_00363bb0;" if (parenthesized_expression "((param_1[0xa9] != (wfilebuf)0x0) && (wVar8 = (wfilebuf)0x0, param_3 == 1))" ( (binary_expression "(param_1[0xa9] != (wfilebuf)0x0) && (wVar8 = (wfilebuf)0x0, param_3 == 1)" (parenthesized_expression "(param_1[0xa9] != (wfilebuf)0x0)" ( (binary_expression "param_1[0xa9] != (wfilebuf)0x0" (subscript_expression "param_1[0xa9]" identifier [ number_literal ]) != (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) )) && (parenthesized_expression "(wVar8 = (wfilebuf)0x0, param_3 == 1)" ( (comma_expression "wVar8 = (wfilebuf)0x0, param_3 == 1" (assignment_expression "wVar8 = (wfilebuf)0x0" identifier = (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) , (binary_expression "param_3 == 1" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00363bb0;" goto statement_identifier ;)) (labeled_statement "LAB_00363b85:\n    auVar9 = _M_seek(param_1,param_2,param_3,local_40[0]);" statement_identifier : (expression_statement "auVar9 = _M_seek(param_1,param_2,param_3,local_40[0]);" (assignment_expression "auVar9 = _M_seek(param_1,param_2,param_3,local_40[0])" identifier = (call_expression "_M_seek(param_1,param_2,param_3,local_40[0])" identifier (argument_list "(param_1,param_2,param_3,local_40[0])" ( identifier , identifier , identifier , (subscript_expression "local_40[0]" identifier [ number_literal ]) )))) ;)) (expression_statement "lVar5 = auVar9._0_8_;" (assignment_expression "lVar5 = auVar9._0_8_" identifier = (field_expression "auVar9._0_8_" identifier . field_identifier)) ;) (expression_statement "uVar6 = auVar9._8_4_;" (assignment_expression "uVar6 = auVar9._8_4_" identifier = (field_expression "auVar9._8_4_" identifier . field_identifier)) ;) (expression_statement "uVar7 = auVar9._8_8_ >> 0x20;" (assignment_expression "uVar7 = auVar9._8_8_ >> 0x20" identifier = (binary_expression "auVar9._8_8_ >> 0x20" (field_expression "auVar9._8_8_" identifier . field_identifier) >> number_literal)) ;) }))) (labeled_statement "LAB_00363a5f:\n  auVar9._8_8_ = (ulong)uVar6 | uVar7 << 0x20;" statement_identifier : (expression_statement "auVar9._8_8_ = (ulong)uVar6 | uVar7 << 0x20;" (assignment_expression "auVar9._8_8_ = (ulong)uVar6 | uVar7 << 0x20" (field_expression "auVar9._8_8_" identifier . field_identifier) = (binary_expression "(ulong)uVar6 | uVar7 << 0x20" (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) | (binary_expression "uVar7 << 0x20" identifier << number_literal))) ;)) (expression_statement "auVar9._0_8_ = lVar5;" (assignment_expression "auVar9._0_8_ = lVar5" (field_expression "auVar9._0_8_" identifier . field_identifier) = identifier) ;) (return_statement "return auVar9;" return identifier ;) }))))
(translation_unit "undefined1  [16] FUN_00363a00(long param_1,long param_2,int param_3)\n\n{\n  bool bVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  undefined1 auVar7 [16];\n  ulong local_40 [2];\n  \n  if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }\n  cVar2 = FUN_00338f30(param_1 + 0x68);\n  local_40[0] = 0;\n  uVar6 = 0;\n  lVar5 = -1;\n  if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;\n  if (((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    cVar2 = *(char *)(param_1 + 0xa9);\n    param_2 = 0;\n    if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }\n    if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = FUN_00339250(param_1 + 0x68,0,1);\n    if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }\nLAB_00363a5f:\n  auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;\n  auVar7._0_8_ = lVar5;\n  return auVar7;\n}\n\n" (expression_statement "undefined1  [16]" (subscript_expression "undefined1  [16]" identifier [ number_literal ]) ;) (macro_type_specifier "FUN_00363a00(long param_1,long param_2,int param_3)" identifier ( (ERROR "long param_1,long param_2,int" (type_descriptor "long param_1" (sized_type_specifier "long param_1" long type_identifier)) , (type_descriptor "long param_2" (sized_type_specifier "long param_2" long type_identifier)) , primitive_type) (type_descriptor "param_3" type_identifier) )) ; (compound_statement "{\n  bool bVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  undefined1 auVar7 [16];\n  ulong local_40 [2];\n  \n  if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }\n  cVar2 = FUN_00338f30(param_1 + 0x68);\n  local_40[0] = 0;\n  uVar6 = 0;\n  lVar5 = -1;\n  if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;\n  if (((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    cVar2 = *(char *)(param_1 + 0xa9);\n    param_2 = 0;\n    if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }\n    if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = FUN_00339250(param_1 + 0x68,0,1);\n    if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }\nLAB_00363a5f:\n  auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;\n  auVar7._0_8_ = lVar5;\n  return auVar7;\n}" { (declaration "bool bVar1;" primitive_type identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined1 auVar7 [16];" type_identifier (array_declarator "auVar7 [16]" identifier [ number_literal ]) ;) (declaration "ulong local_40 [2];" type_identifier (array_declarator "local_40 [2]" identifier [ number_literal ]) ;) (if_statement "if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }" if (parenthesized_expression "(*(long **)(param_1 + 200) == (long *)0x0)" ( (binary_expression "*(long **)(param_1 + 200) == (long *)0x0" (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) )))) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    bVar1 = true;\n    iVar4 = 0;\n  }" { (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" identifier = true) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }" else (compound_statement "{\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }" { (expression_statement "iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();" (assignment_expression "iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))()" identifier = (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x28))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x28))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x28)" * (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x28)" * (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 200) + 0x28)" ( (binary_expression "**(long **)(param_1 + 200) + 0x28" (pointer_expression "**(long **)(param_1 + 200)" * (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }" if (parenthesized_expression "(-1 < iVar3)" ( (binary_expression "-1 < iVar3" number_literal < identifier) )) (compound_statement "{\n      iVar4 = iVar3;\n    }" { (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" identifier = identifier) ;) })) (expression_statement "bVar1 = iVar3 < 1;" (assignment_expression "bVar1 = iVar3 < 1" identifier = (binary_expression "iVar3 < 1" identifier < number_literal)) ;) }))) (expression_statement "cVar2 = FUN_00338f30(param_1 + 0x68);" (assignment_expression "cVar2 = FUN_00338f30(param_1 + 0x68)" identifier = (call_expression "FUN_00338f30(param_1 + 0x68)" identifier (argument_list "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) ;) (expression_statement "local_40[0] = 0;" (assignment_expression "local_40[0] = 0" (subscript_expression "local_40[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" identifier = number_literal) ;) (if_statement "if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;" if (parenthesized_expression "((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01')" ( (binary_expression "(bool)(param_2 != 0 & bVar1) || cVar2 != '\x01'" (cast_expression "(bool)(param_2 != 0 & bVar1)" ( (type_descriptor "bool" primitive_type) ) (parenthesized_expression "(param_2 != 0 & bVar1)" ( (binary_expression "param_2 != 0 & bVar1" (binary_expression "param_2 != 0" identifier != number_literal) & identifier) ))) || (binary_expression "cVar2 != '\x01'" identifier != (char_literal "'\x01'" ' escape_sequence '))) )) (goto_statement "goto LAB_00363a5f;" goto statement_identifier ;)) (if_statement "if (((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    cVar2 = *(char *)(param_1 + 0xa9);\n    param_2 = 0;\n    if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }\n    if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = FUN_00339250(param_1 + 0x68,0,1);\n    if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }" if (parenthesized_expression "(((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0'))))" ( (binary_expression "((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))" (parenthesized_expression "((param_3 == 1) && (param_2 == 0))" ( (binary_expression "(param_3 == 1) && (param_2 == 0)" (parenthesized_expression "(param_3 == 1)" ( (binary_expression "param_3 == 1" identifier == number_literal) )) && (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) ))) )) && (parenthesized_expression "((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))" ( (parenthesized_expression "(*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0'))" ( (binary_expression "*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')" (binary_expression "*(char *)(param_1 + 0xaa) == '\0'" (pointer_expression "*(char *)(param_1 + 0xaa)" * (cast_expression "(char *)(param_1 + 0xaa)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xaa)" ( (binary_expression "param_1 + 0xaa" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) || (parenthesized_expression "(cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')" ( (comma_expression "cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0'" (assignment_expression "cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))()" identifier = (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x30)" * (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x30)" * (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 200) + 0x30)" ( (binary_expression "**(long **)(param_1 + 200) + 0x30" (pointer_expression "**(long **)(param_1 + 200)" * (pointer_expression "*(long **)(param_1 + 200)" * (cast_expression "(long **)(param_1 + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) , (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) ))) )) ))) )) (compound_statement "{\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    cVar2 = *(char *)(param_1 + 0xa9);\n    param_2 = 0;\n    if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }\n    if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = FUN_00339250(param_1 + 0x68,0,1);\n    if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }\n  }" { (expression_statement "local_40[0] = *(ulong *)(param_1 + 0x7c);" (assignment_expression "local_40[0] = *(ulong *)(param_1 + 0x7c)" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (pointer_expression "*(ulong *)(param_1 + 0x7c)" * (cast_expression "(ulong *)(param_1 + 0x7c)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "cVar2 = *(char *)(param_1 + 0xa9);" (assignment_expression "cVar2 = *(char *)(param_1 + 0xa9)" identifier = (pointer_expression "*(char *)(param_1 + 0xa9)" * (cast_expression "(char *)(param_1 + 0xa9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa9)" ( (binary_expression "param_1 + 0xa9" identifier + number_literal) ))))) ;) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (if_statement "if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }" { (labeled_statement "LAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);" statement_identifier : (expression_statement "local_40[0] = *(ulong *)(param_1 + 0x8c);" (assignment_expression "local_40[0] = *(ulong *)(param_1 + 0x8c)" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (pointer_expression "*(ulong *)(param_1 + 0x8c)" * (cast_expression "(ulong *)(param_1 + 0x8c)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x8c)" ( (binary_expression "param_1 + 0x8c" identifier + number_literal) ))))) ;)) (expression_statement "iVar4 = FUN_00363580(param_1,local_40);" (assignment_expression "iVar4 = FUN_00363580(param_1,local_40)" identifier = (call_expression "FUN_00363580(param_1,local_40)" identifier (argument_list "(param_1,local_40)" ( identifier , identifier )))) ;) (expression_statement "param_2 = param_2 + iVar4;" (assignment_expression "param_2 = param_2 + iVar4" identifier = (binary_expression "param_2 + iVar4" identifier + identifier)) ;) (if_statement "if (cVar2 == '\0') goto LAB_00363b85;" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00363b85;" goto statement_identifier ;)) })) (if_statement "if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0xaa) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xaa) != '\0'" (pointer_expression "*(char *)(param_1 + 0xaa)" * (cast_expression "(char *)(param_1 + 0xaa)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xaa)" ( (binary_expression "param_1 + 0xaa" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }" { (expression_statement "param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;" (assignment_expression "param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2" identifier = (binary_expression "*(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2" (binary_expression "*(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20)" (pointer_expression "*(long *)(param_1 + 0x28)" * (cast_expression "(long *)(param_1 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) - (pointer_expression "*(long *)(param_1 + 0x20)" * (cast_expression "(long *)(param_1 + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) >> number_literal)) ;) })) (expression_statement "lVar5 = FUN_00339250(param_1 + 0x68,0,1);" (assignment_expression "lVar5 = FUN_00339250(param_1 + 0x68,0,1)" identifier = (call_expression "FUN_00339250(param_1 + 0x68,0,1)" identifier (argument_list "(param_1 + 0x68,0,1)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) , number_literal , number_literal )))) ;) (if_statement "if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }" if (parenthesized_expression "(lVar5 == -1)" ( (binary_expression "lVar5 == -1" identifier == number_literal) )) (compound_statement "{\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }" { (expression_statement "local_40[0] = 0;" (assignment_expression "local_40[0] = 0" (subscript_expression "local_40[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" identifier = number_literal) ;) }) (else_clause "else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }" else (compound_statement "{\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }" { (expression_statement "lVar5 = lVar5 + param_2;" (assignment_expression "lVar5 = lVar5 + param_2" identifier = (binary_expression "lVar5 + param_2" identifier + identifier)) ;) (expression_statement "uVar6 = (uint)local_40[0];" (assignment_expression "uVar6 = (uint)local_40[0]" identifier = (cast_expression "(uint)local_40[0]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "local_40[0]" identifier [ number_literal ]))) ;) (expression_statement "local_40[0] = local_40[0] >> 0x20;" (assignment_expression "local_40[0] = local_40[0] >> 0x20" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (binary_expression "local_40[0] >> 0x20" (subscript_expression "local_40[0]" identifier [ number_literal ]) >> number_literal)) ;) }))) }) (else_clause "else {\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }" else (compound_statement "{\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }" { (if_statement "if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0xc0) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xc0) != '\0'" (pointer_expression "*(char *)(param_1 + 0xc0)" * (cast_expression "(char *)(param_1 + 0xc0)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }" { (expression_statement "*(undefined1 *)(param_1 + 0xc0) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc0) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc0)" * (cast_expression "(undefined1 *)(param_1 + 0xc0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;" (assignment_expression "lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4" identifier = (binary_expression "*(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4" (pointer_expression "*(long *)(param_1 + 0xb0)" * (cast_expression "(long *)(param_1 + 0xb0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) + (binary_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4" (call_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" ( (binary_expression "*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) != (pointer_expression "*(long *)(param_1 + 8)" * (cast_expression "(long *)(param_1 + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ))) * number_literal))) ;) (expression_statement "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98)" (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) )))) = (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 "*(long *)(param_1 + 0xb0) = lVar5;" (assignment_expression "*(long *)(param_1 + 0xb0) = lVar5" (pointer_expression "*(long *)(param_1 + 0xb0)" * (cast_expression "(long *)(param_1 + 0xb0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb0)" ( (binary_expression "param_1 + 0xb0" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(param_1 + 0x10) = lVar5;" (assignment_expression "*(long *)(param_1 + 0x10) = lVar5" (pointer_expression "*(long *)(param_1 + 0x10)" * (cast_expression "(long *)(param_1 + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8)" (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) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0xb8)" * (cast_expression "(undefined8 *)(param_1 + 0xb8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xb8)" ( (binary_expression "param_1 + 0xb8" identifier + number_literal) ))))) ;) })) (expression_statement "local_40[0] = *(ulong *)(param_1 + 0x7c);" (assignment_expression "local_40[0] = *(ulong *)(param_1 + 0x7c)" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (pointer_expression "*(ulong *)(param_1 + 0x7c)" * (cast_expression "(ulong *)(param_1 + 0x7c)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "param_2 = param_2 * iVar4;" (assignment_expression "param_2 = param_2 * iVar4" identifier = (binary_expression "param_2 * iVar4" identifier * identifier)) ;) (if_statement "if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;" if (parenthesized_expression "((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1))" ( (binary_expression "(*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)" (parenthesized_expression "(*(char *)(param_1 + 0xa9) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xa9) != '\0'" (pointer_expression "*(char *)(param_1 + 0xa9)" * (cast_expression "(char *)(param_1 + 0xa9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa9)" ( (binary_expression "param_1 + 0xa9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(cVar2 = '\0', param_3 == 1)" ( (comma_expression "cVar2 = '\0', param_3 == 1" (assignment_expression "cVar2 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) , (binary_expression "param_3 == 1" identifier == number_literal)) ))) )) (goto_statement "goto LAB_00363bb0;" goto statement_identifier ;)) (labeled_statement "LAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);" statement_identifier : (expression_statement "auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);" (assignment_expression "auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0])" identifier = (call_expression "FUN_00363700(param_1,param_2,param_3,local_40[0])" identifier (argument_list "(param_1,param_2,param_3,local_40[0])" ( identifier , identifier , identifier , (subscript_expression "local_40[0]" identifier [ number_literal ]) )))) ;)) (expression_statement "lVar5 = auVar7._0_8_;" (assignment_expression "lVar5 = auVar7._0_8_" identifier = (field_expression "auVar7._0_8_" identifier . field_identifier)) ;) (expression_statement "uVar6 = auVar7._8_4_;" (assignment_expression "uVar6 = auVar7._8_4_" identifier = (field_expression "auVar7._8_4_" identifier . field_identifier)) ;) (expression_statement "local_40[0] = auVar7._8_8_ >> 0x20;" (assignment_expression "local_40[0] = auVar7._8_8_ >> 0x20" (subscript_expression "local_40[0]" identifier [ number_literal ]) = (binary_expression "auVar7._8_8_ >> 0x20" (field_expression "auVar7._8_8_" identifier . field_identifier) >> number_literal)) ;) }))) (labeled_statement "LAB_00363a5f:\n  auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;" statement_identifier : (expression_statement "auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;" (assignment_expression "auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20" (field_expression "auVar7._8_8_" identifier . field_identifier) = (binary_expression "(ulong)uVar6 | local_40[0] << 0x20" (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) | (binary_expression "local_40[0] << 0x20" (subscript_expression "local_40[0]" identifier [ number_literal ]) << number_literal))) ;)) (expression_statement "auVar7._0_8_ = lVar5;" (assignment_expression "auVar7._0_8_ = lVar5" (field_expression "auVar7._0_8_" identifier . field_identifier) = identifier) ;) (return_statement "return auVar7;" return identifier ;) }))
(translation_unit (expression_statement (subscript_expression IDENT [ LIT ]) ;) (macro_type_specifier IDENT ( (ERROR (type_descriptor (sized_type_specifier long TYPE)) , (type_descriptor (sized_type_specifier long TYPE)) , TYPE) (type_descriptor TYPE) )) ; (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT < LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) & IDENT) ))) || (binary_expression IDENT != (char_literal ' escape_sequence '))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( )))) , (binary_expression IDENT != (char_literal ' escape_sequence '))) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_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 IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) >> LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) >> LIT)) ;) }))) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (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 IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (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) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (char_literal ' escape_sequence ')) , (binary_expression IDENT == LIT)) ))) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (subscript_expression IDENT [ LIT ]) )))) ;)) (expression_statement (assignment_expression IDENT = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression IDENT = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (field_expression IDENT . field_identifier) >> LIT)) ;) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) | (binary_expression (subscript_expression IDENT [ LIT ]) << 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_00363a00(long param_1,long param_2,int param_3)" (identifier "FUN_00363a00") (( "(") (ERROR "long param_1,long param_2,int" (type_descriptor "long param_1" (sized_type_specifier "long param_1" (long "long") (type_identifier "param_1"))) (, ",") (type_descriptor "long param_2" (sized_type_specifier "long param_2" (long "long") (type_identifier "param_2"))) (, ",") (primitive_type "int")) (type_descriptor "param_3" (type_identifier "param_3")) () ")")) (; "") (compound_statement "{\n  bool bVar1;\n  char cVar2;\n  int iVar3;\n  int iVar4;\n  long lVar5;\n  uint uVar6;\n  undefined1 auVar7 [16];\n  ulong local_40 [2];\n  \n  if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }\n  cVar2 = FUN_00338f30(param_1 + 0x68);\n  local_40[0] = 0;\n  uVar6 = 0;\n  lVar5 = -1;\n  if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;\n  if (((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    cVar2 = *(char *)(param_1 + 0xa9);\n    param_2 = 0;\n    if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }\n    if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = FUN_00339250(param_1 + 0x68,0,1);\n    if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }\nLAB_00363a5f:\n  auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;\n  auVar7._0_8_ = lVar5;\n  return auVar7;\n}" ({ "{") (declaration "bool bVar1;" (primitive_type "bool") (identifier "bVar1") (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "undefined1 auVar7 [16];" (type_identifier "undefined1") (array_declarator "auVar7 [16]" (identifier "auVar7") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "ulong local_40 [2];" (type_identifier "ulong") (array_declarator "local_40 [2]" (identifier "local_40") ([ "[") (number_literal "2") (] "]")) (; ";")) (if_statement "if (*(long **)(param_1 + 200) == (long *)0x0) {\n    bVar1 = true;\n    iVar4 = 0;\n  }\n  else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }" (if "if") (parenthesized_expression "(*(long **)(param_1 + 200) == (long *)0x0)" (( "(") (binary_expression "*(long **)(param_1 + 200) == (long *)0x0" (pointer_expression "*(long **)(param_1 + 200)" (* "*") (cast_expression "(long **)(param_1 + 200)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 200)" (( "(") (binary_expression "param_1 + 200" (identifier "param_1") (+ "+") (number_literal "200")) () ")")))) (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    bVar1 = true;\n    iVar4 = 0;\n  }" ({ "{") (expression_statement "bVar1 = true;" (assignment_expression "bVar1 = true" (identifier "bVar1") (= "=") (true "true")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }" (else "else") (compound_statement "{\n    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();\n    iVar4 = 0;\n    if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }\n    bVar1 = iVar3 < 1;\n  }" ({ "{") (expression_statement "iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();" (assignment_expression "iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))()" (identifier "iVar3") (= "=") (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x28))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x28))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x28)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x28)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 200) + 0x28)" (( "(") (binary_expression "**(long **)(param_1 + 200) + 0x28" (pointer_expression "**(long **)(param_1 + 200)" (* "*") (pointer_expression "*(long **)(param_1 + 200)" (* "*") (cast_expression "(long **)(param_1 + 200)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 200)" (( "(") (binary_expression "param_1 + 200" (identifier "param_1") (+ "+") (number_literal "200")) () ")"))))) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < iVar3) {\n      iVar4 = iVar3;\n    }" (if "if") (parenthesized_expression "(-1 < iVar3)" (( "(") (binary_expression "-1 < iVar3" (number_literal "-1") (< "<") (identifier "iVar3")) () ")")) (compound_statement "{\n      iVar4 = iVar3;\n    }" ({ "{") (expression_statement "iVar4 = iVar3;" (assignment_expression "iVar4 = iVar3" (identifier "iVar4") (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (expression_statement "bVar1 = iVar3 < 1;" (assignment_expression "bVar1 = iVar3 < 1" (identifier "bVar1") (= "=") (binary_expression "iVar3 < 1" (identifier "iVar3") (< "<") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "cVar2 = FUN_00338f30(param_1 + 0x68);" (assignment_expression "cVar2 = FUN_00338f30(param_1 + 0x68)" (identifier "cVar2") (= "=") (call_expression "FUN_00338f30(param_1 + 0x68)" (identifier "FUN_00338f30") (argument_list "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (; ";")) (expression_statement "local_40[0] = 0;" (assignment_expression "local_40[0] = 0" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" (identifier "lVar5") (= "=") (number_literal "-1")) (; ";")) (if_statement "if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;" (if "if") (parenthesized_expression "((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01')" (( "(") (binary_expression "(bool)(param_2 != 0 & bVar1) || cVar2 != '\x01'" (cast_expression "(bool)(param_2 != 0 & bVar1)" (( "(") (type_descriptor "bool" (primitive_type "bool")) () ")") (parenthesized_expression "(param_2 != 0 & bVar1)" (( "(") (binary_expression "param_2 != 0 & bVar1" (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) (& "&") (identifier "bVar1")) () ")"))) (|| "||") (binary_expression "cVar2 != '\x01'" (identifier "cVar2") (!= "!=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'")))) () ")")) (goto_statement "goto LAB_00363a5f;" (goto "goto") (statement_identifier "LAB_00363a5f") (; ";"))) (if_statement "if (((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    cVar2 = *(char *)(param_1 + 0xa9);\n    param_2 = 0;\n    if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }\n    if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = FUN_00339250(param_1 + 0x68,0,1);\n    if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }\n  }\n  else {\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }" (if "if") (parenthesized_expression "(((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0'))))" (( "(") (binary_expression "((param_3 == 1) && (param_2 == 0)) &&\n     ((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))" (parenthesized_expression "((param_3 == 1) && (param_2 == 0))" (( "(") (binary_expression "(param_3 == 1) && (param_2 == 0)" (parenthesized_expression "(param_3 == 1)" (( "(") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "((*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))" (( "(") (parenthesized_expression "(*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0'))" (( "(") (binary_expression "*(char *)(param_1 + 0xaa) == '\0' ||\n      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')" (binary_expression "*(char *)(param_1 + 0xaa) == '\0'" (pointer_expression "*(char *)(param_1 + 0xaa)" (* "*") (cast_expression "(char *)(param_1 + 0xaa)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xaa)" (( "(") (binary_expression "param_1 + 0xaa" (identifier "param_1") (+ "+") (number_literal "0xaa")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (|| "||") (parenthesized_expression "(cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')" (( "(") (comma_expression "cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0'" (assignment_expression "cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))()" (identifier "cVar2") (= "=") (call_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 200) + 0x30))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 200) + 0x30)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 200) + 0x30)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 200) + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 200) + 0x30)" (( "(") (binary_expression "**(long **)(param_1 + 200) + 0x30" (pointer_expression "**(long **)(param_1 + 200)" (* "*") (pointer_expression "*(long **)(param_1 + 200)" (* "*") (cast_expression "(long **)(param_1 + 200)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 200)" (( "(") (binary_expression "param_1 + 200" (identifier "param_1") (+ "+") (number_literal "200")) () ")"))))) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    cVar2 = *(char *)(param_1 + 0xa9);\n    param_2 = 0;\n    if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }\n    if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }\n    lVar5 = FUN_00339250(param_1 + 0x68,0,1);\n    if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }\n  }" ({ "{") (expression_statement "local_40[0] = *(ulong *)(param_1 + 0x7c);" (assignment_expression "local_40[0] = *(ulong *)(param_1 + 0x7c)" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (= "=") (pointer_expression "*(ulong *)(param_1 + 0x7c)" (* "*") (cast_expression "(ulong *)(param_1 + 0x7c)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "cVar2 = *(char *)(param_1 + 0xa9);" (assignment_expression "cVar2 = *(char *)(param_1 + 0xa9)" (identifier "cVar2") (= "=") (pointer_expression "*(char *)(param_1 + 0xa9)" (* "*") (cast_expression "(char *)(param_1 + 0xa9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa9)" (( "(") (binary_expression "param_1 + 0xa9" (identifier "param_1") (+ "+") (number_literal "0xa9")) () ")"))))) (; ";")) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" (identifier "param_2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (cVar2 != '\0') {\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }" (if "if") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);\n      iVar4 = FUN_00363580(param_1,local_40);\n      param_2 = param_2 + iVar4;\n      if (cVar2 == '\0') goto LAB_00363b85;\n    }" ({ "{") (labeled_statement "LAB_00363bb0:\n      local_40[0] = *(ulong *)(param_1 + 0x8c);" (statement_identifier "LAB_00363bb0") (: ":") (expression_statement "local_40[0] = *(ulong *)(param_1 + 0x8c);" (assignment_expression "local_40[0] = *(ulong *)(param_1 + 0x8c)" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (= "=") (pointer_expression "*(ulong *)(param_1 + 0x8c)" (* "*") (cast_expression "(ulong *)(param_1 + 0x8c)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x8c)" (( "(") (binary_expression "param_1 + 0x8c" (identifier "param_1") (+ "+") (number_literal "0x8c")) () ")"))))) (; ";"))) (expression_statement "iVar4 = FUN_00363580(param_1,local_40);" (assignment_expression "iVar4 = FUN_00363580(param_1,local_40)" (identifier "iVar4") (= "=") (call_expression "FUN_00363580(param_1,local_40)" (identifier "FUN_00363580") (argument_list "(param_1,local_40)" (( "(") (identifier "param_1") (, ",") (identifier "local_40") () ")")))) (; ";")) (expression_statement "param_2 = param_2 + iVar4;" (assignment_expression "param_2 = param_2 + iVar4" (identifier "param_2") (= "=") (binary_expression "param_2 + iVar4" (identifier "param_2") (+ "+") (identifier "iVar4"))) (; ";")) (if_statement "if (cVar2 == '\0') goto LAB_00363b85;" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00363b85;" (goto "goto") (statement_identifier "LAB_00363b85") (; ";"))) (} "}"))) (if_statement "if (*(char *)(param_1 + 0xaa) != '\0') {\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xaa) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xaa) != '\0'" (pointer_expression "*(char *)(param_1 + 0xaa)" (* "*") (cast_expression "(char *)(param_1 + 0xaa)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xaa)" (( "(") (binary_expression "param_1 + 0xaa" (identifier "param_1") (+ "+") (number_literal "0xaa")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;\n    }" ({ "{") (expression_statement "param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;" (assignment_expression "param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2" (identifier "param_2") (= "=") (binary_expression "*(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2" (binary_expression "*(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20)" (pointer_expression "*(long *)(param_1 + 0x28)" (* "*") (cast_expression "(long *)(param_1 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (- "-") (pointer_expression "*(long *)(param_1 + 0x20)" (* "*") (cast_expression "(long *)(param_1 + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (>> ">>") (number_literal "2"))) (; ";")) (} "}"))) (expression_statement "lVar5 = FUN_00339250(param_1 + 0x68,0,1);" (assignment_expression "lVar5 = FUN_00339250(param_1 + 0x68,0,1)" (identifier "lVar5") (= "=") (call_expression "FUN_00339250(param_1 + 0x68,0,1)" (identifier "FUN_00339250") (argument_list "(param_1 + 0x68,0,1)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) (, ",") (number_literal "0") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (lVar5 == -1) {\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }\n    else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }" (if "if") (parenthesized_expression "(lVar5 == -1)" (( "(") (binary_expression "lVar5 == -1" (identifier "lVar5") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      local_40[0] = 0;\n      uVar6 = 0;\n      lVar5 = -1;\n    }" ({ "{") (expression_statement "local_40[0] = 0;" (assignment_expression "local_40[0] = 0" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar5 = -1;" (assignment_expression "lVar5 = -1" (identifier "lVar5") (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }" (else "else") (compound_statement "{\n      lVar5 = lVar5 + param_2;\n      uVar6 = (uint)local_40[0];\n      local_40[0] = local_40[0] >> 0x20;\n    }" ({ "{") (expression_statement "lVar5 = lVar5 + param_2;" (assignment_expression "lVar5 = lVar5 + param_2" (identifier "lVar5") (= "=") (binary_expression "lVar5 + param_2" (identifier "lVar5") (+ "+") (identifier "param_2"))) (; ";")) (expression_statement "uVar6 = (uint)local_40[0];" (assignment_expression "uVar6 = (uint)local_40[0]" (identifier "uVar6") (= "=") (cast_expression "(uint)local_40[0]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")))) (; ";")) (expression_statement "local_40[0] = local_40[0] >> 0x20;" (assignment_expression "local_40[0] = local_40[0] >> 0x20" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "local_40[0] >> 0x20" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (>> ">>") (number_literal "0x20"))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }" (else "else") (compound_statement "{\n    if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }\n    local_40[0] = *(ulong *)(param_1 + 0x7c);\n    param_2 = param_2 * iVar4;\n    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;\nLAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);\n    lVar5 = auVar7._0_8_;\n    uVar6 = auVar7._8_4_;\n    local_40[0] = auVar7._8_8_ >> 0x20;\n  }" ({ "{") (if_statement "if (*(char *)(param_1 + 0xc0) != '\0') {\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xc0) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xc0) != '\0'" (pointer_expression "*(char *)(param_1 + 0xc0)" (* "*") (cast_expression "(char *)(param_1 + 0xc0)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc0)" (( "(") (binary_expression "param_1 + 0xc0" (identifier "param_1") (+ "+") (number_literal "0xc0")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      *(undefined1 *)(param_1 + 0xc0) = 0;\n      lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;\n      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);\n      *(long *)(param_1 + 0xb0) = lVar5;\n      *(long *)(param_1 + 0x10) = lVar5;\n      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);\n    }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0xc0) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0xc0) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0xc0)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0xc0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc0)" (( "(") (binary_expression "param_1 + 0xc0" (identifier "param_1") (+ "+") (number_literal "0xc0")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;" (assignment_expression "lVar5 = *(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4" (identifier "lVar5") (= "=") (binary_expression "*(long *)(param_1 + 0xb0) +\n              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4" (pointer_expression "*(long *)(param_1 + 0xb0)" (* "*") (cast_expression "(long *)(param_1 + 0xb0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb0)" (( "(") (binary_expression "param_1 + 0xb0" (identifier "param_1") (+ "+") (number_literal "0xb0")) () ")")))) (+ "+") (binary_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4" (call_expression "(ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8))" (( "(") (binary_expression "*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)" (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (pointer_expression "*(long *)(param_1 + 8)" (* "*") (cast_expression "(long *)(param_1 + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) () ")"))) (* "*") (number_literal "4")))) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);" (assignment_expression "*(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98)" (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")) () ")")))) (= "=") (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 "*(long *)(param_1 + 0xb0) = lVar5;" (assignment_expression "*(long *)(param_1 + 0xb0) = lVar5" (pointer_expression "*(long *)(param_1 + 0xb0)" (* "*") (cast_expression "(long *)(param_1 + 0xb0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb0)" (( "(") (binary_expression "param_1 + 0xb0" (identifier "param_1") (+ "+") (number_literal "0xb0")) () ")")))) (= "=") (identifier "lVar5")) (; ";")) (expression_statement "*(long *)(param_1 + 0x10) = lVar5;" (assignment_expression "*(long *)(param_1 + 0x10) = lVar5" (pointer_expression "*(long *)(param_1 + 0x10)" (* "*") (cast_expression "(long *)(param_1 + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "lVar5")) (; ";")) (expression_statement "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);" (assignment_expression "*(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8)" (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")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0xb8)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xb8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xb8)" (( "(") (binary_expression "param_1 + 0xb8" (identifier "param_1") (+ "+") (number_literal "0xb8")) () ")"))))) (; ";")) (} "}"))) (expression_statement "local_40[0] = *(ulong *)(param_1 + 0x7c);" (assignment_expression "local_40[0] = *(ulong *)(param_1 + 0x7c)" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (= "=") (pointer_expression "*(ulong *)(param_1 + 0x7c)" (* "*") (cast_expression "(ulong *)(param_1 + 0x7c)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "param_2 = param_2 * iVar4;" (assignment_expression "param_2 = param_2 * iVar4" (identifier "param_2") (= "=") (binary_expression "param_2 * iVar4" (identifier "param_2") (* "*") (identifier "iVar4"))) (; ";")) (if_statement "if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1))" (( "(") (binary_expression "(*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)" (parenthesized_expression "(*(char *)(param_1 + 0xa9) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xa9) != '\0'" (pointer_expression "*(char *)(param_1 + 0xa9)" (* "*") (cast_expression "(char *)(param_1 + 0xa9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa9)" (( "(") (binary_expression "param_1 + 0xa9" (identifier "param_1") (+ "+") (number_literal "0xa9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(cVar2 = '\0', param_3 == 1)" (( "(") (comma_expression "cVar2 = '\0', param_3 == 1" (assignment_expression "cVar2 = '\0'" (identifier "cVar2") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (, ",") (binary_expression "param_3 == 1" (identifier "param_3") (== "==") (number_literal "1"))) () ")"))) () ")")) (goto_statement "goto LAB_00363bb0;" (goto "goto") (statement_identifier "LAB_00363bb0") (; ";"))) (labeled_statement "LAB_00363b85:\n    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);" (statement_identifier "LAB_00363b85") (: ":") (expression_statement "auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);" (assignment_expression "auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0])" (identifier "auVar7") (= "=") (call_expression "FUN_00363700(param_1,param_2,param_3,local_40[0])" (identifier "FUN_00363700") (argument_list "(param_1,param_2,param_3,local_40[0])" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) () ")")))) (; ";"))) (expression_statement "lVar5 = auVar7._0_8_;" (assignment_expression "lVar5 = auVar7._0_8_" (identifier "lVar5") (= "=") (field_expression "auVar7._0_8_" (identifier "auVar7") (. ".") (field_identifier "_0_8_"))) (; ";")) (expression_statement "uVar6 = auVar7._8_4_;" (assignment_expression "uVar6 = auVar7._8_4_" (identifier "uVar6") (= "=") (field_expression "auVar7._8_4_" (identifier "auVar7") (. ".") (field_identifier "_8_4_"))) (; ";")) (expression_statement "local_40[0] = auVar7._8_8_ >> 0x20;" (assignment_expression "local_40[0] = auVar7._8_8_ >> 0x20" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (= "=") (binary_expression "auVar7._8_8_ >> 0x20" (field_expression "auVar7._8_8_" (identifier "auVar7") (. ".") (field_identifier "_8_8_")) (>> ">>") (number_literal "0x20"))) (; ";")) (} "}")))) (labeled_statement "LAB_00363a5f:\n  auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;" (statement_identifier "LAB_00363a5f") (: ":") (expression_statement "auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;" (assignment_expression "auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20" (field_expression "auVar7._8_8_" (identifier "auVar7") (. ".") (field_identifier "_8_8_")) (= "=") (binary_expression "(ulong)uVar6 | local_40[0] << 0x20" (cast_expression "(ulong)uVar6" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar6")) (| "|") (binary_expression "local_40[0] << 0x20" (subscript_expression "local_40[0]" (identifier "local_40") ([ "[") (number_literal "0") (] "]")) (<< "<<") (number_literal "0x20")))) (; ";"))) (expression_statement "auVar7._0_8_ = lVar5;" (assignment_expression "auVar7._0_8_ = lVar5" (field_expression "auVar7._0_8_" (identifier "auVar7") (. ".") (field_identifier "_0_8_")) (= "=") (identifier "lVar5")) (; ";")) (return_statement "return auVar7;" (return "return") (identifier "auVar7") (; ";")) (} "}"))

/* std::wfilebuf::seekoff(long, std::_Ios_Seekdir, std::_Ios_Openmode) */

type_4  [16] std::wfilebuf::var_13(type_3 *var_1,long var_6,int var_9)

{
  bool var_7;
  char var_8;
  int var_2;
  int var_12;
  long var_14;
  type_1 uVar6;
  type_2 var_16;
  type_3 var_10;
  type_4 auVar9 [16];
  type_5 local_40 [2];
  
  if (*(long **)(var_1 + 200) == (long *)0x0) {
    var_7 = true;
    var_12 = 0;
  }
  else {
    var_2 = (**(type_6 **)(**(long **)(var_1 + 200) + 0x28))();
    var_12 = 0;
    if (-1 < var_2) {
      var_12 = var_2;
    }
    var_7 = var_2 < 1;
  }
  var_8 = var_3<var_4>::var_5((var_3<var_4> *)(var_1 + 0x68));
  var_16 = 0;
  uVar6 = 0;
  var_14 = -1;
  if ((bool)(var_6 != 0 & var_7) || var_8 != '\x01') goto LAB_00363a5f;
  if (((var_9 == 1) && (var_6 == 0)) &&
     ((var_1[0xaa] == (type_3)0x0 ||
      (var_8 = (**(type_6 **)(**(long **)(var_1 + 200) + 0x30))(), var_8 != '\0')))) {
    local_40[0] = *(type_5 *)(var_1 + 0x7c);
    var_10 = var_1[0xa9];
    var_6 = 0;
    if (var_10 != (type_3)0x0) {
LAB_00363bb0:
      local_40[0] = *(type_5 *)(var_1 + 0x8c);
      var_12 = var_11(var_1,local_40);
      var_6 = var_6 + var_12;
      if (var_10 == (type_3)0x0) goto LAB_00363b85;
    }
    if (var_1[0xaa] != (type_3)0x0) {
      var_6 = *(long *)(var_1 + 0x28) - *(long *)(var_1 + 0x20) >> 2;
    }
    var_14 = var_3<var_4>::var_13((var_3<var_4> *)(var_1 + 0x68),0,1);
    if (var_14 == -1) {
      var_16 = 0;
      uVar6 = 0;
      var_14 = -1;
    }
    else {
      var_14 = var_14 + var_6;
      uVar6 = local_40[0].__count;
      var_16 = (type_2)local_40[0] >> 0x20;
    }
  }
  else {
    if (var_1[0xc0] != (type_3)0x0) {
      var_1[0xc0] = (type_3)0x0;
      var_14 = *(long *)(var_1 + 0xb0) +
              (type_2)(*(long *)(var_1 + 0x10) != *(long *)(var_1 + 8)) * 4;
      *(type_7 *)(var_1 + 8) = *(type_7 *)(var_1 + 0x98);
      *(long *)(var_1 + 0xb0) = var_14;
      *(long *)(var_1 + 0x10) = var_14;
      *(type_7 *)(var_1 + 0x18) = *(type_7 *)(var_1 + 0xb8);
    }
    local_40[0] = *(type_5 *)(var_1 + 0x7c);
    var_6 = var_6 * var_12;
    if ((var_1[0xa9] != (type_3)0x0) && (var_10 = (type_3)0x0, var_9 == 1))
    goto LAB_00363bb0;
LAB_00363b85:
    auVar9 = var_15(var_1,var_6,var_9,local_40[0]);
    var_14 = auVar9._0_8_;
    uVar6 = auVar9._8_4_;
    var_16 = auVar9._8_8_ >> 0x20;
  }
LAB_00363a5f:
  auVar9._8_8_ = (type_2)uVar6 | var_16 << 0x20;
  auVar9._0_8_ = var_14;
  return auVar9;
}


(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))) (type_descriptor type: (sized_type_specifier type: (type_identifier))) (primitive_type)) type: (type_descriptor type: (type_identifier))) (MISSING ";") (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) 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))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (true))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) 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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list))) right: (binary_expression left: (identifier) right: (char_literal (escape_sequence)))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) 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: (sized_type_specifier) 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: (sized_type_specifier) 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: (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: (subscript_expression argument: (identifier) index: (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: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (char_literal (escape_sequence))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (goto_statement label: (statement_identifier))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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,long param_2,int param_3)

{
  bool bVar1;
  char cVar2;
  int iVar3;
  int iVar4;
  long lVar5;
  uint uVar6;
  undefined1 auVar7 [16];
  ulong local_40 [2];
  
  if (*(long **)(param_1 + 200) == (long *)0x0) {
    bVar1 = true;
    iVar4 = 0;
  }
  else {
    iVar3 = (**(code **)(**(long **)(param_1 + 200) + 0x28))();
    iVar4 = 0;
    if (-1 < iVar3) {
      iVar4 = iVar3;
    }
    bVar1 = iVar3 < 1;
  }
  cVar2 = FUN_00338f30(param_1 + 0x68);
  local_40[0] = 0;
  uVar6 = 0;
  lVar5 = -1;
  if ((bool)(param_2 != 0 & bVar1) || cVar2 != '\x01') goto LAB_00363a5f;
  if (((param_3 == 1) && (param_2 == 0)) &&
     ((*(char *)(param_1 + 0xaa) == '\0' ||
      (cVar2 = (**(code **)(**(long **)(param_1 + 200) + 0x30))(), cVar2 != '\0')))) {
    local_40[0] = *(ulong *)(param_1 + 0x7c);
    cVar2 = *(char *)(param_1 + 0xa9);
    param_2 = 0;
    if (cVar2 != '\0') {
LAB_00363bb0:
      local_40[0] = *(ulong *)(param_1 + 0x8c);
      iVar4 = FUN_00363580(param_1,local_40);
      param_2 = param_2 + iVar4;
      if (cVar2 == '\0') goto LAB_00363b85;
    }
    if (*(char *)(param_1 + 0xaa) != '\0') {
      param_2 = *(long *)(param_1 + 0x28) - *(long *)(param_1 + 0x20) >> 2;
    }
    lVar5 = FUN_00339250(param_1 + 0x68,0,1);
    if (lVar5 == -1) {
      local_40[0] = 0;
      uVar6 = 0;
      lVar5 = -1;
    }
    else {
      lVar5 = lVar5 + param_2;
      uVar6 = (uint)local_40[0];
      local_40[0] = local_40[0] >> 0x20;
    }
  }
  else {
    if (*(char *)(param_1 + 0xc0) != '\0') {
      *(undefined1 *)(param_1 + 0xc0) = 0;
      lVar5 = *(long *)(param_1 + 0xb0) +
              (ulong)(*(long *)(param_1 + 0x10) != *(long *)(param_1 + 8)) * 4;
      *(undefined8 *)(param_1 + 8) = *(undefined8 *)(param_1 + 0x98);
      *(long *)(param_1 + 0xb0) = lVar5;
      *(long *)(param_1 + 0x10) = lVar5;
      *(undefined8 *)(param_1 + 0x18) = *(undefined8 *)(param_1 + 0xb8);
    }
    local_40[0] = *(ulong *)(param_1 + 0x7c);
    param_2 = param_2 * iVar4;
    if ((*(char *)(param_1 + 0xa9) != '\0') && (cVar2 = '\0', param_3 == 1)) goto LAB_00363bb0;
LAB_00363b85:
    auVar7 = FUN_00363700(param_1,param_2,param_3,local_40[0]);
    lVar5 = auVar7._0_8_;
    uVar6 = auVar7._8_4_;
    local_40[0] = auVar7._8_8_ >> 0x20;
  }
LAB_00363a5f:
  auVar7._8_8_ = (ulong)uVar6 | local_40[0] << 0x20;
  auVar7._0_8_ = lVar5;
  return auVar7;
}

