
void FUN_00145828(void)

{
  long *plVar1;
  long *plVar2;
  int iVar3;
  void *pvVar4;
  ulong unaff_RBX;
  ulong uVar5;
  long lVar6;
  long unaff_RBP;
  
  __cxa_begin_catch();
                    /* try { // try from 00145830 to 00145834 has its CatchHandler @ 0014584c */
  __cxa_end_catch();
  pvVar4 = *(void **)(unaff_RBP + 8);
  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {
    plVar2 = *(long **)((long)pvVar4 + unaff_RBX * 8);
    if (plVar2 != (long *)0x0) {
      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {
        iVar3 = (int)plVar2[1];
        *(int *)(plVar2 + 1) = iVar3 + -1;
      }
      else {
        LOCK();
        plVar1 = plVar2 + 1;
        iVar3 = (int)*plVar1;
        *(int *)plVar1 = (int)*plVar1 + -1;
        UNLOCK();
      }
      if (iVar3 == 1) {
        (**(code **)(*plVar2 + 8))();
      }
      pvVar4 = *(void **)(unaff_RBP + 8);
    }
  }
  if (pvVar4 != (void *)0x0) {
    operator_delete__(pvVar4);
  }
  pvVar4 = *(void **)(unaff_RBP + 0x18);
  if (pvVar4 != (void *)0x0) {
    if (*(long *)(unaff_RBP + 0x10) != 0) {
      uVar5 = 0;
      do {
        plVar2 = *(long **)((long)pvVar4 + uVar5 * 8);
        if (plVar2 != (long *)0x0) {
          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {
            iVar3 = (int)plVar2[1];
            *(int *)(plVar2 + 1) = iVar3 + -1;
          }
          else {
            LOCK();
            plVar1 = plVar2 + 1;
            iVar3 = (int)*plVar1;
            *(int *)plVar1 = (int)*plVar1 + -1;
            UNLOCK();
          }
          if (iVar3 == 1) {
            (**(code **)(*plVar2 + 8))();
          }
          pvVar4 = *(void **)(unaff_RBP + 0x18);
        }
        uVar5 = uVar5 + 1;
      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));
      if (pvVar4 == (void *)0x0) goto LAB_0027916d;
    }
    operator_delete__(pvVar4);
  }
LAB_0027916d:
  pvVar4 = *(void **)(unaff_RBP + 0x20);
  lVar6 = 0;
  if (pvVar4 != (void *)0x0) {
    do {
      if (*(void **)((long)pvVar4 + lVar6) != (void *)0x0) {
        operator_delete__(*(void **)((long)pvVar4 + lVar6));
        pvVar4 = *(void **)(unaff_RBP + 0x20);
      }
      lVar6 = lVar6 + 8;
    } while (lVar6 != 0x60);
    if (pvVar4 != (void *)0x0) {
      operator_delete__(pvVar4);
      return;
    }
  }
  return;
}



void FUN_00145828(void)

{
  long *plVar1;
  long *plVar2;
  int iVar3;
  long lVar4;
  ulong unaff_RBX;
  ulong uVar5;
  long lVar6;
  long unaff_RBP;
  
  FUN_00276590();
                    /* try { // try from 00145830 to 00145834 has its CatchHandler @ 0014584c */
  FUN_00276600();
  lVar4 = *(long *)(unaff_RBP + 8);
  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {
    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);
    if (plVar2 != (long *)0x0) {
      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {
        iVar3 = (int)plVar2[1];
        *(int *)(plVar2 + 1) = iVar3 + -1;
      }
      else {
        LOCK();
        plVar1 = plVar2 + 1;
        iVar3 = (int)*plVar1;
        *(int *)plVar1 = (int)*plVar1 + -1;
        UNLOCK();
      }
      if (iVar3 == 1) {
        (**(code **)(*plVar2 + 8))();
      }
      lVar4 = *(long *)(unaff_RBP + 8);
    }
  }
  if (lVar4 != 0) {
    thunk_FUN_00276d20(lVar4);
  }
  lVar4 = *(long *)(unaff_RBP + 0x18);
  if (lVar4 != 0) {
    if (*(long *)(unaff_RBP + 0x10) != 0) {
      uVar5 = 0;
      do {
        plVar2 = *(long **)(lVar4 + uVar5 * 8);
        if (plVar2 != (long *)0x0) {
          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {
            iVar3 = (int)plVar2[1];
            *(int *)(plVar2 + 1) = iVar3 + -1;
          }
          else {
            LOCK();
            plVar1 = plVar2 + 1;
            iVar3 = (int)*plVar1;
            *(int *)plVar1 = (int)*plVar1 + -1;
            UNLOCK();
          }
          if (iVar3 == 1) {
            (**(code **)(*plVar2 + 8))();
          }
          lVar4 = *(long *)(unaff_RBP + 0x18);
        }
        uVar5 = uVar5 + 1;
      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));
      if (lVar4 == 0) goto LAB_0027916d;
    }
    thunk_FUN_00276d20(lVar4);
  }
LAB_0027916d:
  lVar4 = *(long *)(unaff_RBP + 0x20);
  lVar6 = 0;
  if (lVar4 != 0) {
    do {
      if (*(long *)(lVar4 + lVar6) != 0) {
        thunk_FUN_00276d20();
        lVar4 = *(long *)(unaff_RBP + 0x20);
      }
      lVar6 = lVar6 + 8;
    } while (lVar6 != 0x60);
    if (lVar4 != 0) {
      thunk_FUN_00276d20(lVar4);
      return;
    }
  }
  return;
}


MOV RDI,RAX
CALL 0x00276590
CALL 0x00276600
MOV RAX,qword ptr [RBP + 0x8]
JMP 0x002790b3
(translation_unit "void FUN_00145828(void)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  long lVar4;\n  ulong unaff_RBX;\n  ulong uVar5;\n  long lVar6;\n  long unaff_RBP;\n  \n  FUN_00276590();\n                    /* try { // try from 00145830 to 00145834 has its CatchHandler @ 0014584c */\n  FUN_00276600();\n  lVar4 = *(long *)(unaff_RBP + 8);\n  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }\n  if (lVar4 != 0) {\n    thunk_FUN_00276d20(lVar4);\n  }\n  lVar4 = *(long *)(unaff_RBP + 0x18);\n  if (lVar4 != 0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }\nLAB_0027916d:\n  lVar4 = *(long *)(unaff_RBP + 0x20);\n  lVar6 = 0;\n  if (lVar4 != 0) {\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00145828(void)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  long lVar4;\n  ulong unaff_RBX;\n  ulong uVar5;\n  long lVar6;\n  long unaff_RBP;\n  \n  FUN_00276590();\n                    /* try { // try from 00145830 to 00145834 has its CatchHandler @ 0014584c */\n  FUN_00276600();\n  lVar4 = *(long *)(unaff_RBP + 8);\n  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }\n  if (lVar4 != 0) {\n    thunk_FUN_00276d20(lVar4);\n  }\n  lVar4 = *(long *)(unaff_RBP + 0x18);\n  if (lVar4 != 0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }\nLAB_0027916d:\n  lVar4 = *(long *)(unaff_RBP + 0x20);\n  lVar6 = 0;\n  if (lVar4 != 0) {\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00145828(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  long lVar4;\n  ulong unaff_RBX;\n  ulong uVar5;\n  long lVar6;\n  long unaff_RBP;\n  \n  FUN_00276590();\n                    /* try { // try from 00145830 to 00145834 has its CatchHandler @ 0014584c */\n  FUN_00276600();\n  lVar4 = *(long *)(unaff_RBP + 8);\n  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }\n  if (lVar4 != 0) {\n    thunk_FUN_00276d20(lVar4);\n  }\n  lVar4 = *(long *)(unaff_RBP + 0x18);\n  if (lVar4 != 0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }\nLAB_0027916d:\n  lVar4 = *(long *)(unaff_RBP + 0x20);\n  lVar6 = 0;\n  if (lVar4 != 0) {\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong unaff_RBX;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "long unaff_RBP;" (sized_type_specifier "long" long) identifier ;) (expression_statement "FUN_00276590();" (call_expression "FUN_00276590()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "FUN_00276600();" (call_expression "FUN_00276600()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar4 = *(long *)(unaff_RBP + 8);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 8)" identifier = (pointer_expression "*(long *)(unaff_RBP + 8)" * (cast_expression "(long *)(unaff_RBP + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 8)" ( (binary_expression "unaff_RBP + 8" identifier + number_literal) ))))) ;) (while_statement "while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }" while (parenthesized_expression "(unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10))" ( (comma_expression "unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)" (assignment_expression "unaff_RBX = unaff_RBX + 1" identifier = (binary_expression "unaff_RBX + 1" identifier + number_literal)) , (binary_expression "unaff_RBX < *(ulong *)(unaff_RBP + 0x10)" identifier < (pointer_expression "*(ulong *)(unaff_RBP + 0x10)" * (cast_expression "(ulong *)(unaff_RBP + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x10)" ( (binary_expression "unaff_RBP + 0x10" identifier + number_literal) )))))) )) (compound_statement "{\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }" { (expression_statement "plVar2 = *(long **)(lVar4 + unaff_RBX * 8);" (assignment_expression "plVar2 = *(long **)(lVar4 + unaff_RBX * 8)" identifier = (pointer_expression "*(long **)(lVar4 + unaff_RBX * 8)" * (cast_expression "(long **)(lVar4 + unaff_RBX * 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + unaff_RBX * 8)" ( (binary_expression "lVar4 + unaff_RBX * 8" identifier + (binary_expression "unaff_RBX * 8" identifier * number_literal)) ))))) ;) (if_statement "if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }" if (parenthesized_expression "(plVar2 != (long *)0x0)" ( (binary_expression "plVar2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }" { (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }" { (expression_statement "iVar3 = (int)plVar2[1];" (assignment_expression "iVar3 = (int)plVar2[1]" identifier = (cast_expression "(int)plVar2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(plVar2 + 1) = iVar3 + -1;" (assignment_expression "*(int *)(plVar2 + 1) = iVar3 + -1" (pointer_expression "*(int *)(plVar2 + 1)" * (cast_expression "(int *)(plVar2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar1 = plVar2 + 1;" (assignment_expression "plVar1 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = (int)*plVar1;" (assignment_expression "iVar3 = (int)*plVar1" identifier = (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + -1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + -1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + -1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n        (**(code **)(*plVar2 + 8))();\n      }" { (expression_statement "(**(code **)(*plVar2 + 8))();" (call_expression "(**(code **)(*plVar2 + 8))()" (parenthesized_expression "(**(code **)(*plVar2 + 8))" ( (pointer_expression "**(code **)(*plVar2 + 8)" * (pointer_expression "*(code **)(*plVar2 + 8)" * (cast_expression "(code **)(*plVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 8)" ( (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "lVar4 = *(long *)(unaff_RBP + 8);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 8)" identifier = (pointer_expression "*(long *)(unaff_RBP + 8)" * (cast_expression "(long *)(unaff_RBP + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 8)" ( (binary_expression "unaff_RBP + 8" identifier + number_literal) ))))) ;) })) })) (if_statement "if (lVar4 != 0) {\n    thunk_FUN_00276d20(lVar4);\n  }" if (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    thunk_FUN_00276d20(lVar4);\n  }" { (expression_statement "thunk_FUN_00276d20(lVar4);" (call_expression "thunk_FUN_00276d20(lVar4)" identifier (argument_list "(lVar4)" ( identifier ))) ;) })) (expression_statement "lVar4 = *(long *)(unaff_RBP + 0x18);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 0x18)" identifier = (pointer_expression "*(long *)(unaff_RBP + 0x18)" * (cast_expression "(long *)(unaff_RBP + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x18)" ( (binary_expression "unaff_RBP + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (lVar4 != 0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }" if (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }" { (if_statement "if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }" if (parenthesized_expression "(*(long *)(unaff_RBP + 0x10) != 0)" ( (binary_expression "*(long *)(unaff_RBP + 0x10) != 0" (pointer_expression "*(long *)(unaff_RBP + 0x10)" * (cast_expression "(long *)(unaff_RBP + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x10)" ( (binary_expression "unaff_RBP + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));" do (compound_statement "{\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      }" { (expression_statement "plVar2 = *(long **)(lVar4 + uVar5 * 8);" (assignment_expression "plVar2 = *(long **)(lVar4 + uVar5 * 8)" identifier = (pointer_expression "*(long **)(lVar4 + uVar5 * 8)" * (cast_expression "(long **)(lVar4 + uVar5 * 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + uVar5 * 8)" ( (binary_expression "lVar4 + uVar5 * 8" identifier + (binary_expression "uVar5 * 8" identifier * number_literal)) ))))) ;) (if_statement "if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }" if (parenthesized_expression "(plVar2 != (long *)0x0)" ( (binary_expression "plVar2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }" { (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }" { (expression_statement "iVar3 = (int)plVar2[1];" (assignment_expression "iVar3 = (int)plVar2[1]" identifier = (cast_expression "(int)plVar2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(plVar2 + 1) = iVar3 + -1;" (assignment_expression "*(int *)(plVar2 + 1) = iVar3 + -1" (pointer_expression "*(int *)(plVar2 + 1)" * (cast_expression "(int *)(plVar2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar1 = plVar2 + 1;" (assignment_expression "plVar1 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = (int)*plVar1;" (assignment_expression "iVar3 = (int)*plVar1" identifier = (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + -1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + -1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + -1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n            (**(code **)(*plVar2 + 8))();\n          }" { (expression_statement "(**(code **)(*plVar2 + 8))();" (call_expression "(**(code **)(*plVar2 + 8))()" (parenthesized_expression "(**(code **)(*plVar2 + 8))" ( (pointer_expression "**(code **)(*plVar2 + 8)" * (pointer_expression "*(code **)(*plVar2 + 8)" * (cast_expression "(code **)(*plVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 8)" ( (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "lVar4 = *(long *)(unaff_RBP + 0x18);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 0x18)" identifier = (pointer_expression "*(long *)(unaff_RBP + 0x18)" * (cast_expression "(long *)(unaff_RBP + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x18)" ( (binary_expression "unaff_RBP + 0x18" identifier + number_literal) ))))) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < *(ulong *)(unaff_RBP + 0x10))" ( (binary_expression "uVar5 < *(ulong *)(unaff_RBP + 0x10)" identifier < (pointer_expression "*(ulong *)(unaff_RBP + 0x10)" * (cast_expression "(ulong *)(unaff_RBP + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x10)" ( (binary_expression "unaff_RBP + 0x10" identifier + number_literal) ))))) )) ;) (if_statement "if (lVar4 == 0) goto LAB_0027916d;" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0027916d;" goto statement_identifier ;)) })) (expression_statement "thunk_FUN_00276d20(lVar4);" (call_expression "thunk_FUN_00276d20(lVar4)" identifier (argument_list "(lVar4)" ( identifier ))) ;) })) (labeled_statement "LAB_0027916d:\n  lVar4 = *(long *)(unaff_RBP + 0x20);" statement_identifier : (expression_statement "lVar4 = *(long *)(unaff_RBP + 0x20);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 0x20)" identifier = (pointer_expression "*(long *)(unaff_RBP + 0x20)" * (cast_expression "(long *)(unaff_RBP + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x20)" ( (binary_expression "unaff_RBP + 0x20" identifier + number_literal) ))))) ;)) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (if_statement "if (lVar4 != 0) {\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }" if (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }" { (do_statement "do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);" do (compound_statement "{\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    }" { (if_statement "if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }" if (parenthesized_expression "(*(long *)(lVar4 + lVar6) != 0)" ( (binary_expression "*(long *)(lVar4 + lVar6) != 0" (pointer_expression "*(long *)(lVar4 + lVar6)" * (cast_expression "(long *)(lVar4 + lVar6)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + lVar6)" ( (binary_expression "lVar4 + lVar6" identifier + identifier) )))) != number_literal) )) (compound_statement "{\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }" { (expression_statement "thunk_FUN_00276d20();" (call_expression "thunk_FUN_00276d20()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar4 = *(long *)(unaff_RBP + 0x20);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 0x20)" identifier = (pointer_expression "*(long *)(unaff_RBP + 0x20)" * (cast_expression "(long *)(unaff_RBP + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x20)" ( (binary_expression "unaff_RBP + 0x20" identifier + number_literal) ))))) ;) })) (expression_statement "lVar6 = lVar6 + 8;" (assignment_expression "lVar6 = lVar6 + 8" identifier = (binary_expression "lVar6 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar6 != 0x60)" ( (binary_expression "lVar6 != 0x60" identifier != number_literal) )) ;) (if_statement "if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }" if (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }" { (expression_statement "thunk_FUN_00276d20(lVar4);" (call_expression "thunk_FUN_00276d20(lVar4)" identifier (argument_list "(lVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00145828(void)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  void *pvVar4;\n  ulong unaff_RBX;\n  ulong uVar5;\n  long lVar6;\n  long unaff_RBP;\n  \n  __cxa_begin_catch();\n                    /* try { // try from 00145830 to 00145834 has its CatchHandler @ 0014584c */\n  __cxa_end_catch();\n  pvVar4 = *(void **)(unaff_RBP + 8);\n  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)((long)pvVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      pvVar4 = *(void **)(unaff_RBP + 8);\n    }\n  }\n  if (pvVar4 != (void *)0x0) {\n    operator_delete__(pvVar4);\n  }\n  pvVar4 = *(void **)(unaff_RBP + 0x18);\n  if (pvVar4 != (void *)0x0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)((long)pvVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          pvVar4 = *(void **)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (pvVar4 == (void *)0x0) goto LAB_0027916d;\n    }\n    operator_delete__(pvVar4);\n  }\nLAB_0027916d:\n  pvVar4 = *(void **)(unaff_RBP + 0x20);\n  lVar6 = 0;\n  if (pvVar4 != (void *)0x0) {\n    do {\n      if (*(void **)((long)pvVar4 + lVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((long)pvVar4 + lVar6));\n        pvVar4 = *(void **)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00145828(void)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  void *pvVar4;\n  ulong unaff_RBX;\n  ulong uVar5;\n  long lVar6;\n  long unaff_RBP;\n  \n  __cxa_begin_catch();\n                    /* try { // try from 00145830 to 00145834 has its CatchHandler @ 0014584c */\n  __cxa_end_catch();\n  pvVar4 = *(void **)(unaff_RBP + 8);\n  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)((long)pvVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      pvVar4 = *(void **)(unaff_RBP + 8);\n    }\n  }\n  if (pvVar4 != (void *)0x0) {\n    operator_delete__(pvVar4);\n  }\n  pvVar4 = *(void **)(unaff_RBP + 0x18);\n  if (pvVar4 != (void *)0x0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)((long)pvVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          pvVar4 = *(void **)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (pvVar4 == (void *)0x0) goto LAB_0027916d;\n    }\n    operator_delete__(pvVar4);\n  }\nLAB_0027916d:\n  pvVar4 = *(void **)(unaff_RBP + 0x20);\n  lVar6 = 0;\n  if (pvVar4 != (void *)0x0) {\n    do {\n      if (*(void **)((long)pvVar4 + lVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((long)pvVar4 + lVar6));\n        pvVar4 = *(void **)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00145828(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  void *pvVar4;\n  ulong unaff_RBX;\n  ulong uVar5;\n  long lVar6;\n  long unaff_RBP;\n  \n  __cxa_begin_catch();\n                    /* try { // try from 00145830 to 00145834 has its CatchHandler @ 0014584c */\n  __cxa_end_catch();\n  pvVar4 = *(void **)(unaff_RBP + 8);\n  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)((long)pvVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      pvVar4 = *(void **)(unaff_RBP + 8);\n    }\n  }\n  if (pvVar4 != (void *)0x0) {\n    operator_delete__(pvVar4);\n  }\n  pvVar4 = *(void **)(unaff_RBP + 0x18);\n  if (pvVar4 != (void *)0x0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)((long)pvVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          pvVar4 = *(void **)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (pvVar4 == (void *)0x0) goto LAB_0027916d;\n    }\n    operator_delete__(pvVar4);\n  }\nLAB_0027916d:\n  pvVar4 = *(void **)(unaff_RBP + 0x20);\n  lVar6 = 0;\n  if (pvVar4 != (void *)0x0) {\n    do {\n      if (*(void **)((long)pvVar4 + lVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((long)pvVar4 + lVar6));\n        pvVar4 = *(void **)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n      return;\n    }\n  }\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "void *pvVar4;" primitive_type (pointer_declarator "*pvVar4" * identifier) ;) (declaration "ulong unaff_RBX;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "long unaff_RBP;" (sized_type_specifier "long" long) identifier ;) (expression_statement "__cxa_begin_catch();" (call_expression "__cxa_begin_catch()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "__cxa_end_catch();" (call_expression "__cxa_end_catch()" identifier (argument_list "()" ( ))) ;) (expression_statement "pvVar4 = *(void **)(unaff_RBP + 8);" (assignment_expression "pvVar4 = *(void **)(unaff_RBP + 8)" identifier = (pointer_expression "*(void **)(unaff_RBP + 8)" * (cast_expression "(void **)(unaff_RBP + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_RBP + 8)" ( (binary_expression "unaff_RBP + 8" identifier + number_literal) ))))) ;) (while_statement "while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)((long)pvVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      pvVar4 = *(void **)(unaff_RBP + 8);\n    }\n  }" while (parenthesized_expression "(unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10))" ( (comma_expression "unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)" (assignment_expression "unaff_RBX = unaff_RBX + 1" identifier = (binary_expression "unaff_RBX + 1" identifier + number_literal)) , (binary_expression "unaff_RBX < *(ulong *)(unaff_RBP + 0x10)" identifier < (pointer_expression "*(ulong *)(unaff_RBP + 0x10)" * (cast_expression "(ulong *)(unaff_RBP + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x10)" ( (binary_expression "unaff_RBP + 0x10" identifier + number_literal) )))))) )) (compound_statement "{\n    plVar2 = *(long **)((long)pvVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      pvVar4 = *(void **)(unaff_RBP + 8);\n    }\n  }" { (expression_statement "plVar2 = *(long **)((long)pvVar4 + unaff_RBX * 8);" (assignment_expression "plVar2 = *(long **)((long)pvVar4 + unaff_RBX * 8)" identifier = (pointer_expression "*(long **)((long)pvVar4 + unaff_RBX * 8)" * (cast_expression "(long **)((long)pvVar4 + unaff_RBX * 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)pvVar4 + unaff_RBX * 8)" ( (binary_expression "(long)pvVar4 + unaff_RBX * 8" (cast_expression "(long)pvVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "unaff_RBX * 8" identifier * number_literal)) ))))) ;) (if_statement "if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      pvVar4 = *(void **)(unaff_RBP + 8);\n    }" if (parenthesized_expression "(plVar2 != (long *)0x0)" ( (binary_expression "plVar2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      pvVar4 = *(void **)(unaff_RBP + 8);\n    }" { (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }" { (expression_statement "iVar3 = (int)plVar2[1];" (assignment_expression "iVar3 = (int)plVar2[1]" identifier = (cast_expression "(int)plVar2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(plVar2 + 1) = iVar3 + -1;" (assignment_expression "*(int *)(plVar2 + 1) = iVar3 + -1" (pointer_expression "*(int *)(plVar2 + 1)" * (cast_expression "(int *)(plVar2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar1 = plVar2 + 1;" (assignment_expression "plVar1 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = (int)*plVar1;" (assignment_expression "iVar3 = (int)*plVar1" identifier = (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + -1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + -1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + -1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n        (**(code **)(*plVar2 + 8))();\n      }" { (expression_statement "(**(code **)(*plVar2 + 8))();" (call_expression "(**(code **)(*plVar2 + 8))()" (parenthesized_expression "(**(code **)(*plVar2 + 8))" ( (pointer_expression "**(code **)(*plVar2 + 8)" * (pointer_expression "*(code **)(*plVar2 + 8)" * (cast_expression "(code **)(*plVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 8)" ( (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "pvVar4 = *(void **)(unaff_RBP + 8);" (assignment_expression "pvVar4 = *(void **)(unaff_RBP + 8)" identifier = (pointer_expression "*(void **)(unaff_RBP + 8)" * (cast_expression "(void **)(unaff_RBP + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_RBP + 8)" ( (binary_expression "unaff_RBP + 8" identifier + number_literal) ))))) ;) })) })) (if_statement "if (pvVar4 != (void *)0x0) {\n    operator_delete__(pvVar4);\n  }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    operator_delete__(pvVar4);\n  }" { (expression_statement "operator_delete__(pvVar4);" (call_expression "operator_delete__(pvVar4)" identifier (argument_list "(pvVar4)" ( identifier ))) ;) })) (expression_statement "pvVar4 = *(void **)(unaff_RBP + 0x18);" (assignment_expression "pvVar4 = *(void **)(unaff_RBP + 0x18)" identifier = (pointer_expression "*(void **)(unaff_RBP + 0x18)" * (cast_expression "(void **)(unaff_RBP + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_RBP + 0x18)" ( (binary_expression "unaff_RBP + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)((long)pvVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          pvVar4 = *(void **)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (pvVar4 == (void *)0x0) goto LAB_0027916d;\n    }\n    operator_delete__(pvVar4);\n  }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)((long)pvVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          pvVar4 = *(void **)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (pvVar4 == (void *)0x0) goto LAB_0027916d;\n    }\n    operator_delete__(pvVar4);\n  }" { (if_statement "if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)((long)pvVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          pvVar4 = *(void **)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (pvVar4 == (void *)0x0) goto LAB_0027916d;\n    }" if (parenthesized_expression "(*(long *)(unaff_RBP + 0x10) != 0)" ( (binary_expression "*(long *)(unaff_RBP + 0x10) != 0" (pointer_expression "*(long *)(unaff_RBP + 0x10)" * (cast_expression "(long *)(unaff_RBP + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x10)" ( (binary_expression "unaff_RBP + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)((long)pvVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          pvVar4 = *(void **)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (pvVar4 == (void *)0x0) goto LAB_0027916d;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        plVar2 = *(long **)((long)pvVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          pvVar4 = *(void **)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));" do (compound_statement "{\n        plVar2 = *(long **)((long)pvVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          pvVar4 = *(void **)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      }" { (expression_statement "plVar2 = *(long **)((long)pvVar4 + uVar5 * 8);" (assignment_expression "plVar2 = *(long **)((long)pvVar4 + uVar5 * 8)" identifier = (pointer_expression "*(long **)((long)pvVar4 + uVar5 * 8)" * (cast_expression "(long **)((long)pvVar4 + uVar5 * 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)pvVar4 + uVar5 * 8)" ( (binary_expression "(long)pvVar4 + uVar5 * 8" (cast_expression "(long)pvVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (binary_expression "uVar5 * 8" identifier * number_literal)) ))))) ;) (if_statement "if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          pvVar4 = *(void **)(unaff_RBP + 0x18);\n        }" if (parenthesized_expression "(plVar2 != (long *)0x0)" ( (binary_expression "plVar2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          pvVar4 = *(void **)(unaff_RBP + 0x18);\n        }" { (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }" { (expression_statement "iVar3 = (int)plVar2[1];" (assignment_expression "iVar3 = (int)plVar2[1]" identifier = (cast_expression "(int)plVar2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(plVar2 + 1) = iVar3 + -1;" (assignment_expression "*(int *)(plVar2 + 1) = iVar3 + -1" (pointer_expression "*(int *)(plVar2 + 1)" * (cast_expression "(int *)(plVar2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar1 = plVar2 + 1;" (assignment_expression "plVar1 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = (int)*plVar1;" (assignment_expression "iVar3 = (int)*plVar1" identifier = (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + -1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + -1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + -1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n            (**(code **)(*plVar2 + 8))();\n          }" { (expression_statement "(**(code **)(*plVar2 + 8))();" (call_expression "(**(code **)(*plVar2 + 8))()" (parenthesized_expression "(**(code **)(*plVar2 + 8))" ( (pointer_expression "**(code **)(*plVar2 + 8)" * (pointer_expression "*(code **)(*plVar2 + 8)" * (cast_expression "(code **)(*plVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 8)" ( (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "pvVar4 = *(void **)(unaff_RBP + 0x18);" (assignment_expression "pvVar4 = *(void **)(unaff_RBP + 0x18)" identifier = (pointer_expression "*(void **)(unaff_RBP + 0x18)" * (cast_expression "(void **)(unaff_RBP + 0x18)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_RBP + 0x18)" ( (binary_expression "unaff_RBP + 0x18" identifier + number_literal) ))))) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < *(ulong *)(unaff_RBP + 0x10))" ( (binary_expression "uVar5 < *(ulong *)(unaff_RBP + 0x10)" identifier < (pointer_expression "*(ulong *)(unaff_RBP + 0x10)" * (cast_expression "(ulong *)(unaff_RBP + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x10)" ( (binary_expression "unaff_RBP + 0x10" identifier + number_literal) ))))) )) ;) (if_statement "if (pvVar4 == (void *)0x0) goto LAB_0027916d;" if (parenthesized_expression "(pvVar4 == (void *)0x0)" ( (binary_expression "pvVar4 == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0027916d;" goto statement_identifier ;)) })) (expression_statement "operator_delete__(pvVar4);" (call_expression "operator_delete__(pvVar4)" identifier (argument_list "(pvVar4)" ( identifier ))) ;) })) (labeled_statement "LAB_0027916d:\n  pvVar4 = *(void **)(unaff_RBP + 0x20);" statement_identifier : (expression_statement "pvVar4 = *(void **)(unaff_RBP + 0x20);" (assignment_expression "pvVar4 = *(void **)(unaff_RBP + 0x20)" identifier = (pointer_expression "*(void **)(unaff_RBP + 0x20)" * (cast_expression "(void **)(unaff_RBP + 0x20)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_RBP + 0x20)" ( (binary_expression "unaff_RBP + 0x20" identifier + number_literal) ))))) ;)) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n    do {\n      if (*(void **)((long)pvVar4 + lVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((long)pvVar4 + lVar6));\n        pvVar4 = *(void **)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n      return;\n    }\n  }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if (*(void **)((long)pvVar4 + lVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((long)pvVar4 + lVar6));\n        pvVar4 = *(void **)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n      return;\n    }\n  }" { (do_statement "do {\n      if (*(void **)((long)pvVar4 + lVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((long)pvVar4 + lVar6));\n        pvVar4 = *(void **)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);" do (compound_statement "{\n      if (*(void **)((long)pvVar4 + lVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((long)pvVar4 + lVar6));\n        pvVar4 = *(void **)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    }" { (if_statement "if (*(void **)((long)pvVar4 + lVar6) != (void *)0x0) {\n        operator_delete__(*(void **)((long)pvVar4 + lVar6));\n        pvVar4 = *(void **)(unaff_RBP + 0x20);\n      }" if (parenthesized_expression "(*(void **)((long)pvVar4 + lVar6) != (void *)0x0)" ( (binary_expression "*(void **)((long)pvVar4 + lVar6) != (void *)0x0" (pointer_expression "*(void **)((long)pvVar4 + lVar6)" * (cast_expression "(void **)((long)pvVar4 + lVar6)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)pvVar4 + lVar6)" ( (binary_expression "(long)pvVar4 + lVar6" (cast_expression "(long)pvVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        operator_delete__(*(void **)((long)pvVar4 + lVar6));\n        pvVar4 = *(void **)(unaff_RBP + 0x20);\n      }" { (expression_statement "operator_delete__(*(void **)((long)pvVar4 + lVar6));" (call_expression "operator_delete__(*(void **)((long)pvVar4 + lVar6))" identifier (argument_list "(*(void **)((long)pvVar4 + lVar6))" ( (pointer_expression "*(void **)((long)pvVar4 + lVar6)" * (cast_expression "(void **)((long)pvVar4 + lVar6)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)pvVar4 + lVar6)" ( (binary_expression "(long)pvVar4 + lVar6" (cast_expression "(long)pvVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + identifier) )))) ))) ;) (expression_statement "pvVar4 = *(void **)(unaff_RBP + 0x20);" (assignment_expression "pvVar4 = *(void **)(unaff_RBP + 0x20)" identifier = (pointer_expression "*(void **)(unaff_RBP + 0x20)" * (cast_expression "(void **)(unaff_RBP + 0x20)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(unaff_RBP + 0x20)" ( (binary_expression "unaff_RBP + 0x20" identifier + number_literal) ))))) ;) })) (expression_statement "lVar6 = lVar6 + 8;" (assignment_expression "lVar6 = lVar6 + 8" identifier = (binary_expression "lVar6 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar6 != 0x60)" ( (binary_expression "lVar6 != 0x60" identifier != number_literal) )) ;) (if_statement "if (pvVar4 != (void *)0x0) {\n      operator_delete__(pvVar4);\n      return;\n    }" if (parenthesized_expression "(pvVar4 != (void *)0x0)" ( (binary_expression "pvVar4 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      operator_delete__(pvVar4);\n      return;\n    }" { (expression_statement "operator_delete__(pvVar4);" (call_expression "operator_delete__(pvVar4)" identifier (argument_list "(pvVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00145828(void)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  long lVar4;\n  ulong unaff_RBX;\n  ulong uVar5;\n  long lVar6;\n  long unaff_RBP;\n  \n  FUN_00276590();\n                    \n  FUN_00276600();\n  lVar4 = *(long *)(unaff_RBP + 8);\n  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }\n  if (lVar4 != 0) {\n    thunk_FUN_00276d20(lVar4);\n  }\n  lVar4 = *(long *)(unaff_RBP + 0x18);\n  if (lVar4 != 0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }\nLAB_0027916d:\n  lVar4 = *(long *)(unaff_RBP + 0x20);\n  lVar6 = 0;\n  if (lVar4 != 0) {\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00145828(void)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  long lVar4;\n  ulong unaff_RBX;\n  ulong uVar5;\n  long lVar6;\n  long unaff_RBP;\n  \n  FUN_00276590();\n                    \n  FUN_00276600();\n  lVar4 = *(long *)(unaff_RBP + 8);\n  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }\n  if (lVar4 != 0) {\n    thunk_FUN_00276d20(lVar4);\n  }\n  lVar4 = *(long *)(unaff_RBP + 0x18);\n  if (lVar4 != 0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }\nLAB_0027916d:\n  lVar4 = *(long *)(unaff_RBP + 0x20);\n  lVar6 = 0;\n  if (lVar4 != 0) {\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00145828(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  long lVar4;\n  ulong unaff_RBX;\n  ulong uVar5;\n  long lVar6;\n  long unaff_RBP;\n  \n  FUN_00276590();\n                    \n  FUN_00276600();\n  lVar4 = *(long *)(unaff_RBP + 8);\n  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }\n  if (lVar4 != 0) {\n    thunk_FUN_00276d20(lVar4);\n  }\n  lVar4 = *(long *)(unaff_RBP + 0x18);\n  if (lVar4 != 0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }\nLAB_0027916d:\n  lVar4 = *(long *)(unaff_RBP + 0x20);\n  lVar6 = 0;\n  if (lVar4 != 0) {\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong unaff_RBX;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "long unaff_RBP;" (sized_type_specifier "long" long) identifier ;) (expression_statement "FUN_00276590();" (call_expression "FUN_00276590()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_00276600();" (call_expression "FUN_00276600()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar4 = *(long *)(unaff_RBP + 8);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 8)" identifier = (pointer_expression "*(long *)(unaff_RBP + 8)" * (cast_expression "(long *)(unaff_RBP + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 8)" ( (binary_expression "unaff_RBP + 8" identifier + number_literal) ))))) ;) (while_statement "while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }" while (parenthesized_expression "(unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10))" ( (comma_expression "unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)" (assignment_expression "unaff_RBX = unaff_RBX + 1" identifier = (binary_expression "unaff_RBX + 1" identifier + number_literal)) , (binary_expression "unaff_RBX < *(ulong *)(unaff_RBP + 0x10)" identifier < (pointer_expression "*(ulong *)(unaff_RBP + 0x10)" * (cast_expression "(ulong *)(unaff_RBP + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x10)" ( (binary_expression "unaff_RBP + 0x10" identifier + number_literal) )))))) )) (compound_statement "{\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }" { (expression_statement "plVar2 = *(long **)(lVar4 + unaff_RBX * 8);" (assignment_expression "plVar2 = *(long **)(lVar4 + unaff_RBX * 8)" identifier = (pointer_expression "*(long **)(lVar4 + unaff_RBX * 8)" * (cast_expression "(long **)(lVar4 + unaff_RBX * 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + unaff_RBX * 8)" ( (binary_expression "lVar4 + unaff_RBX * 8" identifier + (binary_expression "unaff_RBX * 8" identifier * number_literal)) ))))) ;) (if_statement "if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }" if (parenthesized_expression "(plVar2 != (long *)0x0)" ( (binary_expression "plVar2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }" { (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }" if (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }" { (expression_statement "iVar3 = (int)plVar2[1];" (assignment_expression "iVar3 = (int)plVar2[1]" identifier = (cast_expression "(int)plVar2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(plVar2 + 1) = iVar3 + -1;" (assignment_expression "*(int *)(plVar2 + 1) = iVar3 + -1" (pointer_expression "*(int *)(plVar2 + 1)" * (cast_expression "(int *)(plVar2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }" else (compound_statement "{\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar1 = plVar2 + 1;" (assignment_expression "plVar1 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = (int)*plVar1;" (assignment_expression "iVar3 = (int)*plVar1" identifier = (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + -1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + -1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + -1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n        (**(code **)(*plVar2 + 8))();\n      }" { (expression_statement "(**(code **)(*plVar2 + 8))();" (call_expression "(**(code **)(*plVar2 + 8))()" (parenthesized_expression "(**(code **)(*plVar2 + 8))" ( (pointer_expression "**(code **)(*plVar2 + 8)" * (pointer_expression "*(code **)(*plVar2 + 8)" * (cast_expression "(code **)(*plVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 8)" ( (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "lVar4 = *(long *)(unaff_RBP + 8);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 8)" identifier = (pointer_expression "*(long *)(unaff_RBP + 8)" * (cast_expression "(long *)(unaff_RBP + 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 8)" ( (binary_expression "unaff_RBP + 8" identifier + number_literal) ))))) ;) })) })) (if_statement "if (lVar4 != 0) {\n    thunk_FUN_00276d20(lVar4);\n  }" if (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    thunk_FUN_00276d20(lVar4);\n  }" { (expression_statement "thunk_FUN_00276d20(lVar4);" (call_expression "thunk_FUN_00276d20(lVar4)" identifier (argument_list "(lVar4)" ( identifier ))) ;) })) (expression_statement "lVar4 = *(long *)(unaff_RBP + 0x18);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 0x18)" identifier = (pointer_expression "*(long *)(unaff_RBP + 0x18)" * (cast_expression "(long *)(unaff_RBP + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x18)" ( (binary_expression "unaff_RBP + 0x18" identifier + number_literal) ))))) ;) (if_statement "if (lVar4 != 0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }" if (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }" { (if_statement "if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }" if (parenthesized_expression "(*(long *)(unaff_RBP + 0x10) != 0)" ( (binary_expression "*(long *)(unaff_RBP + 0x10) != 0" (pointer_expression "*(long *)(unaff_RBP + 0x10)" * (cast_expression "(long *)(unaff_RBP + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x10)" ( (binary_expression "unaff_RBP + 0x10" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }" { (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));" do (compound_statement "{\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      }" { (expression_statement "plVar2 = *(long **)(lVar4 + uVar5 * 8);" (assignment_expression "plVar2 = *(long **)(lVar4 + uVar5 * 8)" identifier = (pointer_expression "*(long **)(lVar4 + uVar5 * 8)" * (cast_expression "(long **)(lVar4 + uVar5 * 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar4 + uVar5 * 8)" ( (binary_expression "lVar4 + uVar5 * 8" identifier + (binary_expression "uVar5 * 8" identifier * number_literal)) ))))) ;) (if_statement "if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }" if (parenthesized_expression "(plVar2 != (long *)0x0)" ( (binary_expression "plVar2 != (long *)0x0" identifier != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }" { (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }" if (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }" { (expression_statement "iVar3 = (int)plVar2[1];" (assignment_expression "iVar3 = (int)plVar2[1]" identifier = (cast_expression "(int)plVar2[1]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "plVar2[1]" identifier [ number_literal ]))) ;) (expression_statement "*(int *)(plVar2 + 1) = iVar3 + -1;" (assignment_expression "*(int *)(plVar2 + 1) = iVar3 + -1" (pointer_expression "*(int *)(plVar2 + 1)" * (cast_expression "(int *)(plVar2 + 1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" identifier + number_literal) )))) = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) }) (else_clause "else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }" else (compound_statement "{\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }" { (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "plVar1 = plVar2 + 1;" (assignment_expression "plVar1 = plVar2 + 1" identifier = (binary_expression "plVar2 + 1" identifier + number_literal)) ;) (expression_statement "iVar3 = (int)*plVar1;" (assignment_expression "iVar3 = (int)*plVar1" identifier = (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier))) ;) (expression_statement "*(int *)plVar1 = (int)*plVar1 + -1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + -1" (pointer_expression "*(int *)plVar1" * (cast_expression "(int *)plVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "(int)*plVar1 + -1" (cast_expression "(int)*plVar1" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*plVar1" * identifier)) + number_literal)) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) }))) (if_statement "if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }" if (parenthesized_expression "(iVar3 == 1)" ( (binary_expression "iVar3 == 1" identifier == number_literal) )) (compound_statement "{\n            (**(code **)(*plVar2 + 8))();\n          }" { (expression_statement "(**(code **)(*plVar2 + 8))();" (call_expression "(**(code **)(*plVar2 + 8))()" (parenthesized_expression "(**(code **)(*plVar2 + 8))" ( (pointer_expression "**(code **)(*plVar2 + 8)" * (pointer_expression "*(code **)(*plVar2 + 8)" * (cast_expression "(code **)(*plVar2 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*plVar2 + 8)" ( (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" * identifier) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (expression_statement "lVar4 = *(long *)(unaff_RBP + 0x18);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 0x18)" identifier = (pointer_expression "*(long *)(unaff_RBP + 0x18)" * (cast_expression "(long *)(unaff_RBP + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x18)" ( (binary_expression "unaff_RBP + 0x18" identifier + number_literal) ))))) ;) })) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < *(ulong *)(unaff_RBP + 0x10))" ( (binary_expression "uVar5 < *(ulong *)(unaff_RBP + 0x10)" identifier < (pointer_expression "*(ulong *)(unaff_RBP + 0x10)" * (cast_expression "(ulong *)(unaff_RBP + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x10)" ( (binary_expression "unaff_RBP + 0x10" identifier + number_literal) ))))) )) ;) (if_statement "if (lVar4 == 0) goto LAB_0027916d;" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0027916d;" goto statement_identifier ;)) })) (expression_statement "thunk_FUN_00276d20(lVar4);" (call_expression "thunk_FUN_00276d20(lVar4)" identifier (argument_list "(lVar4)" ( identifier ))) ;) })) (labeled_statement "LAB_0027916d:\n  lVar4 = *(long *)(unaff_RBP + 0x20);" statement_identifier : (expression_statement "lVar4 = *(long *)(unaff_RBP + 0x20);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 0x20)" identifier = (pointer_expression "*(long *)(unaff_RBP + 0x20)" * (cast_expression "(long *)(unaff_RBP + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x20)" ( (binary_expression "unaff_RBP + 0x20" identifier + number_literal) ))))) ;)) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (if_statement "if (lVar4 != 0) {\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }" if (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }" { (do_statement "do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);" do (compound_statement "{\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    }" { (if_statement "if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }" if (parenthesized_expression "(*(long *)(lVar4 + lVar6) != 0)" ( (binary_expression "*(long *)(lVar4 + lVar6) != 0" (pointer_expression "*(long *)(lVar4 + lVar6)" * (cast_expression "(long *)(lVar4 + lVar6)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + lVar6)" ( (binary_expression "lVar4 + lVar6" identifier + identifier) )))) != number_literal) )) (compound_statement "{\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }" { (expression_statement "thunk_FUN_00276d20();" (call_expression "thunk_FUN_00276d20()" identifier (argument_list "()" ( ))) ;) (expression_statement "lVar4 = *(long *)(unaff_RBP + 0x20);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 0x20)" identifier = (pointer_expression "*(long *)(unaff_RBP + 0x20)" * (cast_expression "(long *)(unaff_RBP + 0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_RBP + 0x20)" ( (binary_expression "unaff_RBP + 0x20" identifier + number_literal) ))))) ;) })) (expression_statement "lVar6 = lVar6 + 8;" (assignment_expression "lVar6 = lVar6 + 8" identifier = (binary_expression "lVar6 + 8" identifier + number_literal)) ;) }) while (parenthesized_expression "(lVar6 != 0x60)" ( (binary_expression "lVar6 != 0x60" identifier != number_literal) )) ;) (if_statement "if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }" if (parenthesized_expression "(lVar4 != 0)" ( (binary_expression "lVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }" { (expression_statement "thunk_FUN_00276d20(lVar4);" (call_expression "thunk_FUN_00276d20(lVar4)" identifier (argument_list "(lVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * IDENT)) + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_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) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })) })) (return_statement return ;) })))
(function_definition "void FUN_00145828(void)\n\n{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  long lVar4;\n  ulong unaff_RBX;\n  ulong uVar5;\n  long lVar6;\n  long unaff_RBP;\n  \n  FUN_00276590();\n                    \n  FUN_00276600();\n  lVar4 = *(long *)(unaff_RBP + 8);\n  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }\n  if (lVar4 != 0) {\n    thunk_FUN_00276d20(lVar4);\n  }\n  lVar4 = *(long *)(unaff_RBP + 0x18);\n  if (lVar4 != 0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }\nLAB_0027916d:\n  lVar4 = *(long *)(unaff_RBP + 0x20);\n  lVar6 = 0;\n  if (lVar4 != 0) {\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00145828(void)" (identifier "FUN_00145828") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  int iVar3;\n  long lVar4;\n  ulong unaff_RBX;\n  ulong uVar5;\n  long lVar6;\n  long unaff_RBP;\n  \n  FUN_00276590();\n                    \n  FUN_00276600();\n  lVar4 = *(long *)(unaff_RBP + 8);\n  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }\n  if (lVar4 != 0) {\n    thunk_FUN_00276d20(lVar4);\n  }\n  lVar4 = *(long *)(unaff_RBP + 0x18);\n  if (lVar4 != 0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }\nLAB_0027916d:\n  lVar4 = *(long *)(unaff_RBP + 0x20);\n  lVar6 = 0;\n  if (lVar4 != 0) {\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "ulong unaff_RBX;" (type_identifier "ulong") (identifier "unaff_RBX") (; ";")) (declaration "ulong uVar5;" (type_identifier "ulong") (identifier "uVar5") (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (declaration "long unaff_RBP;" (sized_type_specifier "long" (long "long")) (identifier "unaff_RBP") (; ";")) (expression_statement "FUN_00276590();" (call_expression "FUN_00276590()" (identifier "FUN_00276590") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_00276600();" (call_expression "FUN_00276600()" (identifier "FUN_00276600") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "lVar4 = *(long *)(unaff_RBP + 8);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 8)" (identifier "lVar4") (= "=") (pointer_expression "*(long *)(unaff_RBP + 8)" (* "*") (cast_expression "(long *)(unaff_RBP + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBP + 8)" (( "(") (binary_expression "unaff_RBP + 8" (identifier "unaff_RBP") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (while_statement "while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }" (while "while") (parenthesized_expression "(unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10))" (( "(") (comma_expression "unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)" (assignment_expression "unaff_RBX = unaff_RBX + 1" (identifier "unaff_RBX") (= "=") (binary_expression "unaff_RBX + 1" (identifier "unaff_RBX") (+ "+") (number_literal "1"))) (, ",") (binary_expression "unaff_RBX < *(ulong *)(unaff_RBP + 0x10)" (identifier "unaff_RBX") (< "<") (pointer_expression "*(ulong *)(unaff_RBP + 0x10)" (* "*") (cast_expression "(ulong *)(unaff_RBP + 0x10)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBP + 0x10)" (( "(") (binary_expression "unaff_RBP + 0x10" (identifier "unaff_RBP") (+ "+") (number_literal "0x10")) () ")")))))) () ")")) (compound_statement "{\n    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);\n    if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }\n  }" ({ "{") (expression_statement "plVar2 = *(long **)(lVar4 + unaff_RBX * 8);" (assignment_expression "plVar2 = *(long **)(lVar4 + unaff_RBX * 8)" (identifier "plVar2") (= "=") (pointer_expression "*(long **)(lVar4 + unaff_RBX * 8)" (* "*") (cast_expression "(long **)(lVar4 + unaff_RBX * 8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar4 + unaff_RBX * 8)" (( "(") (binary_expression "lVar4 + unaff_RBX * 8" (identifier "lVar4") (+ "+") (binary_expression "unaff_RBX * 8" (identifier "unaff_RBX") (* "*") (number_literal "8"))) () ")"))))) (; ";")) (if_statement "if (plVar2 != (long *)0x0) {\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }" (if "if") (parenthesized_expression "(plVar2 != (long *)0x0)" (( "(") (binary_expression "plVar2 != (long *)0x0" (identifier "plVar2") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }\n      if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }\n      lVar4 = *(long *)(unaff_RBP + 8);\n    }" ({ "{") (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }\n      else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" (identifier "PTR___pthread_key_create_003bdee8") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        iVar3 = (int)plVar2[1];\n        *(int *)(plVar2 + 1) = iVar3 + -1;\n      }" ({ "{") (expression_statement "iVar3 = (int)plVar2[1];" (assignment_expression "iVar3 = (int)plVar2[1]" (identifier "iVar3") (= "=") (cast_expression "(int)plVar2[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "*(int *)(plVar2 + 1) = iVar3 + -1;" (assignment_expression "*(int *)(plVar2 + 1) = iVar3 + -1" (pointer_expression "*(int *)(plVar2 + 1)" (* "*") (cast_expression "(int *)(plVar2 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar2 + 1)" (( "(") (binary_expression "plVar2 + 1" (identifier "plVar2") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }" (else "else") (compound_statement "{\n        LOCK();\n        plVar1 = plVar2 + 1;\n        iVar3 = (int)*plVar1;\n        *(int *)plVar1 = (int)*plVar1 + -1;\n        UNLOCK();\n      }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "plVar1 = plVar2 + 1;" (assignment_expression "plVar1 = plVar2 + 1" (identifier "plVar1") (= "=") (binary_expression "plVar2 + 1" (identifier "plVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = (int)*plVar1;" (assignment_expression "iVar3 = (int)*plVar1" (identifier "iVar3") (= "=") (cast_expression "(int)*plVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*plVar1" (* "*") (identifier "plVar1")))) (; ";")) (expression_statement "*(int *)plVar1 = (int)*plVar1 + -1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + -1" (pointer_expression "*(int *)plVar1" (* "*") (cast_expression "(int *)plVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "plVar1"))) (= "=") (binary_expression "(int)*plVar1 + -1" (cast_expression "(int)*plVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*plVar1" (* "*") (identifier "plVar1"))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar3 == 1) {\n        (**(code **)(*plVar2 + 8))();\n      }" (if "if") (parenthesized_expression "(iVar3 == 1)" (( "(") (binary_expression "iVar3 == 1" (identifier "iVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n        (**(code **)(*plVar2 + 8))();\n      }" ({ "{") (expression_statement "(**(code **)(*plVar2 + 8))();" (call_expression "(**(code **)(*plVar2 + 8))()" (parenthesized_expression "(**(code **)(*plVar2 + 8))" (( "(") (pointer_expression "**(code **)(*plVar2 + 8)" (* "*") (pointer_expression "*(code **)(*plVar2 + 8)" (* "*") (cast_expression "(code **)(*plVar2 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar2 + 8)" (( "(") (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "lVar4 = *(long *)(unaff_RBP + 8);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 8)" (identifier "lVar4") (= "=") (pointer_expression "*(long *)(unaff_RBP + 8)" (* "*") (cast_expression "(long *)(unaff_RBP + 8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBP + 8)" (( "(") (binary_expression "unaff_RBP + 8" (identifier "unaff_RBP") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (lVar4 != 0) {\n    thunk_FUN_00276d20(lVar4);\n  }" (if "if") (parenthesized_expression "(lVar4 != 0)" (( "(") (binary_expression "lVar4 != 0" (identifier "lVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    thunk_FUN_00276d20(lVar4);\n  }" ({ "{") (expression_statement "thunk_FUN_00276d20(lVar4);" (call_expression "thunk_FUN_00276d20(lVar4)" (identifier "thunk_FUN_00276d20") (argument_list "(lVar4)" (( "(") (identifier "lVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "lVar4 = *(long *)(unaff_RBP + 0x18);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 0x18)" (identifier "lVar4") (= "=") (pointer_expression "*(long *)(unaff_RBP + 0x18)" (* "*") (cast_expression "(long *)(unaff_RBP + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBP + 0x18)" (( "(") (binary_expression "unaff_RBP + 0x18" (identifier "unaff_RBP") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if (lVar4 != 0) {\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }" (if "if") (parenthesized_expression "(lVar4 != 0)" (( "(") (binary_expression "lVar4 != 0" (identifier "lVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }\n    thunk_FUN_00276d20(lVar4);\n  }" ({ "{") (if_statement "if (*(long *)(unaff_RBP + 0x10) != 0) {\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }" (if "if") (parenthesized_expression "(*(long *)(unaff_RBP + 0x10) != 0)" (( "(") (binary_expression "*(long *)(unaff_RBP + 0x10) != 0" (pointer_expression "*(long *)(unaff_RBP + 0x10)" (* "*") (cast_expression "(long *)(unaff_RBP + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBP + 0x10)" (( "(") (binary_expression "unaff_RBP + 0x10" (identifier "unaff_RBP") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      uVar5 = 0;\n      do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));\n      if (lVar4 == 0) goto LAB_0027916d;\n    }" ({ "{") (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));" (do "do") (compound_statement "{\n        plVar2 = *(long **)(lVar4 + uVar5 * 8);\n        if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }\n        uVar5 = uVar5 + 1;\n      }" ({ "{") (expression_statement "plVar2 = *(long **)(lVar4 + uVar5 * 8);" (assignment_expression "plVar2 = *(long **)(lVar4 + uVar5 * 8)" (identifier "plVar2") (= "=") (pointer_expression "*(long **)(lVar4 + uVar5 * 8)" (* "*") (cast_expression "(long **)(lVar4 + uVar5 * 8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar4 + uVar5 * 8)" (( "(") (binary_expression "lVar4 + uVar5 * 8" (identifier "lVar4") (+ "+") (binary_expression "uVar5 * 8" (identifier "uVar5") (* "*") (number_literal "8"))) () ")"))))) (; ";")) (if_statement "if (plVar2 != (long *)0x0) {\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }" (if "if") (parenthesized_expression "(plVar2 != (long *)0x0)" (( "(") (binary_expression "plVar2 != (long *)0x0" (identifier "plVar2") (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }\n          if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }\n          lVar4 = *(long *)(unaff_RBP + 0x18);\n        }" ({ "{") (if_statement "if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }\n          else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_003bdee8 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_003bdee8 == (undefined *)0x0" (identifier "PTR___pthread_key_create_003bdee8") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n            iVar3 = (int)plVar2[1];\n            *(int *)(plVar2 + 1) = iVar3 + -1;\n          }" ({ "{") (expression_statement "iVar3 = (int)plVar2[1];" (assignment_expression "iVar3 = (int)plVar2[1]" (identifier "iVar3") (= "=") (cast_expression "(int)plVar2[1]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]")))) (; ";")) (expression_statement "*(int *)(plVar2 + 1) = iVar3 + -1;" (assignment_expression "*(int *)(plVar2 + 1) = iVar3 + -1" (pointer_expression "*(int *)(plVar2 + 1)" (* "*") (cast_expression "(int *)(plVar2 + 1)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar2 + 1)" (( "(") (binary_expression "plVar2 + 1" (identifier "plVar2") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (else_clause "else {\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }" (else "else") (compound_statement "{\n            LOCK();\n            plVar1 = plVar2 + 1;\n            iVar3 = (int)*plVar1;\n            *(int *)plVar1 = (int)*plVar1 + -1;\n            UNLOCK();\n          }" ({ "{") (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "plVar1 = plVar2 + 1;" (assignment_expression "plVar1 = plVar2 + 1" (identifier "plVar1") (= "=") (binary_expression "plVar2 + 1" (identifier "plVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = (int)*plVar1;" (assignment_expression "iVar3 = (int)*plVar1" (identifier "iVar3") (= "=") (cast_expression "(int)*plVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*plVar1" (* "*") (identifier "plVar1")))) (; ";")) (expression_statement "*(int *)plVar1 = (int)*plVar1 + -1;" (assignment_expression "*(int *)plVar1 = (int)*plVar1 + -1" (pointer_expression "*(int *)plVar1" (* "*") (cast_expression "(int *)plVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "plVar1"))) (= "=") (binary_expression "(int)*plVar1 + -1" (cast_expression "(int)*plVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*plVar1" (* "*") (identifier "plVar1"))) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (if_statement "if (iVar3 == 1) {\n            (**(code **)(*plVar2 + 8))();\n          }" (if "if") (parenthesized_expression "(iVar3 == 1)" (( "(") (binary_expression "iVar3 == 1" (identifier "iVar3") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            (**(code **)(*plVar2 + 8))();\n          }" ({ "{") (expression_statement "(**(code **)(*plVar2 + 8))();" (call_expression "(**(code **)(*plVar2 + 8))()" (parenthesized_expression "(**(code **)(*plVar2 + 8))" (( "(") (pointer_expression "**(code **)(*plVar2 + 8)" (* "*") (pointer_expression "*(code **)(*plVar2 + 8)" (* "*") (cast_expression "(code **)(*plVar2 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*plVar2 + 8)" (( "(") (binary_expression "*plVar2 + 8" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "lVar4 = *(long *)(unaff_RBP + 0x18);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 0x18)" (identifier "lVar4") (= "=") (pointer_expression "*(long *)(unaff_RBP + 0x18)" (* "*") (cast_expression "(long *)(unaff_RBP + 0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBP + 0x18)" (( "(") (binary_expression "unaff_RBP + 0x18" (identifier "unaff_RBP") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (} "}"))) (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 < *(ulong *)(unaff_RBP + 0x10))" (( "(") (binary_expression "uVar5 < *(ulong *)(unaff_RBP + 0x10)" (identifier "uVar5") (< "<") (pointer_expression "*(ulong *)(unaff_RBP + 0x10)" (* "*") (cast_expression "(ulong *)(unaff_RBP + 0x10)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBP + 0x10)" (( "(") (binary_expression "unaff_RBP + 0x10" (identifier "unaff_RBP") (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (; ";")) (if_statement "if (lVar4 == 0) goto LAB_0027916d;" (if "if") (parenthesized_expression "(lVar4 == 0)" (( "(") (binary_expression "lVar4 == 0" (identifier "lVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0027916d;" (goto "goto") (statement_identifier "LAB_0027916d") (; ";"))) (} "}"))) (expression_statement "thunk_FUN_00276d20(lVar4);" (call_expression "thunk_FUN_00276d20(lVar4)" (identifier "thunk_FUN_00276d20") (argument_list "(lVar4)" (( "(") (identifier "lVar4") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_0027916d:\n  lVar4 = *(long *)(unaff_RBP + 0x20);" (statement_identifier "LAB_0027916d") (: ":") (expression_statement "lVar4 = *(long *)(unaff_RBP + 0x20);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 0x20)" (identifier "lVar4") (= "=") (pointer_expression "*(long *)(unaff_RBP + 0x20)" (* "*") (cast_expression "(long *)(unaff_RBP + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBP + 0x20)" (( "(") (binary_expression "unaff_RBP + 0x20" (identifier "unaff_RBP") (+ "+") (number_literal "0x20")) () ")"))))) (; ";"))) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" (identifier "lVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (lVar4 != 0) {\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(lVar4 != 0)" (( "(") (binary_expression "lVar4 != 0" (identifier "lVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);\n    if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }\n  }" ({ "{") (do_statement "do {\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    } while (lVar6 != 0x60);" (do "do") (compound_statement "{\n      if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }\n      lVar6 = lVar6 + 8;\n    }" ({ "{") (if_statement "if (*(long *)(lVar4 + lVar6) != 0) {\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }" (if "if") (parenthesized_expression "(*(long *)(lVar4 + lVar6) != 0)" (( "(") (binary_expression "*(long *)(lVar4 + lVar6) != 0" (pointer_expression "*(long *)(lVar4 + lVar6)" (* "*") (cast_expression "(long *)(lVar4 + lVar6)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + lVar6)" (( "(") (binary_expression "lVar4 + lVar6" (identifier "lVar4") (+ "+") (identifier "lVar6")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        thunk_FUN_00276d20();\n        lVar4 = *(long *)(unaff_RBP + 0x20);\n      }" ({ "{") (expression_statement "thunk_FUN_00276d20();" (call_expression "thunk_FUN_00276d20()" (identifier "thunk_FUN_00276d20") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "lVar4 = *(long *)(unaff_RBP + 0x20);" (assignment_expression "lVar4 = *(long *)(unaff_RBP + 0x20)" (identifier "lVar4") (= "=") (pointer_expression "*(long *)(unaff_RBP + 0x20)" (* "*") (cast_expression "(long *)(unaff_RBP + 0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_RBP + 0x20)" (( "(") (binary_expression "unaff_RBP + 0x20" (identifier "unaff_RBP") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (} "}"))) (expression_statement "lVar6 = lVar6 + 8;" (assignment_expression "lVar6 = lVar6 + 8" (identifier "lVar6") (= "=") (binary_expression "lVar6 + 8" (identifier "lVar6") (+ "+") (number_literal "8"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(lVar6 != 0x60)" (( "(") (binary_expression "lVar6 != 0x60" (identifier "lVar6") (!= "!=") (number_literal "0x60")) () ")")) (; ";")) (if_statement "if (lVar4 != 0) {\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }" (if "if") (parenthesized_expression "(lVar4 != 0)" (( "(") (binary_expression "lVar4 != 0" (identifier "lVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      thunk_FUN_00276d20(lVar4);\n      return;\n    }" ({ "{") (expression_statement "thunk_FUN_00276d20(lVar4);" (call_expression "thunk_FUN_00276d20(lVar4)" (identifier "thunk_FUN_00276d20") (argument_list "(lVar4)" (( "(") (identifier "lVar4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(void)

{
  long *plVar1;
  long *var_5;
  int var_7;
  void *var_10;
  type_1 var_4;
  type_1 var_12;
  long var_13;
  long var_3;
  
  var_1();
                    /* try { // try from 00145830 to 00145834 has its CatchHandler @ 0014584c */
  var_2();
  var_10 = *(void **)(var_3 + 8);
  while (var_4 = var_4 + 1, var_4 < *(type_1 *)(var_3 + 0x10)) {
    var_5 = *(long **)((long)var_10 + var_4 * 8);
    if (var_5 != (long *)0x0) {
      if (var_6 == (type_2 *)0x0) {
        var_7 = (int)var_5[1];
        *(int *)(var_5 + 1) = var_7 + -1;
      }
      else {
        var_8();
        plVar1 = var_5 + 1;
        var_7 = (int)*plVar1;
        *(int *)plVar1 = (int)*plVar1 + -1;
        var_9();
      }
      if (var_7 == 1) {
        (**(type_3 **)(*var_5 + 8))();
      }
      var_10 = *(void **)(var_3 + 8);
    }
  }
  if (var_10 != (void *)0x0) {
    var_11(var_10);
  }
  var_10 = *(void **)(var_3 + 0x18);
  if (var_10 != (void *)0x0) {
    if (*(long *)(var_3 + 0x10) != 0) {
      var_12 = 0;
      do {
        var_5 = *(long **)((long)var_10 + var_12 * 8);
        if (var_5 != (long *)0x0) {
          if (var_6 == (type_2 *)0x0) {
            var_7 = (int)var_5[1];
            *(int *)(var_5 + 1) = var_7 + -1;
          }
          else {
            var_8();
            plVar1 = var_5 + 1;
            var_7 = (int)*plVar1;
            *(int *)plVar1 = (int)*plVar1 + -1;
            var_9();
          }
          if (var_7 == 1) {
            (**(type_3 **)(*var_5 + 8))();
          }
          var_10 = *(void **)(var_3 + 0x18);
        }
        var_12 = var_12 + 1;
      } while (var_12 < *(type_1 *)(var_3 + 0x10));
      if (var_10 == (void *)0x0) goto LAB_0027916d;
    }
    var_11(var_10);
  }
LAB_0027916d:
  var_10 = *(void **)(var_3 + 0x20);
  var_13 = 0;
  if (var_10 != (void *)0x0) {
    do {
      if (*(void **)((long)var_10 + var_13) != (void *)0x0) {
        var_11(*(void **)((long)var_10 + var_13));
        var_10 = *(void **)(var_3 + 0x20);
      }
      var_13 = var_13 + 8;
    } while (var_13 != 0x60);
    if (var_10 != (void *)0x0) {
      var_11(var_10);
      return;
    }
  }
  return;
}


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

void MASKED(void)

{
  long *plVar1;
  long *plVar2;
  int iVar3;
  long lVar4;
  ulong unaff_RBX;
  ulong uVar5;
  long lVar6;
  long unaff_RBP;
  
  FUN_00276590();
                    /* try { // try from 00145830 to 00145834 has its CatchHandler @ 0014584c */
  FUN_00276600();
  lVar4 = *(long *)(unaff_RBP + 8);
  while (unaff_RBX = unaff_RBX + 1, unaff_RBX < *(ulong *)(unaff_RBP + 0x10)) {
    plVar2 = *(long **)(lVar4 + unaff_RBX * 8);
    if (plVar2 != (long *)0x0) {
      if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {
        iVar3 = (int)plVar2[1];
        *(int *)(plVar2 + 1) = iVar3 + -1;
      }
      else {
        LOCK();
        plVar1 = plVar2 + 1;
        iVar3 = (int)*plVar1;
        *(int *)plVar1 = (int)*plVar1 + -1;
        UNLOCK();
      }
      if (iVar3 == 1) {
        (**(code **)(*plVar2 + 8))();
      }
      lVar4 = *(long *)(unaff_RBP + 8);
    }
  }
  if (lVar4 != 0) {
    thunk_FUN_00276d20(lVar4);
  }
  lVar4 = *(long *)(unaff_RBP + 0x18);
  if (lVar4 != 0) {
    if (*(long *)(unaff_RBP + 0x10) != 0) {
      uVar5 = 0;
      do {
        plVar2 = *(long **)(lVar4 + uVar5 * 8);
        if (plVar2 != (long *)0x0) {
          if (PTR___pthread_key_create_003bdee8 == (undefined *)0x0) {
            iVar3 = (int)plVar2[1];
            *(int *)(plVar2 + 1) = iVar3 + -1;
          }
          else {
            LOCK();
            plVar1 = plVar2 + 1;
            iVar3 = (int)*plVar1;
            *(int *)plVar1 = (int)*plVar1 + -1;
            UNLOCK();
          }
          if (iVar3 == 1) {
            (**(code **)(*plVar2 + 8))();
          }
          lVar4 = *(long *)(unaff_RBP + 0x18);
        }
        uVar5 = uVar5 + 1;
      } while (uVar5 < *(ulong *)(unaff_RBP + 0x10));
      if (lVar4 == 0) goto LAB_0027916d;
    }
    thunk_FUN_00276d20(lVar4);
  }
LAB_0027916d:
  lVar4 = *(long *)(unaff_RBP + 0x20);
  lVar6 = 0;
  if (lVar4 != 0) {
    do {
      if (*(long *)(lVar4 + lVar6) != 0) {
        thunk_FUN_00276d20();
        lVar4 = *(long *)(unaff_RBP + 0x20);
      }
      lVar6 = lVar6 + 8;
    } while (lVar6 != 0x60);
    if (lVar4 != 0) {
      thunk_FUN_00276d20(lVar4);
      return;
    }
  }
  return;
}

