
/* std::wfilebuf::imbue(std::locale const&) */

void __thiscall std::wfilebuf::imbue(wfilebuf *this,locale *param_1)

{
  undefined8 uVar1;
  bool bVar2;
  char cVar3;
  int iVar4;
  codecvt *pcVar5;
  long lVar6;
  void *__src;
  size_t __n;
  
  bVar2 = has_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1);
  if (bVar2) {
    pcVar5 = use_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1);
  }
  else {
    pcVar5 = (codecvt *)0x0;
  }
  cVar3 = __basic_file<char>::is_open((__basic_file<char> *)(this + 0x68));
  if (cVar3 == '\0') goto LAB_00305f71;
  if ((this[0xa9] == (wfilebuf)0x0) && (this[0xaa] == (wfilebuf)0x0)) {
    *(codecvt **)(this + 200) = pcVar5;
    return;
  }
  if (*(long **)(this + 200) == (long *)0x0) {
LAB_003060d4:
                    /* WARNING: Subroutine does not return */
    __throw_bad_cast();
  }
  iVar4 = (**(code **)(**(long **)(this + 200) + 0x28))();
  if (iVar4 == -1) goto LAB_00305fb9;
  if (this[0xa9] == (wfilebuf)0x0) {
    if (this[0xaa] != (wfilebuf)0x0) {
      cVar3 = _M_terminate_output(this);
      if (cVar3 == '\0') goto LAB_00305fb9;
      uVar1 = *(undefined8 *)(this + 0x98);
      *(undefined8 *)(this + 0x28) = 0;
      *(undefined8 *)(this + 0x20) = 0;
      *(undefined8 *)(this + 8) = uVar1;
      *(undefined8 *)(this + 0x10) = uVar1;
      *(undefined8 *)(this + 0x18) = uVar1;
      *(undefined8 *)(this + 0x30) = 0;
    }
  }
  else {
    if (*(long **)(this + 200) == (long *)0x0) goto LAB_003060d4;
    cVar3 = (**(code **)(**(long **)(this + 200) + 0x30))();
    if (cVar3 == '\0') {
      lVar6 = *(long *)(this + 0xd0);
      iVar4 = (**(code **)(**(long **)(this + 200) + 0x38))
                        (*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),
                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2);
      __src = (void *)(iVar4 + lVar6);
      *(void **)(this + 0xe0) = __src;
      __n = *(long *)(this + 0xe8) - (long)__src;
      if (__n != 0) {
        memmove(*(void **)(this + 0xd0),__src,__n);
      }
      *(undefined8 *)(this + 0x28) = 0;
      *(undefined8 *)(this + 0x20) = 0;
      *(long *)(this + 0xe0) = *(long *)(this + 0xd0);
      uVar1 = *(undefined8 *)(this + 0x98);
      *(size_t *)(this + 0xe8) = __n + *(long *)(this + 0xd0);
      *(undefined8 *)(this + 8) = uVar1;
      *(undefined8 *)(this + 0x10) = uVar1;
      *(undefined8 *)(this + 0x18) = uVar1;
      *(undefined8 *)(this + 0x30) = 0;
      *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);
      *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);
    }
    else {
      if (pcVar5 == (codecvt *)0x0) {
LAB_00305fb9:
        *(undefined8 *)(this + 200) = 0;
        return;
      }
      cVar3 = (**(code **)(*(long *)pcVar5 + 0x30))(pcVar5);
      if (cVar3 == '\0') {
        lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));
        if (lVar6 == -1) goto LAB_00305fb9;
      }
    }
  }
LAB_00305f71:
  *(codecvt **)(this + 200) = pcVar5;
  return;
}



void FUN_00305ec0(long *param_1,undefined8 param_2)

{
  char cVar1;
  int iVar2;
  long *plVar3;
  long lVar4;
  void *__src;
  size_t __n;
  
  cVar1 = FUN_00329010(param_2);
  if (cVar1 == '\0') {
    plVar3 = (long *)0x0;
  }
  else {
    plVar3 = (long *)FUN_00327b00(param_2);
  }
  cVar1 = FUN_002db160(param_1 + 0xd);
  if (cVar1 == '\0') goto LAB_00305f71;
  if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {
    param_1[0x19] = (long)plVar3;
    return;
  }
  if ((long *)param_1[0x19] == (long *)0x0) {
LAB_003060d4:
                    /* WARNING: Subroutine does not return */
    FUN_00319460();
  }
  iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();
  if (iVar2 == -1) goto LAB_00305fb9;
  if (*(char *)((long)param_1 + 0xa9) == '\0') {
    if (*(char *)((long)param_1 + 0xaa) != '\0') {
      cVar1 = FUN_00305820(param_1);
      if (cVar1 == '\0') goto LAB_00305fb9;
      lVar4 = param_1[0x13];
      param_1[5] = 0;
      param_1[4] = 0;
      param_1[1] = lVar4;
      param_1[2] = lVar4;
      param_1[3] = lVar4;
      param_1[6] = 0;
    }
  }
  else {
    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;
    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();
    if (cVar1 == '\0') {
      lVar4 = param_1[0x1a];
      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))
                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],
                         param_1[2] - param_1[1] >> 2);
      __src = (void *)(iVar2 + lVar4);
      param_1[0x1c] = (long)__src;
      __n = param_1[0x1d] - (long)__src;
      if (__n != 0) {
        memmove((void *)param_1[0x1a],__src,__n);
      }
      param_1[5] = 0;
      param_1[4] = 0;
      param_1[0x1c] = param_1[0x1a];
      lVar4 = param_1[0x13];
      param_1[0x1d] = __n + param_1[0x1a];
      param_1[1] = lVar4;
      param_1[2] = lVar4;
      param_1[3] = lVar4;
      param_1[6] = 0;
      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);
      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);
    }
    else {
      if (plVar3 == (long *)0x0) {
LAB_00305fb9:
        param_1[0x19] = 0;
        return;
      }
      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);
      if (cVar1 == '\0') {
        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);
        if (lVar4 == -1) goto LAB_00305fb9;
      }
    }
  }
LAB_00305f71:
  param_1[0x19] = (long)plVar3;
  return;
}


PUSH R12
PUSH RBP
MOV RBP,RSI
PUSH RBX
MOV RBX,RDI
MOV RDI,RSI
CALL 0x00329010
TEST AL,AL
JZ 0x00305fd0
MOV RDI,RBP
CALL 0x00327b00
MOV RBP,RAX
LEA RDI,[RBX + 0x68]
CALL 0x002db160
TEST AL,AL
JZ 0x00305f71
CMP byte ptr [RBX + 0xa9],0x0
JZ 0x00305f80
MOV RDI,qword ptr [RBX + 0xc8]
TEST RDI,RDI
JZ 0x003060d4
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x28]
CMP EAX,-0x1
JZ 0x00305fb9
CMP byte ptr [RBX + 0xa9],0x0
JZ 0x00305fa0
MOV RDI,qword ptr [RBX + 0xc8]
TEST RDI,RDI
JZ 0x003060d4
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x30]
TEST AL,AL
JZ 0x00305fe0
TEST RBP,RBP
JZ 0x00305fb9
MOV RAX,qword ptr [RBP]
MOV RDI,RBP
CALL qword ptr [RAX + 0x30]
TEST AL,AL
JNZ 0x00305f71
MOV RAX,qword ptr [RBX]
XOR ESI,ESI
MOV ECX,dword ptr [RBX + 0x78]
MOV EDX,0x1
MOV RDI,RBX
CALL qword ptr [RAX + 0x20]
CMP RAX,-0x1
JZ 0x00305fb9
MOV qword ptr [RBX + 0xc8],RBP
POP RBX
POP RBP
POP R12
RET
CMP byte ptr [RBX + 0xaa],0x0
JNZ 0x00305eff
MOV qword ptr [RBX + 0xc8],RBP
POP RBX
POP RBP
POP R12
RET
CMP byte ptr [RBX + 0xaa],0x0
JZ 0x00305f71
MOV RDI,RBX
CALL 0x00305820
TEST AL,AL
JNZ 0x00306090
XOR EBP,EBP
MOV qword ptr [RBX + 0xc8],RBP
POP RBX
POP RBP
POP R12
RET
XOR EBP,EBP
JMP 0x00305ee5
MOV RDI,qword ptr [RBX + 0xc8]
MOV R12,qword ptr [RBX + 0xd0]
LEA RSI,[RBX + 0x8c]
MOV R8,qword ptr [RBX + 0x10]
SUB R8,qword ptr [RBX + 0x8]
MOV RAX,qword ptr [RDI]
MOV RDX,R12
MOV RCX,qword ptr [RBX + 0xe0]
SAR R8,0x2
CALL qword ptr [RAX + 0x38]
MOVSXD RSI,EAX
ADD RSI,R12
MOV R12,qword ptr [RBX + 0xe8]
MOV qword ptr [RBX + 0xe0],RSI
SUB R12,RSI
JNZ 0x003060c0
MOV RAX,qword ptr [RBX + 0xd0]
MOV qword ptr [RBX + 0x28],0x0
MOV qword ptr [RBX + 0x20],0x0
ADD R12,RAX
MOV qword ptr [RBX + 0xe0],RAX
MOV RAX,qword ptr [RBX + 0x98]
MOV qword ptr [RBX + 0xe8],R12
MOV qword ptr [RBX + 0x8],RAX
MOV qword ptr [RBX + 0x10],RAX
MOV qword ptr [RBX + 0x18],RAX
MOV RAX,qword ptr [RBX + 0x7c]
MOV qword ptr [RBX + 0x30],0x0
MOV qword ptr [RBX + 0x84],RAX
MOV qword ptr [RBX + 0x8c],RAX
JMP 0x00305f71
MOV RAX,qword ptr [RBX + 0x98]
MOV qword ptr [RBX + 0x28],0x0
MOV qword ptr [RBX + 0x20],0x0
MOV qword ptr [RBX + 0x8],RAX
MOV qword ptr [RBX + 0x10],RAX
MOV qword ptr [RBX + 0x18],RAX
MOV qword ptr [RBX + 0x30],0x0
JMP 0x00305f71
MOV RDI,qword ptr [RBX + 0xd0]
MOV RDX,R12
CALL 0x001476d0
JMP 0x0030602e
CALL 0x00319460
(translation_unit "void FUN_00305ec0(long *param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  long *plVar3;\n  long lVar4;\n  void *__src;\n  size_t __n;\n  \n  cVar1 = FUN_00329010(param_2);\n  if (cVar1 == '\0') {\n    plVar3 = (long *)0x0;\n  }\n  else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }\n  cVar1 = FUN_002db160(param_1 + 0xd);\n  if (cVar1 == '\0') goto LAB_00305f71;\n  if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {\n    param_1[0x19] = (long)plVar3;\n    return;\n  }\n  if ((long *)param_1[0x19] == (long *)0x0) {\nLAB_003060d4:\n                    /* WARNING: Subroutine does not return */\n    FUN_00319460();\n  }\n  iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();\n  if (iVar2 == -1) goto LAB_00305fb9;\n  if (*(char *)((long)param_1 + 0xa9) == '\0') {\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }\n  else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }\nLAB_00305f71:\n  param_1[0x19] = (long)plVar3;\n  return;\n}\n\n" (function_definition "void FUN_00305ec0(long *param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  long *plVar3;\n  long lVar4;\n  void *__src;\n  size_t __n;\n  \n  cVar1 = FUN_00329010(param_2);\n  if (cVar1 == '\0') {\n    plVar3 = (long *)0x0;\n  }\n  else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }\n  cVar1 = FUN_002db160(param_1 + 0xd);\n  if (cVar1 == '\0') goto LAB_00305f71;\n  if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {\n    param_1[0x19] = (long)plVar3;\n    return;\n  }\n  if ((long *)param_1[0x19] == (long *)0x0) {\nLAB_003060d4:\n                    /* WARNING: Subroutine does not return */\n    FUN_00319460();\n  }\n  iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();\n  if (iVar2 == -1) goto LAB_00305fb9;\n  if (*(char *)((long)param_1 + 0xa9) == '\0') {\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }\n  else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }\nLAB_00305f71:\n  param_1[0x19] = (long)plVar3;\n  return;\n}" primitive_type (function_declarator "FUN_00305ec0(long *param_1,undefined8 param_2)" identifier (parameter_list "(long *param_1,undefined8 param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  long *plVar3;\n  long lVar4;\n  void *__src;\n  size_t __n;\n  \n  cVar1 = FUN_00329010(param_2);\n  if (cVar1 == '\0') {\n    plVar3 = (long *)0x0;\n  }\n  else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }\n  cVar1 = FUN_002db160(param_1 + 0xd);\n  if (cVar1 == '\0') goto LAB_00305f71;\n  if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {\n    param_1[0x19] = (long)plVar3;\n    return;\n  }\n  if ((long *)param_1[0x19] == (long *)0x0) {\nLAB_003060d4:\n                    /* WARNING: Subroutine does not return */\n    FUN_00319460();\n  }\n  iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();\n  if (iVar2 == -1) goto LAB_00305fb9;\n  if (*(char *)((long)param_1 + 0xa9) == '\0') {\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }\n  else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }\nLAB_00305f71:\n  param_1[0x19] = (long)plVar3;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "cVar1 = FUN_00329010(param_2);" (assignment_expression "cVar1 = FUN_00329010(param_2)" identifier = (call_expression "FUN_00329010(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n    plVar3 = (long *)0x0;\n  }\n  else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    plVar3 = (long *)0x0;\n  }" { (expression_statement "plVar3 = (long *)0x0;" (assignment_expression "plVar3 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }" else (compound_statement "{\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }" { (expression_statement "plVar3 = (long *)FUN_00327b00(param_2);" (assignment_expression "plVar3 = (long *)FUN_00327b00(param_2)" identifier = (cast_expression "(long *)FUN_00327b00(param_2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00327b00(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) }))) (expression_statement "cVar1 = FUN_002db160(param_1 + 0xd);" (assignment_expression "cVar1 = FUN_002db160(param_1 + 0xd)" identifier = (call_expression "FUN_002db160(param_1 + 0xd)" identifier (argument_list "(param_1 + 0xd)" ( (binary_expression "param_1 + 0xd" identifier + number_literal) )))) ;) (if_statement "if (cVar1 == '\0') goto LAB_00305f71;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00305f71;" goto statement_identifier ;)) (if_statement "if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {\n    param_1[0x19] = (long)plVar3;\n    return;\n  }" if (parenthesized_expression "((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0'))" ( (binary_expression "(*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')" (parenthesized_expression "(*(char *)((long)param_1 + 0xa9) == '\0')" ( (binary_expression "*(char *)((long)param_1 + 0xa9) == '\0'" (pointer_expression "*(char *)((long)param_1 + 0xa9)" * (cast_expression "(char *)((long)param_1 + 0xa9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xa9)" ( (binary_expression "(long)param_1 + 0xa9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(char *)((long)param_1 + 0xaa) == '\0')" ( (binary_expression "*(char *)((long)param_1 + 0xaa) == '\0'" (pointer_expression "*(char *)((long)param_1 + 0xaa)" * (cast_expression "(char *)((long)param_1 + 0xaa)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xaa)" ( (binary_expression "(long)param_1 + 0xaa" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    param_1[0x19] = (long)plVar3;\n    return;\n  }" { (expression_statement "param_1[0x19] = (long)plVar3;" (assignment_expression "param_1[0x19] = (long)plVar3" (subscript_expression "param_1[0x19]" identifier [ number_literal ]) = (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (return_statement "return;" return ;) })) (if_statement "if ((long *)param_1[0x19] == (long *)0x0) {\nLAB_003060d4:\n                    /* WARNING: Subroutine does not return */\n    FUN_00319460();\n  }" if (parenthesized_expression "((long *)param_1[0x19] == (long *)0x0)" ( (binary_expression "(long *)param_1[0x19] == (long *)0x0" (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_003060d4:\n                    /* WARNING: Subroutine does not return */\n    FUN_00319460();\n  }" { (labeled_statement "LAB_003060d4:\n                    /* WARNING: Subroutine does not return */\n    FUN_00319460();" statement_identifier : comment (expression_statement "FUN_00319460();" (call_expression "FUN_00319460()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();" (assignment_expression "iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))()" identifier = (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x28))()" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x28))" ( (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x28)" * (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x28)" * (cast_expression "(code **)(*(long *)param_1[0x19] + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1[0x19] + 0x28)" ( (binary_expression "*(long *)param_1[0x19] + 0x28" (pointer_expression "*(long *)param_1[0x19]" * (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == -1) goto LAB_00305fb9;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00305fb9;" goto statement_identifier ;)) (if_statement "if (*(char *)((long)param_1 + 0xa9) == '\0') {\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }\n  else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }" if (parenthesized_expression "(*(char *)((long)param_1 + 0xa9) == '\0')" ( (binary_expression "*(char *)((long)param_1 + 0xa9) == '\0'" (pointer_expression "*(char *)((long)param_1 + 0xa9)" * (cast_expression "(char *)((long)param_1 + 0xa9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xa9)" ( (binary_expression "(long)param_1 + 0xa9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }" { (if_statement "if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }" if (parenthesized_expression "(*(char *)((long)param_1 + 0xaa) != '\0')" ( (binary_expression "*(char *)((long)param_1 + 0xaa) != '\0'" (pointer_expression "*(char *)((long)param_1 + 0xaa)" * (cast_expression "(char *)((long)param_1 + 0xaa)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xaa)" ( (binary_expression "(long)param_1 + 0xaa" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }" { (expression_statement "cVar1 = FUN_00305820(param_1);" (assignment_expression "cVar1 = FUN_00305820(param_1)" identifier = (call_expression "FUN_00305820(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') goto LAB_00305fb9;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00305fb9;" goto statement_identifier ;)) (expression_statement "lVar4 = param_1[0x13];" (assignment_expression "lVar4 = param_1[0x13]" identifier = (subscript_expression "param_1[0x13]" identifier [ number_literal ])) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = lVar4;" (assignment_expression "param_1[1] = lVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = lVar4;" (assignment_expression "param_1[2] = lVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = lVar4;" (assignment_expression "param_1[3] = lVar4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }" else (compound_statement "{\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }" { (if_statement "if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;" if (parenthesized_expression "((long *)param_1[0x19] == (long *)0x0)" ( (binary_expression "(long *)param_1[0x19] == (long *)0x0" (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_003060d4;" goto statement_identifier ;)) (expression_statement "cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();" (assignment_expression "cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))()" identifier = (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x30))()" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x30))" ( (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x30)" * (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x30)" * (cast_expression "(code **)(*(long *)param_1[0x19] + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1[0x19] + 0x30)" ( (binary_expression "*(long *)param_1[0x19] + 0x30" (pointer_expression "*(long *)param_1[0x19]" * (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }" { (expression_statement "lVar4 = param_1[0x1a];" (assignment_expression "lVar4 = param_1[0x1a]" identifier = (subscript_expression "param_1[0x1a]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);" (assignment_expression "iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2)" identifier = (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2)" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x38))" ( (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x38)" * (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x38)" * (cast_expression "(code **)(*(long *)param_1[0x19] + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1[0x19] + 0x38)" ( (binary_expression "*(long *)param_1[0x19] + 0x38" (pointer_expression "*(long *)param_1[0x19]" * (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2)" ( (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) , (binary_expression "(long)param_1 + 0x8c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , identifier , (subscript_expression "param_1[0x1c]" identifier [ number_literal ]) , (binary_expression "param_1[2] - param_1[1] >> 2" (binary_expression "param_1[2] - param_1[1]" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (subscript_expression "param_1[1]" identifier [ number_literal ])) >> number_literal) )))) ;) (expression_statement "__src = (void *)(iVar2 + lVar4);" (assignment_expression "__src = (void *)(iVar2 + lVar4)" identifier = (cast_expression "(void *)(iVar2 + lVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + lVar4)" ( (binary_expression "iVar2 + lVar4" identifier + identifier) )))) ;) (expression_statement "param_1[0x1c] = (long)__src;" (assignment_expression "param_1[0x1c] = (long)__src" (subscript_expression "param_1[0x1c]" identifier [ number_literal ]) = (cast_expression "(long)__src" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "__n = param_1[0x1d] - (long)__src;" (assignment_expression "__n = param_1[0x1d] - (long)__src" identifier = (binary_expression "param_1[0x1d] - (long)__src" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) - (cast_expression "(long)__src" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n        memmove((void *)param_1[0x1a],__src,__n);\n      }" { (expression_statement "memmove((void *)param_1[0x1a],__src,__n);" (call_expression "memmove((void *)param_1[0x1a],__src,__n)" identifier (argument_list "((void *)param_1[0x1a],__src,__n)" ( (cast_expression "(void *)param_1[0x1a]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x1a]" identifier [ number_literal ])) , identifier , identifier ))) ;) })) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x1c] = param_1[0x1a];" (assignment_expression "param_1[0x1c] = param_1[0x1a]" (subscript_expression "param_1[0x1c]" identifier [ number_literal ]) = (subscript_expression "param_1[0x1a]" identifier [ number_literal ])) ;) (expression_statement "lVar4 = param_1[0x13];" (assignment_expression "lVar4 = param_1[0x13]" identifier = (subscript_expression "param_1[0x13]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x1d] = __n + param_1[0x1a];" (assignment_expression "param_1[0x1d] = __n + param_1[0x1a]" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) = (binary_expression "__n + param_1[0x1a]" identifier + (subscript_expression "param_1[0x1a]" identifier [ number_literal ]))) ;) (expression_statement "param_1[1] = lVar4;" (assignment_expression "param_1[1] = lVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = lVar4;" (assignment_expression "param_1[2] = lVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = lVar4;" (assignment_expression "param_1[3] = lVar4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);" (assignment_expression "*(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c)" (pointer_expression "*(undefined8 *)((long)param_1 + 0x84)" * (cast_expression "(undefined8 *)((long)param_1 + 0x84)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x84)" ( (binary_expression "(long)param_1 + 0x84" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined8 *)((long)param_1 + 0x7c)" * (cast_expression "(undefined8 *)((long)param_1 + 0x7c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x7c)" ( (binary_expression "(long)param_1 + 0x7c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);" (assignment_expression "*(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c)" (pointer_expression "*(undefined8 *)((long)param_1 + 0x8c)" * (cast_expression "(undefined8 *)((long)param_1 + 0x8c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x8c)" ( (binary_expression "(long)param_1 + 0x8c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined8 *)((long)param_1 + 0x7c)" * (cast_expression "(undefined8 *)((long)param_1 + 0x7c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x7c)" ( (binary_expression "(long)param_1 + 0x7c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }" else (compound_statement "{\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }" { (if_statement "if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }" if (parenthesized_expression "(plVar3 == (long *)0x0)" ( (binary_expression "plVar3 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }" { (labeled_statement "LAB_00305fb9:\n        param_1[0x19] = 0;" statement_identifier : (expression_statement "param_1[0x19] = 0;" (assignment_expression "param_1[0x19] = 0" (subscript_expression "param_1[0x19]" identifier [ number_literal ]) = number_literal) ;)) (return_statement "return;" return ;) })) (expression_statement "cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);" (assignment_expression "cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3)" identifier = (call_expression "(**(code **)(*plVar3 + 0x30))(plVar3)" (parenthesized_expression "(**(code **)(*plVar3 + 0x30))" ( (pointer_expression "**(code **)(*plVar3 + 0x30)" * (pointer_expression "*(code **)(*plVar3 + 0x30)" * (cast_expression "(code **)(*plVar3 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar3 + 0x30)" ( (binary_expression "*plVar3 + 0x30" (pointer_expression "*plVar3" * identifier) + number_literal) ))))) )) (argument_list "(plVar3)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }" { (expression_statement "lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);" (assignment_expression "lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf])" identifier = (call_expression "(**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf])" (parenthesized_expression "(**(code **)(*param_1 + 0x20))" ( (pointer_expression "**(code **)(*param_1 + 0x20)" * (pointer_expression "*(code **)(*param_1 + 0x20)" * (cast_expression "(code **)(*param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x20)" ( (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,0,1,(int)param_1[0xf])" ( identifier , number_literal , number_literal , (cast_expression "(int)param_1[0xf]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xf]" identifier [ number_literal ])) )))) ;) (if_statement "if (lVar4 == -1) goto LAB_00305fb9;" if (parenthesized_expression "(lVar4 == -1)" ( (binary_expression "lVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00305fb9;" goto statement_identifier ;)) })) }))) }))) (labeled_statement "LAB_00305f71:\n  param_1[0x19] = (long)plVar3;" statement_identifier : (expression_statement "param_1[0x19] = (long)plVar3;" (assignment_expression "param_1[0x19] = (long)plVar3" (subscript_expression "param_1[0x19]" identifier [ number_literal ]) = (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit "/* std::wfilebuf::imbue(std::locale const&) */\n\nvoid __thiscall std::wfilebuf::imbue(wfilebuf *this,locale *param_1)\n\n{\n  undefined8 uVar1;\n  bool bVar2;\n  char cVar3;\n  int iVar4;\n  codecvt *pcVar5;\n  long lVar6;\n  void *__src;\n  size_t __n;\n  \n  bVar2 = has_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1);\n  if (bVar2) {\n    pcVar5 = use_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1);\n  }\n  else {\n    pcVar5 = (codecvt *)0x0;\n  }\n  cVar3 = __basic_file<char>::is_open((__basic_file<char> *)(this + 0x68));\n  if (cVar3 == '\0') goto LAB_00305f71;\n  if ((this[0xa9] == (wfilebuf)0x0) && (this[0xaa] == (wfilebuf)0x0)) {\n    *(codecvt **)(this + 200) = pcVar5;\n    return;\n  }\n  if (*(long **)(this + 200) == (long *)0x0) {\nLAB_003060d4:\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }\n  iVar4 = (**(code **)(**(long **)(this + 200) + 0x28))();\n  if (iVar4 == -1) goto LAB_00305fb9;\n  if (this[0xa9] == (wfilebuf)0x0) {\n    if (this[0xaa] != (wfilebuf)0x0) {\n      cVar3 = _M_terminate_output(this);\n      if (cVar3 == '\0') goto LAB_00305fb9;\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }\n  }\n  else {\n    if (*(long **)(this + 200) == (long *)0x0) goto LAB_003060d4;\n    cVar3 = (**(code **)(**(long **)(this + 200) + 0x30))();\n    if (cVar3 == '\0') {\n      lVar6 = *(long *)(this + 0xd0);\n      iVar4 = (**(code **)(**(long **)(this + 200) + 0x38))\n                        (*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),\n                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2);\n      __src = (void *)(iVar4 + lVar6);\n      *(void **)(this + 0xe0) = __src;\n      __n = *(long *)(this + 0xe8) - (long)__src;\n      if (__n != 0) {\n        memmove(*(void **)(this + 0xd0),__src,__n);\n      }\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(long *)(this + 0xe0) = *(long *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(size_t *)(this + 0xe8) = __n + *(long *)(this + 0xd0);\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n      *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);\n      *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);\n    }\n    else {\n      if (pcVar5 == (codecvt *)0x0) {\nLAB_00305fb9:\n        *(undefined8 *)(this + 200) = 0;\n        return;\n      }\n      cVar3 = (**(code **)(*(long *)pcVar5 + 0x30))(pcVar5);\n      if (cVar3 == '\0') {\n        lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));\n        if (lVar6 == -1) goto LAB_00305fb9;\n      }\n    }\n  }\nLAB_00305f71:\n  *(codecvt **)(this + 200) = pcVar5;\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wfilebuf::imbue(wfilebuf *this,locale *param_1)\n\n{\n  undefined8 uVar1;\n  bool bVar2;\n  char cVar3;\n  int iVar4;\n  codecvt *pcVar5;\n  long lVar6;\n  void *__src;\n  size_t __n;\n  \n  bVar2 = has_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1);\n  if (bVar2) {\n    pcVar5 = use_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1);\n  }\n  else {\n    pcVar5 = (codecvt *)0x0;\n  }\n  cVar3 = __basic_file<char>::is_open((__basic_file<char> *)(this + 0x68));\n  if (cVar3 == '\0') goto LAB_00305f71;\n  if ((this[0xa9] == (wfilebuf)0x0) && (this[0xaa] == (wfilebuf)0x0)) {\n    *(codecvt **)(this + 200) = pcVar5;\n    return;\n  }\n  if (*(long **)(this + 200) == (long *)0x0) {\nLAB_003060d4:\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }\n  iVar4 = (**(code **)(**(long **)(this + 200) + 0x28))();\n  if (iVar4 == -1) goto LAB_00305fb9;\n  if (this[0xa9] == (wfilebuf)0x0) {\n    if (this[0xaa] != (wfilebuf)0x0) {\n      cVar3 = _M_terminate_output(this);\n      if (cVar3 == '\0') goto LAB_00305fb9;\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }\n  }\n  else {\n    if (*(long **)(this + 200) == (long *)0x0) goto LAB_003060d4;\n    cVar3 = (**(code **)(**(long **)(this + 200) + 0x30))();\n    if (cVar3 == '\0') {\n      lVar6 = *(long *)(this + 0xd0);\n      iVar4 = (**(code **)(**(long **)(this + 200) + 0x38))\n                        (*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),\n                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2);\n      __src = (void *)(iVar4 + lVar6);\n      *(void **)(this + 0xe0) = __src;\n      __n = *(long *)(this + 0xe8) - (long)__src;\n      if (__n != 0) {\n        memmove(*(void **)(this + 0xd0),__src,__n);\n      }\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(long *)(this + 0xe0) = *(long *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(size_t *)(this + 0xe8) = __n + *(long *)(this + 0xd0);\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n      *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);\n      *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);\n    }\n    else {\n      if (pcVar5 == (codecvt *)0x0) {\nLAB_00305fb9:\n        *(undefined8 *)(this + 200) = 0;\n        return;\n      }\n      cVar3 = (**(code **)(*(long *)pcVar5 + 0x30))(pcVar5);\n      if (cVar3 == '\0') {\n        lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));\n        if (lVar6 == -1) goto LAB_00305fb9;\n      }\n    }\n  }\nLAB_00305f71:\n  *(codecvt **)(this + 200) = pcVar5;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wfilebuf::" identifier : : identifier : :) (function_declarator "imbue(wfilebuf *this,locale *param_1)" identifier (parameter_list "(wfilebuf *this,locale *param_1)" ( (parameter_declaration "wfilebuf *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "locale *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 uVar1;\n  bool bVar2;\n  char cVar3;\n  int iVar4;\n  codecvt *pcVar5;\n  long lVar6;\n  void *__src;\n  size_t __n;\n  \n  bVar2 = has_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1);\n  if (bVar2) {\n    pcVar5 = use_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1);\n  }\n  else {\n    pcVar5 = (codecvt *)0x0;\n  }\n  cVar3 = __basic_file<char>::is_open((__basic_file<char> *)(this + 0x68));\n  if (cVar3 == '\0') goto LAB_00305f71;\n  if ((this[0xa9] == (wfilebuf)0x0) && (this[0xaa] == (wfilebuf)0x0)) {\n    *(codecvt **)(this + 200) = pcVar5;\n    return;\n  }\n  if (*(long **)(this + 200) == (long *)0x0) {\nLAB_003060d4:\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }\n  iVar4 = (**(code **)(**(long **)(this + 200) + 0x28))();\n  if (iVar4 == -1) goto LAB_00305fb9;\n  if (this[0xa9] == (wfilebuf)0x0) {\n    if (this[0xaa] != (wfilebuf)0x0) {\n      cVar3 = _M_terminate_output(this);\n      if (cVar3 == '\0') goto LAB_00305fb9;\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }\n  }\n  else {\n    if (*(long **)(this + 200) == (long *)0x0) goto LAB_003060d4;\n    cVar3 = (**(code **)(**(long **)(this + 200) + 0x30))();\n    if (cVar3 == '\0') {\n      lVar6 = *(long *)(this + 0xd0);\n      iVar4 = (**(code **)(**(long **)(this + 200) + 0x38))\n                        (*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),\n                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2);\n      __src = (void *)(iVar4 + lVar6);\n      *(void **)(this + 0xe0) = __src;\n      __n = *(long *)(this + 0xe8) - (long)__src;\n      if (__n != 0) {\n        memmove(*(void **)(this + 0xd0),__src,__n);\n      }\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(long *)(this + 0xe0) = *(long *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(size_t *)(this + 0xe8) = __n + *(long *)(this + 0xd0);\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n      *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);\n      *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);\n    }\n    else {\n      if (pcVar5 == (codecvt *)0x0) {\nLAB_00305fb9:\n        *(undefined8 *)(this + 200) = 0;\n        return;\n      }\n      cVar3 = (**(code **)(*(long *)pcVar5 + 0x30))(pcVar5);\n      if (cVar3 == '\0') {\n        lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));\n        if (lVar6 == -1) goto LAB_00305fb9;\n      }\n    }\n  }\nLAB_00305f71:\n  *(codecvt **)(this + 200) = pcVar5;\n  return;\n}" { (declaration "undefined8 uVar1;" type_identifier identifier ;) (declaration "bool bVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "codecvt *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "bVar2 = has_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1);" (comma_expression "bVar2 = has_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1)" (binary_expression "bVar2 = has_facet<std::codecvt<wchar_t" (assignment_expression "bVar2 = has_facet<std" identifier = (binary_expression "has_facet<std" identifier < identifier)) (ERROR "::codecvt" : : identifier) < identifier) , (comma_expression "char,__mbstate_t>>(param_1)" identifier , (binary_expression "__mbstate_t>>(param_1)" identifier >> (parenthesized_expression "(param_1)" ( identifier ))))) ;) (if_statement "if (bVar2) {\n    pcVar5 = use_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1);\n  }\n  else {\n    pcVar5 = (codecvt *)0x0;\n  }" if (parenthesized_expression "(bVar2)" ( identifier )) (compound_statement "{\n    pcVar5 = use_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1);\n  }" { (expression_statement "pcVar5 = use_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1);" (comma_expression "pcVar5 = use_facet<std::codecvt<wchar_t,char,__mbstate_t>>(param_1)" (binary_expression "pcVar5 = use_facet<std::codecvt<wchar_t" (assignment_expression "pcVar5 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::codecvt" : : identifier) < identifier) , (comma_expression "char,__mbstate_t>>(param_1)" identifier , (binary_expression "__mbstate_t>>(param_1)" identifier >> (parenthesized_expression "(param_1)" ( identifier ))))) ;) }) (else_clause "else {\n    pcVar5 = (codecvt *)0x0;\n  }" else (compound_statement "{\n    pcVar5 = (codecvt *)0x0;\n  }" { (expression_statement "pcVar5 = (codecvt *)0x0;" (assignment_expression "pcVar5 = (codecvt *)0x0" identifier = (cast_expression "(codecvt *)0x0" ( (type_descriptor "codecvt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (expression_statement "cVar3 = __basic_file<char>::is_open((__basic_file<char> *)(this + 0x68));" (assignment_expression "cVar3 = __basic_file<char>::is_open((__basic_file<char> *)(this + 0x68))" identifier = (binary_expression "__basic_file<char>::is_open((__basic_file<char> *)(this + 0x68))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (call_expression "is_open((__basic_file<char> *)(this + 0x68))" identifier (argument_list "((__basic_file<char> *)(this + 0x68))" ( (call_expression "(__basic_file<char> *)(this + 0x68)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) ))) ))))) ;) (if_statement "if (cVar3 == '\0') goto LAB_00305f71;" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00305f71;" goto statement_identifier ;)) (if_statement "if ((this[0xa9] == (wfilebuf)0x0) && (this[0xaa] == (wfilebuf)0x0)) {\n    *(codecvt **)(this + 200) = pcVar5;\n    return;\n  }" if (parenthesized_expression "((this[0xa9] == (wfilebuf)0x0) && (this[0xaa] == (wfilebuf)0x0))" ( (binary_expression "(this[0xa9] == (wfilebuf)0x0) && (this[0xaa] == (wfilebuf)0x0)" (parenthesized_expression "(this[0xa9] == (wfilebuf)0x0)" ( (binary_expression "this[0xa9] == (wfilebuf)0x0" (subscript_expression "this[0xa9]" identifier [ number_literal ]) == (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) )) && (parenthesized_expression "(this[0xaa] == (wfilebuf)0x0)" ( (binary_expression "this[0xaa] == (wfilebuf)0x0" (subscript_expression "this[0xaa]" identifier [ number_literal ]) == (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) ))) )) (compound_statement "{\n    *(codecvt **)(this + 200) = pcVar5;\n    return;\n  }" { (expression_statement "*(codecvt **)(this + 200) = pcVar5;" (assignment_expression "*(codecvt **)(this + 200) = pcVar5" (pointer_expression "*(codecvt **)(this + 200)" * (cast_expression "(codecvt **)(this + 200)" ( (type_descriptor "codecvt **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (if_statement "if (*(long **)(this + 200) == (long *)0x0) {\nLAB_003060d4:\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }" if (parenthesized_expression "(*(long **)(this + 200) == (long *)0x0)" ( (binary_expression "*(long **)(this + 200) == (long *)0x0" (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) )))) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_003060d4:\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();\n  }" { (labeled_statement "LAB_003060d4:\n                    /* WARNING: Subroutine does not return */\n    __throw_bad_cast();" statement_identifier : comment (expression_statement "__throw_bad_cast();" (call_expression "__throw_bad_cast()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "iVar4 = (**(code **)(**(long **)(this + 200) + 0x28))();" (assignment_expression "iVar4 = (**(code **)(**(long **)(this + 200) + 0x28))()" identifier = (call_expression "(**(code **)(**(long **)(this + 200) + 0x28))()" (parenthesized_expression "(**(code **)(**(long **)(this + 200) + 0x28))" ( (pointer_expression "**(code **)(**(long **)(this + 200) + 0x28)" * (pointer_expression "*(code **)(**(long **)(this + 200) + 0x28)" * (cast_expression "(code **)(**(long **)(this + 200) + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(this + 200) + 0x28)" ( (binary_expression "**(long **)(this + 200) + 0x28" (pointer_expression "**(long **)(this + 200)" * (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar4 == -1) goto LAB_00305fb9;" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00305fb9;" goto statement_identifier ;)) (if_statement "if (this[0xa9] == (wfilebuf)0x0) {\n    if (this[0xaa] != (wfilebuf)0x0) {\n      cVar3 = _M_terminate_output(this);\n      if (cVar3 == '\0') goto LAB_00305fb9;\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }\n  }\n  else {\n    if (*(long **)(this + 200) == (long *)0x0) goto LAB_003060d4;\n    cVar3 = (**(code **)(**(long **)(this + 200) + 0x30))();\n    if (cVar3 == '\0') {\n      lVar6 = *(long *)(this + 0xd0);\n      iVar4 = (**(code **)(**(long **)(this + 200) + 0x38))\n                        (*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),\n                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2);\n      __src = (void *)(iVar4 + lVar6);\n      *(void **)(this + 0xe0) = __src;\n      __n = *(long *)(this + 0xe8) - (long)__src;\n      if (__n != 0) {\n        memmove(*(void **)(this + 0xd0),__src,__n);\n      }\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(long *)(this + 0xe0) = *(long *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(size_t *)(this + 0xe8) = __n + *(long *)(this + 0xd0);\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n      *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);\n      *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);\n    }\n    else {\n      if (pcVar5 == (codecvt *)0x0) {\nLAB_00305fb9:\n        *(undefined8 *)(this + 200) = 0;\n        return;\n      }\n      cVar3 = (**(code **)(*(long *)pcVar5 + 0x30))(pcVar5);\n      if (cVar3 == '\0') {\n        lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));\n        if (lVar6 == -1) goto LAB_00305fb9;\n      }\n    }\n  }" if (parenthesized_expression "(this[0xa9] == (wfilebuf)0x0)" ( (binary_expression "this[0xa9] == (wfilebuf)0x0" (subscript_expression "this[0xa9]" identifier [ number_literal ]) == (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) )) (compound_statement "{\n    if (this[0xaa] != (wfilebuf)0x0) {\n      cVar3 = _M_terminate_output(this);\n      if (cVar3 == '\0') goto LAB_00305fb9;\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }\n  }" { (if_statement "if (this[0xaa] != (wfilebuf)0x0) {\n      cVar3 = _M_terminate_output(this);\n      if (cVar3 == '\0') goto LAB_00305fb9;\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }" if (parenthesized_expression "(this[0xaa] != (wfilebuf)0x0)" ( (binary_expression "this[0xaa] != (wfilebuf)0x0" (subscript_expression "this[0xaa]" identifier [ number_literal ]) != (cast_expression "(wfilebuf)0x0" ( (type_descriptor "wfilebuf" type_identifier) ) number_literal)) )) (compound_statement "{\n      cVar3 = _M_terminate_output(this);\n      if (cVar3 == '\0') goto LAB_00305fb9;\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n    }" { (expression_statement "cVar3 = _M_terminate_output(this);" (assignment_expression "cVar3 = _M_terminate_output(this)" identifier = (call_expression "_M_terminate_output(this)" identifier (argument_list "(this)" ( identifier )))) ;) (if_statement "if (cVar3 == '\0') goto LAB_00305fb9;" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00305fb9;" goto statement_identifier ;)) (expression_statement "uVar1 = *(undefined8 *)(this + 0x98);" (assignment_expression "uVar1 = *(undefined8 *)(this + 0x98)" identifier = (pointer_expression "*(undefined8 *)(this + 0x98)" * (cast_expression "(undefined8 *)(this + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x98)" ( (binary_expression "this + 0x98" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0x28) = 0;" (assignment_expression "*(undefined8 *)(this + 0x28) = 0" (pointer_expression "*(undefined8 *)(this + 0x28)" * (cast_expression "(undefined8 *)(this + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x28)" ( (binary_expression "this + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x20) = 0;" (assignment_expression "*(undefined8 *)(this + 0x20) = 0" (pointer_expression "*(undefined8 *)(this + 0x20)" * (cast_expression "(undefined8 *)(this + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 8) = uVar1;" (assignment_expression "*(undefined8 *)(this + 8) = uVar1" (pointer_expression "*(undefined8 *)(this + 8)" * (cast_expression "(undefined8 *)(this + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x10) = uVar1;" (assignment_expression "*(undefined8 *)(this + 0x10) = uVar1" (pointer_expression "*(undefined8 *)(this + 0x10)" * (cast_expression "(undefined8 *)(this + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x18) = uVar1;" (assignment_expression "*(undefined8 *)(this + 0x18) = uVar1" (pointer_expression "*(undefined8 *)(this + 0x18)" * (cast_expression "(undefined8 *)(this + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x30) = 0;" (assignment_expression "*(undefined8 *)(this + 0x30) = 0" (pointer_expression "*(undefined8 *)(this + 0x30)" * (cast_expression "(undefined8 *)(this + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x30)" ( (binary_expression "this + 0x30" identifier + number_literal) )))) = number_literal) ;) })) }) (else_clause "else {\n    if (*(long **)(this + 200) == (long *)0x0) goto LAB_003060d4;\n    cVar3 = (**(code **)(**(long **)(this + 200) + 0x30))();\n    if (cVar3 == '\0') {\n      lVar6 = *(long *)(this + 0xd0);\n      iVar4 = (**(code **)(**(long **)(this + 200) + 0x38))\n                        (*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),\n                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2);\n      __src = (void *)(iVar4 + lVar6);\n      *(void **)(this + 0xe0) = __src;\n      __n = *(long *)(this + 0xe8) - (long)__src;\n      if (__n != 0) {\n        memmove(*(void **)(this + 0xd0),__src,__n);\n      }\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(long *)(this + 0xe0) = *(long *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(size_t *)(this + 0xe8) = __n + *(long *)(this + 0xd0);\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n      *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);\n      *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);\n    }\n    else {\n      if (pcVar5 == (codecvt *)0x0) {\nLAB_00305fb9:\n        *(undefined8 *)(this + 200) = 0;\n        return;\n      }\n      cVar3 = (**(code **)(*(long *)pcVar5 + 0x30))(pcVar5);\n      if (cVar3 == '\0') {\n        lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));\n        if (lVar6 == -1) goto LAB_00305fb9;\n      }\n    }\n  }" else (compound_statement "{\n    if (*(long **)(this + 200) == (long *)0x0) goto LAB_003060d4;\n    cVar3 = (**(code **)(**(long **)(this + 200) + 0x30))();\n    if (cVar3 == '\0') {\n      lVar6 = *(long *)(this + 0xd0);\n      iVar4 = (**(code **)(**(long **)(this + 200) + 0x38))\n                        (*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),\n                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2);\n      __src = (void *)(iVar4 + lVar6);\n      *(void **)(this + 0xe0) = __src;\n      __n = *(long *)(this + 0xe8) - (long)__src;\n      if (__n != 0) {\n        memmove(*(void **)(this + 0xd0),__src,__n);\n      }\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(long *)(this + 0xe0) = *(long *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(size_t *)(this + 0xe8) = __n + *(long *)(this + 0xd0);\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n      *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);\n      *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);\n    }\n    else {\n      if (pcVar5 == (codecvt *)0x0) {\nLAB_00305fb9:\n        *(undefined8 *)(this + 200) = 0;\n        return;\n      }\n      cVar3 = (**(code **)(*(long *)pcVar5 + 0x30))(pcVar5);\n      if (cVar3 == '\0') {\n        lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));\n        if (lVar6 == -1) goto LAB_00305fb9;\n      }\n    }\n  }" { (if_statement "if (*(long **)(this + 200) == (long *)0x0) goto LAB_003060d4;" if (parenthesized_expression "(*(long **)(this + 200) == (long *)0x0)" ( (binary_expression "*(long **)(this + 200) == (long *)0x0" (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) )))) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_003060d4;" goto statement_identifier ;)) (expression_statement "cVar3 = (**(code **)(**(long **)(this + 200) + 0x30))();" (assignment_expression "cVar3 = (**(code **)(**(long **)(this + 200) + 0x30))()" identifier = (call_expression "(**(code **)(**(long **)(this + 200) + 0x30))()" (parenthesized_expression "(**(code **)(**(long **)(this + 200) + 0x30))" ( (pointer_expression "**(code **)(**(long **)(this + 200) + 0x30)" * (pointer_expression "*(code **)(**(long **)(this + 200) + 0x30)" * (cast_expression "(code **)(**(long **)(this + 200) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(this + 200) + 0x30)" ( (binary_expression "**(long **)(this + 200) + 0x30" (pointer_expression "**(long **)(this + 200)" * (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (cVar3 == '\0') {\n      lVar6 = *(long *)(this + 0xd0);\n      iVar4 = (**(code **)(**(long **)(this + 200) + 0x38))\n                        (*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),\n                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2);\n      __src = (void *)(iVar4 + lVar6);\n      *(void **)(this + 0xe0) = __src;\n      __n = *(long *)(this + 0xe8) - (long)__src;\n      if (__n != 0) {\n        memmove(*(void **)(this + 0xd0),__src,__n);\n      }\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(long *)(this + 0xe0) = *(long *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(size_t *)(this + 0xe8) = __n + *(long *)(this + 0xd0);\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n      *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);\n      *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);\n    }\n    else {\n      if (pcVar5 == (codecvt *)0x0) {\nLAB_00305fb9:\n        *(undefined8 *)(this + 200) = 0;\n        return;\n      }\n      cVar3 = (**(code **)(*(long *)pcVar5 + 0x30))(pcVar5);\n      if (cVar3 == '\0') {\n        lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));\n        if (lVar6 == -1) goto LAB_00305fb9;\n      }\n    }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      lVar6 = *(long *)(this + 0xd0);\n      iVar4 = (**(code **)(**(long **)(this + 200) + 0x38))\n                        (*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),\n                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2);\n      __src = (void *)(iVar4 + lVar6);\n      *(void **)(this + 0xe0) = __src;\n      __n = *(long *)(this + 0xe8) - (long)__src;\n      if (__n != 0) {\n        memmove(*(void **)(this + 0xd0),__src,__n);\n      }\n      *(undefined8 *)(this + 0x28) = 0;\n      *(undefined8 *)(this + 0x20) = 0;\n      *(long *)(this + 0xe0) = *(long *)(this + 0xd0);\n      uVar1 = *(undefined8 *)(this + 0x98);\n      *(size_t *)(this + 0xe8) = __n + *(long *)(this + 0xd0);\n      *(undefined8 *)(this + 8) = uVar1;\n      *(undefined8 *)(this + 0x10) = uVar1;\n      *(undefined8 *)(this + 0x18) = uVar1;\n      *(undefined8 *)(this + 0x30) = 0;\n      *(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);\n      *(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);\n    }" { (expression_statement "lVar6 = *(long *)(this + 0xd0);" (assignment_expression "lVar6 = *(long *)(this + 0xd0)" identifier = (pointer_expression "*(long *)(this + 0xd0)" * (cast_expression "(long *)(this + 0xd0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xd0)" ( (binary_expression "this + 0xd0" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = (**(code **)(**(long **)(this + 200) + 0x38))\n                        (*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),\n                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2);" (assignment_expression "iVar4 = (**(code **)(**(long **)(this + 200) + 0x38))\n                        (*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),\n                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2)" identifier = (call_expression "(**(code **)(**(long **)(this + 200) + 0x38))\n                        (*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),\n                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2)" (parenthesized_expression "(**(code **)(**(long **)(this + 200) + 0x38))" ( (pointer_expression "**(code **)(**(long **)(this + 200) + 0x38)" * (pointer_expression "*(code **)(**(long **)(this + 200) + 0x38)" * (cast_expression "(code **)(**(long **)(this + 200) + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(this + 200) + 0x38)" ( (binary_expression "**(long **)(this + 200) + 0x38" (pointer_expression "**(long **)(this + 200)" * (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(this + 200),this + 0x8c,lVar6,*(undefined8 *)(this + 0xe0),\n                         *(long *)(this + 0x10) - *(long *)(this + 8) >> 2)" ( (pointer_expression "*(long **)(this + 200)" * (cast_expression "(long **)(this + 200)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) )))) , (binary_expression "this + 0x8c" identifier + number_literal) , identifier , (pointer_expression "*(undefined8 *)(this + 0xe0)" * (cast_expression "(undefined8 *)(this + 0xe0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xe0)" ( (binary_expression "this + 0xe0" identifier + number_literal) )))) , (binary_expression "*(long *)(this + 0x10) - *(long *)(this + 8) >> 2" (binary_expression "*(long *)(this + 0x10) - *(long *)(this + 8)" (pointer_expression "*(long *)(this + 0x10)" * (cast_expression "(long *)(this + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) - (pointer_expression "*(long *)(this + 8)" * (cast_expression "(long *)(this + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) >> number_literal) )))) ;) (expression_statement "__src = (void *)(iVar4 + lVar6);" (assignment_expression "__src = (void *)(iVar4 + lVar6)" identifier = (cast_expression "(void *)(iVar4 + lVar6)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + lVar6)" ( (binary_expression "iVar4 + lVar6" identifier + identifier) )))) ;) (expression_statement "*(void **)(this + 0xe0) = __src;" (assignment_expression "*(void **)(this + 0xe0) = __src" (pointer_expression "*(void **)(this + 0xe0)" * (cast_expression "(void **)(this + 0xe0)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xe0)" ( (binary_expression "this + 0xe0" identifier + number_literal) )))) = identifier) ;) (expression_statement "__n = *(long *)(this + 0xe8) - (long)__src;" (assignment_expression "__n = *(long *)(this + 0xe8) - (long)__src" identifier = (binary_expression "*(long *)(this + 0xe8) - (long)__src" (pointer_expression "*(long *)(this + 0xe8)" * (cast_expression "(long *)(this + 0xe8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xe8)" ( (binary_expression "this + 0xe8" identifier + number_literal) )))) - (cast_expression "(long)__src" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (__n != 0) {\n        memmove(*(void **)(this + 0xd0),__src,__n);\n      }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n        memmove(*(void **)(this + 0xd0),__src,__n);\n      }" { (expression_statement "memmove(*(void **)(this + 0xd0),__src,__n);" (call_expression "memmove(*(void **)(this + 0xd0),__src,__n)" identifier (argument_list "(*(void **)(this + 0xd0),__src,__n)" ( (pointer_expression "*(void **)(this + 0xd0)" * (cast_expression "(void **)(this + 0xd0)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xd0)" ( (binary_expression "this + 0xd0" identifier + number_literal) )))) , identifier , identifier ))) ;) })) (expression_statement "*(undefined8 *)(this + 0x28) = 0;" (assignment_expression "*(undefined8 *)(this + 0x28) = 0" (pointer_expression "*(undefined8 *)(this + 0x28)" * (cast_expression "(undefined8 *)(this + 0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x28)" ( (binary_expression "this + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x20) = 0;" (assignment_expression "*(undefined8 *)(this + 0x20) = 0" (pointer_expression "*(undefined8 *)(this + 0x20)" * (cast_expression "(undefined8 *)(this + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(long *)(this + 0xe0) = *(long *)(this + 0xd0);" (assignment_expression "*(long *)(this + 0xe0) = *(long *)(this + 0xd0)" (pointer_expression "*(long *)(this + 0xe0)" * (cast_expression "(long *)(this + 0xe0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xe0)" ( (binary_expression "this + 0xe0" identifier + number_literal) )))) = (pointer_expression "*(long *)(this + 0xd0)" * (cast_expression "(long *)(this + 0xd0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xd0)" ( (binary_expression "this + 0xd0" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined8 *)(this + 0x98);" (assignment_expression "uVar1 = *(undefined8 *)(this + 0x98)" identifier = (pointer_expression "*(undefined8 *)(this + 0x98)" * (cast_expression "(undefined8 *)(this + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x98)" ( (binary_expression "this + 0x98" identifier + number_literal) ))))) ;) (expression_statement "*(size_t *)(this + 0xe8) = __n + *(long *)(this + 0xd0);" (assignment_expression "*(size_t *)(this + 0xe8) = __n + *(long *)(this + 0xd0)" (pointer_expression "*(size_t *)(this + 0xe8)" * (cast_expression "(size_t *)(this + 0xe8)" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xe8)" ( (binary_expression "this + 0xe8" identifier + number_literal) )))) = (binary_expression "__n + *(long *)(this + 0xd0)" identifier + (pointer_expression "*(long *)(this + 0xd0)" * (cast_expression "(long *)(this + 0xd0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xd0)" ( (binary_expression "this + 0xd0" identifier + number_literal) )))))) ;) (expression_statement "*(undefined8 *)(this + 8) = uVar1;" (assignment_expression "*(undefined8 *)(this + 8) = uVar1" (pointer_expression "*(undefined8 *)(this + 8)" * (cast_expression "(undefined8 *)(this + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x10) = uVar1;" (assignment_expression "*(undefined8 *)(this + 0x10) = uVar1" (pointer_expression "*(undefined8 *)(this + 0x10)" * (cast_expression "(undefined8 *)(this + 0x10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x18) = uVar1;" (assignment_expression "*(undefined8 *)(this + 0x18) = uVar1" (pointer_expression "*(undefined8 *)(this + 0x18)" * (cast_expression "(undefined8 *)(this + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(this + 0x30) = 0;" (assignment_expression "*(undefined8 *)(this + 0x30) = 0" (pointer_expression "*(undefined8 *)(this + 0x30)" * (cast_expression "(undefined8 *)(this + 0x30)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x30)" ( (binary_expression "this + 0x30" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c);" (assignment_expression "*(undefined8 *)(this + 0x84) = *(undefined8 *)(this + 0x7c)" (pointer_expression "*(undefined8 *)(this + 0x84)" * (cast_expression "(undefined8 *)(this + 0x84)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x84)" ( (binary_expression "this + 0x84" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(this + 0x7c)" * (cast_expression "(undefined8 *)(this + 0x7c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c);" (assignment_expression "*(undefined8 *)(this + 0x8c) = *(undefined8 *)(this + 0x7c)" (pointer_expression "*(undefined8 *)(this + 0x8c)" * (cast_expression "(undefined8 *)(this + 0x8c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x8c)" ( (binary_expression "this + 0x8c" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(this + 0x7c)" * (cast_expression "(undefined8 *)(this + 0x7c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x7c)" ( (binary_expression "this + 0x7c" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      if (pcVar5 == (codecvt *)0x0) {\nLAB_00305fb9:\n        *(undefined8 *)(this + 200) = 0;\n        return;\n      }\n      cVar3 = (**(code **)(*(long *)pcVar5 + 0x30))(pcVar5);\n      if (cVar3 == '\0') {\n        lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));\n        if (lVar6 == -1) goto LAB_00305fb9;\n      }\n    }" else (compound_statement "{\n      if (pcVar5 == (codecvt *)0x0) {\nLAB_00305fb9:\n        *(undefined8 *)(this + 200) = 0;\n        return;\n      }\n      cVar3 = (**(code **)(*(long *)pcVar5 + 0x30))(pcVar5);\n      if (cVar3 == '\0') {\n        lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));\n        if (lVar6 == -1) goto LAB_00305fb9;\n      }\n    }" { (if_statement "if (pcVar5 == (codecvt *)0x0) {\nLAB_00305fb9:\n        *(undefined8 *)(this + 200) = 0;\n        return;\n      }" if (parenthesized_expression "(pcVar5 == (codecvt *)0x0)" ( (binary_expression "pcVar5 == (codecvt *)0x0" identifier == (cast_expression "(codecvt *)0x0" ( (type_descriptor "codecvt *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00305fb9:\n        *(undefined8 *)(this + 200) = 0;\n        return;\n      }" { (labeled_statement "LAB_00305fb9:\n        *(undefined8 *)(this + 200) = 0;" statement_identifier : (expression_statement "*(undefined8 *)(this + 200) = 0;" (assignment_expression "*(undefined8 *)(this + 200) = 0" (pointer_expression "*(undefined8 *)(this + 200)" * (cast_expression "(undefined8 *)(this + 200)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) )))) = number_literal) ;)) (return_statement "return;" return ;) })) (expression_statement "cVar3 = (**(code **)(*(long *)pcVar5 + 0x30))(pcVar5);" (assignment_expression "cVar3 = (**(code **)(*(long *)pcVar5 + 0x30))(pcVar5)" identifier = (call_expression "(**(code **)(*(long *)pcVar5 + 0x30))(pcVar5)" (parenthesized_expression "(**(code **)(*(long *)pcVar5 + 0x30))" ( (pointer_expression "**(code **)(*(long *)pcVar5 + 0x30)" * (pointer_expression "*(code **)(*(long *)pcVar5 + 0x30)" * (cast_expression "(code **)(*(long *)pcVar5 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)pcVar5 + 0x30)" ( (binary_expression "*(long *)pcVar5 + 0x30" (pointer_expression "*(long *)pcVar5" * (cast_expression "(long *)pcVar5" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pcVar5)" ( identifier )))) ;) (if_statement "if (cVar3 == '\0') {\n        lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));\n        if (lVar6 == -1) goto LAB_00305fb9;\n      }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));\n        if (lVar6 == -1) goto LAB_00305fb9;\n      }" { (expression_statement "lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78));" (assignment_expression "lVar6 = (**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78))" identifier = (call_expression "(**(code **)(*(long *)this + 0x20))(this,0,1,*(undefined4 *)(this + 0x78))" (parenthesized_expression "(**(code **)(*(long *)this + 0x20))" ( (pointer_expression "**(code **)(*(long *)this + 0x20)" * (pointer_expression "*(code **)(*(long *)this + 0x20)" * (cast_expression "(code **)(*(long *)this + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)this + 0x20)" ( (binary_expression "*(long *)this + 0x20" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(this,0,1,*(undefined4 *)(this + 0x78))" ( identifier , number_literal , number_literal , (pointer_expression "*(undefined4 *)(this + 0x78)" * (cast_expression "(undefined4 *)(this + 0x78)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x78)" ( (binary_expression "this + 0x78" identifier + number_literal) )))) )))) ;) (if_statement "if (lVar6 == -1) goto LAB_00305fb9;" if (parenthesized_expression "(lVar6 == -1)" ( (binary_expression "lVar6 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00305fb9;" goto statement_identifier ;)) })) }))) }))) (labeled_statement "LAB_00305f71:\n  *(codecvt **)(this + 200) = pcVar5;" statement_identifier : (expression_statement "*(codecvt **)(this + 200) = pcVar5;" (assignment_expression "*(codecvt **)(this + 200) = pcVar5" (pointer_expression "*(codecvt **)(this + 200)" * (cast_expression "(codecvt **)(this + 200)" ( (type_descriptor "codecvt **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 200)" ( (binary_expression "this + 200" identifier + number_literal) )))) = identifier) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00305ec0(long *param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  long *plVar3;\n  long lVar4;\n  void *__src;\n  size_t __n;\n  \n  cVar1 = FUN_00329010(param_2);\n  if (cVar1 == '\0') {\n    plVar3 = (long *)0x0;\n  }\n  else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }\n  cVar1 = FUN_002db160(param_1 + 0xd);\n  if (cVar1 == '\0') goto LAB_00305f71;\n  if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {\n    param_1[0x19] = (long)plVar3;\n    return;\n  }\n  if ((long *)param_1[0x19] == (long *)0x0) {\nLAB_003060d4:\n                    \n    FUN_00319460();\n  }\n  iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();\n  if (iVar2 == -1) goto LAB_00305fb9;\n  if (*(char *)((long)param_1 + 0xa9) == '\0') {\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }\n  else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }\nLAB_00305f71:\n  param_1[0x19] = (long)plVar3;\n  return;\n}\n\n" (function_definition "void FUN_00305ec0(long *param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  long *plVar3;\n  long lVar4;\n  void *__src;\n  size_t __n;\n  \n  cVar1 = FUN_00329010(param_2);\n  if (cVar1 == '\0') {\n    plVar3 = (long *)0x0;\n  }\n  else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }\n  cVar1 = FUN_002db160(param_1 + 0xd);\n  if (cVar1 == '\0') goto LAB_00305f71;\n  if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {\n    param_1[0x19] = (long)plVar3;\n    return;\n  }\n  if ((long *)param_1[0x19] == (long *)0x0) {\nLAB_003060d4:\n                    \n    FUN_00319460();\n  }\n  iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();\n  if (iVar2 == -1) goto LAB_00305fb9;\n  if (*(char *)((long)param_1 + 0xa9) == '\0') {\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }\n  else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }\nLAB_00305f71:\n  param_1[0x19] = (long)plVar3;\n  return;\n}" primitive_type (function_declarator "FUN_00305ec0(long *param_1,undefined8 param_2)" identifier (parameter_list "(long *param_1,undefined8 param_2)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  long *plVar3;\n  long lVar4;\n  void *__src;\n  size_t __n;\n  \n  cVar1 = FUN_00329010(param_2);\n  if (cVar1 == '\0') {\n    plVar3 = (long *)0x0;\n  }\n  else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }\n  cVar1 = FUN_002db160(param_1 + 0xd);\n  if (cVar1 == '\0') goto LAB_00305f71;\n  if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {\n    param_1[0x19] = (long)plVar3;\n    return;\n  }\n  if ((long *)param_1[0x19] == (long *)0x0) {\nLAB_003060d4:\n                    \n    FUN_00319460();\n  }\n  iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();\n  if (iVar2 == -1) goto LAB_00305fb9;\n  if (*(char *)((long)param_1 + 0xa9) == '\0') {\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }\n  else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }\nLAB_00305f71:\n  param_1[0x19] = (long)plVar3;\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long *plVar3;" (sized_type_specifier "long" long) (pointer_declarator "*plVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "size_t __n;" primitive_type identifier ;) (expression_statement "cVar1 = FUN_00329010(param_2);" (assignment_expression "cVar1 = FUN_00329010(param_2)" identifier = (call_expression "FUN_00329010(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n    plVar3 = (long *)0x0;\n  }\n  else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    plVar3 = (long *)0x0;\n  }" { (expression_statement "plVar3 = (long *)0x0;" (assignment_expression "plVar3 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }" else (compound_statement "{\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }" { (expression_statement "plVar3 = (long *)FUN_00327b00(param_2);" (assignment_expression "plVar3 = (long *)FUN_00327b00(param_2)" identifier = (cast_expression "(long *)FUN_00327b00(param_2)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00327b00(param_2)" identifier (argument_list "(param_2)" ( identifier ))))) ;) }))) (expression_statement "cVar1 = FUN_002db160(param_1 + 0xd);" (assignment_expression "cVar1 = FUN_002db160(param_1 + 0xd)" identifier = (call_expression "FUN_002db160(param_1 + 0xd)" identifier (argument_list "(param_1 + 0xd)" ( (binary_expression "param_1 + 0xd" identifier + number_literal) )))) ;) (if_statement "if (cVar1 == '\0') goto LAB_00305f71;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00305f71;" goto statement_identifier ;)) (if_statement "if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {\n    param_1[0x19] = (long)plVar3;\n    return;\n  }" if (parenthesized_expression "((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0'))" ( (binary_expression "(*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')" (parenthesized_expression "(*(char *)((long)param_1 + 0xa9) == '\0')" ( (binary_expression "*(char *)((long)param_1 + 0xa9) == '\0'" (pointer_expression "*(char *)((long)param_1 + 0xa9)" * (cast_expression "(char *)((long)param_1 + 0xa9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xa9)" ( (binary_expression "(long)param_1 + 0xa9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(*(char *)((long)param_1 + 0xaa) == '\0')" ( (binary_expression "*(char *)((long)param_1 + 0xaa) == '\0'" (pointer_expression "*(char *)((long)param_1 + 0xaa)" * (cast_expression "(char *)((long)param_1 + 0xaa)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xaa)" ( (binary_expression "(long)param_1 + 0xaa" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n    param_1[0x19] = (long)plVar3;\n    return;\n  }" { (expression_statement "param_1[0x19] = (long)plVar3;" (assignment_expression "param_1[0x19] = (long)plVar3" (subscript_expression "param_1[0x19]" identifier [ number_literal ]) = (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (return_statement "return;" return ;) })) (if_statement "if ((long *)param_1[0x19] == (long *)0x0) {\nLAB_003060d4:\n                    \n    FUN_00319460();\n  }" if (parenthesized_expression "((long *)param_1[0x19] == (long *)0x0)" ( (binary_expression "(long *)param_1[0x19] == (long *)0x0" (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_003060d4:\n                    \n    FUN_00319460();\n  }" { (labeled_statement "LAB_003060d4:\n                    \n    FUN_00319460();" statement_identifier : (expression_statement "FUN_00319460();" (call_expression "FUN_00319460()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();" (assignment_expression "iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))()" identifier = (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x28))()" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x28))" ( (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x28)" * (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x28)" * (cast_expression "(code **)(*(long *)param_1[0x19] + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1[0x19] + 0x28)" ( (binary_expression "*(long *)param_1[0x19] + 0x28" (pointer_expression "*(long *)param_1[0x19]" * (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar2 == -1) goto LAB_00305fb9;" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00305fb9;" goto statement_identifier ;)) (if_statement "if (*(char *)((long)param_1 + 0xa9) == '\0') {\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }\n  else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }" if (parenthesized_expression "(*(char *)((long)param_1 + 0xa9) == '\0')" ( (binary_expression "*(char *)((long)param_1 + 0xa9) == '\0'" (pointer_expression "*(char *)((long)param_1 + 0xa9)" * (cast_expression "(char *)((long)param_1 + 0xa9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xa9)" ( (binary_expression "(long)param_1 + 0xa9" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }" { (if_statement "if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }" if (parenthesized_expression "(*(char *)((long)param_1 + 0xaa) != '\0')" ( (binary_expression "*(char *)((long)param_1 + 0xaa) != '\0'" (pointer_expression "*(char *)((long)param_1 + 0xaa)" * (cast_expression "(char *)((long)param_1 + 0xaa)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0xaa)" ( (binary_expression "(long)param_1 + 0xaa" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }" { (expression_statement "cVar1 = FUN_00305820(param_1);" (assignment_expression "cVar1 = FUN_00305820(param_1)" identifier = (call_expression "FUN_00305820(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') goto LAB_00305fb9;" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00305fb9;" goto statement_identifier ;)) (expression_statement "lVar4 = param_1[0x13];" (assignment_expression "lVar4 = param_1[0x13]" identifier = (subscript_expression "param_1[0x13]" identifier [ number_literal ])) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = lVar4;" (assignment_expression "param_1[1] = lVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = lVar4;" (assignment_expression "param_1[2] = lVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = lVar4;" (assignment_expression "param_1[3] = lVar4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) })) }) (else_clause "else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }" else (compound_statement "{\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }" { (if_statement "if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;" if (parenthesized_expression "((long *)param_1[0x19] == (long *)0x0)" ( (binary_expression "(long *)param_1[0x19] == (long *)0x0" (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_003060d4;" goto statement_identifier ;)) (expression_statement "cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();" (assignment_expression "cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))()" identifier = (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x30))()" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x30))" ( (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x30)" * (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x30)" * (cast_expression "(code **)(*(long *)param_1[0x19] + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1[0x19] + 0x30)" ( (binary_expression "*(long *)param_1[0x19] + 0x30" (pointer_expression "*(long *)param_1[0x19]" * (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (if_statement "if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }" { (expression_statement "lVar4 = param_1[0x1a];" (assignment_expression "lVar4 = param_1[0x1a]" identifier = (subscript_expression "param_1[0x1a]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);" (assignment_expression "iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2)" identifier = (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2)" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x38))" ( (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x38)" * (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x38)" * (cast_expression "(code **)(*(long *)param_1[0x19] + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(long *)param_1[0x19] + 0x38)" ( (binary_expression "*(long *)param_1[0x19] + 0x38" (pointer_expression "*(long *)param_1[0x19]" * (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2)" ( (cast_expression "(long *)param_1[0x19]" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x19]" identifier [ number_literal ])) , (binary_expression "(long)param_1 + 0x8c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) , identifier , (subscript_expression "param_1[0x1c]" identifier [ number_literal ]) , (binary_expression "param_1[2] - param_1[1] >> 2" (binary_expression "param_1[2] - param_1[1]" (subscript_expression "param_1[2]" identifier [ number_literal ]) - (subscript_expression "param_1[1]" identifier [ number_literal ])) >> number_literal) )))) ;) (expression_statement "__src = (void *)(iVar2 + lVar4);" (assignment_expression "__src = (void *)(iVar2 + lVar4)" identifier = (cast_expression "(void *)(iVar2 + lVar4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + lVar4)" ( (binary_expression "iVar2 + lVar4" identifier + identifier) )))) ;) (expression_statement "param_1[0x1c] = (long)__src;" (assignment_expression "param_1[0x1c] = (long)__src" (subscript_expression "param_1[0x1c]" identifier [ number_literal ]) = (cast_expression "(long)__src" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "__n = param_1[0x1d] - (long)__src;" (assignment_expression "__n = param_1[0x1d] - (long)__src" identifier = (binary_expression "param_1[0x1d] - (long)__src" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) - (cast_expression "(long)__src" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }" if (parenthesized_expression "(__n != 0)" ( (binary_expression "__n != 0" identifier != number_literal) )) (compound_statement "{\n        memmove((void *)param_1[0x1a],__src,__n);\n      }" { (expression_statement "memmove((void *)param_1[0x1a],__src,__n);" (call_expression "memmove((void *)param_1[0x1a],__src,__n)" identifier (argument_list "((void *)param_1[0x1a],__src,__n)" ( (cast_expression "(void *)param_1[0x1a]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[0x1a]" identifier [ number_literal ])) , identifier , identifier ))) ;) })) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x1c] = param_1[0x1a];" (assignment_expression "param_1[0x1c] = param_1[0x1a]" (subscript_expression "param_1[0x1c]" identifier [ number_literal ]) = (subscript_expression "param_1[0x1a]" identifier [ number_literal ])) ;) (expression_statement "lVar4 = param_1[0x13];" (assignment_expression "lVar4 = param_1[0x13]" identifier = (subscript_expression "param_1[0x13]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x1d] = __n + param_1[0x1a];" (assignment_expression "param_1[0x1d] = __n + param_1[0x1a]" (subscript_expression "param_1[0x1d]" identifier [ number_literal ]) = (binary_expression "__n + param_1[0x1a]" identifier + (subscript_expression "param_1[0x1a]" identifier [ number_literal ]))) ;) (expression_statement "param_1[1] = lVar4;" (assignment_expression "param_1[1] = lVar4" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = lVar4;" (assignment_expression "param_1[2] = lVar4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = lVar4;" (assignment_expression "param_1[3] = lVar4" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);" (assignment_expression "*(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c)" (pointer_expression "*(undefined8 *)((long)param_1 + 0x84)" * (cast_expression "(undefined8 *)((long)param_1 + 0x84)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x84)" ( (binary_expression "(long)param_1 + 0x84" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined8 *)((long)param_1 + 0x7c)" * (cast_expression "(undefined8 *)((long)param_1 + 0x7c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x7c)" ( (binary_expression "(long)param_1 + 0x7c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) (expression_statement "*(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);" (assignment_expression "*(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c)" (pointer_expression "*(undefined8 *)((long)param_1 + 0x8c)" * (cast_expression "(undefined8 *)((long)param_1 + 0x8c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x8c)" ( (binary_expression "(long)param_1 + 0x8c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined8 *)((long)param_1 + 0x7c)" * (cast_expression "(undefined8 *)((long)param_1 + 0x7c)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x7c)" ( (binary_expression "(long)param_1 + 0x7c" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) ;) }) (else_clause "else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }" else (compound_statement "{\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }" { (if_statement "if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }" if (parenthesized_expression "(plVar3 == (long *)0x0)" ( (binary_expression "plVar3 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }" { (labeled_statement "LAB_00305fb9:\n        param_1[0x19] = 0;" statement_identifier : (expression_statement "param_1[0x19] = 0;" (assignment_expression "param_1[0x19] = 0" (subscript_expression "param_1[0x19]" identifier [ number_literal ]) = number_literal) ;)) (return_statement "return;" return ;) })) (expression_statement "cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);" (assignment_expression "cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3)" identifier = (call_expression "(**(code **)(*plVar3 + 0x30))(plVar3)" (parenthesized_expression "(**(code **)(*plVar3 + 0x30))" ( (pointer_expression "**(code **)(*plVar3 + 0x30)" * (pointer_expression "*(code **)(*plVar3 + 0x30)" * (cast_expression "(code **)(*plVar3 + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar3 + 0x30)" ( (binary_expression "*plVar3 + 0x30" (pointer_expression "*plVar3" * identifier) + number_literal) ))))) )) (argument_list "(plVar3)" ( identifier )))) ;) (if_statement "if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }" { (expression_statement "lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);" (assignment_expression "lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf])" identifier = (call_expression "(**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf])" (parenthesized_expression "(**(code **)(*param_1 + 0x20))" ( (pointer_expression "**(code **)(*param_1 + 0x20)" * (pointer_expression "*(code **)(*param_1 + 0x20)" * (cast_expression "(code **)(*param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x20)" ( (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(param_1,0,1,(int)param_1[0xf])" ( identifier , number_literal , number_literal , (cast_expression "(int)param_1[0xf]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[0xf]" identifier [ number_literal ])) )))) ;) (if_statement "if (lVar4 == -1) goto LAB_00305fb9;" if (parenthesized_expression "(lVar4 == -1)" ( (binary_expression "lVar4 == -1" identifier == number_literal) )) (goto_statement "goto LAB_00305fb9;" goto statement_identifier ;)) })) }))) }))) (labeled_statement "LAB_00305f71:\n  param_1[0x19] = (long)plVar3;" statement_identifier : (expression_statement "param_1[0x19] = (long)plVar3;" (assignment_expression "param_1[0x19] = (long)plVar3" (subscript_expression "param_1[0x19]" identifier [ number_literal ]) = (cast_expression "(long)plVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;)) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (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 (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) (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 * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT) ))))) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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 (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (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 * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT) ))))) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (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 * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT) ))))) )) (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) , IDENT , (subscript_expression IDENT [ LIT ]) , (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - (subscript_expression IDENT [ LIT ])) >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) ))))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;)) (return_statement return ;) })) (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 * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (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 * IDENT) + LIT) ))))) )) (argument_list ( IDENT , LIT , LIT , (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) }))) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;)) (return_statement return ;) })))
(function_definition "void FUN_00305ec0(long *param_1,undefined8 param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  long *plVar3;\n  long lVar4;\n  void *__src;\n  size_t __n;\n  \n  cVar1 = FUN_00329010(param_2);\n  if (cVar1 == '\0') {\n    plVar3 = (long *)0x0;\n  }\n  else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }\n  cVar1 = FUN_002db160(param_1 + 0xd);\n  if (cVar1 == '\0') goto LAB_00305f71;\n  if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {\n    param_1[0x19] = (long)plVar3;\n    return;\n  }\n  if ((long *)param_1[0x19] == (long *)0x0) {\nLAB_003060d4:\n                    \n    FUN_00319460();\n  }\n  iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();\n  if (iVar2 == -1) goto LAB_00305fb9;\n  if (*(char *)((long)param_1 + 0xa9) == '\0') {\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }\n  else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }\nLAB_00305f71:\n  param_1[0x19] = (long)plVar3;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00305ec0(long *param_1,undefined8 param_2)" (identifier "FUN_00305ec0") (parameter_list "(long *param_1,undefined8 param_2)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  long *plVar3;\n  long lVar4;\n  void *__src;\n  size_t __n;\n  \n  cVar1 = FUN_00329010(param_2);\n  if (cVar1 == '\0') {\n    plVar3 = (long *)0x0;\n  }\n  else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }\n  cVar1 = FUN_002db160(param_1 + 0xd);\n  if (cVar1 == '\0') goto LAB_00305f71;\n  if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {\n    param_1[0x19] = (long)plVar3;\n    return;\n  }\n  if ((long *)param_1[0x19] == (long *)0x0) {\nLAB_003060d4:\n                    \n    FUN_00319460();\n  }\n  iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();\n  if (iVar2 == -1) goto LAB_00305fb9;\n  if (*(char *)((long)param_1 + 0xa9) == '\0') {\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }\n  else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }\nLAB_00305f71:\n  param_1[0x19] = (long)plVar3;\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long *plVar3;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar3" (* "*") (identifier "plVar3")) (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "void *__src;" (primitive_type "void") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (expression_statement "cVar1 = FUN_00329010(param_2);" (assignment_expression "cVar1 = FUN_00329010(param_2)" (identifier "cVar1") (= "=") (call_expression "FUN_00329010(param_2)" (identifier "FUN_00329010") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') {\n    plVar3 = (long *)0x0;\n  }\n  else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    plVar3 = (long *)0x0;\n  }" ({ "{") (expression_statement "plVar3 = (long *)0x0;" (assignment_expression "plVar3 = (long *)0x0" (identifier "plVar3") (= "=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }" (else "else") (compound_statement "{\n    plVar3 = (long *)FUN_00327b00(param_2);\n  }" ({ "{") (expression_statement "plVar3 = (long *)FUN_00327b00(param_2);" (assignment_expression "plVar3 = (long *)FUN_00327b00(param_2)" (identifier "plVar3") (= "=") (cast_expression "(long *)FUN_00327b00(param_2)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00327b00(param_2)" (identifier "FUN_00327b00") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))))) (; ";")) (} "}")))) (expression_statement "cVar1 = FUN_002db160(param_1 + 0xd);" (assignment_expression "cVar1 = FUN_002db160(param_1 + 0xd)" (identifier "cVar1") (= "=") (call_expression "FUN_002db160(param_1 + 0xd)" (identifier "FUN_002db160") (argument_list "(param_1 + 0xd)" (( "(") (binary_expression "param_1 + 0xd" (identifier "param_1") (+ "+") (number_literal "0xd")) () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') goto LAB_00305f71;" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00305f71;" (goto "goto") (statement_identifier "LAB_00305f71") (; ";"))) (if_statement "if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {\n    param_1[0x19] = (long)plVar3;\n    return;\n  }" (if "if") (parenthesized_expression "((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0'))" (( "(") (binary_expression "(*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')" (parenthesized_expression "(*(char *)((long)param_1 + 0xa9) == '\0')" (( "(") (binary_expression "*(char *)((long)param_1 + 0xa9) == '\0'" (pointer_expression "*(char *)((long)param_1 + 0xa9)" (* "*") (cast_expression "(char *)((long)param_1 + 0xa9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xa9)" (( "(") (binary_expression "(long)param_1 + 0xa9" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xa9")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(*(char *)((long)param_1 + 0xaa) == '\0')" (( "(") (binary_expression "*(char *)((long)param_1 + 0xaa) == '\0'" (pointer_expression "*(char *)((long)param_1 + 0xaa)" (* "*") (cast_expression "(char *)((long)param_1 + 0xaa)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xaa)" (( "(") (binary_expression "(long)param_1 + 0xaa" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xaa")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n    param_1[0x19] = (long)plVar3;\n    return;\n  }" ({ "{") (expression_statement "param_1[0x19] = (long)plVar3;" (assignment_expression "param_1[0x19] = (long)plVar3" (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]")) (= "=") (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if ((long *)param_1[0x19] == (long *)0x0) {\nLAB_003060d4:\n                    \n    FUN_00319460();\n  }" (if "if") (parenthesized_expression "((long *)param_1[0x19] == (long *)0x0)" (( "(") (binary_expression "(long *)param_1[0x19] == (long *)0x0" (cast_expression "(long *)param_1[0x19]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))) (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_003060d4:\n                    \n    FUN_00319460();\n  }" ({ "{") (labeled_statement "LAB_003060d4:\n                    \n    FUN_00319460();" (statement_identifier "LAB_003060d4") (: ":") (expression_statement "FUN_00319460();" (call_expression "FUN_00319460()" (identifier "FUN_00319460") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (expression_statement "iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();" (assignment_expression "iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))()" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x28))()" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x28))" (( "(") (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x28)" (* "*") (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x28)" (* "*") (cast_expression "(code **)(*(long *)param_1[0x19] + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)param_1[0x19] + 0x28)" (( "(") (binary_expression "*(long *)param_1[0x19] + 0x28" (pointer_expression "*(long *)param_1[0x19]" (* "*") (cast_expression "(long *)param_1[0x19]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]")))) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 == -1) goto LAB_00305fb9;" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00305fb9;" (goto "goto") (statement_identifier "LAB_00305fb9") (; ";"))) (if_statement "if (*(char *)((long)param_1 + 0xa9) == '\0') {\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }\n  else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(*(char *)((long)param_1 + 0xa9) == '\0')" (( "(") (binary_expression "*(char *)((long)param_1 + 0xa9) == '\0'" (pointer_expression "*(char *)((long)param_1 + 0xa9)" (* "*") (cast_expression "(char *)((long)param_1 + 0xa9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xa9)" (( "(") (binary_expression "(long)param_1 + 0xa9" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xa9")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }\n  }" ({ "{") (if_statement "if (*(char *)((long)param_1 + 0xaa) != '\0') {\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }" (if "if") (parenthesized_expression "(*(char *)((long)param_1 + 0xaa) != '\0')" (( "(") (binary_expression "*(char *)((long)param_1 + 0xaa) != '\0'" (pointer_expression "*(char *)((long)param_1 + 0xaa)" (* "*") (cast_expression "(char *)((long)param_1 + 0xaa)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0xaa)" (( "(") (binary_expression "(long)param_1 + 0xaa" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0xaa")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      cVar1 = FUN_00305820(param_1);\n      if (cVar1 == '\0') goto LAB_00305fb9;\n      lVar4 = param_1[0x13];\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n    }" ({ "{") (expression_statement "cVar1 = FUN_00305820(param_1);" (assignment_expression "cVar1 = FUN_00305820(param_1)" (identifier "cVar1") (= "=") (call_expression "FUN_00305820(param_1)" (identifier "FUN_00305820") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') goto LAB_00305fb9;" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00305fb9;" (goto "goto") (statement_identifier "LAB_00305fb9") (; ";"))) (expression_statement "lVar4 = param_1[0x13];" (assignment_expression "lVar4 = param_1[0x13]" (identifier "lVar4") (= "=") (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]"))) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = lVar4;" (assignment_expression "param_1[1] = lVar4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "lVar4")) (; ";")) (expression_statement "param_1[2] = lVar4;" (assignment_expression "param_1[2] = lVar4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "lVar4")) (; ";")) (expression_statement "param_1[3] = lVar4;" (assignment_expression "param_1[3] = lVar4" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "lVar4")) (; ";")) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;\n    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();\n    if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }\n  }" ({ "{") (if_statement "if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;" (if "if") (parenthesized_expression "((long *)param_1[0x19] == (long *)0x0)" (( "(") (binary_expression "(long *)param_1[0x19] == (long *)0x0" (cast_expression "(long *)param_1[0x19]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))) (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_003060d4;" (goto "goto") (statement_identifier "LAB_003060d4") (; ";"))) (expression_statement "cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();" (assignment_expression "cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))()" (identifier "cVar1") (= "=") (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x30))()" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x30))" (( "(") (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x30)" (* "*") (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x30)" (* "*") (cast_expression "(code **)(*(long *)param_1[0x19] + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)param_1[0x19] + 0x30)" (( "(") (binary_expression "*(long *)param_1[0x19] + 0x30" (pointer_expression "*(long *)param_1[0x19]" (* "*") (cast_expression "(long *)param_1[0x19]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]")))) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') {\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }\n    else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      lVar4 = param_1[0x1a];\n      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);\n      __src = (void *)(iVar2 + lVar4);\n      param_1[0x1c] = (long)__src;\n      __n = param_1[0x1d] - (long)__src;\n      if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }\n      param_1[5] = 0;\n      param_1[4] = 0;\n      param_1[0x1c] = param_1[0x1a];\n      lVar4 = param_1[0x13];\n      param_1[0x1d] = __n + param_1[0x1a];\n      param_1[1] = lVar4;\n      param_1[2] = lVar4;\n      param_1[3] = lVar4;\n      param_1[6] = 0;\n      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);\n      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);\n    }" ({ "{") (expression_statement "lVar4 = param_1[0x1a];" (assignment_expression "lVar4 = param_1[0x1a]" (identifier "lVar4") (= "=") (subscript_expression "param_1[0x1a]" (identifier "param_1") ([ "[") (number_literal "0x1a") (] "]"))) (; ";")) (expression_statement "iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2);" (assignment_expression "iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*(long *)param_1[0x19] + 0x38))\n                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2)" (parenthesized_expression "(**(code **)(*(long *)param_1[0x19] + 0x38))" (( "(") (pointer_expression "**(code **)(*(long *)param_1[0x19] + 0x38)" (* "*") (pointer_expression "*(code **)(*(long *)param_1[0x19] + 0x38)" (* "*") (cast_expression "(code **)(*(long *)param_1[0x19] + 0x38)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(long *)param_1[0x19] + 0x38)" (( "(") (binary_expression "*(long *)param_1[0x19] + 0x38" (pointer_expression "*(long *)param_1[0x19]" (* "*") (cast_expression "(long *)param_1[0x19]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]")))) (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (argument_list "((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],\n                         param_1[2] - param_1[1] >> 2)" (( "(") (cast_expression "(long *)param_1[0x19]" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))) (, ",") (binary_expression "(long)param_1 + 0x8c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x8c")) (, ",") (identifier "lVar4") (, ",") (subscript_expression "param_1[0x1c]" (identifier "param_1") ([ "[") (number_literal "0x1c") (] "]")) (, ",") (binary_expression "param_1[2] - param_1[1] >> 2" (binary_expression "param_1[2] - param_1[1]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (- "-") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (>> ">>") (number_literal "2")) () ")")))) (; ";")) (expression_statement "__src = (void *)(iVar2 + lVar4);" (assignment_expression "__src = (void *)(iVar2 + lVar4)" (identifier "__src") (= "=") (cast_expression "(void *)(iVar2 + lVar4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + lVar4)" (( "(") (binary_expression "iVar2 + lVar4" (identifier "iVar2") (+ "+") (identifier "lVar4")) () ")")))) (; ";")) (expression_statement "param_1[0x1c] = (long)__src;" (assignment_expression "param_1[0x1c] = (long)__src" (subscript_expression "param_1[0x1c]" (identifier "param_1") ([ "[") (number_literal "0x1c") (] "]")) (= "=") (cast_expression "(long)__src" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__src"))) (; ";")) (expression_statement "__n = param_1[0x1d] - (long)__src;" (assignment_expression "__n = param_1[0x1d] - (long)__src" (identifier "__n") (= "=") (binary_expression "param_1[0x1d] - (long)__src" (subscript_expression "param_1[0x1d]" (identifier "param_1") ([ "[") (number_literal "0x1d") (] "]")) (- "-") (cast_expression "(long)__src" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "__src")))) (; ";")) (if_statement "if (__n != 0) {\n        memmove((void *)param_1[0x1a],__src,__n);\n      }" (if "if") (parenthesized_expression "(__n != 0)" (( "(") (binary_expression "__n != 0" (identifier "__n") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        memmove((void *)param_1[0x1a],__src,__n);\n      }" ({ "{") (expression_statement "memmove((void *)param_1[0x1a],__src,__n);" (call_expression "memmove((void *)param_1[0x1a],__src,__n)" (identifier "memmove") (argument_list "((void *)param_1[0x1a],__src,__n)" (( "(") (cast_expression "(void *)param_1[0x1a]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[0x1a]" (identifier "param_1") ([ "[") (number_literal "0x1a") (] "]"))) (, ",") (identifier "__src") (, ",") (identifier "__n") () ")"))) (; ";")) (} "}"))) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x1c] = param_1[0x1a];" (assignment_expression "param_1[0x1c] = param_1[0x1a]" (subscript_expression "param_1[0x1c]" (identifier "param_1") ([ "[") (number_literal "0x1c") (] "]")) (= "=") (subscript_expression "param_1[0x1a]" (identifier "param_1") ([ "[") (number_literal "0x1a") (] "]"))) (; ";")) (expression_statement "lVar4 = param_1[0x13];" (assignment_expression "lVar4 = param_1[0x13]" (identifier "lVar4") (= "=") (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]"))) (; ";")) (expression_statement "param_1[0x1d] = __n + param_1[0x1a];" (assignment_expression "param_1[0x1d] = __n + param_1[0x1a]" (subscript_expression "param_1[0x1d]" (identifier "param_1") ([ "[") (number_literal "0x1d") (] "]")) (= "=") (binary_expression "__n + param_1[0x1a]" (identifier "__n") (+ "+") (subscript_expression "param_1[0x1a]" (identifier "param_1") ([ "[") (number_literal "0x1a") (] "]")))) (; ";")) (expression_statement "param_1[1] = lVar4;" (assignment_expression "param_1[1] = lVar4" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "lVar4")) (; ";")) (expression_statement "param_1[2] = lVar4;" (assignment_expression "param_1[2] = lVar4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "lVar4")) (; ";")) (expression_statement "param_1[3] = lVar4;" (assignment_expression "param_1[3] = lVar4" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "lVar4")) (; ";")) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);" (assignment_expression "*(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c)" (pointer_expression "*(undefined8 *)((long)param_1 + 0x84)" (* "*") (cast_expression "(undefined8 *)((long)param_1 + 0x84)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x84)" (( "(") (binary_expression "(long)param_1 + 0x84" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x84")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)((long)param_1 + 0x7c)" (* "*") (cast_expression "(undefined8 *)((long)param_1 + 0x7c)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x7c)" (( "(") (binary_expression "(long)param_1 + 0x7c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);" (assignment_expression "*(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c)" (pointer_expression "*(undefined8 *)((long)param_1 + 0x8c)" (* "*") (cast_expression "(undefined8 *)((long)param_1 + 0x8c)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x8c)" (( "(") (binary_expression "(long)param_1 + 0x8c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x8c")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)((long)param_1 + 0x7c)" (* "*") (cast_expression "(undefined8 *)((long)param_1 + 0x7c)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x7c)" (( "(") (binary_expression "(long)param_1 + 0x7c" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }" (else "else") (compound_statement "{\n      if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }\n      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);\n      if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }\n    }" ({ "{") (if_statement "if (plVar3 == (long *)0x0) {\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }" (if "if") (parenthesized_expression "(plVar3 == (long *)0x0)" (( "(") (binary_expression "plVar3 == (long *)0x0" (identifier "plVar3") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_00305fb9:\n        param_1[0x19] = 0;\n        return;\n      }" ({ "{") (labeled_statement "LAB_00305fb9:\n        param_1[0x19] = 0;" (statement_identifier "LAB_00305fb9") (: ":") (expression_statement "param_1[0x19] = 0;" (assignment_expression "param_1[0x19] = 0" (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]")) (= "=") (number_literal "0")) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);" (assignment_expression "cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3)" (identifier "cVar1") (= "=") (call_expression "(**(code **)(*plVar3 + 0x30))(plVar3)" (parenthesized_expression "(**(code **)(*plVar3 + 0x30))" (( "(") (pointer_expression "**(code **)(*plVar3 + 0x30)" (* "*") (pointer_expression "*(code **)(*plVar3 + 0x30)" (* "*") (cast_expression "(code **)(*plVar3 + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar3 + 0x30)" (( "(") (binary_expression "*plVar3 + 0x30" (pointer_expression "*plVar3" (* "*") (identifier "plVar3")) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(plVar3)" (( "(") (identifier "plVar3") () ")")))) (; ";")) (if_statement "if (cVar1 == '\0') {\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);\n        if (lVar4 == -1) goto LAB_00305fb9;\n      }" ({ "{") (expression_statement "lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);" (assignment_expression "lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf])" (identifier "lVar4") (= "=") (call_expression "(**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf])" (parenthesized_expression "(**(code **)(*param_1 + 0x20))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x20)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x20)" (* "*") (cast_expression "(code **)(*param_1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x20)" (( "(") (binary_expression "*param_1 + 0x20" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(param_1,0,1,(int)param_1[0xf])" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "1") (, ",") (cast_expression "(int)param_1[0xf]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[0xf]" (identifier "param_1") ([ "[") (number_literal "0xf") (] "]"))) () ")")))) (; ";")) (if_statement "if (lVar4 == -1) goto LAB_00305fb9;" (if "if") (parenthesized_expression "(lVar4 == -1)" (( "(") (binary_expression "lVar4 == -1" (identifier "lVar4") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_00305fb9;" (goto "goto") (statement_identifier "LAB_00305fb9") (; ";"))) (} "}"))) (} "}")))) (} "}")))) (labeled_statement "LAB_00305f71:\n  param_1[0x19] = (long)plVar3;" (statement_identifier "LAB_00305f71") (: ":") (expression_statement "param_1[0x19] = (long)plVar3;" (assignment_expression "param_1[0x19] = (long)plVar3" (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]")) (= "=") (cast_expression "(long)plVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar3"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wfilebuf::imbue(std::locale const&) */

void __thiscall var_2::type_1::function_1(type_1 *var_9,type_2 *param_1)

{
  type_3 uVar1;
  bool bVar2;
  char var_10;
  int var_12;
  type_4 *var_17;
  long var_14;
  void *__src;
  size_t var_15;
  
  bVar2 = var_1<var_2::type_4<var_3,var_7,var_4>>(param_1);
  if (bVar2) {
    var_17 = var_5<var_2::type_4<var_3,var_7,var_4>>(param_1);
  }
  else {
    var_17 = (type_4 *)0x0;
  }
  var_10 = var_6<var_7>::var_8((var_6<var_7> *)(var_9 + 0x68));
  if (var_10 == '\0') goto LAB_00305f71;
  if ((var_9[0xa9] == (type_1)0x0) && (var_9[0xaa] == (type_1)0x0)) {
    *(type_4 **)(var_9 + 200) = var_17;
    return;
  }
  if (*(long **)(var_9 + 200) == (long *)0x0) {
LAB_003060d4:
                    /* WARNING: Subroutine does not return */
    var_11();
  }
  var_12 = (**(type_5 **)(**(long **)(var_9 + 200) + 0x28))();
  if (var_12 == -1) goto LAB_00305fb9;
  if (var_9[0xa9] == (type_1)0x0) {
    if (var_9[0xaa] != (type_1)0x0) {
      var_10 = var_13(var_9);
      if (var_10 == '\0') goto LAB_00305fb9;
      uVar1 = *(type_3 *)(var_9 + 0x98);
      *(type_3 *)(var_9 + 0x28) = 0;
      *(type_3 *)(var_9 + 0x20) = 0;
      *(type_3 *)(var_9 + 8) = uVar1;
      *(type_3 *)(var_9 + 0x10) = uVar1;
      *(type_3 *)(var_9 + 0x18) = uVar1;
      *(type_3 *)(var_9 + 0x30) = 0;
    }
  }
  else {
    if (*(long **)(var_9 + 200) == (long *)0x0) goto LAB_003060d4;
    var_10 = (**(type_5 **)(**(long **)(var_9 + 200) + 0x30))();
    if (var_10 == '\0') {
      var_14 = *(long *)(var_9 + 0xd0);
      var_12 = (**(type_5 **)(**(long **)(var_9 + 200) + 0x38))
                        (*(long **)(var_9 + 200),var_9 + 0x8c,var_14,*(type_3 *)(var_9 + 0xe0),
                         *(long *)(var_9 + 0x10) - *(long *)(var_9 + 8) >> 2);
      __src = (void *)(var_12 + var_14);
      *(void **)(var_9 + 0xe0) = __src;
      var_15 = *(long *)(var_9 + 0xe8) - (long)__src;
      if (var_15 != 0) {
        var_16(*(void **)(var_9 + 0xd0),__src,var_15);
      }
      *(type_3 *)(var_9 + 0x28) = 0;
      *(type_3 *)(var_9 + 0x20) = 0;
      *(long *)(var_9 + 0xe0) = *(long *)(var_9 + 0xd0);
      uVar1 = *(type_3 *)(var_9 + 0x98);
      *(size_t *)(var_9 + 0xe8) = var_15 + *(long *)(var_9 + 0xd0);
      *(type_3 *)(var_9 + 8) = uVar1;
      *(type_3 *)(var_9 + 0x10) = uVar1;
      *(type_3 *)(var_9 + 0x18) = uVar1;
      *(type_3 *)(var_9 + 0x30) = 0;
      *(type_3 *)(var_9 + 0x84) = *(type_3 *)(var_9 + 0x7c);
      *(type_3 *)(var_9 + 0x8c) = *(type_3 *)(var_9 + 0x7c);
    }
    else {
      if (var_17 == (type_4 *)0x0) {
LAB_00305fb9:
        *(type_3 *)(var_9 + 200) = 0;
        return;
      }
      var_10 = (**(type_5 **)(*(long *)var_17 + 0x30))(var_17);
      if (var_10 == '\0') {
        var_14 = (**(type_5 **)(*(long *)var_9 + 0x20))(var_9,0,1,*(type_6 *)(var_9 + 0x78));
        if (var_14 == -1) goto LAB_00305fb9;
      }
    }
  }
LAB_00305f71:
  *(type_4 **)(var_9 + 200) = var_17;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (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: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) right: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))) (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: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))))))) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) 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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_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: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier))) (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: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))))))) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (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: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))))))) arguments: (argument_list (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)) (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (binary_expression left: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (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: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal)))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (return_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: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (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: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (number_literal) (number_literal) (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))) (return_statement))))

void MASKED(long *param_1,undefined8 param_2)

{
  char cVar1;
  int iVar2;
  long *plVar3;
  long lVar4;
  void *__src;
  size_t __n;
  
  cVar1 = FUN_00329010(param_2);
  if (cVar1 == '\0') {
    plVar3 = (long *)0x0;
  }
  else {
    plVar3 = (long *)FUN_00327b00(param_2);
  }
  cVar1 = FUN_002db160(param_1 + 0xd);
  if (cVar1 == '\0') goto LAB_00305f71;
  if ((*(char *)((long)param_1 + 0xa9) == '\0') && (*(char *)((long)param_1 + 0xaa) == '\0')) {
    param_1[0x19] = (long)plVar3;
    return;
  }
  if ((long *)param_1[0x19] == (long *)0x0) {
LAB_003060d4:
                    /* WARNING: Subroutine does not return */
    FUN_00319460();
  }
  iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x28))();
  if (iVar2 == -1) goto LAB_00305fb9;
  if (*(char *)((long)param_1 + 0xa9) == '\0') {
    if (*(char *)((long)param_1 + 0xaa) != '\0') {
      cVar1 = FUN_00305820(param_1);
      if (cVar1 == '\0') goto LAB_00305fb9;
      lVar4 = param_1[0x13];
      param_1[5] = 0;
      param_1[4] = 0;
      param_1[1] = lVar4;
      param_1[2] = lVar4;
      param_1[3] = lVar4;
      param_1[6] = 0;
    }
  }
  else {
    if ((long *)param_1[0x19] == (long *)0x0) goto LAB_003060d4;
    cVar1 = (**(code **)(*(long *)param_1[0x19] + 0x30))();
    if (cVar1 == '\0') {
      lVar4 = param_1[0x1a];
      iVar2 = (**(code **)(*(long *)param_1[0x19] + 0x38))
                        ((long *)param_1[0x19],(long)param_1 + 0x8c,lVar4,param_1[0x1c],
                         param_1[2] - param_1[1] >> 2);
      __src = (void *)(iVar2 + lVar4);
      param_1[0x1c] = (long)__src;
      __n = param_1[0x1d] - (long)__src;
      if (__n != 0) {
        memmove((void *)param_1[0x1a],__src,__n);
      }
      param_1[5] = 0;
      param_1[4] = 0;
      param_1[0x1c] = param_1[0x1a];
      lVar4 = param_1[0x13];
      param_1[0x1d] = __n + param_1[0x1a];
      param_1[1] = lVar4;
      param_1[2] = lVar4;
      param_1[3] = lVar4;
      param_1[6] = 0;
      *(undefined8 *)((long)param_1 + 0x84) = *(undefined8 *)((long)param_1 + 0x7c);
      *(undefined8 *)((long)param_1 + 0x8c) = *(undefined8 *)((long)param_1 + 0x7c);
    }
    else {
      if (plVar3 == (long *)0x0) {
LAB_00305fb9:
        param_1[0x19] = 0;
        return;
      }
      cVar1 = (**(code **)(*plVar3 + 0x30))(plVar3);
      if (cVar1 == '\0') {
        lVar4 = (**(code **)(*param_1 + 0x20))(param_1,0,1,(int)param_1[0xf]);
        if (lVar4 == -1) goto LAB_00305fb9;
      }
    }
  }
LAB_00305f71:
  param_1[0x19] = (long)plVar3;
  return;
}

