
/* std::Catalogs::_M_add(char const*, std::locale) */

int __thiscall std::Catalogs::_M_add(Catalogs *this,undefined *param_1,int param_3)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int *piVar4;
  undefined4 *puVar5;
  undefined *puVar6;
  int *piVar7;
  int *unaff_s3;
  int *local_28;
  Catalogs *local_24 [2];
  
  puVar1 = PTR___pthread_key_create_0043667c;
  local_24[0] = this;
  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {
    puVar6 = param_1;
    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();
    if (iVar3 != 0) goto LAB_00312c2c;
  }
  puVar6 = PTR_locale_004338b0;
  iVar3 = *(int *)(this + 0x18);
  if (iVar3 == 0x7fffffff) {
    param_3 = -1;
    unaff_s3 = (int *)0x7fffffff;
  }
  else {
    *(int *)(this + 0x18) = iVar3 + 1;
    (*(code *)puVar6)(&local_28,param_3);
                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */
    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);
    *piVar4 = iVar3;
    unaff_s3 = piVar4 + 2;
    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);
    puVar6 = PTR_locale_004338b0;
    piVar4[1] = iVar3;
    (*(code *)puVar6)(unaff_s3,&local_28);
    (*(code *)PTR__locale_00433084)(&local_28);
    if (piVar4[1] == 0) {
      (*(code *)PTR__locale_00433084)(unaff_s3);
      param_3 = -1;
      (*(code *)PTR_operator_delete_0043228c)(piVar4);
    }
    else {
      piVar7 = *(int **)(this + 0x20);
      local_28 = piVar4;
      if (piVar7 == *(int **)(this + 0x24)) {
                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */
        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert
                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),
                   piVar7,&local_28);
      }
      else {
        *piVar7 = (int)piVar4;
        *(int **)(this + 0x20) = piVar7 + 1;
      }
      param_3 = *piVar4;
    }
  }
  if (puVar1 != (undefined *)0x0) {
    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);
    if (iVar3 != 0) {
      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);
      puVar6 = PTR_PTR_00433708;
      puVar2 = PTR____concurrence_unlock_error_00433704;
      puVar1 = PTR___cxa_throw_004336fc;
                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */
      *puVar5 = PTR_vtable_004336ec + 8;
      (*(code *)puVar1)(puVar5,puVar6,puVar2);
LAB_00312c2c:
      (*(code *)PTR___throw_concurrence_lock_error_00433700)();
                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */
      if (puVar6 == (undefined *)0xffffffff) {
        (*(code *)PTR___cxa_call_unexpected_0043370c)();
                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */
        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));
        (*(code *)PTR__locale_00433084)(unaff_s3);
        (*(code *)PTR_operator_delete_0043228c)(param_3);
        (*(code *)PTR____scoped_lock_00435dbc)(local_24);
      }
      iVar3 = (*(code *)PTR__Unwind_Resume_00432258)();
      return iVar3;
    }
  }
  return param_3;
}



/* std::Catalogs::_M_add(char const*, std::locale) */

int __thiscall std::Catalogs::_M_add(Catalogs *this,undefined *param_1,int param_3)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int *piVar4;
  undefined4 *puVar5;
  undefined *puVar6;
  int *piVar7;
  int *unaff_s3;
  int *local_28;
  Catalogs *local_24 [2];
  
  puVar1 = PTR___pthread_key_create_0043667c;
  local_24[0] = this;
  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {
    puVar6 = param_1;
    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();
    if (iVar3 != 0) goto LAB_00312c2c;
  }
  puVar6 = PTR_locale_004338b0;
  iVar3 = *(int *)(this + 0x18);
  if (iVar3 == 0x7fffffff) {
    param_3 = -1;
    unaff_s3 = (int *)0x7fffffff;
  }
  else {
    *(int *)(this + 0x18) = iVar3 + 1;
    (*(code *)puVar6)(&local_28,param_3);
                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */
    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);
    *piVar4 = iVar3;
    unaff_s3 = piVar4 + 2;
    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);
    puVar6 = PTR_locale_004338b0;
    piVar4[1] = iVar3;
    (*(code *)puVar6)(unaff_s3,&local_28);
    (*(code *)PTR__locale_00433084)(&local_28);
    if (piVar4[1] == 0) {
      (*(code *)PTR__locale_00433084)(unaff_s3);
      param_3 = -1;
      (*(code *)PTR_operator_delete_0043228c)(piVar4);
    }
    else {
      piVar7 = *(int **)(this + 0x20);
      local_28 = piVar4;
      if (piVar7 == *(int **)(this + 0x24)) {
                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */
        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert
                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),
                   piVar7,&local_28);
      }
      else {
        *piVar7 = (int)piVar4;
        *(int **)(this + 0x20) = piVar7 + 1;
      }
      param_3 = *piVar4;
    }
  }
  if (puVar1 != (undefined *)0x0) {
    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);
    if (iVar3 != 0) {
      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);
      puVar6 = PTR_PTR_00433708;
      puVar2 = PTR____concurrence_unlock_error_00433704;
      puVar1 = PTR___cxa_throw_004336fc;
                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */
      *puVar5 = PTR_vtable_004336ec + 8;
      (*(code *)puVar1)(puVar5,puVar6,puVar2);
LAB_00312c2c:
      (*(code *)PTR___throw_concurrence_lock_error_00433700)();
                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */
      if (puVar6 == (undefined *)0xffffffff) {
        (*(code *)PTR___cxa_call_unexpected_0043370c)();
                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */
        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));
        (*(code *)PTR__locale_00433084)(unaff_s3);
        (*(code *)PTR_operator_delete_0043228c)(param_3);
        (*(code *)PTR____scoped_lock_00435dbc)(local_24);
      }
      iVar3 = (*(code *)PTR_FUN_00432258)();
      return iVar3;
    }
  }
  return param_3;
}


lui gp,0x12
addiu gp,gp,0x7764
addu gp,gp,t9
addiu sp,sp,-0x40
sw s4,0x34(sp)
sw gp,0x10(sp)
sw s5,0x38(sp)
or s5,a1,zero
sw s1,0x28(sp)
or s1,a0,zero
sw s0,0x24(sp)
or s0,a2,zero
sw ra,0x3c(sp)
sw s3,0x30(sp)
sw s2,0x2c(sp)
lw s4,-0x3b54(gp)
beq s4,zero,0x00312ac8
_sw a0,0x1c(sp)
lw t9,-0x3ac0(gp)
jalr t9
_nop
bne v0,zero,0x00312c2c
_lw gp,0x10(sp)
lui v0,0x7fff
lw s3,0x18(s1)
ori v0,v0,0xffff
beq s3,v0,0x00312bf4
_lw t9,-0x6920(gp)
addiu v0,s3,0x1
addiu s2,sp,0x18
sw v0,0x18(s1)
or a1,s0,zero
jalr t9
_or a0,s2,zero
lw gp,0x10(sp)
lw t9,-0x7e94(gp)
jalr t9
_li a0,0xc
lw gp,0x10(sp)
or a0,s5,zero
sw s3,0x0(v0)
or s0,v0,zero
lw t9,-0x3b70(gp)
jalr t9
_addiu s3,v0,0x8
or a1,s2,zero
lw gp,0x10(sp)
or a0,s3,zero
lw t9,-0x6920(gp)
jalr t9
_sw v0,0x4(s0)
lw gp,0x10(sp)
lw t9,-0x714c(gp)
jalr t9
_or a0,s2,zero
lw v0,0x4(s0)
beq v0,zero,0x00312bb4
_lw gp,0x10(sp)
lw a1,0x20(s1)
lw v0,0x24(s1)
beq a1,v0,0x00312bdc
_sw s0,0x18(sp)
addiu v0,a1,0x4
sw s0,0x0(a1)
sw v0,0x20(s1)
lw s0,0x0(s0)
beq s4,zero,0x00312b8c
_lw t9,-0x3a14(gp)
jalr t9
_lw a0,0x1c(sp)
bne v0,zero,0x00312bfc
_lw gp,0x10(sp)
lw ra,0x3c(sp)
or v0,s0,zero
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x40
lw t9,-0x714c(gp)
jalr t9
_or a0,s3,zero
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7f44(gp)
jalr t9
_li s0,-0x1
b 0x00312b74
_lw gp,0x10(sp)
lw t9,-0x3e80(gp)
addiu a0,s1,0x1c
bal 0x003128c4
_or a2,s2,zero
b 0x00312b70
_lw gp,0x10(sp)
b 0x00312b74
_li s0,-0x1
lw t9,-0x6ae0(gp)
jalr t9
_li a0,0x4
lw gp,0x10(sp)
or a0,v0,zero
lw v1,-0x6ae4(gp)
lw a2,-0x6acc(gp)
lw a1,-0x6ac8(gp)
addiu v1,v1,0x8
lw t9,-0x6ad4(gp)
jalr t9
_sw v1,0x0(v0)
lw t9,-0x6ad0(gp)
jalr t9
_nop
li v0,-0x1
bne a1,v0,0x00312ca0
_lw gp,0x10(sp)
lw t9,-0x6ac4(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s1,a0,zero
lw t9,-0x39d0(gp)
jalr t9
_lw a0,0x4(s0)
lw gp,0x10(sp)
lw t9,-0x714c(gp)
jalr t9
_or a0,s3,zero
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7f44(gp)
jalr t9
_or s0,s1,zero
lw gp,0x10(sp)
lw t9,-0x4414(gp)
jalr t9
_addiu a0,sp,0x1c
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7f78(gp)
jalr t9
_nop
(translation_unit "/* std::Catalogs::_M_add(char const*, std::locale) */\n\nint __thiscall std::Catalogs::_M_add(Catalogs *this,undefined *param_1,int param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  int *piVar7;\n  int *unaff_s3;\n  int *local_28;\n  Catalogs *local_24 [2];\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  local_24[0] = this;\n  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }\n  puVar6 = PTR_locale_004338b0;\n  iVar3 = *(int *)(this + 0x18);\n  if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */\n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }\n  return param_3;\n}\n\n" comment (function_definition "int __thiscall std::Catalogs::_M_add(Catalogs *this,undefined *param_1,int param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  int *piVar7;\n  int *unaff_s3;\n  int *local_28;\n  Catalogs *local_24 [2];\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  local_24[0] = this;\n  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }\n  puVar6 = PTR_locale_004338b0;\n  iVar3 = *(int *)(this + 0x18);\n  if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */\n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }\n  return param_3;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::Catalogs::" identifier : : identifier : :) (function_declarator "_M_add(Catalogs *this,undefined *param_1,int param_3)" identifier (parameter_list "(Catalogs *this,undefined *param_1,int param_3)" ( (parameter_declaration "Catalogs *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  int *piVar7;\n  int *unaff_s3;\n  int *local_28;\n  Catalogs *local_24 [2];\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  local_24[0] = this;\n  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }\n  puVar6 = PTR_locale_004338b0;\n  iVar3 = *(int *)(this + 0x18);\n  if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */\n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }\n  return param_3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int *unaff_s3;" primitive_type (pointer_declarator "*unaff_s3" * identifier) ;) (declaration "int *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "Catalogs *local_24 [2];" type_identifier (pointer_declarator "*local_24 [2]" * (array_declarator "local_24 [2]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = PTR___pthread_key_create_0043667c;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043667c" identifier = identifier) ;) (expression_statement "local_24[0] = this;" (assignment_expression "local_24[0] = this" (subscript_expression "local_24[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }" if (parenthesized_expression "(PTR___pthread_key_create_0043667c != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0043667c != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }" { (expression_statement "puVar6 = param_1;" (assignment_expression "puVar6 = param_1" identifier = identifier) ;) (expression_statement "iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();" (assignment_expression "iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)()" identifier = (call_expression "(*(code *)PTR_pthread_mutex_lock_00436710)()" (parenthesized_expression "(*(code *)PTR_pthread_mutex_lock_00436710)" ( (pointer_expression "*(code *)PTR_pthread_mutex_lock_00436710" * (cast_expression "(code *)PTR_pthread_mutex_lock_00436710" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) goto LAB_00312c2c;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00312c2c;" goto statement_identifier ;)) })) (expression_statement "puVar6 = PTR_locale_004338b0;" (assignment_expression "puVar6 = PTR_locale_004338b0" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(this + 0x18);" (assignment_expression "iVar3 = *(int *)(this + 0x18)" identifier = (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) ))))) ;) (if_statement "if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */\n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }" if (parenthesized_expression "(iVar3 == 0x7fffffff)" ( (binary_expression "iVar3 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }" { (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) (expression_statement "unaff_s3 = (int *)0x7fffffff;" (assignment_expression "unaff_s3 = (int *)0x7fffffff" identifier = (cast_expression "(int *)0x7fffffff" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */\n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }" else (compound_statement "{\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */\n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }" { (expression_statement "*(int *)(this + 0x18) = iVar3 + 1;" (assignment_expression "*(int *)(this + 0x18) = iVar3 + 1" (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) )))) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar6)(&local_28,param_3);" (call_expression "(*(code *)puVar6)(&local_28,param_3)" (parenthesized_expression "(*(code *)puVar6)" ( (pointer_expression "*(code *)puVar6" * (cast_expression "(code *)puVar6" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_28,param_3)" ( (pointer_expression "&local_28" & identifier) , identifier ))) ;) comment (expression_statement "piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);" (assignment_expression "piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc)" identifier = (cast_expression "(int *)(*(code *)PTR_operator_new_0043233c)(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_operator_new_0043233c)(0xc)" (parenthesized_expression "(*(code *)PTR_operator_new_0043233c)" ( (pointer_expression "*(code *)PTR_operator_new_0043233c" * (cast_expression "(code *)PTR_operator_new_0043233c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*piVar4 = iVar3;" (assignment_expression "*piVar4 = iVar3" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "unaff_s3 = piVar4 + 2;" (assignment_expression "unaff_s3 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (expression_statement "iVar3 = (*(code *)PTR_strdup_00436660)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_strdup_00436660)(param_1)" identifier = (call_expression "(*(code *)PTR_strdup_00436660)(param_1)" (parenthesized_expression "(*(code *)PTR_strdup_00436660)" ( (pointer_expression "*(code *)PTR_strdup_00436660" * (cast_expression "(code *)PTR_strdup_00436660" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar6 = PTR_locale_004338b0;" (assignment_expression "puVar6 = PTR_locale_004338b0" identifier = identifier) ;) (expression_statement "piVar4[1] = iVar3;" (assignment_expression "piVar4[1] = iVar3" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)puVar6)(unaff_s3,&local_28);" (call_expression "(*(code *)puVar6)(unaff_s3,&local_28)" (parenthesized_expression "(*(code *)puVar6)" ( (pointer_expression "*(code *)puVar6" * (cast_expression "(code *)puVar6" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3,&local_28)" ( identifier , (pointer_expression "&local_28" & identifier) ))) ;) (expression_statement "(*(code *)PTR__locale_00433084)(&local_28);" (call_expression "(*(code *)PTR__locale_00433084)(&local_28)" (parenthesized_expression "(*(code *)PTR__locale_00433084)" ( (pointer_expression "*(code *)PTR__locale_00433084" * (cast_expression "(code *)PTR__locale_00433084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) ))) ;) (if_statement "if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }" if (parenthesized_expression "(piVar4[1] == 0)" ( (binary_expression "piVar4[1] == 0" (subscript_expression "piVar4[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }" { (expression_statement "(*(code *)PTR__locale_00433084)(unaff_s3);" (call_expression "(*(code *)PTR__locale_00433084)(unaff_s3)" (parenthesized_expression "(*(code *)PTR__locale_00433084)" ( (pointer_expression "*(code *)PTR__locale_00433084" * (cast_expression "(code *)PTR__locale_00433084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3)" ( identifier ))) ;) (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(piVar4);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(piVar4)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" ( (pointer_expression "*(code *)PTR_operator_delete_0043228c" * (cast_expression "(code *)PTR_operator_delete_0043228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar4)" ( identifier ))) ;) }) (else_clause "else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }" else (compound_statement "{\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }" { (expression_statement "piVar7 = *(int **)(this + 0x20);" (assignment_expression "piVar7 = *(int **)(this + 0x20)" identifier = (pointer_expression "*(int **)(this + 0x20)" * (cast_expression "(int **)(this + 0x20)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) ))))) ;) (expression_statement "local_28 = piVar4;" (assignment_expression "local_28 = piVar4" identifier = identifier) ;) (if_statement "if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }" if (parenthesized_expression "(piVar7 == *(int **)(this + 0x24))" ( (binary_expression "piVar7 == *(int **)(this + 0x24)" identifier == (pointer_expression "*(int **)(this + 0x24)" * (cast_expression "(int **)(this + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x24)" ( (binary_expression "this + 0x24" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }" { comment (ERROR "vector<std::Catalog_info*,std::allocator<std::" (binary_expression "vector<std" identifier < identifier) : : (binary_expression "Catalog_info*,std" identifier * (ERROR "," ,) identifier) : : (binary_expression "allocator<std" identifier < identifier) : :) (expression_statement "Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);" (binary_expression "Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28)" identifier * (ERROR ">>::" >> : :) (call_expression "_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28)" identifier (argument_list "((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28)" ( (call_expression "(vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c)" (parenthesized_expression "(vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)" ( (ERROR "vector<std::Catalog_info*,std::allocator<std::" (binary_expression "vector<std" identifier < identifier) : : (type_descriptor "Catalog_info*" type_identifier (abstract_pointer_declarator "*" *)) , identifier : : (binary_expression "allocator<std" identifier < identifier) : :) (binary_expression "Catalog_info*>> *" identifier * (ERROR ">>" >>) (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x1c)" ( (binary_expression "this + 0x1c" identifier + number_literal) ))) , identifier , (pointer_expression "&local_28" & identifier) )))) ;) }) (else_clause "else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }" else (compound_statement "{\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }" { (expression_statement "*piVar7 = (int)piVar4;" (assignment_expression "*piVar7 = (int)piVar4" (pointer_expression "*piVar7" * identifier) = (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int **)(this + 0x20) = piVar7 + 1;" (assignment_expression "*(int **)(this + 0x20) = piVar7 + 1" (pointer_expression "*(int **)(this + 0x20)" * (cast_expression "(int **)(this + 0x20)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) }))) (expression_statement "param_3 = *piVar4;" (assignment_expression "param_3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) }))) }))) (if_statement "if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);" (assignment_expression "iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0])" identifier = (call_expression "(*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0])" (parenthesized_expression "(*(code *)PTR_pthread_mutex_unlock_004367bc)" ( (pointer_expression "*(code *)PTR_pthread_mutex_unlock_004367bc" * (cast_expression "(code *)PTR_pthread_mutex_unlock_004367bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_24[0])" ( (subscript_expression "local_24[0]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }" { (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___cxa_allocate_exception_004336f0)(4)" (parenthesized_expression "(*(code *)PTR___cxa_allocate_exception_004336f0)" ( (pointer_expression "*(code *)PTR___cxa_allocate_exception_004336f0" * (cast_expression "(code *)PTR___cxa_allocate_exception_004336f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "puVar6 = PTR_PTR_00433708;" (assignment_expression "puVar6 = PTR_PTR_00433708" identifier = identifier) ;) (expression_statement "puVar2 = PTR____concurrence_unlock_error_00433704;" (assignment_expression "puVar2 = PTR____concurrence_unlock_error_00433704" identifier = identifier) ;) (expression_statement "puVar1 = PTR___cxa_throw_004336fc;" (assignment_expression "puVar1 = PTR___cxa_throw_004336fc" identifier = identifier) ;) comment (expression_statement "*puVar5 = PTR_vtable_004336ec + 8;" (assignment_expression "*puVar5 = PTR_vtable_004336ec + 8" (pointer_expression "*puVar5" * identifier) = (binary_expression "PTR_vtable_004336ec + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(puVar5,puVar6,puVar2);" (call_expression "(*(code *)puVar1)(puVar5,puVar6,puVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5,puVar6,puVar2)" ( identifier , identifier , identifier ))) ;) (labeled_statement "LAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();" statement_identifier : (expression_statement "(*(code *)PTR___throw_concurrence_lock_error_00433700)();" (call_expression "(*(code *)PTR___throw_concurrence_lock_error_00433700)()" (parenthesized_expression "(*(code *)PTR___throw_concurrence_lock_error_00433700)" ( (pointer_expression "*(code *)PTR___throw_concurrence_lock_error_00433700" * (cast_expression "(code *)PTR___throw_concurrence_lock_error_00433700" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;)) comment (if_statement "if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }" if (parenthesized_expression "(puVar6 == (undefined *)0xffffffff)" ( (binary_expression "puVar6 == (undefined *)0xffffffff" identifier == (cast_expression "(undefined *)0xffffffff" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }" { (expression_statement "(*(code *)PTR___cxa_call_unexpected_0043370c)();" (call_expression "(*(code *)PTR___cxa_call_unexpected_0043370c)()" (parenthesized_expression "(*(code *)PTR___cxa_call_unexpected_0043370c)" ( (pointer_expression "*(code *)PTR___cxa_call_unexpected_0043370c" * (cast_expression "(code *)PTR___cxa_call_unexpected_0043370c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment (expression_statement "(*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));" (call_expression "(*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4))" (parenthesized_expression "(*(code *)PTR_free_00436800)" ( (pointer_expression "*(code *)PTR_free_00436800" * (cast_expression "(code *)PTR_free_00436800" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_3 + 4))" ( (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR__locale_00433084)(unaff_s3);" (call_expression "(*(code *)PTR__locale_00433084)(unaff_s3)" (parenthesized_expression "(*(code *)PTR__locale_00433084)" ( (pointer_expression "*(code *)PTR__locale_00433084" * (cast_expression "(code *)PTR__locale_00433084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(param_3);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(param_3)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" ( (pointer_expression "*(code *)PTR_operator_delete_0043228c" * (cast_expression "(code *)PTR_operator_delete_0043228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR____scoped_lock_00435dbc)(local_24);" (call_expression "(*(code *)PTR____scoped_lock_00435dbc)(local_24)" (parenthesized_expression "(*(code *)PTR____scoped_lock_00435dbc)" ( (pointer_expression "*(code *)PTR____scoped_lock_00435dbc" * (cast_expression "(code *)PTR____scoped_lock_00435dbc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_24)" ( identifier ))) ;) })) (expression_statement "iVar3 = (*(code *)PTR_FUN_00432258)();" (assignment_expression "iVar3 = (*(code *)PTR_FUN_00432258)()" identifier = (call_expression "(*(code *)PTR_FUN_00432258)()" (parenthesized_expression "(*(code *)PTR_FUN_00432258)" ( (pointer_expression "*(code *)PTR_FUN_00432258" * (cast_expression "(code *)PTR_FUN_00432258" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar3;" return identifier ;) })) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit "/* std::Catalogs::_M_add(char const*, std::locale) */\n\nint __thiscall std::Catalogs::_M_add(Catalogs *this,undefined *param_1,int param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  int *piVar7;\n  int *unaff_s3;\n  int *local_28;\n  Catalogs *local_24 [2];\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  local_24[0] = this;\n  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }\n  puVar6 = PTR_locale_004338b0;\n  iVar3 = *(int *)(this + 0x18);\n  if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */\n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR__Unwind_Resume_00432258)();\n      return iVar3;\n    }\n  }\n  return param_3;\n}\n\n" comment (function_definition "int __thiscall std::Catalogs::_M_add(Catalogs *this,undefined *param_1,int param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  int *piVar7;\n  int *unaff_s3;\n  int *local_28;\n  Catalogs *local_24 [2];\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  local_24[0] = this;\n  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }\n  puVar6 = PTR_locale_004338b0;\n  iVar3 = *(int *)(this + 0x18);\n  if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */\n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR__Unwind_Resume_00432258)();\n      return iVar3;\n    }\n  }\n  return param_3;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::Catalogs::" identifier : : identifier : :) (function_declarator "_M_add(Catalogs *this,undefined *param_1,int param_3)" identifier (parameter_list "(Catalogs *this,undefined *param_1,int param_3)" ( (parameter_declaration "Catalogs *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  int *piVar7;\n  int *unaff_s3;\n  int *local_28;\n  Catalogs *local_24 [2];\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  local_24[0] = this;\n  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }\n  puVar6 = PTR_locale_004338b0;\n  iVar3 = *(int *)(this + 0x18);\n  if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */\n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR__Unwind_Resume_00432258)();\n      return iVar3;\n    }\n  }\n  return param_3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int *unaff_s3;" primitive_type (pointer_declarator "*unaff_s3" * identifier) ;) (declaration "int *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "Catalogs *local_24 [2];" type_identifier (pointer_declarator "*local_24 [2]" * (array_declarator "local_24 [2]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = PTR___pthread_key_create_0043667c;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043667c" identifier = identifier) ;) (expression_statement "local_24[0] = this;" (assignment_expression "local_24[0] = this" (subscript_expression "local_24[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }" if (parenthesized_expression "(PTR___pthread_key_create_0043667c != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0043667c != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }" { (expression_statement "puVar6 = param_1;" (assignment_expression "puVar6 = param_1" identifier = identifier) ;) (expression_statement "iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();" (assignment_expression "iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)()" identifier = (call_expression "(*(code *)PTR_pthread_mutex_lock_00436710)()" (parenthesized_expression "(*(code *)PTR_pthread_mutex_lock_00436710)" ( (pointer_expression "*(code *)PTR_pthread_mutex_lock_00436710" * (cast_expression "(code *)PTR_pthread_mutex_lock_00436710" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) goto LAB_00312c2c;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00312c2c;" goto statement_identifier ;)) })) (expression_statement "puVar6 = PTR_locale_004338b0;" (assignment_expression "puVar6 = PTR_locale_004338b0" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(this + 0x18);" (assignment_expression "iVar3 = *(int *)(this + 0x18)" identifier = (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) ))))) ;) (if_statement "if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */\n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }" if (parenthesized_expression "(iVar3 == 0x7fffffff)" ( (binary_expression "iVar3 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }" { (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) (expression_statement "unaff_s3 = (int *)0x7fffffff;" (assignment_expression "unaff_s3 = (int *)0x7fffffff" identifier = (cast_expression "(int *)0x7fffffff" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */\n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }" else (compound_statement "{\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */\n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }" { (expression_statement "*(int *)(this + 0x18) = iVar3 + 1;" (assignment_expression "*(int *)(this + 0x18) = iVar3 + 1" (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) )))) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar6)(&local_28,param_3);" (call_expression "(*(code *)puVar6)(&local_28,param_3)" (parenthesized_expression "(*(code *)puVar6)" ( (pointer_expression "*(code *)puVar6" * (cast_expression "(code *)puVar6" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_28,param_3)" ( (pointer_expression "&local_28" & identifier) , identifier ))) ;) comment (expression_statement "piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);" (assignment_expression "piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc)" identifier = (cast_expression "(int *)(*(code *)PTR_operator_new_0043233c)(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_operator_new_0043233c)(0xc)" (parenthesized_expression "(*(code *)PTR_operator_new_0043233c)" ( (pointer_expression "*(code *)PTR_operator_new_0043233c" * (cast_expression "(code *)PTR_operator_new_0043233c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*piVar4 = iVar3;" (assignment_expression "*piVar4 = iVar3" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "unaff_s3 = piVar4 + 2;" (assignment_expression "unaff_s3 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (expression_statement "iVar3 = (*(code *)PTR_strdup_00436660)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_strdup_00436660)(param_1)" identifier = (call_expression "(*(code *)PTR_strdup_00436660)(param_1)" (parenthesized_expression "(*(code *)PTR_strdup_00436660)" ( (pointer_expression "*(code *)PTR_strdup_00436660" * (cast_expression "(code *)PTR_strdup_00436660" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar6 = PTR_locale_004338b0;" (assignment_expression "puVar6 = PTR_locale_004338b0" identifier = identifier) ;) (expression_statement "piVar4[1] = iVar3;" (assignment_expression "piVar4[1] = iVar3" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)puVar6)(unaff_s3,&local_28);" (call_expression "(*(code *)puVar6)(unaff_s3,&local_28)" (parenthesized_expression "(*(code *)puVar6)" ( (pointer_expression "*(code *)puVar6" * (cast_expression "(code *)puVar6" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3,&local_28)" ( identifier , (pointer_expression "&local_28" & identifier) ))) ;) (expression_statement "(*(code *)PTR__locale_00433084)(&local_28);" (call_expression "(*(code *)PTR__locale_00433084)(&local_28)" (parenthesized_expression "(*(code *)PTR__locale_00433084)" ( (pointer_expression "*(code *)PTR__locale_00433084" * (cast_expression "(code *)PTR__locale_00433084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) ))) ;) (if_statement "if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }" if (parenthesized_expression "(piVar4[1] == 0)" ( (binary_expression "piVar4[1] == 0" (subscript_expression "piVar4[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }" { (expression_statement "(*(code *)PTR__locale_00433084)(unaff_s3);" (call_expression "(*(code *)PTR__locale_00433084)(unaff_s3)" (parenthesized_expression "(*(code *)PTR__locale_00433084)" ( (pointer_expression "*(code *)PTR__locale_00433084" * (cast_expression "(code *)PTR__locale_00433084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3)" ( identifier ))) ;) (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(piVar4);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(piVar4)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" ( (pointer_expression "*(code *)PTR_operator_delete_0043228c" * (cast_expression "(code *)PTR_operator_delete_0043228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar4)" ( identifier ))) ;) }) (else_clause "else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }" else (compound_statement "{\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }" { (expression_statement "piVar7 = *(int **)(this + 0x20);" (assignment_expression "piVar7 = *(int **)(this + 0x20)" identifier = (pointer_expression "*(int **)(this + 0x20)" * (cast_expression "(int **)(this + 0x20)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) ))))) ;) (expression_statement "local_28 = piVar4;" (assignment_expression "local_28 = piVar4" identifier = identifier) ;) (if_statement "if (piVar7 == *(int **)(this + 0x24)) {\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }" if (parenthesized_expression "(piVar7 == *(int **)(this + 0x24))" ( (binary_expression "piVar7 == *(int **)(this + 0x24)" identifier == (pointer_expression "*(int **)(this + 0x24)" * (cast_expression "(int **)(this + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x24)" ( (binary_expression "this + 0x24" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */\n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }" { comment (ERROR "vector<std::Catalog_info*,std::allocator<std::" (binary_expression "vector<std" identifier < identifier) : : (binary_expression "Catalog_info*,std" identifier * (ERROR "," ,) identifier) : : (binary_expression "allocator<std" identifier < identifier) : :) (expression_statement "Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);" (binary_expression "Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28)" identifier * (ERROR ">>::" >> : :) (call_expression "_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28)" identifier (argument_list "((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28)" ( (call_expression "(vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c)" (parenthesized_expression "(vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)" ( (ERROR "vector<std::Catalog_info*,std::allocator<std::" (binary_expression "vector<std" identifier < identifier) : : (type_descriptor "Catalog_info*" type_identifier (abstract_pointer_declarator "*" *)) , identifier : : (binary_expression "allocator<std" identifier < identifier) : :) (binary_expression "Catalog_info*>> *" identifier * (ERROR ">>" >>) (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x1c)" ( (binary_expression "this + 0x1c" identifier + number_literal) ))) , identifier , (pointer_expression "&local_28" & identifier) )))) ;) }) (else_clause "else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }" else (compound_statement "{\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }" { (expression_statement "*piVar7 = (int)piVar4;" (assignment_expression "*piVar7 = (int)piVar4" (pointer_expression "*piVar7" * identifier) = (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int **)(this + 0x20) = piVar7 + 1;" (assignment_expression "*(int **)(this + 0x20) = piVar7 + 1" (pointer_expression "*(int **)(this + 0x20)" * (cast_expression "(int **)(this + 0x20)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) }))) (expression_statement "param_3 = *piVar4;" (assignment_expression "param_3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) }))) }))) (if_statement "if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR__Unwind_Resume_00432258)();\n      return iVar3;\n    }\n  }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR__Unwind_Resume_00432258)();\n      return iVar3;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);" (assignment_expression "iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0])" identifier = (call_expression "(*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0])" (parenthesized_expression "(*(code *)PTR_pthread_mutex_unlock_004367bc)" ( (pointer_expression "*(code *)PTR_pthread_mutex_unlock_004367bc" * (cast_expression "(code *)PTR_pthread_mutex_unlock_004367bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_24[0])" ( (subscript_expression "local_24[0]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR__Unwind_Resume_00432258)();\n      return iVar3;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */\n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */\n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR__Unwind_Resume_00432258)();\n      return iVar3;\n    }" { (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___cxa_allocate_exception_004336f0)(4)" (parenthesized_expression "(*(code *)PTR___cxa_allocate_exception_004336f0)" ( (pointer_expression "*(code *)PTR___cxa_allocate_exception_004336f0" * (cast_expression "(code *)PTR___cxa_allocate_exception_004336f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "puVar6 = PTR_PTR_00433708;" (assignment_expression "puVar6 = PTR_PTR_00433708" identifier = identifier) ;) (expression_statement "puVar2 = PTR____concurrence_unlock_error_00433704;" (assignment_expression "puVar2 = PTR____concurrence_unlock_error_00433704" identifier = identifier) ;) (expression_statement "puVar1 = PTR___cxa_throw_004336fc;" (assignment_expression "puVar1 = PTR___cxa_throw_004336fc" identifier = identifier) ;) comment (expression_statement "*puVar5 = PTR_vtable_004336ec + 8;" (assignment_expression "*puVar5 = PTR_vtable_004336ec + 8" (pointer_expression "*puVar5" * identifier) = (binary_expression "PTR_vtable_004336ec + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(puVar5,puVar6,puVar2);" (call_expression "(*(code *)puVar1)(puVar5,puVar6,puVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5,puVar6,puVar2)" ( identifier , identifier , identifier ))) ;) (labeled_statement "LAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();" statement_identifier : (expression_statement "(*(code *)PTR___throw_concurrence_lock_error_00433700)();" (call_expression "(*(code *)PTR___throw_concurrence_lock_error_00433700)()" (parenthesized_expression "(*(code *)PTR___throw_concurrence_lock_error_00433700)" ( (pointer_expression "*(code *)PTR___throw_concurrence_lock_error_00433700" * (cast_expression "(code *)PTR___throw_concurrence_lock_error_00433700" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;)) comment (if_statement "if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }" if (parenthesized_expression "(puVar6 == (undefined *)0xffffffff)" ( (binary_expression "puVar6 == (undefined *)0xffffffff" identifier == (cast_expression "(undefined *)0xffffffff" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */\n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }" { (expression_statement "(*(code *)PTR___cxa_call_unexpected_0043370c)();" (call_expression "(*(code *)PTR___cxa_call_unexpected_0043370c)()" (parenthesized_expression "(*(code *)PTR___cxa_call_unexpected_0043370c)" ( (pointer_expression "*(code *)PTR___cxa_call_unexpected_0043370c" * (cast_expression "(code *)PTR___cxa_call_unexpected_0043370c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) comment (expression_statement "(*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));" (call_expression "(*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4))" (parenthesized_expression "(*(code *)PTR_free_00436800)" ( (pointer_expression "*(code *)PTR_free_00436800" * (cast_expression "(code *)PTR_free_00436800" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_3 + 4))" ( (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR__locale_00433084)(unaff_s3);" (call_expression "(*(code *)PTR__locale_00433084)(unaff_s3)" (parenthesized_expression "(*(code *)PTR__locale_00433084)" ( (pointer_expression "*(code *)PTR__locale_00433084" * (cast_expression "(code *)PTR__locale_00433084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(param_3);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(param_3)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" ( (pointer_expression "*(code *)PTR_operator_delete_0043228c" * (cast_expression "(code *)PTR_operator_delete_0043228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR____scoped_lock_00435dbc)(local_24);" (call_expression "(*(code *)PTR____scoped_lock_00435dbc)(local_24)" (parenthesized_expression "(*(code *)PTR____scoped_lock_00435dbc)" ( (pointer_expression "*(code *)PTR____scoped_lock_00435dbc" * (cast_expression "(code *)PTR____scoped_lock_00435dbc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_24)" ( identifier ))) ;) })) (expression_statement "iVar3 = (*(code *)PTR__Unwind_Resume_00432258)();" (assignment_expression "iVar3 = (*(code *)PTR__Unwind_Resume_00432258)()" identifier = (call_expression "(*(code *)PTR__Unwind_Resume_00432258)()" (parenthesized_expression "(*(code *)PTR__Unwind_Resume_00432258)" ( (pointer_expression "*(code *)PTR__Unwind_Resume_00432258" * (cast_expression "(code *)PTR__Unwind_Resume_00432258" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar3;" return identifier ;) })) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit "int __thiscall std::Catalogs::_M_add(Catalogs *this,undefined *param_1,int param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  int *piVar7;\n  int *unaff_s3;\n  int *local_28;\n  Catalogs *local_24 [2];\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  local_24[0] = this;\n  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }\n  puVar6 = PTR_locale_004338b0;\n  iVar3 = *(int *)(this + 0x18);\n  if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    \n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }\n  return param_3;\n}\n\n" (function_definition "int __thiscall std::Catalogs::_M_add(Catalogs *this,undefined *param_1,int param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  int *piVar7;\n  int *unaff_s3;\n  int *local_28;\n  Catalogs *local_24 [2];\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  local_24[0] = this;\n  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }\n  puVar6 = PTR_locale_004338b0;\n  iVar3 = *(int *)(this + 0x18);\n  if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    \n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }\n  return param_3;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::Catalogs::" identifier : : identifier : :) (function_declarator "_M_add(Catalogs *this,undefined *param_1,int param_3)" identifier (parameter_list "(Catalogs *this,undefined *param_1,int param_3)" ( (parameter_declaration "Catalogs *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "undefined *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  int *piVar7;\n  int *unaff_s3;\n  int *local_28;\n  Catalogs *local_24 [2];\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  local_24[0] = this;\n  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }\n  puVar6 = PTR_locale_004338b0;\n  iVar3 = *(int *)(this + 0x18);\n  if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    \n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }\n  return param_3;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int *unaff_s3;" primitive_type (pointer_declarator "*unaff_s3" * identifier) ;) (declaration "int *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "Catalogs *local_24 [2];" type_identifier (pointer_declarator "*local_24 [2]" * (array_declarator "local_24 [2]" identifier [ number_literal ])) ;) (expression_statement "puVar1 = PTR___pthread_key_create_0043667c;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043667c" identifier = identifier) ;) (expression_statement "local_24[0] = this;" (assignment_expression "local_24[0] = this" (subscript_expression "local_24[0]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }" if (parenthesized_expression "(PTR___pthread_key_create_0043667c != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0043667c != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }" { (expression_statement "puVar6 = param_1;" (assignment_expression "puVar6 = param_1" identifier = identifier) ;) (expression_statement "iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();" (assignment_expression "iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)()" identifier = (call_expression "(*(code *)PTR_pthread_mutex_lock_00436710)()" (parenthesized_expression "(*(code *)PTR_pthread_mutex_lock_00436710)" ( (pointer_expression "*(code *)PTR_pthread_mutex_lock_00436710" * (cast_expression "(code *)PTR_pthread_mutex_lock_00436710" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (if_statement "if (iVar3 != 0) goto LAB_00312c2c;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00312c2c;" goto statement_identifier ;)) })) (expression_statement "puVar6 = PTR_locale_004338b0;" (assignment_expression "puVar6 = PTR_locale_004338b0" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(this + 0x18);" (assignment_expression "iVar3 = *(int *)(this + 0x18)" identifier = (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) ))))) ;) (if_statement "if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    \n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }" if (parenthesized_expression "(iVar3 == 0x7fffffff)" ( (binary_expression "iVar3 == 0x7fffffff" identifier == number_literal) )) (compound_statement "{\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }" { (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) (expression_statement "unaff_s3 = (int *)0x7fffffff;" (assignment_expression "unaff_s3 = (int *)0x7fffffff" identifier = (cast_expression "(int *)0x7fffffff" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    \n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }" else (compound_statement "{\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    \n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }" { (expression_statement "*(int *)(this + 0x18) = iVar3 + 1;" (assignment_expression "*(int *)(this + 0x18) = iVar3 + 1" (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) )))) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar6)(&local_28,param_3);" (call_expression "(*(code *)puVar6)(&local_28,param_3)" (parenthesized_expression "(*(code *)puVar6)" ( (pointer_expression "*(code *)puVar6" * (cast_expression "(code *)puVar6" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_28,param_3)" ( (pointer_expression "&local_28" & identifier) , identifier ))) ;) (expression_statement "piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);" (assignment_expression "piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc)" identifier = (cast_expression "(int *)(*(code *)PTR_operator_new_0043233c)(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_operator_new_0043233c)(0xc)" (parenthesized_expression "(*(code *)PTR_operator_new_0043233c)" ( (pointer_expression "*(code *)PTR_operator_new_0043233c" * (cast_expression "(code *)PTR_operator_new_0043233c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*piVar4 = iVar3;" (assignment_expression "*piVar4 = iVar3" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "unaff_s3 = piVar4 + 2;" (assignment_expression "unaff_s3 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (expression_statement "iVar3 = (*(code *)PTR_strdup_00436660)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_strdup_00436660)(param_1)" identifier = (call_expression "(*(code *)PTR_strdup_00436660)(param_1)" (parenthesized_expression "(*(code *)PTR_strdup_00436660)" ( (pointer_expression "*(code *)PTR_strdup_00436660" * (cast_expression "(code *)PTR_strdup_00436660" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "puVar6 = PTR_locale_004338b0;" (assignment_expression "puVar6 = PTR_locale_004338b0" identifier = identifier) ;) (expression_statement "piVar4[1] = iVar3;" (assignment_expression "piVar4[1] = iVar3" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*(code *)puVar6)(unaff_s3,&local_28);" (call_expression "(*(code *)puVar6)(unaff_s3,&local_28)" (parenthesized_expression "(*(code *)puVar6)" ( (pointer_expression "*(code *)puVar6" * (cast_expression "(code *)puVar6" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3,&local_28)" ( identifier , (pointer_expression "&local_28" & identifier) ))) ;) (expression_statement "(*(code *)PTR__locale_00433084)(&local_28);" (call_expression "(*(code *)PTR__locale_00433084)(&local_28)" (parenthesized_expression "(*(code *)PTR__locale_00433084)" ( (pointer_expression "*(code *)PTR__locale_00433084" * (cast_expression "(code *)PTR__locale_00433084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) ))) ;) (if_statement "if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }" if (parenthesized_expression "(piVar4[1] == 0)" ( (binary_expression "piVar4[1] == 0" (subscript_expression "piVar4[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }" { (expression_statement "(*(code *)PTR__locale_00433084)(unaff_s3);" (call_expression "(*(code *)PTR__locale_00433084)(unaff_s3)" (parenthesized_expression "(*(code *)PTR__locale_00433084)" ( (pointer_expression "*(code *)PTR__locale_00433084" * (cast_expression "(code *)PTR__locale_00433084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3)" ( identifier ))) ;) (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" identifier = number_literal) ;) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(piVar4);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(piVar4)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" ( (pointer_expression "*(code *)PTR_operator_delete_0043228c" * (cast_expression "(code *)PTR_operator_delete_0043228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar4)" ( identifier ))) ;) }) (else_clause "else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }" else (compound_statement "{\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }" { (expression_statement "piVar7 = *(int **)(this + 0x20);" (assignment_expression "piVar7 = *(int **)(this + 0x20)" identifier = (pointer_expression "*(int **)(this + 0x20)" * (cast_expression "(int **)(this + 0x20)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) ))))) ;) (expression_statement "local_28 = piVar4;" (assignment_expression "local_28 = piVar4" identifier = identifier) ;) (if_statement "if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }" if (parenthesized_expression "(piVar7 == *(int **)(this + 0x24))" ( (binary_expression "piVar7 == *(int **)(this + 0x24)" identifier == (pointer_expression "*(int **)(this + 0x24)" * (cast_expression "(int **)(this + 0x24)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x24)" ( (binary_expression "this + 0x24" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }" { (ERROR "vector<std::Catalog_info*,std::allocator<std::" (binary_expression "vector<std" identifier < identifier) : : (binary_expression "Catalog_info*,std" identifier * (ERROR "," ,) identifier) : : (binary_expression "allocator<std" identifier < identifier) : :) (expression_statement "Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);" (binary_expression "Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28)" identifier * (ERROR ">>::" >> : :) (call_expression "_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28)" identifier (argument_list "((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28)" ( (call_expression "(vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c)" (parenthesized_expression "(vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)" ( (ERROR "vector<std::Catalog_info*,std::allocator<std::" (binary_expression "vector<std" identifier < identifier) : : (type_descriptor "Catalog_info*" type_identifier (abstract_pointer_declarator "*" *)) , identifier : : (binary_expression "allocator<std" identifier < identifier) : :) (binary_expression "Catalog_info*>> *" identifier * (ERROR ">>" >>) (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x1c)" ( (binary_expression "this + 0x1c" identifier + number_literal) ))) , identifier , (pointer_expression "&local_28" & identifier) )))) ;) }) (else_clause "else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }" else (compound_statement "{\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }" { (expression_statement "*piVar7 = (int)piVar4;" (assignment_expression "*piVar7 = (int)piVar4" (pointer_expression "*piVar7" * identifier) = (cast_expression "(int)piVar4" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int **)(this + 0x20) = piVar7 + 1;" (assignment_expression "*(int **)(this + 0x20) = piVar7 + 1" (pointer_expression "*(int **)(this + 0x20)" * (cast_expression "(int **)(this + 0x20)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) )))) = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) }))) (expression_statement "param_3 = *piVar4;" (assignment_expression "param_3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) }))) }))) (if_statement "if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }" { (expression_statement "iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);" (assignment_expression "iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0])" identifier = (call_expression "(*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0])" (parenthesized_expression "(*(code *)PTR_pthread_mutex_unlock_004367bc)" ( (pointer_expression "*(code *)PTR_pthread_mutex_unlock_004367bc" * (cast_expression "(code *)PTR_pthread_mutex_unlock_004367bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_24[0])" ( (subscript_expression "local_24[0]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }" { (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR___cxa_allocate_exception_004336f0)(4)" (parenthesized_expression "(*(code *)PTR___cxa_allocate_exception_004336f0)" ( (pointer_expression "*(code *)PTR___cxa_allocate_exception_004336f0" * (cast_expression "(code *)PTR___cxa_allocate_exception_004336f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "puVar6 = PTR_PTR_00433708;" (assignment_expression "puVar6 = PTR_PTR_00433708" identifier = identifier) ;) (expression_statement "puVar2 = PTR____concurrence_unlock_error_00433704;" (assignment_expression "puVar2 = PTR____concurrence_unlock_error_00433704" identifier = identifier) ;) (expression_statement "puVar1 = PTR___cxa_throw_004336fc;" (assignment_expression "puVar1 = PTR___cxa_throw_004336fc" identifier = identifier) ;) (expression_statement "*puVar5 = PTR_vtable_004336ec + 8;" (assignment_expression "*puVar5 = PTR_vtable_004336ec + 8" (pointer_expression "*puVar5" * identifier) = (binary_expression "PTR_vtable_004336ec + 8" identifier + number_literal)) ;) (expression_statement "(*(code *)puVar1)(puVar5,puVar6,puVar2);" (call_expression "(*(code *)puVar1)(puVar5,puVar6,puVar2)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5,puVar6,puVar2)" ( identifier , identifier , identifier ))) ;) (labeled_statement "LAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();" statement_identifier : (expression_statement "(*(code *)PTR___throw_concurrence_lock_error_00433700)();" (call_expression "(*(code *)PTR___throw_concurrence_lock_error_00433700)()" (parenthesized_expression "(*(code *)PTR___throw_concurrence_lock_error_00433700)" ( (pointer_expression "*(code *)PTR___throw_concurrence_lock_error_00433700" * (cast_expression "(code *)PTR___throw_concurrence_lock_error_00433700" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;)) (if_statement "if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }" if (parenthesized_expression "(puVar6 == (undefined *)0xffffffff)" ( (binary_expression "puVar6 == (undefined *)0xffffffff" identifier == (cast_expression "(undefined *)0xffffffff" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }" { (expression_statement "(*(code *)PTR___cxa_call_unexpected_0043370c)();" (call_expression "(*(code *)PTR___cxa_call_unexpected_0043370c)()" (parenthesized_expression "(*(code *)PTR___cxa_call_unexpected_0043370c)" ( (pointer_expression "*(code *)PTR___cxa_call_unexpected_0043370c" * (cast_expression "(code *)PTR___cxa_call_unexpected_0043370c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));" (call_expression "(*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4))" (parenthesized_expression "(*(code *)PTR_free_00436800)" ( (pointer_expression "*(code *)PTR_free_00436800" * (cast_expression "(code *)PTR_free_00436800" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_3 + 4))" ( (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "(*(code *)PTR__locale_00433084)(unaff_s3);" (call_expression "(*(code *)PTR__locale_00433084)(unaff_s3)" (parenthesized_expression "(*(code *)PTR__locale_00433084)" ( (pointer_expression "*(code *)PTR__locale_00433084" * (cast_expression "(code *)PTR__locale_00433084" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(unaff_s3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(param_3);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(param_3)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" ( (pointer_expression "*(code *)PTR_operator_delete_0043228c" * (cast_expression "(code *)PTR_operator_delete_0043228c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_3)" ( identifier ))) ;) (expression_statement "(*(code *)PTR____scoped_lock_00435dbc)(local_24);" (call_expression "(*(code *)PTR____scoped_lock_00435dbc)(local_24)" (parenthesized_expression "(*(code *)PTR____scoped_lock_00435dbc)" ( (pointer_expression "*(code *)PTR____scoped_lock_00435dbc" * (cast_expression "(code *)PTR____scoped_lock_00435dbc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_24)" ( identifier ))) ;) })) (expression_statement "iVar3 = (*(code *)PTR_FUN_00432258)();" (assignment_expression "iVar3 = (*(code *)PTR_FUN_00432258)()" identifier = (call_expression "(*(code *)PTR_FUN_00432258)()" (parenthesized_expression "(*(code *)PTR_FUN_00432258)" ( (pointer_expression "*(code *)PTR_FUN_00432258" * (cast_expression "(code *)PTR_FUN_00432258" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (return_statement "return iVar3;" return identifier ;) })) })) (return_statement "return param_3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ms_call_modifier __thiscall) (ERROR IDENT : : IDENT : :) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * (array_declarator IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = 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 IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }) (else_clause else (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) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (ERROR (binary_expression IDENT < IDENT) : : (binary_expression IDENT * (ERROR ,) IDENT) : : (binary_expression IDENT < IDENT) : :) (expression_statement (binary_expression IDENT * (ERROR >> : :) (call_expression IDENT (argument_list ( (call_expression (parenthesized_expression ( (ERROR (binary_expression IDENT < IDENT) : : (type_descriptor TYPE (abstract_pointer_declarator *)) , IDENT : : (binary_expression IDENT < IDENT) : :) (binary_expression IDENT * (ERROR >>) (pointer_expression * IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) , IDENT , (pointer_expression & IDENT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (subscript_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 *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (return_statement return IDENT ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int __thiscall std::Catalogs::_M_add(Catalogs *this,undefined *param_1,int param_3)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  int *piVar7;\n  int *unaff_s3;\n  int *local_28;\n  Catalogs *local_24 [2];\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  local_24[0] = this;\n  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }\n  puVar6 = PTR_locale_004338b0;\n  iVar3 = *(int *)(this + 0x18);\n  if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    \n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }\n  return param_3;\n}" (primitive_type "int") (ms_call_modifier "__thiscall" (__thiscall "__thiscall")) (ERROR "std::Catalogs::" (identifier "std") (: ":") (: ":") (identifier "Catalogs") (: ":") (: ":")) (function_declarator "_M_add(Catalogs *this,undefined *param_1,int param_3)" (identifier "_M_add") (parameter_list "(Catalogs *this,undefined *param_1,int param_3)" (( "(") (parameter_declaration "Catalogs *this" (type_identifier "Catalogs") (pointer_declarator "*this" (* "*") (identifier "this"))) (, ",") (parameter_declaration "undefined *param_1" (type_identifier "undefined") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  int *piVar4;\n  undefined4 *puVar5;\n  undefined *puVar6;\n  int *piVar7;\n  int *unaff_s3;\n  int *local_28;\n  Catalogs *local_24 [2];\n  \n  puVar1 = PTR___pthread_key_create_0043667c;\n  local_24[0] = this;\n  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }\n  puVar6 = PTR_locale_004338b0;\n  iVar3 = *(int *)(this + 0x18);\n  if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    \n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }\n  return param_3;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined *puVar6;" (type_identifier "undefined") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "int *unaff_s3;" (primitive_type "int") (pointer_declarator "*unaff_s3" (* "*") (identifier "unaff_s3")) (; ";")) (declaration "int *local_28;" (primitive_type "int") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "Catalogs *local_24 [2];" (type_identifier "Catalogs") (pointer_declarator "*local_24 [2]" (* "*") (array_declarator "local_24 [2]" (identifier "local_24") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "puVar1 = PTR___pthread_key_create_0043667c;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043667c" (identifier "puVar1") (= "=") (identifier "PTR___pthread_key_create_0043667c")) (; ";")) (expression_statement "local_24[0] = this;" (assignment_expression "local_24[0] = this" (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")) (= "=") (identifier "this")) (; ";")) (if_statement "if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_0043667c != (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_0043667c != (undefined *)0x0" (identifier "PTR___pthread_key_create_0043667c") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    puVar6 = param_1;\n    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();\n    if (iVar3 != 0) goto LAB_00312c2c;\n  }" ({ "{") (expression_statement "puVar6 = param_1;" (assignment_expression "puVar6 = param_1" (identifier "puVar6") (= "=") (identifier "param_1")) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();" (assignment_expression "iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)()" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_pthread_mutex_lock_00436710)()" (parenthesized_expression "(*(code *)PTR_pthread_mutex_lock_00436710)" (( "(") (pointer_expression "*(code *)PTR_pthread_mutex_lock_00436710" (* "*") (cast_expression "(code *)PTR_pthread_mutex_lock_00436710" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pthread_mutex_lock_00436710"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) goto LAB_00312c2c;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00312c2c;" (goto "goto") (statement_identifier "LAB_00312c2c") (; ";"))) (} "}"))) (expression_statement "puVar6 = PTR_locale_004338b0;" (assignment_expression "puVar6 = PTR_locale_004338b0" (identifier "puVar6") (= "=") (identifier "PTR_locale_004338b0")) (; ";")) (expression_statement "iVar3 = *(int *)(this + 0x18);" (assignment_expression "iVar3 = *(int *)(this + 0x18)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(this + 0x18)" (* "*") (cast_expression "(int *)(this + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x18)" (( "(") (binary_expression "this + 0x18" (identifier "this") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (iVar3 == 0x7fffffff) {\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }\n  else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    \n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 == 0x7fffffff)" (( "(") (binary_expression "iVar3 == 0x7fffffff" (identifier "iVar3") (== "==") (number_literal "0x7fffffff")) () ")")) (compound_statement "{\n    param_3 = -1;\n    unaff_s3 = (int *)0x7fffffff;\n  }" ({ "{") (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" (identifier "param_3") (= "=") (number_literal "-1")) (; ";")) (expression_statement "unaff_s3 = (int *)0x7fffffff;" (assignment_expression "unaff_s3 = (int *)0x7fffffff" (identifier "unaff_s3") (= "=") (cast_expression "(int *)0x7fffffff" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x7fffffff"))) (; ";")) (} "}")) (else_clause "else {\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    \n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }" (else "else") (compound_statement "{\n    *(int *)(this + 0x18) = iVar3 + 1;\n    (*(code *)puVar6)(&local_28,param_3);\n                    \n    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);\n    *piVar4 = iVar3;\n    unaff_s3 = piVar4 + 2;\n    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);\n    puVar6 = PTR_locale_004338b0;\n    piVar4[1] = iVar3;\n    (*(code *)puVar6)(unaff_s3,&local_28);\n    (*(code *)PTR__locale_00433084)(&local_28);\n    if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }\n  }" ({ "{") (expression_statement "*(int *)(this + 0x18) = iVar3 + 1;" (assignment_expression "*(int *)(this + 0x18) = iVar3 + 1" (pointer_expression "*(int *)(this + 0x18)" (* "*") (cast_expression "(int *)(this + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(this + 0x18)" (( "(") (binary_expression "this + 0x18" (identifier "this") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*(code *)puVar6)(&local_28,param_3);" (call_expression "(*(code *)puVar6)(&local_28,param_3)" (parenthesized_expression "(*(code *)puVar6)" (( "(") (pointer_expression "*(code *)puVar6" (* "*") (cast_expression "(code *)puVar6" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar6"))) () ")")) (argument_list "(&local_28,param_3)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);" (assignment_expression "piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc)" (identifier "piVar4") (= "=") (cast_expression "(int *)(*(code *)PTR_operator_new_0043233c)(0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_operator_new_0043233c)(0xc)" (parenthesized_expression "(*(code *)PTR_operator_new_0043233c)" (( "(") (pointer_expression "*(code *)PTR_operator_new_0043233c" (* "*") (cast_expression "(code *)PTR_operator_new_0043233c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_operator_new_0043233c"))) () ")")) (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "*piVar4 = iVar3;" (assignment_expression "*piVar4 = iVar3" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "unaff_s3 = piVar4 + 2;" (assignment_expression "unaff_s3 = piVar4 + 2" (identifier "unaff_s3") (= "=") (binary_expression "piVar4 + 2" (identifier "piVar4") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_strdup_00436660)(param_1);" (assignment_expression "iVar3 = (*(code *)PTR_strdup_00436660)(param_1)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strdup_00436660)(param_1)" (parenthesized_expression "(*(code *)PTR_strdup_00436660)" (( "(") (pointer_expression "*(code *)PTR_strdup_00436660" (* "*") (cast_expression "(code *)PTR_strdup_00436660" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strdup_00436660"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "puVar6 = PTR_locale_004338b0;" (assignment_expression "puVar6 = PTR_locale_004338b0" (identifier "puVar6") (= "=") (identifier "PTR_locale_004338b0")) (; ";")) (expression_statement "piVar4[1] = iVar3;" (assignment_expression "piVar4[1] = iVar3" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "(*(code *)puVar6)(unaff_s3,&local_28);" (call_expression "(*(code *)puVar6)(unaff_s3,&local_28)" (parenthesized_expression "(*(code *)puVar6)" (( "(") (pointer_expression "*(code *)puVar6" (* "*") (cast_expression "(code *)puVar6" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar6"))) () ")")) (argument_list "(unaff_s3,&local_28)" (( "(") (identifier "unaff_s3") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR__locale_00433084)(&local_28);" (call_expression "(*(code *)PTR__locale_00433084)(&local_28)" (parenthesized_expression "(*(code *)PTR__locale_00433084)" (( "(") (pointer_expression "*(code *)PTR__locale_00433084" (* "*") (cast_expression "(code *)PTR__locale_00433084" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__locale_00433084"))) () ")")) (argument_list "(&local_28)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")"))) (; ";")) (if_statement "if (piVar4[1] == 0) {\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }\n    else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }" (if "if") (parenthesized_expression "(piVar4[1] == 0)" (( "(") (binary_expression "piVar4[1] == 0" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR__locale_00433084)(unaff_s3);\n      param_3 = -1;\n      (*(code *)PTR_operator_delete_0043228c)(piVar4);\n    }" ({ "{") (expression_statement "(*(code *)PTR__locale_00433084)(unaff_s3);" (call_expression "(*(code *)PTR__locale_00433084)(unaff_s3)" (parenthesized_expression "(*(code *)PTR__locale_00433084)" (( "(") (pointer_expression "*(code *)PTR__locale_00433084" (* "*") (cast_expression "(code *)PTR__locale_00433084" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__locale_00433084"))) () ")")) (argument_list "(unaff_s3)" (( "(") (identifier "unaff_s3") () ")"))) (; ";")) (expression_statement "param_3 = -1;" (assignment_expression "param_3 = -1" (identifier "param_3") (= "=") (number_literal "-1")) (; ";")) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(piVar4);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(piVar4)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" (( "(") (pointer_expression "*(code *)PTR_operator_delete_0043228c" (* "*") (cast_expression "(code *)PTR_operator_delete_0043228c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_operator_delete_0043228c"))) () ")")) (argument_list "(piVar4)" (( "(") (identifier "piVar4") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }" (else "else") (compound_statement "{\n      piVar7 = *(int **)(this + 0x20);\n      local_28 = piVar4;\n      if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }\n      param_3 = *piVar4;\n    }" ({ "{") (expression_statement "piVar7 = *(int **)(this + 0x20);" (assignment_expression "piVar7 = *(int **)(this + 0x20)" (identifier "piVar7") (= "=") (pointer_expression "*(int **)(this + 0x20)" (* "*") (cast_expression "(int **)(this + 0x20)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(this + 0x20)" (( "(") (binary_expression "this + 0x20" (identifier "this") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "local_28 = piVar4;" (assignment_expression "local_28 = piVar4" (identifier "local_28") (= "=") (identifier "piVar4")) (; ";")) (if_statement "if (piVar7 == *(int **)(this + 0x24)) {\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }\n      else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }" (if "if") (parenthesized_expression "(piVar7 == *(int **)(this + 0x24))" (( "(") (binary_expression "piVar7 == *(int **)(this + 0x24)" (identifier "piVar7") (== "==") (pointer_expression "*(int **)(this + 0x24)" (* "*") (cast_expression "(int **)(this + 0x24)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(this + 0x24)" (( "(") (binary_expression "this + 0x24" (identifier "this") (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (compound_statement "{\n                    \n        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);\n      }" ({ "{") (ERROR "vector<std::Catalog_info*,std::allocator<std::" (binary_expression "vector<std" (identifier "vector") (< "<") (identifier "std")) (: ":") (: ":") (binary_expression "Catalog_info*,std" (identifier "Catalog_info") (* "*") (ERROR "," (, ",")) (identifier "std")) (: ":") (: ":") (binary_expression "allocator<std" (identifier "allocator") (< "<") (identifier "std")) (: ":") (: ":")) (expression_statement "Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28);" (binary_expression "Catalog_info*>>::_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28)" (identifier "Catalog_info") (* "*") (ERROR ">>::" (>> ">>") (: ":") (: ":")) (call_expression "_M_realloc_insert\n                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28)" (identifier "_M_realloc_insert") (argument_list "((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),\n                   piVar7,&local_28)" (( "(") (call_expression "(vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c)" (parenthesized_expression "(vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)" (( "(") (ERROR "vector<std::Catalog_info*,std::allocator<std::" (binary_expression "vector<std" (identifier "vector") (< "<") (identifier "std")) (: ":") (: ":") (type_descriptor "Catalog_info*" (type_identifier "Catalog_info") (abstract_pointer_declarator "*" (* "*"))) (, ",") (identifier "std") (: ":") (: ":") (binary_expression "allocator<std" (identifier "allocator") (< "<") (identifier "std")) (: ":") (: ":")) (binary_expression "Catalog_info*>> *" (identifier "Catalog_info") (* "*") (ERROR ">>" (>> ">>")) (pointer_expression "*" (* "*") (identifier ""))) () ")")) (argument_list "(this + 0x1c)" (( "(") (binary_expression "this + 0x1c" (identifier "this") (+ "+") (number_literal "0x1c")) () ")"))) (, ",") (identifier "piVar7") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }" (else "else") (compound_statement "{\n        *piVar7 = (int)piVar4;\n        *(int **)(this + 0x20) = piVar7 + 1;\n      }" ({ "{") (expression_statement "*piVar7 = (int)piVar4;" (assignment_expression "*piVar7 = (int)piVar4" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (= "=") (cast_expression "(int)piVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar4"))) (; ";")) (expression_statement "*(int **)(this + 0x20) = piVar7 + 1;" (assignment_expression "*(int **)(this + 0x20) = piVar7 + 1" (pointer_expression "*(int **)(this + 0x20)" (* "*") (cast_expression "(int **)(this + 0x20)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(this + 0x20)" (( "(") (binary_expression "this + 0x20" (identifier "this") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (binary_expression "piVar7 + 1" (identifier "piVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "param_3 = *piVar4;" (assignment_expression "param_3 = *piVar4" (identifier "param_3") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (} "}")))) (} "}")))) (if_statement "if (puVar1 != (undefined *)0x0) {\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined *)0x0)" (( "(") (binary_expression "puVar1 != (undefined *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);\n    if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }\n  }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);" (assignment_expression "iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0])" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0])" (parenthesized_expression "(*(code *)PTR_pthread_mutex_unlock_004367bc)" (( "(") (pointer_expression "*(code *)PTR_pthread_mutex_unlock_004367bc" (* "*") (cast_expression "(code *)PTR_pthread_mutex_unlock_004367bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_pthread_mutex_unlock_004367bc"))) () ")")) (argument_list "(local_24[0])" (( "(") (subscript_expression "local_24[0]" (identifier "local_24") ([ "[") (number_literal "0") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);\n      puVar6 = PTR_PTR_00433708;\n      puVar2 = PTR____concurrence_unlock_error_00433704;\n      puVar1 = PTR___cxa_throw_004336fc;\n                    \n      *puVar5 = PTR_vtable_004336ec + 8;\n      (*(code *)puVar1)(puVar5,puVar6,puVar2);\nLAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();\n                    \n      if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }\n      iVar3 = (*(code *)PTR_FUN_00432258)();\n      return iVar3;\n    }" ({ "{") (expression_statement "puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);" (assignment_expression "puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR___cxa_allocate_exception_004336f0)(4)" (parenthesized_expression "(*(code *)PTR___cxa_allocate_exception_004336f0)" (( "(") (pointer_expression "*(code *)PTR___cxa_allocate_exception_004336f0" (* "*") (cast_expression "(code *)PTR___cxa_allocate_exception_004336f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___cxa_allocate_exception_004336f0"))) () ")")) (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "puVar6 = PTR_PTR_00433708;" (assignment_expression "puVar6 = PTR_PTR_00433708" (identifier "puVar6") (= "=") (identifier "PTR_PTR_00433708")) (; ";")) (expression_statement "puVar2 = PTR____concurrence_unlock_error_00433704;" (assignment_expression "puVar2 = PTR____concurrence_unlock_error_00433704" (identifier "puVar2") (= "=") (identifier "PTR____concurrence_unlock_error_00433704")) (; ";")) (expression_statement "puVar1 = PTR___cxa_throw_004336fc;" (assignment_expression "puVar1 = PTR___cxa_throw_004336fc" (identifier "puVar1") (= "=") (identifier "PTR___cxa_throw_004336fc")) (; ";")) (expression_statement "*puVar5 = PTR_vtable_004336ec + 8;" (assignment_expression "*puVar5 = PTR_vtable_004336ec + 8" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (binary_expression "PTR_vtable_004336ec + 8" (identifier "PTR_vtable_004336ec") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "(*(code *)puVar1)(puVar5,puVar6,puVar2);" (call_expression "(*(code *)puVar1)(puVar5,puVar6,puVar2)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(puVar5,puVar6,puVar2)" (( "(") (identifier "puVar5") (, ",") (identifier "puVar6") (, ",") (identifier "puVar2") () ")"))) (; ";")) (labeled_statement "LAB_00312c2c:\n      (*(code *)PTR___throw_concurrence_lock_error_00433700)();" (statement_identifier "LAB_00312c2c") (: ":") (expression_statement "(*(code *)PTR___throw_concurrence_lock_error_00433700)();" (call_expression "(*(code *)PTR___throw_concurrence_lock_error_00433700)()" (parenthesized_expression "(*(code *)PTR___throw_concurrence_lock_error_00433700)" (( "(") (pointer_expression "*(code *)PTR___throw_concurrence_lock_error_00433700" (* "*") (cast_expression "(code *)PTR___throw_concurrence_lock_error_00433700" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___throw_concurrence_lock_error_00433700"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";"))) (if_statement "if (puVar6 == (undefined *)0xffffffff) {\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }" (if "if") (parenthesized_expression "(puVar6 == (undefined *)0xffffffff)" (( "(") (binary_expression "puVar6 == (undefined *)0xffffffff" (identifier "puVar6") (== "==") (cast_expression "(undefined *)0xffffffff" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0xffffffff"))) () ")")) (compound_statement "{\n        (*(code *)PTR___cxa_call_unexpected_0043370c)();\n                    \n        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));\n        (*(code *)PTR__locale_00433084)(unaff_s3);\n        (*(code *)PTR_operator_delete_0043228c)(param_3);\n        (*(code *)PTR____scoped_lock_00435dbc)(local_24);\n      }" ({ "{") (expression_statement "(*(code *)PTR___cxa_call_unexpected_0043370c)();" (call_expression "(*(code *)PTR___cxa_call_unexpected_0043370c)()" (parenthesized_expression "(*(code *)PTR___cxa_call_unexpected_0043370c)" (( "(") (pointer_expression "*(code *)PTR___cxa_call_unexpected_0043370c" (* "*") (cast_expression "(code *)PTR___cxa_call_unexpected_0043370c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___cxa_call_unexpected_0043370c"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));" (call_expression "(*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4))" (parenthesized_expression "(*(code *)PTR_free_00436800)" (( "(") (pointer_expression "*(code *)PTR_free_00436800" (* "*") (cast_expression "(code *)PTR_free_00436800" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_00436800"))) () ")")) (argument_list "(*(undefined4 *)(param_3 + 4))" (( "(") (pointer_expression "*(undefined4 *)(param_3 + 4)" (* "*") (cast_expression "(undefined4 *)(param_3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "(*(code *)PTR__locale_00433084)(unaff_s3);" (call_expression "(*(code *)PTR__locale_00433084)(unaff_s3)" (parenthesized_expression "(*(code *)PTR__locale_00433084)" (( "(") (pointer_expression "*(code *)PTR__locale_00433084" (* "*") (cast_expression "(code *)PTR__locale_00433084" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR__locale_00433084"))) () ")")) (argument_list "(unaff_s3)" (( "(") (identifier "unaff_s3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_operator_delete_0043228c)(param_3);" (call_expression "(*(code *)PTR_operator_delete_0043228c)(param_3)" (parenthesized_expression "(*(code *)PTR_operator_delete_0043228c)" (( "(") (pointer_expression "*(code *)PTR_operator_delete_0043228c" (* "*") (cast_expression "(code *)PTR_operator_delete_0043228c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_operator_delete_0043228c"))) () ")")) (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))) (; ";")) (expression_statement "(*(code *)PTR____scoped_lock_00435dbc)(local_24);" (call_expression "(*(code *)PTR____scoped_lock_00435dbc)(local_24)" (parenthesized_expression "(*(code *)PTR____scoped_lock_00435dbc)" (( "(") (pointer_expression "*(code *)PTR____scoped_lock_00435dbc" (* "*") (cast_expression "(code *)PTR____scoped_lock_00435dbc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR____scoped_lock_00435dbc"))) () ")")) (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = (*(code *)PTR_FUN_00432258)();" (assignment_expression "iVar3 = (*(code *)PTR_FUN_00432258)()" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_FUN_00432258)()" (parenthesized_expression "(*(code *)PTR_FUN_00432258)" (( "(") (pointer_expression "*(code *)PTR_FUN_00432258" (* "*") (cast_expression "(code *)PTR_FUN_00432258" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_00432258"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (} "}"))) (return_statement "return param_3;" (return "return") (identifier "param_3") (; ";")) (} "}")))

/* std::Catalogs::_M_add(char const*, std::locale) */

int __thiscall std::type_1::function_1(type_1 *var_3,type_2 *param_1,int var_11)

{
  type_2 *var_8;
  type_2 *puVar2;
  int var_2;
  int *var_4;
  type_3 *puVar5;
  type_2 *var_10;
  int *var_5;
  int *unaff_s3;
  int *local_28;
  type_1 *local_24 [2];
  
  var_8 = var_1;
  local_24[0] = var_3;
  if (var_1 != (type_2 *)0x0) {
    var_10 = param_1;
    var_2 = (*(type_4 *)PTR_pthread_mutex_lock_00436710)();
    if (var_2 != 0) goto LAB_00312c2c;
  }
  var_10 = PTR_locale_004338b0;
  var_2 = *(int *)(var_3 + 0x18);
  if (var_2 == 0x7fffffff) {
    var_11 = -1;
    unaff_s3 = (int *)0x7fffffff;
  }
  else {
    *(int *)(var_3 + 0x18) = var_2 + 1;
    (*(type_4 *)var_10)(&local_28,var_11);
                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */
    var_4 = (int *)(*(type_4 *)PTR_operator_new_0043233c)(0xc);
    *var_4 = var_2;
    unaff_s3 = var_4 + 2;
    var_2 = (*(type_4 *)PTR_strdup_00436660)(param_1);
    var_10 = PTR_locale_004338b0;
    var_4[1] = var_2;
    (*(type_4 *)var_10)(unaff_s3,&local_28);
    (*(type_4 *)PTR__locale_00433084)(&local_28);
    if (var_4[1] == 0) {
      (*(type_4 *)PTR__locale_00433084)(unaff_s3);
      var_11 = -1;
      (*(type_4 *)PTR_operator_delete_0043228c)(var_4);
    }
    else {
      var_5 = *(int **)(var_3 + 0x20);
      local_28 = var_4;
      if (var_5 == *(int **)(var_3 + 0x24)) {
                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */
        vector<std::var_6*,std::allocator<std::var_6*>>::var_7
                  ((vector<std::var_6*,std::allocator<std::var_6*>> *)(var_3 + 0x1c),
                   var_5,&local_28);
      }
      else {
        *var_5 = (int)var_4;
        *(int **)(var_3 + 0x20) = var_5 + 1;
      }
      var_11 = *var_4;
    }
  }
  if (var_8 != (type_2 *)0x0) {
    var_2 = (*(type_4 *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);
    if (var_2 != 0) {
      puVar5 = (type_3 *)(*(type_4 *)PTR___cxa_allocate_exception_004336f0)(4);
      var_10 = PTR_PTR_00433708;
      puVar2 = PTR____concurrence_unlock_error_00433704;
      var_8 = PTR___cxa_throw_004336fc;
                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */
      *puVar5 = var_9 + 8;
      (*(type_4 *)var_8)(puVar5,var_10,puVar2);
LAB_00312c2c:
      (*(type_4 *)PTR___throw_concurrence_lock_error_00433700)();
                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */
      if (var_10 == (type_2 *)0xffffffff) {
        (*(type_4 *)PTR___cxa_call_unexpected_0043370c)();
                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */
        (*(type_4 *)PTR_free_00436800)(*(type_3 *)(var_11 + 4));
        (*(type_4 *)PTR__locale_00433084)(unaff_s3);
        (*(type_4 *)PTR_operator_delete_0043228c)(var_11);
        (*(type_4 *)PTR____scoped_lock_00435dbc)(local_24);
      }
      var_2 = (*(type_4 *)PTR__Unwind_Resume_00432258)();
      return var_2;
    }
  }
  return var_11;
}


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

/* std::Catalogs::MASKED(char const*, std::locale) */

int __thiscall std::Catalogs::MASKED(Catalogs *this,undefined *param_1,int param_3)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  int *piVar4;
  undefined4 *puVar5;
  undefined *puVar6;
  int *piVar7;
  int *unaff_s3;
  int *local_28;
  Catalogs *local_24 [2];
  
  puVar1 = PTR___pthread_key_create_0043667c;
  local_24[0] = this;
  if (PTR___pthread_key_create_0043667c != (undefined *)0x0) {
    puVar6 = param_1;
    iVar3 = (*(code *)PTR_pthread_mutex_lock_00436710)();
    if (iVar3 != 0) goto LAB_00312c2c;
  }
  puVar6 = PTR_locale_004338b0;
  iVar3 = *(int *)(this + 0x18);
  if (iVar3 == 0x7fffffff) {
    param_3 = -1;
    unaff_s3 = (int *)0x7fffffff;
  }
  else {
    *(int *)(this + 0x18) = iVar3 + 1;
    (*(code *)puVar6)(&local_28,param_3);
                    /* try { // try from 00312afc to 00312b03 has its CatchHandler @ 00312cac */
    piVar4 = (int *)(*(code *)PTR_operator_new_0043233c)(0xc);
    *piVar4 = iVar3;
    unaff_s3 = piVar4 + 2;
    iVar3 = (*(code *)PTR_strdup_00436660)(param_1);
    puVar6 = PTR_locale_004338b0;
    piVar4[1] = iVar3;
    (*(code *)puVar6)(unaff_s3,&local_28);
    (*(code *)PTR__locale_00433084)(&local_28);
    if (piVar4[1] == 0) {
      (*(code *)PTR__locale_00433084)(unaff_s3);
      param_3 = -1;
      (*(code *)PTR_operator_delete_0043228c)(piVar4);
    }
    else {
      piVar7 = *(int **)(this + 0x20);
      local_28 = piVar4;
      if (piVar7 == *(int **)(this + 0x24)) {
                    /* try { // try from 00312be4 to 00312beb has its CatchHandler @ 00312c50 */
        vector<std::Catalog_info*,std::allocator<std::Catalog_info*>>::_M_realloc_insert
                  ((vector<std::Catalog_info*,std::allocator<std::Catalog_info*>> *)(this + 0x1c),
                   piVar7,&local_28);
      }
      else {
        *piVar7 = (int)piVar4;
        *(int **)(this + 0x20) = piVar7 + 1;
      }
      param_3 = *piVar4;
    }
  }
  if (puVar1 != (undefined *)0x0) {
    iVar3 = (*(code *)PTR_pthread_mutex_unlock_004367bc)(local_24[0]);
    if (iVar3 != 0) {
      puVar5 = (undefined4 *)(*(code *)PTR___cxa_allocate_exception_004336f0)(4);
      puVar6 = PTR_PTR_00433708;
      puVar2 = PTR____concurrence_unlock_error_00433704;
      puVar1 = PTR___cxa_throw_004336fc;
                    /* try { // try from 00312c24 to 00312c2b has its CatchHandler @ 00312c38 */
      *puVar5 = PTR_vtable_004336ec + 8;
      (*(code *)puVar1)(puVar5,puVar6,puVar2);
LAB_00312c2c:
      (*(code *)PTR___throw_concurrence_lock_error_00433700)();
                    /* catch() { ... } // from try @ 00312c24 with catch @ 00312c38 */
      if (puVar6 == (undefined *)0xffffffff) {
        (*(code *)PTR___cxa_call_unexpected_0043370c)();
                    /* catch() { ... } // from try @ 00312be4 with catch @ 00312c50 */
        (*(code *)PTR_free_00436800)(*(undefined4 *)(param_3 + 4));
        (*(code *)PTR__locale_00433084)(unaff_s3);
        (*(code *)PTR_operator_delete_0043228c)(param_3);
        (*(code *)PTR____scoped_lock_00435dbc)(local_24);
      }
      iVar3 = (*(code *)PTR_FUN_00432258)();
      return iVar3;
    }
  }
  return param_3;
}

