
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wios::copyfmt(std::wios const&) */

wios * __thiscall std::wios::copyfmt(wios *this,wios *param_1)

{
  wios wVar1;
  int iVar2;
  int *piVar3;
  wios *pwVar4;
  undefined4 uVar5;
  int iVar6;
  wios *pwVar7;
  int iVar8;
  locale local_20 [12];
  undefined4 uStack_14;
  
  uStack_14 = 0x211aa9;
  if (this != param_1) {
    iVar8 = *(int *)(param_1 + 100);
    if (iVar8 < 9) {
      pwVar4 = this + 0x24;
    }
    else {
      if (0xfffffff < iVar8) {
                    /* WARNING: Subroutine does not return */
        __cxa_throw_bad_array_new_length();
      }
      pwVar4 = (wios *)operator_new__(iVar8 << 3);
      iVar8 = *(int *)(param_1 + 100) + -1;
      pwVar7 = pwVar4;
      if (-1 < iVar8) {
        do {
          iVar8 = iVar8 + -1;
          *(undefined4 *)pwVar7 = 0;
          *(undefined4 *)(pwVar7 + 4) = 0;
          pwVar7 = pwVar7 + 8;
        } while (iVar8 != -1);
      }
    }
    iVar8 = *(int *)(param_1 + 0x18);
    if (iVar8 != 0) {
      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {
        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;
      }
      else {
        LOCK();
        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;
        UNLOCK();
      }
    }
    ios_base::_M_call_callbacks((ios_base *)this,0);
    pwVar7 = *(wios **)(this + 0x68);
    if (pwVar7 != this + 0x24) {
      if (pwVar7 != (wios *)0x0) {
        operator_delete__(pwVar7);
      }
      *(undefined4 *)(this + 0x68) = 0;
    }
    ios_base::_M_dispose_callbacks((ios_base *)this);
    *(int *)(this + 0x18) = iVar8;
    iVar8 = *(int *)(param_1 + 100);
    if (0 < iVar8) {
      iVar6 = 0;
      iVar2 = *(int *)(param_1 + 0x68);
      do {
        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);
        *(undefined4 *)(pwVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);
        *(undefined4 *)(pwVar4 + iVar6 + 4) = uVar5;
        iVar6 = iVar6 + 8;
      } while (iVar6 != iVar8 * 8);
    }
    *(wios **)(this + 0x68) = pwVar4;
    wVar1 = param_1[0x78];
    *(int *)(this + 100) = iVar8;
    *(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc);
    *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);
    *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);
    *(undefined4 *)(this + 0x70) = *(undefined4 *)(param_1 + 0x70);
    if (wVar1 == (wios)0x0) {
      piVar3 = *(int **)(param_1 + 0x80);
      if (piVar3 == (int *)0x0) goto LAB_00211cf1;
      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);
      param_1[0x78] = (wios)0x1;
      wVar1 = this[0x78];
      *(undefined4 *)(param_1 + 0x74) = uVar5;
    }
    else {
      wVar1 = this[0x78];
      uVar5 = *(undefined4 *)(param_1 + 0x74);
    }
    if (wVar1 == (wios)0x0) {
      piVar3 = *(int **)(this + 0x80);
      if (piVar3 == (int *)0x0) {
LAB_00211cf1:
                    /* WARNING: Subroutine does not return */
        __throw_bad_cast();
      }
      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);
      this[0x78] = (wios)0x1;
    }
    *(undefined4 *)(this + 0x74) = uVar5;
    locale::locale(local_20,(locale *)(param_1 + 0x6c));
    locale::operator=((locale *)(this + 0x6c),local_20);
    locale::~locale(local_20);
    _M_cache_locale(this,(locale *)(this + 0x6c));
    ios_base::_M_call_callbacks((ios_base *)this,2);
    *(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10);
    clear(this,*(_Ios_Iostate *)(this + 0x14));
  }
  return this;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int FUN_00211aa0(int param_1,int param_2)

{
  char cVar1;
  int iVar2;
  int *piVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  int iVar6;
  undefined4 *puVar7;
  int iVar8;
  undefined1 local_20 [12];
  undefined4 uStack_14;
  
  uStack_14 = 0x211aa9;
  if (param_1 != param_2) {
    iVar8 = *(int *)(param_2 + 100);
    if (iVar8 < 9) {
      puVar4 = (undefined4 *)(param_1 + 0x24);
    }
    else {
      if (0xfffffff < iVar8) {
                    /* WARNING: Subroutine does not return */
        FUN_001e6740();
      }
      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);
      iVar8 = *(int *)(param_2 + 100) + -1;
      puVar7 = puVar4;
      if (-1 < iVar8) {
        do {
          iVar8 = iVar8 + -1;
          *puVar7 = 0;
          puVar7[1] = 0;
          puVar7 = puVar7 + 2;
        } while (iVar8 != -1);
      }
    }
    iVar8 = *(int *)(param_2 + 0x18);
    if (iVar8 != 0) {
      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {
        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;
      }
      else {
        LOCK();
        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;
        UNLOCK();
      }
    }
    FUN_0022bf80(param_1,0);
    iVar2 = *(int *)(param_1 + 0x68);
    if (iVar2 != param_1 + 0x24) {
      if (iVar2 != 0) {
        FUN_001e6d50(iVar2);
      }
      *(undefined4 *)(param_1 + 0x68) = 0;
    }
    FUN_0022bfd0(param_1);
    *(int *)(param_1 + 0x18) = iVar8;
    iVar8 = *(int *)(param_2 + 100);
    if (0 < iVar8) {
      iVar6 = 0;
      iVar2 = *(int *)(param_2 + 0x68);
      do {
        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);
        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);
        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;
        iVar6 = iVar6 + 8;
      } while (iVar6 != iVar8 * 8);
    }
    *(undefined4 **)(param_1 + 0x68) = puVar4;
    cVar1 = *(char *)(param_2 + 0x78);
    *(int *)(param_1 + 100) = iVar8;
    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);
    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);
    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);
    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);
    if (cVar1 == '\0') {
      piVar3 = *(int **)(param_2 + 0x80);
      if (piVar3 == (int *)0x0) goto LAB_00211cf1;
      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);
      *(undefined1 *)(param_2 + 0x78) = 1;
      cVar1 = *(char *)(param_1 + 0x78);
      *(undefined4 *)(param_2 + 0x74) = uVar5;
    }
    else {
      cVar1 = *(char *)(param_1 + 0x78);
      uVar5 = *(undefined4 *)(param_2 + 0x74);
    }
    if (cVar1 == '\0') {
      piVar3 = *(int **)(param_1 + 0x80);
      if (piVar3 == (int *)0x0) {
LAB_00211cf1:
                    /* WARNING: Subroutine does not return */
        FUN_0022c630();
      }
      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);
      *(undefined1 *)(param_1 + 0x78) = 1;
    }
    *(undefined4 *)(param_1 + 0x74) = uVar5;
    FUN_001e8d40(local_20,param_2 + 0x6c);
    FUN_001e9480(param_1 + 0x6c,local_20);
    FUN_001e9510(local_20);
    FUN_002119f0(param_1,param_1 + 0x6c);
    FUN_0022bf80(param_1,2);
    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);
    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));
  }
  return param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x17d557
SUB ESP,0x2c
MOV ESI,dword ptr [ESP + 0x40]
MOV EDX,dword ptr [ESP + 0x44]
CMP ESI,EDX
JZ 0x00211c25
MOV EAX,dword ptr [EDX + 0x64]
CMP EAX,0x8
JG 0x00211c30
LEA EAX,[ESI + 0x24]
MOV EBP,EAX
MOV EDI,dword ptr [EDX + 0x18]
TEST EDI,EDI
JZ 0x00211aed
MOV ECX,dword ptr [EBX + 0xffffff24]
TEST ECX,ECX
JZ 0x00211ce8
ADD.LOCK dword ptr [EDI + 0xc],0x1
MOV dword ptr [ESP + 0x44],EDX
SUB ESP,0x8
MOV dword ptr [ESP + 0x10],EAX
PUSH 0x0
PUSH ESI
CALL 0x0022bf80
MOV ECX,dword ptr [ESI + 0x68]
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0x44]
CMP ECX,EBP
JZ 0x00211b31
TEST ECX,ECX
JZ 0x00211b2a
SUB ESP,0xc
PUSH ECX
CALL 0x001e6d50
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [ESI + 0x68],0x0
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0xc
MOV dword ptr [ESP + 0x50],EDX
PUSH ESI
CALL 0x0022bfd0
MOV EDX,dword ptr [ESP + 0x54]
MOV dword ptr [ESI + 0x18],EDI
MOV EAX,dword ptr [EDX + 0x64]
MOV dword ptr [ESP + 0x1c],EAX
ADD ESP,0x10
TEST EAX,EAX
MOV EAX,dword ptr [ESP + 0x8]
JLE 0x00211b95
MOV EDI,dword ptr [ESP + 0xc]
MOV dword ptr [ESP + 0x40],ESI
XOR ECX,ECX
LEA EBP,[EDI*0x8 + 0x0]
MOV EDI,dword ptr [EDX + 0x68]
MOV dword ptr [ESP + 0x8],EDI
LEA ESI,[ESI]
NOP
MOV EDI,dword ptr [ESP + 0x8]
MOV ESI,dword ptr [EDI + ECX*0x1]
MOV EDI,dword ptr [EDI + ECX*0x1 + 0x4]
MOV dword ptr [EAX + ECX*0x1],ESI
MOV dword ptr [EAX + ECX*0x1 + 0x4],EDI
ADD ECX,0x8
CMP ECX,EBP
JNZ 0x00211b78
MOV ESI,dword ptr [ESP + 0x40]
MOV dword ptr [ESI + 0x68],EAX
MOV EAX,dword ptr [ESP + 0xc]
CMP byte ptr [EDX + 0x78],0x0
MOV dword ptr [ESI + 0x64],EAX
MOV EAX,dword ptr [EDX + 0xc]
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,dword ptr [EDX + 0x8]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EDX + 0x4]
MOV dword ptr [ESI + 0x4],EAX
MOV EAX,dword ptr [EDX + 0x70]
MOV dword ptr [ESI + 0x70],EAX
JZ 0x00211c88
CMP byte ptr [ESI + 0x78],0x0
MOV EDI,dword ptr [EDX + 0x74]
JZ 0x00211cbb
SUB ESP,0x8
LEA EAX,[EDX + 0x6c]
MOV dword ptr [ESI + 0x74],EDI
LEA EBP,[ESI + 0x6c]
MOV dword ptr [ESP + 0x4c],EDX
PUSH EAX
LEA EDI,[ESP + 0x28]
PUSH EDI
CALL 0x001e8d40
POP EAX
POP EDX
PUSH EDI
PUSH EBP
CALL 0x001e9480
MOV dword ptr [ESP],EDI
CALL 0x001e9510
POP ECX
POP EDI
PUSH EBP
PUSH ESI
CALL 0x002119f0
POP EBP
POP EAX
PUSH 0x2
PUSH ESI
CALL 0x0022bf80
MOV EDX,dword ptr [ESP + 0x54]
MOV EAX,dword ptr [EDX + 0x10]
MOV dword ptr [ESI + 0x10],EAX
POP EAX
POP EDX
PUSH dword ptr [ESI + 0x14]
PUSH ESI
CALL 0x002116a0
ADD ESP,0x10
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x44],EDX
CMP EAX,0xfffffff
JG 0x00211cf6
SUB ESP,0xc
SHL EAX,0x3
LEA EBP,[ESI + 0x24]
PUSH EAX
CALL 0x001e5180
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x44]
MOV ECX,EAX
MOV EDI,dword ptr [EDX + 0x64]
SUB EDI,0x1
JS 0x00211ad3
LEA ESI,[ESI]
NOP
SUB EDI,0x1
MOV dword ptr [ECX],0x0
ADD ECX,0x8
MOV dword ptr [ECX + -0x4],0x0
CMP EDI,-0x1
JNZ 0x00211c68
JMP 0x00211ad3
MOV EAX,dword ptr [EDX + 0x80]
TEST EAX,EAX
JZ 0x00211cf1
MOV dword ptr [ESP + 0x44],EDX
MOV ECX,dword ptr [EAX]
SUB ESP,0x8
PUSH 0x20
PUSH EAX
CALL dword ptr [ECX + 0x28]
MOV EDX,dword ptr [ESP + 0x54]
MOV EDI,EAX
MOV byte ptr [EDX + 0x78],0x1
ADD ESP,0x10
CMP byte ptr [ESI + 0x78],0x0
MOV dword ptr [EDX + 0x74],EAX
JNZ 0x00211bce
MOV EAX,dword ptr [ESI + 0x80]
MOV dword ptr [ESP + 0x44],EDX
TEST EAX,EAX
JZ 0x00211cf1
SUB ESP,0x8
MOV ECX,dword ptr [EAX]
PUSH 0x20
PUSH EAX
CALL dword ptr [ECX + 0x28]
MOV byte ptr [ESI + 0x78],0x1
MOV EDX,dword ptr [ESP + 0x54]
ADD ESP,0x10
JMP 0x00211bce
ADD dword ptr [EDI + 0xc],0x1
JMP 0x00211aed
CALL 0x0022c630
CALL 0x001e6740
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00211aa0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x211aa9;\n  if (param_1 != param_2) {\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }\n  return param_1;\n}\n\n" comment (function_definition "int FUN_00211aa0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x211aa9;\n  if (param_1 != param_2) {\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }\n  return param_1;\n}" primitive_type (function_declarator "FUN_00211aa0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x211aa9;\n  if (param_1 != param_2) {\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }\n  return param_1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined1 local_20 [12];" type_identifier (array_declarator "local_20 [12]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x211aa9;" (assignment_expression "uStack_14 = 0x211aa9" identifier = number_literal) ;) (if_statement "if (param_1 != param_2) {\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }" if (parenthesized_expression "(param_1 != param_2)" ( (binary_expression "param_1 != param_2" identifier != identifier) )) (compound_statement "{\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }" { (expression_statement "iVar8 = *(int *)(param_2 + 100);" (assignment_expression "iVar8 = *(int *)(param_2 + 100)" identifier = (pointer_expression "*(int *)(param_2 + 100)" * (cast_expression "(int *)(param_2 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 100)" ( (binary_expression "param_2 + 100" identifier + number_literal) ))))) ;) (if_statement "if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }" if (parenthesized_expression "(iVar8 < 9)" ( (binary_expression "iVar8 < 9" identifier < number_literal) )) (compound_statement "{\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }" { (expression_statement "puVar4 = (undefined4 *)(param_1 + 0x24);" (assignment_expression "puVar4 = (undefined4 *)(param_1 + 0x24)" identifier = (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) ;) }) (else_clause "else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }" else (compound_statement "{\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }" { (if_statement "if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        FUN_001e6740();\n      }" if (parenthesized_expression "(0xfffffff < iVar8)" ( (binary_expression "0xfffffff < iVar8" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_001e6740();\n      }" { comment (expression_statement "FUN_001e6740();" (call_expression "FUN_001e6740()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);" (assignment_expression "puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3)" identifier = (cast_expression "(undefined4 *)FUN_001e5180(iVar8 << 3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5180(iVar8 << 3)" identifier (argument_list "(iVar8 << 3)" ( (binary_expression "iVar8 << 3" identifier << number_literal) ))))) ;) (expression_statement "iVar8 = *(int *)(param_2 + 100) + -1;" (assignment_expression "iVar8 = *(int *)(param_2 + 100) + -1" identifier = (binary_expression "*(int *)(param_2 + 100) + -1" (pointer_expression "*(int *)(param_2 + 100)" * (cast_expression "(int *)(param_2 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 100)" ( (binary_expression "param_2 + 100" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "puVar7 = puVar4;" (assignment_expression "puVar7 = puVar4" identifier = identifier) ;) (if_statement "if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }" if (parenthesized_expression "(-1 < iVar8)" ( (binary_expression "-1 < iVar8" number_literal < identifier) )) (compound_statement "{\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }" { (do_statement "do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);" do (compound_statement "{\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "puVar7[1] = 0;" (assignment_expression "puVar7[1] = 0" (subscript_expression "puVar7[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar7 = puVar7 + 2;" (assignment_expression "puVar7 = puVar7 + 2" identifier = (binary_expression "puVar7 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 != -1)" ( (binary_expression "iVar8 != -1" identifier != number_literal) )) ;) })) }))) (expression_statement "iVar8 = *(int *)(param_2 + 0x18);" (assignment_expression "iVar8 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_0038ef24 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0038ef24 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }" { (expression_statement "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;" (assignment_expression "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;" (assignment_expression "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) })) (expression_statement "FUN_0022bf80(param_1,0);" (call_expression "FUN_0022bf80(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }" if (parenthesized_expression "(iVar2 != param_1 + 0x24)" ( (binary_expression "iVar2 != param_1 + 0x24" identifier != (binary_expression "param_1 + 0x24" identifier + number_literal)) )) (compound_statement "{\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }" { (if_statement "if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_001e6d50(iVar2);\n      }" { (expression_statement "FUN_001e6d50(iVar2);" (call_expression "FUN_001e6d50(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x68) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x68) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x68)" * (cast_expression "(undefined4 *)(param_1 + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "FUN_0022bfd0(param_1);" (call_expression "FUN_0022bfd0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "*(int *)(param_1 + 0x18) = iVar8;" (assignment_expression "*(int *)(param_1 + 0x18) = iVar8" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar8 = *(int *)(param_2 + 100);" (assignment_expression "iVar8 = *(int *)(param_2 + 100)" identifier = (pointer_expression "*(int *)(param_2 + 100)" * (cast_expression "(int *)(param_2 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 100)" ( (binary_expression "param_2 + 100" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = *(int *)(param_2 + 0x68);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x68)" identifier = (pointer_expression "*(int *)(param_2 + 0x68)" * (cast_expression "(int *)(param_2 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x68)" ( (binary_expression "param_2 + 0x68" identifier + number_literal) ))))) ;) (do_statement "do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);" do (compound_statement "{\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      }" { (expression_statement "uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);" (assignment_expression "uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 4 + iVar6)" * (cast_expression "(undefined4 *)(iVar2 + 4 + iVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4 + iVar6)" ( (binary_expression "iVar2 + 4 + iVar6" (binary_expression "iVar2 + 4" identifier + number_literal) + identifier) ))))) ;) (expression_statement "*(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);" (assignment_expression "*(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6)" (pointer_expression "*(undefined4 *)((int)puVar4 + iVar6)" * (cast_expression "(undefined4 *)((int)puVar4 + iVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + iVar6)" ( (binary_expression "(int)puVar4 + iVar6" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (pointer_expression "*(undefined4 *)(iVar2 + iVar6)" * (cast_expression "(undefined4 *)(iVar2 + iVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar6)" ( (binary_expression "iVar2 + iVar6" identifier + identifier) ))))) ;) (expression_statement "*(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;" (assignment_expression "*(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5" (pointer_expression "*(undefined4 *)((int)puVar4 + iVar6 + 4)" * (cast_expression "(undefined4 *)((int)puVar4 + iVar6 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + iVar6 + 4)" ( (binary_expression "(int)puVar4 + iVar6 + 4" (binary_expression "(int)puVar4 + iVar6" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar6 = iVar6 + 8;" (assignment_expression "iVar6 = iVar6 + 8" identifier = (binary_expression "iVar6 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != iVar8 * 8)" ( (binary_expression "iVar6 != iVar8 * 8" identifier != (binary_expression "iVar8 * 8" identifier * number_literal)) )) ;) })) (expression_statement "*(undefined4 **)(param_1 + 0x68) = puVar4;" (assignment_expression "*(undefined4 **)(param_1 + 0x68) = puVar4" (pointer_expression "*(undefined4 **)(param_1 + 0x68)" * (cast_expression "(undefined4 **)(param_1 + 0x68)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "cVar1 = *(char *)(param_2 + 0x78);" (assignment_expression "cVar1 = *(char *)(param_2 + 0x78)" identifier = (pointer_expression "*(char *)(param_2 + 0x78)" * (cast_expression "(char *)(param_2 + 0x78)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x78)" ( (binary_expression "param_2 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 100) = iVar8;" (assignment_expression "*(int *)(param_1 + 100) = iVar8" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc)" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);" (assignment_expression "*(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8)" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);" (assignment_expression "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4)" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70)" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0x70)" * (cast_expression "(undefined4 *)(param_2 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x70)" ( (binary_expression "param_2 + 0x70" identifier + number_literal) ))))) ;) (if_statement "if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }" { (expression_statement "piVar3 = *(int **)(param_2 + 0x80);" (assignment_expression "piVar3 = *(int **)(param_2 + 0x80)" identifier = (pointer_expression "*(int **)(param_2 + 0x80)" * (cast_expression "(int **)(param_2 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x80)" ( (binary_expression "param_2 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar3 == (int *)0x0) goto LAB_00211cf1;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00211cf1;" goto statement_identifier ;)) (expression_statement "uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);" (assignment_expression "uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20)" identifier = (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3,0x20)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" ( (pointer_expression "**(code **)(*piVar3 + 0x28)" * (pointer_expression "*(code **)(*piVar3 + 0x28)" * (cast_expression "(code **)(*piVar3 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x28)" ( (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3,0x20)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined1 *)(param_2 + 0x78) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0x78) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0x78)" * (cast_expression "(undefined1 *)(param_2 + 0x78)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x78)" ( (binary_expression "param_2 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "cVar1 = *(char *)(param_1 + 0x78);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x78)" identifier = (pointer_expression "*(char *)(param_1 + 0x78)" * (cast_expression "(char *)(param_1 + 0x78)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x74) = uVar5;" (assignment_expression "*(undefined4 *)(param_2 + 0x74) = uVar5" (pointer_expression "*(undefined4 *)(param_2 + 0x74)" * (cast_expression "(undefined4 *)(param_2 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x74)" ( (binary_expression "param_2 + 0x74" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }" else (compound_statement "{\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }" { (expression_statement "cVar1 = *(char *)(param_1 + 0x78);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x78)" identifier = (pointer_expression "*(char *)(param_1 + 0x78)" * (cast_expression "(char *)(param_1 + 0x78)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_2 + 0x74);" (assignment_expression "uVar5 = *(undefined4 *)(param_2 + 0x74)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x74)" * (cast_expression "(undefined4 *)(param_2 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x74)" ( (binary_expression "param_2 + 0x74" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }" { (expression_statement "piVar3 = *(int **)(param_1 + 0x80);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x80)" identifier = (pointer_expression "*(int **)(param_1 + 0x80)" * (cast_expression "(int **)(param_1 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c630();\n      }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c630();\n      }" { (labeled_statement "LAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        FUN_0022c630();" statement_identifier : comment (expression_statement "FUN_0022c630();" (call_expression "FUN_0022c630()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "(**(code **)(*piVar3 + 0x28))(piVar3,0x20);" (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3,0x20)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" ( (pointer_expression "**(code **)(*piVar3 + 0x28)" * (pointer_expression "*(code **)(*piVar3 + 0x28)" * (cast_expression "(code **)(*piVar3 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x28)" ( (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3,0x20)" ( identifier , number_literal ))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x78) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x78) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x78)" * (cast_expression "(undefined1 *)(param_1 + 0x78)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x74) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_001e8d40(local_20,param_2 + 0x6c);" (call_expression "FUN_001e8d40(local_20,param_2 + 0x6c)" identifier (argument_list "(local_20,param_2 + 0x6c)" ( identifier , (binary_expression "param_2 + 0x6c" identifier + number_literal) ))) ;) (expression_statement "FUN_001e9480(param_1 + 0x6c,local_20);" (call_expression "FUN_001e9480(param_1 + 0x6c,local_20)" identifier (argument_list "(param_1 + 0x6c,local_20)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) , identifier ))) ;) (expression_statement "FUN_001e9510(local_20);" (call_expression "FUN_001e9510(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "FUN_002119f0(param_1,param_1 + 0x6c);" (call_expression "FUN_002119f0(param_1,param_1 + 0x6c)" identifier (argument_list "(param_1,param_1 + 0x6c)" ( identifier , (binary_expression "param_1 + 0x6c" identifier + number_literal) ))) ;) (expression_statement "FUN_0022bf80(param_1,2);" (call_expression "FUN_0022bf80(param_1,2)" identifier (argument_list "(param_1,2)" ( identifier , number_literal ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10)" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(param_1,*(undefined4 *)(param_1 + 0x14))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wios::copyfmt(std::wios const&) */\n\nwios * __thiscall std::wios::copyfmt(wios *this,wios *param_1)\n\n{\n  wios wVar1;\n  int iVar2;\n  int *piVar3;\n  wios *pwVar4;\n  undefined4 uVar5;\n  int iVar6;\n  wios *pwVar7;\n  int iVar8;\n  locale local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x211aa9;\n  if (this != param_1) {\n    iVar8 = *(int *)(param_1 + 100);\n    if (iVar8 < 9) {\n      pwVar4 = this + 0x24;\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        __cxa_throw_bad_array_new_length();\n      }\n      pwVar4 = (wios *)operator_new__(iVar8 << 3);\n      iVar8 = *(int *)(param_1 + 100) + -1;\n      pwVar7 = pwVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *(undefined4 *)pwVar7 = 0;\n          *(undefined4 *)(pwVar7 + 4) = 0;\n          pwVar7 = pwVar7 + 8;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_1 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    ios_base::_M_call_callbacks((ios_base *)this,0);\n    pwVar7 = *(wios **)(this + 0x68);\n    if (pwVar7 != this + 0x24) {\n      if (pwVar7 != (wios *)0x0) {\n        operator_delete__(pwVar7);\n      }\n      *(undefined4 *)(this + 0x68) = 0;\n    }\n    ios_base::_M_dispose_callbacks((ios_base *)this);\n    *(int *)(this + 0x18) = iVar8;\n    iVar8 = *(int *)(param_1 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_1 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(wios **)(this + 0x68) = pwVar4;\n    wVar1 = param_1[0x78];\n    *(int *)(this + 100) = iVar8;\n    *(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(this + 0x70) = *(undefined4 *)(param_1 + 0x70);\n    if (wVar1 == (wios)0x0) {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      param_1[0x78] = (wios)0x1;\n      wVar1 = this[0x78];\n      *(undefined4 *)(param_1 + 0x74) = uVar5;\n    }\n    else {\n      wVar1 = this[0x78];\n      uVar5 = *(undefined4 *)(param_1 + 0x74);\n    }\n    if (wVar1 == (wios)0x0) {\n      piVar3 = *(int **)(this + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      this[0x78] = (wios)0x1;\n    }\n    *(undefined4 *)(this + 0x74) = uVar5;\n    locale::locale(local_20,(locale *)(param_1 + 0x6c));\n    locale::operator=((locale *)(this + 0x6c),local_20);\n    locale::~locale(local_20);\n    _M_cache_locale(this,(locale *)(this + 0x6c));\n    ios_base::_M_call_callbacks((ios_base *)this,2);\n    *(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10);\n    clear(this,*(_Ios_Iostate *)(this + 0x14));\n  }\n  return this;\n}\n\n" comment comment (ERROR "wios * __thiscall std::wios::copyfmt(wios *this,wios *param_1)" (binary_expression "wios * __thiscall std::wios::copyfmt(wios *this,wios *param_1" (binary_expression "wios * __thiscall std::wios::copyfmt(wios *this" (binary_expression "wios * __thiscall" identifier * identifier) (ERROR "std::wios::copyfmt(wios" identifier : : identifier : : identifier ( identifier) * identifier) (ERROR ",wios" , identifier) * identifier) )) (compound_statement "{\n  wios wVar1;\n  int iVar2;\n  int *piVar3;\n  wios *pwVar4;\n  undefined4 uVar5;\n  int iVar6;\n  wios *pwVar7;\n  int iVar8;\n  locale local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x211aa9;\n  if (this != param_1) {\n    iVar8 = *(int *)(param_1 + 100);\n    if (iVar8 < 9) {\n      pwVar4 = this + 0x24;\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        __cxa_throw_bad_array_new_length();\n      }\n      pwVar4 = (wios *)operator_new__(iVar8 << 3);\n      iVar8 = *(int *)(param_1 + 100) + -1;\n      pwVar7 = pwVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *(undefined4 *)pwVar7 = 0;\n          *(undefined4 *)(pwVar7 + 4) = 0;\n          pwVar7 = pwVar7 + 8;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_1 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    ios_base::_M_call_callbacks((ios_base *)this,0);\n    pwVar7 = *(wios **)(this + 0x68);\n    if (pwVar7 != this + 0x24) {\n      if (pwVar7 != (wios *)0x0) {\n        operator_delete__(pwVar7);\n      }\n      *(undefined4 *)(this + 0x68) = 0;\n    }\n    ios_base::_M_dispose_callbacks((ios_base *)this);\n    *(int *)(this + 0x18) = iVar8;\n    iVar8 = *(int *)(param_1 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_1 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(wios **)(this + 0x68) = pwVar4;\n    wVar1 = param_1[0x78];\n    *(int *)(this + 100) = iVar8;\n    *(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(this + 0x70) = *(undefined4 *)(param_1 + 0x70);\n    if (wVar1 == (wios)0x0) {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      param_1[0x78] = (wios)0x1;\n      wVar1 = this[0x78];\n      *(undefined4 *)(param_1 + 0x74) = uVar5;\n    }\n    else {\n      wVar1 = this[0x78];\n      uVar5 = *(undefined4 *)(param_1 + 0x74);\n    }\n    if (wVar1 == (wios)0x0) {\n      piVar3 = *(int **)(this + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      this[0x78] = (wios)0x1;\n    }\n    *(undefined4 *)(this + 0x74) = uVar5;\n    locale::locale(local_20,(locale *)(param_1 + 0x6c));\n    locale::operator=((locale *)(this + 0x6c),local_20);\n    locale::~locale(local_20);\n    _M_cache_locale(this,(locale *)(this + 0x6c));\n    ios_base::_M_call_callbacks((ios_base *)this,2);\n    *(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10);\n    clear(this,*(_Ios_Iostate *)(this + 0x14));\n  }\n  return this;\n}" { (declaration "wios wVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "wios *pwVar4;" type_identifier (pointer_declarator "*pwVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "wios *pwVar7;" type_identifier (pointer_declarator "*pwVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "locale local_20 [12];" type_identifier (array_declarator "local_20 [12]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x211aa9;" (assignment_expression "uStack_14 = 0x211aa9" identifier = number_literal) ;) (if_statement "if (this != param_1) {\n    iVar8 = *(int *)(param_1 + 100);\n    if (iVar8 < 9) {\n      pwVar4 = this + 0x24;\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        __cxa_throw_bad_array_new_length();\n      }\n      pwVar4 = (wios *)operator_new__(iVar8 << 3);\n      iVar8 = *(int *)(param_1 + 100) + -1;\n      pwVar7 = pwVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *(undefined4 *)pwVar7 = 0;\n          *(undefined4 *)(pwVar7 + 4) = 0;\n          pwVar7 = pwVar7 + 8;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_1 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    ios_base::_M_call_callbacks((ios_base *)this,0);\n    pwVar7 = *(wios **)(this + 0x68);\n    if (pwVar7 != this + 0x24) {\n      if (pwVar7 != (wios *)0x0) {\n        operator_delete__(pwVar7);\n      }\n      *(undefined4 *)(this + 0x68) = 0;\n    }\n    ios_base::_M_dispose_callbacks((ios_base *)this);\n    *(int *)(this + 0x18) = iVar8;\n    iVar8 = *(int *)(param_1 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_1 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(wios **)(this + 0x68) = pwVar4;\n    wVar1 = param_1[0x78];\n    *(int *)(this + 100) = iVar8;\n    *(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(this + 0x70) = *(undefined4 *)(param_1 + 0x70);\n    if (wVar1 == (wios)0x0) {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      param_1[0x78] = (wios)0x1;\n      wVar1 = this[0x78];\n      *(undefined4 *)(param_1 + 0x74) = uVar5;\n    }\n    else {\n      wVar1 = this[0x78];\n      uVar5 = *(undefined4 *)(param_1 + 0x74);\n    }\n    if (wVar1 == (wios)0x0) {\n      piVar3 = *(int **)(this + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      this[0x78] = (wios)0x1;\n    }\n    *(undefined4 *)(this + 0x74) = uVar5;\n    locale::locale(local_20,(locale *)(param_1 + 0x6c));\n    locale::operator=((locale *)(this + 0x6c),local_20);\n    locale::~locale(local_20);\n    _M_cache_locale(this,(locale *)(this + 0x6c));\n    ios_base::_M_call_callbacks((ios_base *)this,2);\n    *(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10);\n    clear(this,*(_Ios_Iostate *)(this + 0x14));\n  }" if (parenthesized_expression "(this != param_1)" ( (binary_expression "this != param_1" identifier != identifier) )) (compound_statement "{\n    iVar8 = *(int *)(param_1 + 100);\n    if (iVar8 < 9) {\n      pwVar4 = this + 0x24;\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        __cxa_throw_bad_array_new_length();\n      }\n      pwVar4 = (wios *)operator_new__(iVar8 << 3);\n      iVar8 = *(int *)(param_1 + 100) + -1;\n      pwVar7 = pwVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *(undefined4 *)pwVar7 = 0;\n          *(undefined4 *)(pwVar7 + 4) = 0;\n          pwVar7 = pwVar7 + 8;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_1 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    ios_base::_M_call_callbacks((ios_base *)this,0);\n    pwVar7 = *(wios **)(this + 0x68);\n    if (pwVar7 != this + 0x24) {\n      if (pwVar7 != (wios *)0x0) {\n        operator_delete__(pwVar7);\n      }\n      *(undefined4 *)(this + 0x68) = 0;\n    }\n    ios_base::_M_dispose_callbacks((ios_base *)this);\n    *(int *)(this + 0x18) = iVar8;\n    iVar8 = *(int *)(param_1 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_1 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(wios **)(this + 0x68) = pwVar4;\n    wVar1 = param_1[0x78];\n    *(int *)(this + 100) = iVar8;\n    *(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc);\n    *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);\n    *(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);\n    *(undefined4 *)(this + 0x70) = *(undefined4 *)(param_1 + 0x70);\n    if (wVar1 == (wios)0x0) {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      param_1[0x78] = (wios)0x1;\n      wVar1 = this[0x78];\n      *(undefined4 *)(param_1 + 0x74) = uVar5;\n    }\n    else {\n      wVar1 = this[0x78];\n      uVar5 = *(undefined4 *)(param_1 + 0x74);\n    }\n    if (wVar1 == (wios)0x0) {\n      piVar3 = *(int **)(this + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      this[0x78] = (wios)0x1;\n    }\n    *(undefined4 *)(this + 0x74) = uVar5;\n    locale::locale(local_20,(locale *)(param_1 + 0x6c));\n    locale::operator=((locale *)(this + 0x6c),local_20);\n    locale::~locale(local_20);\n    _M_cache_locale(this,(locale *)(this + 0x6c));\n    ios_base::_M_call_callbacks((ios_base *)this,2);\n    *(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10);\n    clear(this,*(_Ios_Iostate *)(this + 0x14));\n  }" { (expression_statement "iVar8 = *(int *)(param_1 + 100);" (assignment_expression "iVar8 = *(int *)(param_1 + 100)" identifier = (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))))) ;) (if_statement "if (iVar8 < 9) {\n      pwVar4 = this + 0x24;\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        __cxa_throw_bad_array_new_length();\n      }\n      pwVar4 = (wios *)operator_new__(iVar8 << 3);\n      iVar8 = *(int *)(param_1 + 100) + -1;\n      pwVar7 = pwVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *(undefined4 *)pwVar7 = 0;\n          *(undefined4 *)(pwVar7 + 4) = 0;\n          pwVar7 = pwVar7 + 8;\n        } while (iVar8 != -1);\n      }\n    }" if (parenthesized_expression "(iVar8 < 9)" ( (binary_expression "iVar8 < 9" identifier < number_literal) )) (compound_statement "{\n      pwVar4 = this + 0x24;\n    }" { (expression_statement "pwVar4 = this + 0x24;" (assignment_expression "pwVar4 = this + 0x24" identifier = (binary_expression "this + 0x24" identifier + number_literal)) ;) }) (else_clause "else {\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        __cxa_throw_bad_array_new_length();\n      }\n      pwVar4 = (wios *)operator_new__(iVar8 << 3);\n      iVar8 = *(int *)(param_1 + 100) + -1;\n      pwVar7 = pwVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *(undefined4 *)pwVar7 = 0;\n          *(undefined4 *)(pwVar7 + 4) = 0;\n          pwVar7 = pwVar7 + 8;\n        } while (iVar8 != -1);\n      }\n    }" else (compound_statement "{\n      if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        __cxa_throw_bad_array_new_length();\n      }\n      pwVar4 = (wios *)operator_new__(iVar8 << 3);\n      iVar8 = *(int *)(param_1 + 100) + -1;\n      pwVar7 = pwVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *(undefined4 *)pwVar7 = 0;\n          *(undefined4 *)(pwVar7 + 4) = 0;\n          pwVar7 = pwVar7 + 8;\n        } while (iVar8 != -1);\n      }\n    }" { (if_statement "if (0xfffffff < iVar8) {\n                    /* WARNING: Subroutine does not return */\n        __cxa_throw_bad_array_new_length();\n      }" if (parenthesized_expression "(0xfffffff < iVar8)" ( (binary_expression "0xfffffff < iVar8" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __cxa_throw_bad_array_new_length();\n      }" { comment (expression_statement "__cxa_throw_bad_array_new_length();" (call_expression "__cxa_throw_bad_array_new_length()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "pwVar4 = (wios *)operator_new__(iVar8 << 3);" (assignment_expression "pwVar4 = (wios *)operator_new__(iVar8 << 3)" identifier = (cast_expression "(wios *)operator_new__(iVar8 << 3)" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new__(iVar8 << 3)" identifier (argument_list "(iVar8 << 3)" ( (binary_expression "iVar8 << 3" identifier << number_literal) ))))) ;) (expression_statement "iVar8 = *(int *)(param_1 + 100) + -1;" (assignment_expression "iVar8 = *(int *)(param_1 + 100) + -1" identifier = (binary_expression "*(int *)(param_1 + 100) + -1" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "pwVar7 = pwVar4;" (assignment_expression "pwVar7 = pwVar4" identifier = identifier) ;) (if_statement "if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *(undefined4 *)pwVar7 = 0;\n          *(undefined4 *)(pwVar7 + 4) = 0;\n          pwVar7 = pwVar7 + 8;\n        } while (iVar8 != -1);\n      }" if (parenthesized_expression "(-1 < iVar8)" ( (binary_expression "-1 < iVar8" number_literal < identifier) )) (compound_statement "{\n        do {\n          iVar8 = iVar8 + -1;\n          *(undefined4 *)pwVar7 = 0;\n          *(undefined4 *)(pwVar7 + 4) = 0;\n          pwVar7 = pwVar7 + 8;\n        } while (iVar8 != -1);\n      }" { (do_statement "do {\n          iVar8 = iVar8 + -1;\n          *(undefined4 *)pwVar7 = 0;\n          *(undefined4 *)(pwVar7 + 4) = 0;\n          pwVar7 = pwVar7 + 8;\n        } while (iVar8 != -1);" do (compound_statement "{\n          iVar8 = iVar8 + -1;\n          *(undefined4 *)pwVar7 = 0;\n          *(undefined4 *)(pwVar7 + 4) = 0;\n          pwVar7 = pwVar7 + 8;\n        }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "*(undefined4 *)pwVar7 = 0;" (assignment_expression "*(undefined4 *)pwVar7 = 0" (pointer_expression "*(undefined4 *)pwVar7" * (cast_expression "(undefined4 *)pwVar7" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)(pwVar7 + 4) = 0;" (assignment_expression "*(undefined4 *)(pwVar7 + 4) = 0" (pointer_expression "*(undefined4 *)(pwVar7 + 4)" * (cast_expression "(undefined4 *)(pwVar7 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar7 + 4)" ( (binary_expression "pwVar7 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "pwVar7 = pwVar7 + 8;" (assignment_expression "pwVar7 = pwVar7 + 8" identifier = (binary_expression "pwVar7 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 != -1)" ( (binary_expression "iVar8 != -1" identifier != number_literal) )) ;) })) }))) (expression_statement "iVar8 = *(int *)(param_1 + 0x18);" (assignment_expression "iVar8 = *(int *)(param_1 + 0x18)" identifier = (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_0038ef24 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0038ef24 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }" { (expression_statement "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;" (assignment_expression "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;" (assignment_expression "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) })) (labeled_statement "ios_base::_M_call_callbacks((ios_base *)this,0);" statement_identifier : (ERROR ":" :) (expression_statement "_M_call_callbacks((ios_base *)this,0);" (call_expression "_M_call_callbacks((ios_base *)this,0)" identifier (argument_list "((ios_base *)this,0)" ( (cast_expression "(ios_base *)this" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal ))) ;)) (expression_statement "pwVar7 = *(wios **)(this + 0x68);" (assignment_expression "pwVar7 = *(wios **)(this + 0x68)" identifier = (pointer_expression "*(wios **)(this + 0x68)" * (cast_expression "(wios **)(this + 0x68)" ( (type_descriptor "wios **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (pwVar7 != this + 0x24) {\n      if (pwVar7 != (wios *)0x0) {\n        operator_delete__(pwVar7);\n      }\n      *(undefined4 *)(this + 0x68) = 0;\n    }" if (parenthesized_expression "(pwVar7 != this + 0x24)" ( (binary_expression "pwVar7 != this + 0x24" identifier != (binary_expression "this + 0x24" identifier + number_literal)) )) (compound_statement "{\n      if (pwVar7 != (wios *)0x0) {\n        operator_delete__(pwVar7);\n      }\n      *(undefined4 *)(this + 0x68) = 0;\n    }" { (if_statement "if (pwVar7 != (wios *)0x0) {\n        operator_delete__(pwVar7);\n      }" if (parenthesized_expression "(pwVar7 != (wios *)0x0)" ( (binary_expression "pwVar7 != (wios *)0x0" identifier != (cast_expression "(wios *)0x0" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        operator_delete__(pwVar7);\n      }" { (expression_statement "operator_delete__(pwVar7);" (call_expression "operator_delete__(pwVar7)" identifier (argument_list "(pwVar7)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(this + 0x68) = 0;" (assignment_expression "*(undefined4 *)(this + 0x68) = 0" (pointer_expression "*(undefined4 *)(this + 0x68)" * (cast_expression "(undefined4 *)(this + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) )))) = number_literal) ;) })) (labeled_statement "ios_base::_M_dispose_callbacks((ios_base *)this);" statement_identifier : (ERROR ":" :) (expression_statement "_M_dispose_callbacks((ios_base *)this);" (call_expression "_M_dispose_callbacks((ios_base *)this)" identifier (argument_list "((ios_base *)this)" ( (cast_expression "(ios_base *)this" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (expression_statement "*(int *)(this + 0x18) = iVar8;" (assignment_expression "*(int *)(this + 0x18) = iVar8" (pointer_expression "*(int *)(this + 0x18)" * (cast_expression "(int *)(this + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar8 = *(int *)(param_1 + 100);" (assignment_expression "iVar8 = *(int *)(param_1 + 100)" identifier = (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_1 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n      iVar6 = 0;\n      iVar2 = *(int *)(param_1 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (do_statement "do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);" do (compound_statement "{\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)(pwVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      }" { (expression_statement "uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);" (assignment_expression "uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 4 + iVar6)" * (cast_expression "(undefined4 *)(iVar2 + 4 + iVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4 + iVar6)" ( (binary_expression "iVar2 + 4 + iVar6" (binary_expression "iVar2 + 4" identifier + number_literal) + identifier) ))))) ;) (expression_statement "*(undefined4 *)(pwVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);" (assignment_expression "*(undefined4 *)(pwVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6)" (pointer_expression "*(undefined4 *)(pwVar4 + iVar6)" * (cast_expression "(undefined4 *)(pwVar4 + iVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar4 + iVar6)" ( (binary_expression "pwVar4 + iVar6" identifier + identifier) )))) = (pointer_expression "*(undefined4 *)(iVar2 + iVar6)" * (cast_expression "(undefined4 *)(iVar2 + iVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar6)" ( (binary_expression "iVar2 + iVar6" identifier + identifier) ))))) ;) (expression_statement "*(undefined4 *)(pwVar4 + iVar6 + 4) = uVar5;" (assignment_expression "*(undefined4 *)(pwVar4 + iVar6 + 4) = uVar5" (pointer_expression "*(undefined4 *)(pwVar4 + iVar6 + 4)" * (cast_expression "(undefined4 *)(pwVar4 + iVar6 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pwVar4 + iVar6 + 4)" ( (binary_expression "pwVar4 + iVar6 + 4" (binary_expression "pwVar4 + iVar6" identifier + identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar6 = iVar6 + 8;" (assignment_expression "iVar6 = iVar6 + 8" identifier = (binary_expression "iVar6 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != iVar8 * 8)" ( (binary_expression "iVar6 != iVar8 * 8" identifier != (binary_expression "iVar8 * 8" identifier * number_literal)) )) ;) })) (expression_statement "*(wios **)(this + 0x68) = pwVar4;" (assignment_expression "*(wios **)(this + 0x68) = pwVar4" (pointer_expression "*(wios **)(this + 0x68)" * (cast_expression "(wios **)(this + 0x68)" ( (type_descriptor "wios **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x68)" ( (binary_expression "this + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "wVar1 = param_1[0x78];" (assignment_expression "wVar1 = param_1[0x78]" identifier = (subscript_expression "param_1[0x78]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(this + 100) = iVar8;" (assignment_expression "*(int *)(this + 100) = iVar8" (pointer_expression "*(int *)(this + 100)" * (cast_expression "(int *)(this + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 100)" ( (binary_expression "this + 100" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "*(undefined4 *)(this + 0xc) = *(undefined4 *)(param_1 + 0xc)" (pointer_expression "*(undefined4 *)(this + 0xc)" * (cast_expression "(undefined4 *)(this + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8);" (assignment_expression "*(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 8)" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4);" (assignment_expression "*(undefined4 *)(this + 4) = *(undefined4 *)(param_1 + 4)" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 0x70) = *(undefined4 *)(param_1 + 0x70);" (assignment_expression "*(undefined4 *)(this + 0x70) = *(undefined4 *)(param_1 + 0x70)" (pointer_expression "*(undefined4 *)(this + 0x70)" * (cast_expression "(undefined4 *)(this + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x70)" ( (binary_expression "this + 0x70" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) ))))) ;) (if_statement "if (wVar1 == (wios)0x0) {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      param_1[0x78] = (wios)0x1;\n      wVar1 = this[0x78];\n      *(undefined4 *)(param_1 + 0x74) = uVar5;\n    }\n    else {\n      wVar1 = this[0x78];\n      uVar5 = *(undefined4 *)(param_1 + 0x74);\n    }" if (parenthesized_expression "(wVar1 == (wios)0x0)" ( (binary_expression "wVar1 == (wios)0x0" identifier == (cast_expression "(wios)0x0" ( (type_descriptor "wios" type_identifier) ) number_literal)) )) (compound_statement "{\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      param_1[0x78] = (wios)0x1;\n      wVar1 = this[0x78];\n      *(undefined4 *)(param_1 + 0x74) = uVar5;\n    }" { (expression_statement "piVar3 = *(int **)(param_1 + 0x80);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x80)" identifier = (pointer_expression "*(int **)(param_1 + 0x80)" * (cast_expression "(int **)(param_1 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar3 == (int *)0x0) goto LAB_00211cf1;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00211cf1;" goto statement_identifier ;)) (expression_statement "uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);" (assignment_expression "uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20)" identifier = (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3,0x20)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" ( (pointer_expression "**(code **)(*piVar3 + 0x28)" * (pointer_expression "*(code **)(*piVar3 + 0x28)" * (cast_expression "(code **)(*piVar3 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x28)" ( (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3,0x20)" ( identifier , number_literal )))) ;) (expression_statement "param_1[0x78] = (wios)0x1;" (assignment_expression "param_1[0x78] = (wios)0x1" (subscript_expression "param_1[0x78]" identifier [ number_literal ]) = (cast_expression "(wios)0x1" ( (type_descriptor "wios" type_identifier) ) number_literal)) ;) (expression_statement "wVar1 = this[0x78];" (assignment_expression "wVar1 = this[0x78]" identifier = (subscript_expression "this[0x78]" identifier [ number_literal ])) ;) (expression_statement "*(undefined4 *)(param_1 + 0x74) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      wVar1 = this[0x78];\n      uVar5 = *(undefined4 *)(param_1 + 0x74);\n    }" else (compound_statement "{\n      wVar1 = this[0x78];\n      uVar5 = *(undefined4 *)(param_1 + 0x74);\n    }" { (expression_statement "wVar1 = this[0x78];" (assignment_expression "wVar1 = this[0x78]" identifier = (subscript_expression "this[0x78]" identifier [ number_literal ])) ;) (expression_statement "uVar5 = *(undefined4 *)(param_1 + 0x74);" (assignment_expression "uVar5 = *(undefined4 *)(param_1 + 0x74)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) }))) (if_statement "if (wVar1 == (wios)0x0) {\n      piVar3 = *(int **)(this + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      this[0x78] = (wios)0x1;\n    }" if (parenthesized_expression "(wVar1 == (wios)0x0)" ( (binary_expression "wVar1 == (wios)0x0" identifier == (cast_expression "(wios)0x0" ( (type_descriptor "wios" type_identifier) ) number_literal)) )) (compound_statement "{\n      piVar3 = *(int **)(this + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      this[0x78] = (wios)0x1;\n    }" { (expression_statement "piVar3 = *(int **)(this + 0x80);" (assignment_expression "piVar3 = *(int **)(this + 0x80)" identifier = (pointer_expression "*(int **)(this + 0x80)" * (cast_expression "(int **)(this + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x80)" ( (binary_expression "this + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00211cf1:\n                    /* WARNING: Subroutine does not return */\n        __throw_bad_cast();\n      }" { (labeled_statement "LAB_00211cf1:\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 "(**(code **)(*piVar3 + 0x28))(piVar3,0x20);" (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3,0x20)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" ( (pointer_expression "**(code **)(*piVar3 + 0x28)" * (pointer_expression "*(code **)(*piVar3 + 0x28)" * (cast_expression "(code **)(*piVar3 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x28)" ( (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3,0x20)" ( identifier , number_literal ))) ;) (expression_statement "this[0x78] = (wios)0x1;" (assignment_expression "this[0x78] = (wios)0x1" (subscript_expression "this[0x78]" identifier [ number_literal ]) = (cast_expression "(wios)0x1" ( (type_descriptor "wios" type_identifier) ) number_literal)) ;) })) (expression_statement "*(undefined4 *)(this + 0x74) = uVar5;" (assignment_expression "*(undefined4 *)(this + 0x74) = uVar5" (pointer_expression "*(undefined4 *)(this + 0x74)" * (cast_expression "(undefined4 *)(this + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x74)" ( (binary_expression "this + 0x74" identifier + number_literal) )))) = identifier) ;) (labeled_statement "locale::locale(local_20,(locale *)(param_1 + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "locale(local_20,(locale *)(param_1 + 0x6c));" (call_expression "locale(local_20,(locale *)(param_1 + 0x6c))" identifier (argument_list "(local_20,(locale *)(param_1 + 0x6c))" ( identifier , (cast_expression "(locale *)(param_1 + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) ))) ))) ;)) (labeled_statement "locale::operator=((locale *)(this + 0x6c),local_20);" statement_identifier : (ERROR ":" :) (expression_statement "operator=((locale *)(this + 0x6c),local_20);" (assignment_expression "operator=((locale *)(this + 0x6c),local_20)" identifier = (parenthesized_expression "((locale *)(this + 0x6c),local_20)" ( (comma_expression "(locale *)(this + 0x6c),local_20" (cast_expression "(locale *)(this + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x6c)" ( (binary_expression "this + 0x6c" identifier + number_literal) ))) , identifier) ))) ;)) (labeled_statement "locale::~locale(local_20);" statement_identifier : (ERROR ":" :) (expression_statement "~locale(local_20);" (unary_expression "~locale(local_20)" ~ (call_expression "locale(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;)) (expression_statement "_M_cache_locale(this,(locale *)(this + 0x6c));" (call_expression "_M_cache_locale(this,(locale *)(this + 0x6c))" identifier (argument_list "(this,(locale *)(this + 0x6c))" ( identifier , (cast_expression "(locale *)(this + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x6c)" ( (binary_expression "this + 0x6c" identifier + number_literal) ))) ))) ;) (labeled_statement "ios_base::_M_call_callbacks((ios_base *)this,2);" statement_identifier : (ERROR ":" :) (expression_statement "_M_call_callbacks((ios_base *)this,2);" (call_expression "_M_call_callbacks((ios_base *)this,2)" identifier (argument_list "((ios_base *)this,2)" ( (cast_expression "(ios_base *)this" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , number_literal ))) ;)) (expression_statement "*(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10);" (assignment_expression "*(undefined4 *)(this + 0x10) = *(undefined4 *)(param_1 + 0x10)" (pointer_expression "*(undefined4 *)(this + 0x10)" * (cast_expression "(undefined4 *)(this + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "clear(this,*(_Ios_Iostate *)(this + 0x14));" (call_expression "clear(this,*(_Ios_Iostate *)(this + 0x14))" identifier (argument_list "(this,*(_Ios_Iostate *)(this + 0x14))" ( identifier , (pointer_expression "*(_Ios_Iostate *)(this + 0x14)" * (cast_expression "(_Ios_Iostate *)(this + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) ))) ;) })) (return_statement "return this;" return identifier ;) }))
(translation_unit "int FUN_00211aa0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x211aa9;\n  if (param_1 != param_2) {\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }\n  return param_1;\n}\n\n" (function_definition "int FUN_00211aa0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x211aa9;\n  if (param_1 != param_2) {\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }\n  return param_1;\n}" primitive_type (function_declarator "FUN_00211aa0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x211aa9;\n  if (param_1 != param_2) {\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }\n  return param_1;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined1 local_20 [12];" type_identifier (array_declarator "local_20 [12]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x211aa9;" (assignment_expression "uStack_14 = 0x211aa9" identifier = number_literal) ;) (if_statement "if (param_1 != param_2) {\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }" if (parenthesized_expression "(param_1 != param_2)" ( (binary_expression "param_1 != param_2" identifier != identifier) )) (compound_statement "{\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }" { (expression_statement "iVar8 = *(int *)(param_2 + 100);" (assignment_expression "iVar8 = *(int *)(param_2 + 100)" identifier = (pointer_expression "*(int *)(param_2 + 100)" * (cast_expression "(int *)(param_2 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 100)" ( (binary_expression "param_2 + 100" identifier + number_literal) ))))) ;) (if_statement "if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }" if (parenthesized_expression "(iVar8 < 9)" ( (binary_expression "iVar8 < 9" identifier < number_literal) )) (compound_statement "{\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }" { (expression_statement "puVar4 = (undefined4 *)(param_1 + 0x24);" (assignment_expression "puVar4 = (undefined4 *)(param_1 + 0x24)" identifier = (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) ;) }) (else_clause "else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }" else (compound_statement "{\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }" { (if_statement "if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }" if (parenthesized_expression "(0xfffffff < iVar8)" ( (binary_expression "0xfffffff < iVar8" number_literal < identifier) )) (compound_statement "{\n                    \n        FUN_001e6740();\n      }" { (expression_statement "FUN_001e6740();" (call_expression "FUN_001e6740()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);" (assignment_expression "puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3)" identifier = (cast_expression "(undefined4 *)FUN_001e5180(iVar8 << 3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5180(iVar8 << 3)" identifier (argument_list "(iVar8 << 3)" ( (binary_expression "iVar8 << 3" identifier << number_literal) ))))) ;) (expression_statement "iVar8 = *(int *)(param_2 + 100) + -1;" (assignment_expression "iVar8 = *(int *)(param_2 + 100) + -1" identifier = (binary_expression "*(int *)(param_2 + 100) + -1" (pointer_expression "*(int *)(param_2 + 100)" * (cast_expression "(int *)(param_2 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 100)" ( (binary_expression "param_2 + 100" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "puVar7 = puVar4;" (assignment_expression "puVar7 = puVar4" identifier = identifier) ;) (if_statement "if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }" if (parenthesized_expression "(-1 < iVar8)" ( (binary_expression "-1 < iVar8" number_literal < identifier) )) (compound_statement "{\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }" { (do_statement "do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);" do (compound_statement "{\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        }" { (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ;) (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "puVar7[1] = 0;" (assignment_expression "puVar7[1] = 0" (subscript_expression "puVar7[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar7 = puVar7 + 2;" (assignment_expression "puVar7 = puVar7 + 2" identifier = (binary_expression "puVar7 + 2" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 != -1)" ( (binary_expression "iVar8 != -1" identifier != number_literal) )) ;) })) }))) (expression_statement "iVar8 = *(int *)(param_2 + 0x18);" (assignment_expression "iVar8 = *(int *)(param_2 + 0x18)" identifier = (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }" { (if_statement "if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_0038ef24 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0038ef24 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }" { (expression_statement "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;" (assignment_expression "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;" (assignment_expression "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) })) (expression_statement "FUN_0022bf80(param_1,0);" (call_expression "FUN_0022bf80(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x68)" identifier = (pointer_expression "*(int *)(param_1 + 0x68)" * (cast_expression "(int *)(param_1 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }" if (parenthesized_expression "(iVar2 != param_1 + 0x24)" ( (binary_expression "iVar2 != param_1 + 0x24" identifier != (binary_expression "param_1 + 0x24" identifier + number_literal)) )) (compound_statement "{\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }" { (if_statement "if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_001e6d50(iVar2);\n      }" { (expression_statement "FUN_001e6d50(iVar2);" (call_expression "FUN_001e6d50(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x68) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x68) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x68)" * (cast_expression "(undefined4 *)(param_1 + 0x68)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "FUN_0022bfd0(param_1);" (call_expression "FUN_0022bfd0(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "*(int *)(param_1 + 0x18) = iVar8;" (assignment_expression "*(int *)(param_1 + 0x18) = iVar8" (pointer_expression "*(int *)(param_1 + 0x18)" * (cast_expression "(int *)(param_1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar8 = *(int *)(param_2 + 100);" (assignment_expression "iVar8 = *(int *)(param_2 + 100)" identifier = (pointer_expression "*(int *)(param_2 + 100)" * (cast_expression "(int *)(param_2 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 100)" ( (binary_expression "param_2 + 100" identifier + number_literal) ))))) ;) (if_statement "if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }" if (parenthesized_expression "(0 < iVar8)" ( (binary_expression "0 < iVar8" number_literal < identifier) )) (compound_statement "{\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = *(int *)(param_2 + 0x68);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x68)" identifier = (pointer_expression "*(int *)(param_2 + 0x68)" * (cast_expression "(int *)(param_2 + 0x68)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x68)" ( (binary_expression "param_2 + 0x68" identifier + number_literal) ))))) ;) (do_statement "do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);" do (compound_statement "{\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      }" { (expression_statement "uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);" (assignment_expression "uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 4 + iVar6)" * (cast_expression "(undefined4 *)(iVar2 + 4 + iVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4 + iVar6)" ( (binary_expression "iVar2 + 4 + iVar6" (binary_expression "iVar2 + 4" identifier + number_literal) + identifier) ))))) ;) (expression_statement "*(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);" (assignment_expression "*(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6)" (pointer_expression "*(undefined4 *)((int)puVar4 + iVar6)" * (cast_expression "(undefined4 *)((int)puVar4 + iVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + iVar6)" ( (binary_expression "(int)puVar4 + iVar6" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (pointer_expression "*(undefined4 *)(iVar2 + iVar6)" * (cast_expression "(undefined4 *)(iVar2 + iVar6)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + iVar6)" ( (binary_expression "iVar2 + iVar6" identifier + identifier) ))))) ;) (expression_statement "*(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;" (assignment_expression "*(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5" (pointer_expression "*(undefined4 *)((int)puVar4 + iVar6 + 4)" * (cast_expression "(undefined4 *)((int)puVar4 + iVar6 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + iVar6 + 4)" ( (binary_expression "(int)puVar4 + iVar6 + 4" (binary_expression "(int)puVar4 + iVar6" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = identifier) ;) (expression_statement "iVar6 = iVar6 + 8;" (assignment_expression "iVar6 = iVar6 + 8" identifier = (binary_expression "iVar6 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 != iVar8 * 8)" ( (binary_expression "iVar6 != iVar8 * 8" identifier != (binary_expression "iVar8 * 8" identifier * number_literal)) )) ;) })) (expression_statement "*(undefined4 **)(param_1 + 0x68) = puVar4;" (assignment_expression "*(undefined4 **)(param_1 + 0x68) = puVar4" (pointer_expression "*(undefined4 **)(param_1 + 0x68)" * (cast_expression "(undefined4 **)(param_1 + 0x68)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x68)" ( (binary_expression "param_1 + 0x68" identifier + number_literal) )))) = identifier) ;) (expression_statement "cVar1 = *(char *)(param_2 + 0x78);" (assignment_expression "cVar1 = *(char *)(param_2 + 0x78)" identifier = (pointer_expression "*(char *)(param_2 + 0x78)" * (cast_expression "(char *)(param_2 + 0x78)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x78)" ( (binary_expression "param_2 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 100) = iVar8;" (assignment_expression "*(int *)(param_1 + 100) = iVar8" (pointer_expression "*(int *)(param_1 + 100)" * (cast_expression "(int *)(param_1 + 100)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 100)" ( (binary_expression "param_1 + 100" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc)" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);" (assignment_expression "*(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8)" (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);" (assignment_expression "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4)" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70)" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0x70)" * (cast_expression "(undefined4 *)(param_2 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x70)" ( (binary_expression "param_2 + 0x70" identifier + number_literal) ))))) ;) (if_statement "if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }" { (expression_statement "piVar3 = *(int **)(param_2 + 0x80);" (assignment_expression "piVar3 = *(int **)(param_2 + 0x80)" identifier = (pointer_expression "*(int **)(param_2 + 0x80)" * (cast_expression "(int **)(param_2 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x80)" ( (binary_expression "param_2 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar3 == (int *)0x0) goto LAB_00211cf1;" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00211cf1;" goto statement_identifier ;)) (expression_statement "uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);" (assignment_expression "uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20)" identifier = (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3,0x20)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" ( (pointer_expression "**(code **)(*piVar3 + 0x28)" * (pointer_expression "*(code **)(*piVar3 + 0x28)" * (cast_expression "(code **)(*piVar3 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x28)" ( (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3,0x20)" ( identifier , number_literal )))) ;) (expression_statement "*(undefined1 *)(param_2 + 0x78) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0x78) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0x78)" * (cast_expression "(undefined1 *)(param_2 + 0x78)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x78)" ( (binary_expression "param_2 + 0x78" identifier + number_literal) )))) = number_literal) ;) (expression_statement "cVar1 = *(char *)(param_1 + 0x78);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x78)" identifier = (pointer_expression "*(char *)(param_1 + 0x78)" * (cast_expression "(char *)(param_1 + 0x78)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x74) = uVar5;" (assignment_expression "*(undefined4 *)(param_2 + 0x74) = uVar5" (pointer_expression "*(undefined4 *)(param_2 + 0x74)" * (cast_expression "(undefined4 *)(param_2 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x74)" ( (binary_expression "param_2 + 0x74" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }" else (compound_statement "{\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }" { (expression_statement "cVar1 = *(char *)(param_1 + 0x78);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x78)" identifier = (pointer_expression "*(char *)(param_1 + 0x78)" * (cast_expression "(char *)(param_1 + 0x78)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(param_2 + 0x74);" (assignment_expression "uVar5 = *(undefined4 *)(param_2 + 0x74)" identifier = (pointer_expression "*(undefined4 *)(param_2 + 0x74)" * (cast_expression "(undefined4 *)(param_2 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x74)" ( (binary_expression "param_2 + 0x74" identifier + number_literal) ))))) ;) }))) (if_statement "if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }" { (expression_statement "piVar3 = *(int **)(param_1 + 0x80);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x80)" identifier = (pointer_expression "*(int **)(param_1 + 0x80)" * (cast_expression "(int **)(param_1 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x80)" ( (binary_expression "param_1 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }" { (labeled_statement "LAB_00211cf1:\n                    \n        FUN_0022c630();" statement_identifier : (expression_statement "FUN_0022c630();" (call_expression "FUN_0022c630()" identifier (argument_list "()" ( ))) ;)) })) (expression_statement "(**(code **)(*piVar3 + 0x28))(piVar3,0x20);" (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3,0x20)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" ( (pointer_expression "**(code **)(*piVar3 + 0x28)" * (pointer_expression "*(code **)(*piVar3 + 0x28)" * (cast_expression "(code **)(*piVar3 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 0x28)" ( (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3,0x20)" ( identifier , number_literal ))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x78) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x78) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x78)" * (cast_expression "(undefined1 *)(param_1 + 0x78)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x74) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_001e8d40(local_20,param_2 + 0x6c);" (call_expression "FUN_001e8d40(local_20,param_2 + 0x6c)" identifier (argument_list "(local_20,param_2 + 0x6c)" ( identifier , (binary_expression "param_2 + 0x6c" identifier + number_literal) ))) ;) (expression_statement "FUN_001e9480(param_1 + 0x6c,local_20);" (call_expression "FUN_001e9480(param_1 + 0x6c,local_20)" identifier (argument_list "(param_1 + 0x6c,local_20)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) , identifier ))) ;) (expression_statement "FUN_001e9510(local_20);" (call_expression "FUN_001e9510(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "FUN_002119f0(param_1,param_1 + 0x6c);" (call_expression "FUN_002119f0(param_1,param_1 + 0x6c)" identifier (argument_list "(param_1,param_1 + 0x6c)" ( identifier , (binary_expression "param_1 + 0x6c" identifier + number_literal) ))) ;) (expression_statement "FUN_0022bf80(param_1,2);" (call_expression "FUN_0022bf80(param_1,2)" identifier (argument_list "(param_1,2)" ( identifier , number_literal ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10)" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14))" identifier (argument_list "(param_1,*(undefined4 *)(param_1 + 0x14))" ( identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) ))) ;) })) (return_statement "return param_1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT << LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT * LIT)) )) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (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 * IDENT) + LIT) ))))) )) (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( ))) ;)) })) (expression_statement (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 ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00211aa0(int param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x211aa9;\n  if (param_1 != param_2) {\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }\n  return param_1;\n}" (primitive_type "int") (function_declarator "FUN_00211aa0(int param_1,int param_2)" (identifier "FUN_00211aa0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  int *piVar3;\n  undefined4 *puVar4;\n  undefined4 uVar5;\n  int iVar6;\n  undefined4 *puVar7;\n  int iVar8;\n  undefined1 local_20 [12];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x211aa9;\n  if (param_1 != param_2) {\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }\n  return param_1;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined1 local_20 [12];" (type_identifier "undefined1") (array_declarator "local_20 [12]" (identifier "local_20") ([ "[") (number_literal "12") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x211aa9;" (assignment_expression "uStack_14 = 0x211aa9" (identifier "uStack_14") (= "=") (number_literal "0x211aa9")) (; ";")) (if_statement "if (param_1 != param_2) {\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }" (if "if") (parenthesized_expression "(param_1 != param_2)" (( "(") (binary_expression "param_1 != param_2" (identifier "param_1") (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n    iVar8 = *(int *)(param_2 + 100);\n    if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }\n    iVar8 = *(int *)(param_2 + 0x18);\n    if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }\n    FUN_0022bf80(param_1,0);\n    iVar2 = *(int *)(param_1 + 0x68);\n    if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }\n    FUN_0022bfd0(param_1);\n    *(int *)(param_1 + 0x18) = iVar8;\n    iVar8 = *(int *)(param_2 + 100);\n    if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }\n    *(undefined4 **)(param_1 + 0x68) = puVar4;\n    cVar1 = *(char *)(param_2 + 0x78);\n    *(int *)(param_1 + 100) = iVar8;\n    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);\n    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);\n    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);\n    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }\n    if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }\n    *(undefined4 *)(param_1 + 0x74) = uVar5;\n    FUN_001e8d40(local_20,param_2 + 0x6c);\n    FUN_001e9480(param_1 + 0x6c,local_20);\n    FUN_001e9510(local_20);\n    FUN_002119f0(param_1,param_1 + 0x6c);\n    FUN_0022bf80(param_1,2);\n    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);\n    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));\n  }" ({ "{") (expression_statement "iVar8 = *(int *)(param_2 + 100);" (assignment_expression "iVar8 = *(int *)(param_2 + 100)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(param_2 + 100)" (* "*") (cast_expression "(int *)(param_2 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 100)" (( "(") (binary_expression "param_2 + 100" (identifier "param_2") (+ "+") (number_literal "100")) () ")"))))) (; ";")) (if_statement "if (iVar8 < 9) {\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }\n    else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }" (if "if") (parenthesized_expression "(iVar8 < 9)" (( "(") (binary_expression "iVar8 < 9" (identifier "iVar8") (< "<") (number_literal "9")) () ")")) (compound_statement "{\n      puVar4 = (undefined4 *)(param_1 + 0x24);\n    }" ({ "{") (expression_statement "puVar4 = (undefined4 *)(param_1 + 0x24);" (assignment_expression "puVar4 = (undefined4 *)(param_1 + 0x24)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }" (else "else") (compound_statement "{\n      if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }\n      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);\n      iVar8 = *(int *)(param_2 + 100) + -1;\n      puVar7 = puVar4;\n      if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }\n    }" ({ "{") (if_statement "if (0xfffffff < iVar8) {\n                    \n        FUN_001e6740();\n      }" (if "if") (parenthesized_expression "(0xfffffff < iVar8)" (( "(") (binary_expression "0xfffffff < iVar8" (number_literal "0xfffffff") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n                    \n        FUN_001e6740();\n      }" ({ "{") (expression_statement "FUN_001e6740();" (call_expression "FUN_001e6740()" (identifier "FUN_001e6740") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);" (assignment_expression "puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)FUN_001e5180(iVar8 << 3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5180(iVar8 << 3)" (identifier "FUN_001e5180") (argument_list "(iVar8 << 3)" (( "(") (binary_expression "iVar8 << 3" (identifier "iVar8") (<< "<<") (number_literal "3")) () ")"))))) (; ";")) (expression_statement "iVar8 = *(int *)(param_2 + 100) + -1;" (assignment_expression "iVar8 = *(int *)(param_2 + 100) + -1" (identifier "iVar8") (= "=") (binary_expression "*(int *)(param_2 + 100) + -1" (pointer_expression "*(int *)(param_2 + 100)" (* "*") (cast_expression "(int *)(param_2 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 100)" (( "(") (binary_expression "param_2 + 100" (identifier "param_2") (+ "+") (number_literal "100")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar7 = puVar4;" (assignment_expression "puVar7 = puVar4" (identifier "puVar7") (= "=") (identifier "puVar4")) (; ";")) (if_statement "if (-1 < iVar8) {\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }" (if "if") (parenthesized_expression "(-1 < iVar8)" (( "(") (binary_expression "-1 < iVar8" (number_literal "-1") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n        do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);\n      }" ({ "{") (do_statement "do {\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        } while (iVar8 != -1);" (do "do") (compound_statement "{\n          iVar8 = iVar8 + -1;\n          *puVar7 = 0;\n          puVar7[1] = 0;\n          puVar7 = puVar7 + 2;\n        }" ({ "{") (expression_statement "iVar8 = iVar8 + -1;" (assignment_expression "iVar8 = iVar8 + -1" (identifier "iVar8") (= "=") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7[1] = 0;" (assignment_expression "puVar7[1] = 0" (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7 = puVar7 + 2;" (assignment_expression "puVar7 = puVar7 + 2" (identifier "puVar7") (= "=") (binary_expression "puVar7 + 2" (identifier "puVar7") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 != -1)" (( "(") (binary_expression "iVar8 != -1" (identifier "iVar8") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar8 = *(int *)(param_2 + 0x18);" (assignment_expression "iVar8 = *(int *)(param_2 + 0x18)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (iVar8 != 0) {\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }" (if "if") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }\n    }" ({ "{") (if_statement "if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }\n      else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_0038ef24 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_0038ef24 == (undefined *)0x0" (identifier "PTR___pthread_key_create_0038ef24") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n      }" ({ "{") (expression_statement "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;" (assignment_expression "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" (* "*") (cast_expression "(int *)(iVar8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0xc)" (( "(") (binary_expression "iVar8 + 0xc" (identifier "iVar8") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" (* "*") (cast_expression "(int *)(iVar8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0xc)" (( "(") (binary_expression "iVar8 + 0xc" (identifier "iVar8") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }" (else "else") (compound_statement "{\n        LOCK();\n        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;\n        UNLOCK();\n      }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;" (assignment_expression "*(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" (* "*") (cast_expression "(int *)(iVar8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0xc)" (( "(") (binary_expression "iVar8 + 0xc" (identifier "iVar8") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(int *)(iVar8 + 0xc) + 1" (pointer_expression "*(int *)(iVar8 + 0xc)" (* "*") (cast_expression "(int *)(iVar8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0xc)" (( "(") (binary_expression "iVar8 + 0xc" (identifier "iVar8") (+ "+") (number_literal "0xc")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "FUN_0022bf80(param_1,0);" (call_expression "FUN_0022bf80(param_1,0)" (identifier "FUN_0022bf80") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x68);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x68)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x68)" (* "*") (cast_expression "(int *)(param_1 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (if_statement "if (iVar2 != param_1 + 0x24) {\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }" (if "if") (parenthesized_expression "(iVar2 != param_1 + 0x24)" (( "(") (binary_expression "iVar2 != param_1 + 0x24" (identifier "iVar2") (!= "!=") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24"))) () ")")) (compound_statement "{\n      if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }\n      *(undefined4 *)(param_1 + 0x68) = 0;\n    }" ({ "{") (if_statement "if (iVar2 != 0) {\n        FUN_001e6d50(iVar2);\n      }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_001e6d50(iVar2);\n      }" ({ "{") (expression_statement "FUN_001e6d50(iVar2);" (call_expression "FUN_001e6d50(iVar2)" (identifier "FUN_001e6d50") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x68) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x68) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x68)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x68)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "FUN_0022bfd0(param_1);" (call_expression "FUN_0022bfd0(param_1)" (identifier "FUN_0022bfd0") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x18) = iVar8;" (assignment_expression "*(int *)(param_1 + 0x18) = iVar8" (pointer_expression "*(int *)(param_1 + 0x18)" (* "*") (cast_expression "(int *)(param_1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "iVar8 = *(int *)(param_2 + 100);" (assignment_expression "iVar8 = *(int *)(param_2 + 100)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(param_2 + 100)" (* "*") (cast_expression "(int *)(param_2 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 100)" (( "(") (binary_expression "param_2 + 100" (identifier "param_2") (+ "+") (number_literal "100")) () ")"))))) (; ";")) (if_statement "if (0 < iVar8) {\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }" (if "if") (parenthesized_expression "(0 < iVar8)" (( "(") (binary_expression "0 < iVar8" (number_literal "0") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n      iVar6 = 0;\n      iVar2 = *(int *)(param_2 + 0x68);\n      do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);\n    }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = *(int *)(param_2 + 0x68);" (assignment_expression "iVar2 = *(int *)(param_2 + 0x68)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_2 + 0x68)" (* "*") (cast_expression "(int *)(param_2 + 0x68)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x68)" (( "(") (binary_expression "param_2 + 0x68" (identifier "param_2") (+ "+") (number_literal "0x68")) () ")"))))) (; ";")) (do_statement "do {\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      } while (iVar6 != iVar8 * 8);" (do "do") (compound_statement "{\n        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);\n        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;\n        iVar6 = iVar6 + 8;\n      }" ({ "{") (expression_statement "uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);" (assignment_expression "uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 4 + iVar6)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 4 + iVar6)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4 + iVar6)" (( "(") (binary_expression "iVar2 + 4 + iVar6" (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) (+ "+") (identifier "iVar6")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);" (assignment_expression "*(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6)" (pointer_expression "*(undefined4 *)((int)puVar4 + iVar6)" (* "*") (cast_expression "(undefined4 *)((int)puVar4 + iVar6)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + iVar6)" (( "(") (binary_expression "(int)puVar4 + iVar6" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (identifier "iVar6")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(iVar2 + iVar6)" (* "*") (cast_expression "(undefined4 *)(iVar2 + iVar6)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + iVar6)" (( "(") (binary_expression "iVar2 + iVar6" (identifier "iVar2") (+ "+") (identifier "iVar6")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;" (assignment_expression "*(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5" (pointer_expression "*(undefined4 *)((int)puVar4 + iVar6 + 4)" (* "*") (cast_expression "(undefined4 *)((int)puVar4 + iVar6 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + iVar6 + 4)" (( "(") (binary_expression "(int)puVar4 + iVar6 + 4" (binary_expression "(int)puVar4 + iVar6" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (identifier "iVar6")) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "iVar6 = iVar6 + 8;" (assignment_expression "iVar6 = iVar6 + 8" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 != iVar8 * 8)" (( "(") (binary_expression "iVar6 != iVar8 * 8" (identifier "iVar6") (!= "!=") (binary_expression "iVar8 * 8" (identifier "iVar8") (* "*") (number_literal "8"))) () ")")) (; ";")) (} "}"))) (expression_statement "*(undefined4 **)(param_1 + 0x68) = puVar4;" (assignment_expression "*(undefined4 **)(param_1 + 0x68) = puVar4" (pointer_expression "*(undefined4 **)(param_1 + 0x68)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x68)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x68)" (( "(") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68")) () ")")))) (= "=") (identifier "puVar4")) (; ";")) (expression_statement "cVar1 = *(char *)(param_2 + 0x78);" (assignment_expression "cVar1 = *(char *)(param_2 + 0x78)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_2 + 0x78)" (* "*") (cast_expression "(char *)(param_2 + 0x78)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x78)" (( "(") (binary_expression "param_2 + 0x78" (identifier "param_2") (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 100) = iVar8;" (assignment_expression "*(int *)(param_1 + 100) = iVar8" (pointer_expression "*(int *)(param_1 + 100)" (* "*") (cast_expression "(int *)(param_1 + 100)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 100)" (( "(") (binary_expression "param_1 + 100" (identifier "param_1") (+ "+") (number_literal "100")) () ")")))) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);" (assignment_expression "*(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc)" (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);" (assignment_expression "*(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8)" (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);" (assignment_expression "*(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4)" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70)" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x70)" (( "(") (binary_expression "param_2 + 0x70" (identifier "param_2") (+ "+") (number_literal "0x70")) () ")"))))) (; ";")) (if_statement "if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }\n    else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar3 = *(int **)(param_2 + 0x80);\n      if (piVar3 == (int *)0x0) goto LAB_00211cf1;\n      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_2 + 0x78) = 1;\n      cVar1 = *(char *)(param_1 + 0x78);\n      *(undefined4 *)(param_2 + 0x74) = uVar5;\n    }" ({ "{") (expression_statement "piVar3 = *(int **)(param_2 + 0x80);" (assignment_expression "piVar3 = *(int **)(param_2 + 0x80)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_2 + 0x80)" (* "*") (cast_expression "(int **)(param_2 + 0x80)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x80)" (( "(") (binary_expression "param_2 + 0x80" (identifier "param_2") (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) goto LAB_00211cf1;" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_00211cf1;" (goto "goto") (statement_identifier "LAB_00211cf1") (; ";"))) (expression_statement "uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);" (assignment_expression "uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20)" (identifier "uVar5") (= "=") (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3,0x20)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar3 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar3 + 0x28)" (* "*") (cast_expression "(code **)(*piVar3 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0x28)" (( "(") (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar3,0x20)" (( "(") (identifier "piVar3") (, ",") (number_literal "0x20") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(param_2 + 0x78) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0x78) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0x78)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0x78)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x78)" (( "(") (binary_expression "param_2 + 0x78" (identifier "param_2") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "cVar1 = *(char *)(param_1 + 0x78);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x78)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 0x78)" (* "*") (cast_expression "(char *)(param_1 + 0x78)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x74) = uVar5;" (assignment_expression "*(undefined4 *)(param_2 + 0x74) = uVar5" (pointer_expression "*(undefined4 *)(param_2 + 0x74)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x74)" (( "(") (binary_expression "param_2 + 0x74" (identifier "param_2") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (} "}")) (else_clause "else {\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }" (else "else") (compound_statement "{\n      cVar1 = *(char *)(param_1 + 0x78);\n      uVar5 = *(undefined4 *)(param_2 + 0x74);\n    }" ({ "{") (expression_statement "cVar1 = *(char *)(param_1 + 0x78);" (assignment_expression "cVar1 = *(char *)(param_1 + 0x78)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(param_1 + 0x78)" (* "*") (cast_expression "(char *)(param_1 + 0x78)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(param_2 + 0x74);" (assignment_expression "uVar5 = *(undefined4 *)(param_2 + 0x74)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x74)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x74)" (( "(") (binary_expression "param_2 + 0x74" (identifier "param_2") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (cVar1 == '\0') {\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      piVar3 = *(int **)(param_1 + 0x80);\n      if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }\n      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);\n      *(undefined1 *)(param_1 + 0x78) = 1;\n    }" ({ "{") (expression_statement "piVar3 = *(int **)(param_1 + 0x80);" (assignment_expression "piVar3 = *(int **)(param_1 + 0x80)" (identifier "piVar3") (= "=") (pointer_expression "*(int **)(param_1 + 0x80)" (* "*") (cast_expression "(int **)(param_1 + 0x80)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x80)" (( "(") (binary_expression "param_1 + 0x80" (identifier "param_1") (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) {\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_00211cf1:\n                    \n        FUN_0022c630();\n      }" ({ "{") (labeled_statement "LAB_00211cf1:\n                    \n        FUN_0022c630();" (statement_identifier "LAB_00211cf1") (: ":") (expression_statement "FUN_0022c630();" (call_expression "FUN_0022c630()" (identifier "FUN_0022c630") (argument_list "()" (( "(") () ")"))) (; ";"))) (} "}"))) (expression_statement "(**(code **)(*piVar3 + 0x28))(piVar3,0x20);" (call_expression "(**(code **)(*piVar3 + 0x28))(piVar3,0x20)" (parenthesized_expression "(**(code **)(*piVar3 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar3 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar3 + 0x28)" (* "*") (cast_expression "(code **)(*piVar3 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 0x28)" (( "(") (binary_expression "*piVar3 + 0x28" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar3,0x20)" (( "(") (identifier "piVar3") (, ",") (number_literal "0x20") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x78) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x78) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x78)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x78)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x74) = uVar5;" (assignment_expression "*(undefined4 *)(param_1 + 0x74) = uVar5" (pointer_expression "*(undefined4 *)(param_1 + 0x74)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "FUN_001e8d40(local_20,param_2 + 0x6c);" (call_expression "FUN_001e8d40(local_20,param_2 + 0x6c)" (identifier "FUN_001e8d40") (argument_list "(local_20,param_2 + 0x6c)" (( "(") (identifier "local_20") (, ",") (binary_expression "param_2 + 0x6c" (identifier "param_2") (+ "+") (number_literal "0x6c")) () ")"))) (; ";")) (expression_statement "FUN_001e9480(param_1 + 0x6c,local_20);" (call_expression "FUN_001e9480(param_1 + 0x6c,local_20)" (identifier "FUN_001e9480") (argument_list "(param_1 + 0x6c,local_20)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) (, ",") (identifier "local_20") () ")"))) (; ";")) (expression_statement "FUN_001e9510(local_20);" (call_expression "FUN_001e9510(local_20)" (identifier "FUN_001e9510") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")"))) (; ";")) (expression_statement "FUN_002119f0(param_1,param_1 + 0x6c);" (call_expression "FUN_002119f0(param_1,param_1 + 0x6c)" (identifier "FUN_002119f0") (argument_list "(param_1,param_1 + 0x6c)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")"))) (; ";")) (expression_statement "FUN_0022bf80(param_1,2);" (call_expression "FUN_0022bf80(param_1,2)" (identifier "FUN_0022bf80") (argument_list "(param_1,2)" (( "(") (identifier "param_1") (, ",") (number_literal "2") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);" (assignment_expression "*(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10)" (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));" (call_expression "FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14))" (identifier "FUN_002116a0") (argument_list "(param_1,*(undefined4 *)(param_1 + 0x14))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) () ")"))) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wios::copyfmt(std::wios const&) */

type_1 * __thiscall std::type_1::copyfmt(type_1 *var_1,type_1 *var_2)

{
  type_1 var_16;
  int var_13;
  int *var_17;
  type_1 *var_15;
  type_2 uVar5;
  int var_14;
  type_1 *var_6;
  int var_3;
  type_3 local_20 [12];
  type_2 uStack_14;
  
  uStack_14 = 0x211aa9;
  if (var_1 != var_2) {
    var_3 = *(int *)(var_2 + 100);
    if (var_3 < 9) {
      var_15 = var_1 + 0x24;
    }
    else {
      if (0xfffffff < var_3) {
                    /* WARNING: Subroutine does not return */
        var_4();
      }
      var_15 = (type_1 *)var_5(var_3 << 3);
      var_3 = *(int *)(var_2 + 100) + -1;
      var_6 = var_15;
      if (-1 < var_3) {
        do {
          var_3 = var_3 + -1;
          *(type_2 *)var_6 = 0;
          *(type_2 *)(var_6 + 4) = 0;
          var_6 = var_6 + 8;
        } while (var_3 != -1);
      }
    }
    var_3 = *(int *)(var_2 + 0x18);
    if (var_3 != 0) {
      if (var_7 == (type_4 *)0x0) {
        *(int *)(var_3 + 0xc) = *(int *)(var_3 + 0xc) + 1;
      }
      else {
        var_8();
        *(int *)(var_3 + 0xc) = *(int *)(var_3 + 0xc) + 1;
        var_9();
      }
    }
    ios_base::var_10((type_5 *)var_1,0);
    var_6 = *(type_1 **)(var_1 + 0x68);
    if (var_6 != var_1 + 0x24) {
      if (var_6 != (type_1 *)0x0) {
        var_11(var_6);
      }
      *(type_2 *)(var_1 + 0x68) = 0;
    }
    ios_base::var_12((type_5 *)var_1);
    *(int *)(var_1 + 0x18) = var_3;
    var_3 = *(int *)(var_2 + 100);
    if (0 < var_3) {
      var_14 = 0;
      var_13 = *(int *)(var_2 + 0x68);
      do {
        uVar5 = *(type_2 *)(var_13 + 4 + var_14);
        *(type_2 *)(var_15 + var_14) = *(type_2 *)(var_13 + var_14);
        *(type_2 *)(var_15 + var_14 + 4) = uVar5;
        var_14 = var_14 + 8;
      } while (var_14 != var_3 * 8);
    }
    *(type_1 **)(var_1 + 0x68) = var_15;
    var_16 = var_2[0x78];
    *(int *)(var_1 + 100) = var_3;
    *(type_2 *)(var_1 + 0xc) = *(type_2 *)(var_2 + 0xc);
    *(type_2 *)(var_1 + 8) = *(type_2 *)(var_2 + 8);
    *(type_2 *)(var_1 + 4) = *(type_2 *)(var_2 + 4);
    *(type_2 *)(var_1 + 0x70) = *(type_2 *)(var_2 + 0x70);
    if (var_16 == (type_1)0x0) {
      var_17 = *(int **)(var_2 + 0x80);
      if (var_17 == (int *)0x0) goto LAB_00211cf1;
      uVar5 = (**(type_6 **)(*var_17 + 0x28))(var_17,0x20);
      var_2[0x78] = (type_1)0x1;
      var_16 = var_1[0x78];
      *(type_2 *)(var_2 + 0x74) = uVar5;
    }
    else {
      var_16 = var_1[0x78];
      uVar5 = *(type_2 *)(var_2 + 0x74);
    }
    if (var_16 == (type_1)0x0) {
      var_17 = *(int **)(var_1 + 0x80);
      if (var_17 == (int *)0x0) {
LAB_00211cf1:
                    /* WARNING: Subroutine does not return */
        var_18();
      }
      (**(type_6 **)(*var_17 + 0x28))(var_17,0x20);
      var_1[0x78] = (type_1)0x1;
    }
    *(type_2 *)(var_1 + 0x74) = uVar5;
    locale::type_3(local_20,(type_3 *)(var_2 + 0x6c));
    locale::operator=((type_3 *)(var_1 + 0x6c),local_20);
    locale::~type_3(local_20);
    var_19(var_1,(type_3 *)(var_1 + 0x6c));
    ios_base::var_10((type_5 *)var_1,2);
    *(type_2 *)(var_1 + 0x10) = *(type_2 *)(var_2 + 0x10);
    var_20(var_1,*(type_7 *)(var_1 + 0x14));
  }
  return var_1;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int MASKED(int param_1,int param_2)

{
  char cVar1;
  int iVar2;
  int *piVar3;
  undefined4 *puVar4;
  undefined4 uVar5;
  int iVar6;
  undefined4 *puVar7;
  int iVar8;
  undefined1 local_20 [12];
  undefined4 uStack_14;
  
  uStack_14 = 0x211aa9;
  if (param_1 != param_2) {
    iVar8 = *(int *)(param_2 + 100);
    if (iVar8 < 9) {
      puVar4 = (undefined4 *)(param_1 + 0x24);
    }
    else {
      if (0xfffffff < iVar8) {
                    /* WARNING: Subroutine does not return */
        FUN_001e6740();
      }
      puVar4 = (undefined4 *)FUN_001e5180(iVar8 << 3);
      iVar8 = *(int *)(param_2 + 100) + -1;
      puVar7 = puVar4;
      if (-1 < iVar8) {
        do {
          iVar8 = iVar8 + -1;
          *puVar7 = 0;
          puVar7[1] = 0;
          puVar7 = puVar7 + 2;
        } while (iVar8 != -1);
      }
    }
    iVar8 = *(int *)(param_2 + 0x18);
    if (iVar8 != 0) {
      if (PTR___pthread_key_create_0038ef24 == (undefined *)0x0) {
        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;
      }
      else {
        LOCK();
        *(int *)(iVar8 + 0xc) = *(int *)(iVar8 + 0xc) + 1;
        UNLOCK();
      }
    }
    FUN_0022bf80(param_1,0);
    iVar2 = *(int *)(param_1 + 0x68);
    if (iVar2 != param_1 + 0x24) {
      if (iVar2 != 0) {
        FUN_001e6d50(iVar2);
      }
      *(undefined4 *)(param_1 + 0x68) = 0;
    }
    FUN_0022bfd0(param_1);
    *(int *)(param_1 + 0x18) = iVar8;
    iVar8 = *(int *)(param_2 + 100);
    if (0 < iVar8) {
      iVar6 = 0;
      iVar2 = *(int *)(param_2 + 0x68);
      do {
        uVar5 = *(undefined4 *)(iVar2 + 4 + iVar6);
        *(undefined4 *)((int)puVar4 + iVar6) = *(undefined4 *)(iVar2 + iVar6);
        *(undefined4 *)((int)puVar4 + iVar6 + 4) = uVar5;
        iVar6 = iVar6 + 8;
      } while (iVar6 != iVar8 * 8);
    }
    *(undefined4 **)(param_1 + 0x68) = puVar4;
    cVar1 = *(char *)(param_2 + 0x78);
    *(int *)(param_1 + 100) = iVar8;
    *(undefined4 *)(param_1 + 0xc) = *(undefined4 *)(param_2 + 0xc);
    *(undefined4 *)(param_1 + 8) = *(undefined4 *)(param_2 + 8);
    *(undefined4 *)(param_1 + 4) = *(undefined4 *)(param_2 + 4);
    *(undefined4 *)(param_1 + 0x70) = *(undefined4 *)(param_2 + 0x70);
    if (cVar1 == '\0') {
      piVar3 = *(int **)(param_2 + 0x80);
      if (piVar3 == (int *)0x0) goto LAB_00211cf1;
      uVar5 = (**(code **)(*piVar3 + 0x28))(piVar3,0x20);
      *(undefined1 *)(param_2 + 0x78) = 1;
      cVar1 = *(char *)(param_1 + 0x78);
      *(undefined4 *)(param_2 + 0x74) = uVar5;
    }
    else {
      cVar1 = *(char *)(param_1 + 0x78);
      uVar5 = *(undefined4 *)(param_2 + 0x74);
    }
    if (cVar1 == '\0') {
      piVar3 = *(int **)(param_1 + 0x80);
      if (piVar3 == (int *)0x0) {
LAB_00211cf1:
                    /* WARNING: Subroutine does not return */
        FUN_0022c630();
      }
      (**(code **)(*piVar3 + 0x28))(piVar3,0x20);
      *(undefined1 *)(param_1 + 0x78) = 1;
    }
    *(undefined4 *)(param_1 + 0x74) = uVar5;
    FUN_001e8d40(local_20,param_2 + 0x6c);
    FUN_001e9480(param_1 + 0x6c,local_20);
    FUN_001e9510(local_20);
    FUN_002119f0(param_1,param_1 + 0x6c);
    FUN_0022bf80(param_1,2);
    *(undefined4 *)(param_1 + 0x10) = *(undefined4 *)(param_2 + 0x10);
    FUN_002116a0(param_1,*(undefined4 *)(param_1 + 0x14));
  }
  return param_1;
}

