
/* __scoped_lock::~__scoped_lock() */

void __thiscall __scoped_lock::~__scoped_lock(__scoped_lock *this)

{
  int iVar1;
  undefined8 *puVar2;
  
  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {
    return;
  }
  iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this);
  if (iVar1 == 0) {
    return;
  }
  puVar2 = (undefined8 *)__cxa_allocate_exception(8);
  *puVar2 = &PTR____concurrence_unlock_error_004564a8;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002f3c3a to 002f3c3e has its CatchHandler @ 002f3c3f */
  __cxa_throw(puVar2,&__concurrence_unlock_error::typeinfo,
              __concurrence_unlock_error::~__concurrence_unlock_error);
}



void FUN_002f3bf0(undefined8 *param_1)

{
  int iVar1;
  undefined8 *puVar2;
  
  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {
    return;
  }
  iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);
  if (iVar1 == 0) {
    return;
  }
  puVar2 = (undefined8 *)FUN_002f1cf0(8);
  *puVar2 = &PTR_FUN_004564a8;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002f3c3a to 002f3c3e has its CatchHandler @ 002f3c3f */
  FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);
}


CMP qword ptr [0x0045bee8],0x0
JZ 0x002f3c10
SUB RSP,0x8
MOV RDI,qword ptr [RDI]
CALL 0x00149a70
TEST EAX,EAX
JNZ 0x002f3c11
ADD RSP,0x8
RET
RET
MOV EDI,0x8
CALL 0x002f1cf0
LEA RDX,[0x456498]
LEA RSI,[0x456458]
MOV RDI,RAX
ADD RDX,0x10
MOV qword ptr [RAX],RDX
LEA RDX,[0x2f1950]
CALL 0x002f0a10
(translation_unit "void FUN_002f3bf0(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  \n  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }\n  iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  puVar2 = (undefined8 *)FUN_002f1cf0(8);\n  *puVar2 = &PTR_FUN_004564a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002f3c3a to 002f3c3e has its CatchHandler @ 002f3c3f */\n  FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);\n}\n\n" (function_definition "void FUN_002f3bf0(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  \n  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }\n  iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  puVar2 = (undefined8 *)FUN_002f1cf0(8);\n  *puVar2 = &PTR_FUN_004564a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002f3c3a to 002f3c3e has its CatchHandler @ 002f3c3f */\n  FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);\n}" primitive_type (function_declarator "FUN_002f3bf0(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 *puVar2;\n  \n  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }\n  iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  puVar2 = (undefined8 *)FUN_002f1cf0(8);\n  *puVar2 = &PTR_FUN_004564a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002f3c3a to 002f3c3e has its CatchHandler @ 002f3c3f */\n  FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }" if (parenthesized_expression "(PTR___pthread_key_create_0045bee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0045bee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);" (assignment_expression "iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1)" identifier = (call_expression "pthread_mutex_unlock((pthread_mutex_t *)*param_1)" identifier (argument_list "((pthread_mutex_t *)*param_1)" ( (cast_expression "(pthread_mutex_t *)*param_1" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined8 *)FUN_002f1cf0(8);" (assignment_expression "puVar2 = (undefined8 *)FUN_002f1cf0(8)" identifier = (cast_expression "(undefined8 *)FUN_002f1cf0(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002f1cf0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar2 = &PTR_FUN_004564a8;" (assignment_expression "*puVar2 = &PTR_FUN_004564a8" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR_FUN_004564a8" & identifier)) ;) comment comment (expression_statement "FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);" (call_expression "FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950)" identifier (argument_list "(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950)" ( identifier , (pointer_expression "&PTR_PTR_FUN_00456458" & identifier) , identifier ))) ;) })))
(translation_unit "/* __scoped_lock::~__scoped_lock() */\n\nvoid __thiscall __scoped_lock::~__scoped_lock(__scoped_lock *this)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  \n  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }\n  iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this);\n  if (iVar1 == 0) {\n    return;\n  }\n  puVar2 = (undefined8 *)__cxa_allocate_exception(8);\n  *puVar2 = &PTR____concurrence_unlock_error_004564a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002f3c3a to 002f3c3e has its CatchHandler @ 002f3c3f */\n  __cxa_throw(puVar2,&__concurrence_unlock_error::typeinfo,\n              __concurrence_unlock_error::~__concurrence_unlock_error);\n}\n\n" comment (function_definition "void __thiscall __scoped_lock::~__scoped_lock(__scoped_lock *this)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  \n  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }\n  iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this);\n  if (iVar1 == 0) {\n    return;\n  }\n  puVar2 = (undefined8 *)__cxa_allocate_exception(8);\n  *puVar2 = &PTR____concurrence_unlock_error_004564a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002f3c3a to 002f3c3e has its CatchHandler @ 002f3c3f */\n  __cxa_throw(puVar2,&__concurrence_unlock_error::typeinfo,\n              __concurrence_unlock_error::~__concurrence_unlock_error);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "__scoped_lock::~" identifier : : ~) (function_declarator "__scoped_lock(__scoped_lock *this)" identifier (parameter_list "(__scoped_lock *this)" ( (parameter_declaration "__scoped_lock *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 *puVar2;\n  \n  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }\n  iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this);\n  if (iVar1 == 0) {\n    return;\n  }\n  puVar2 = (undefined8 *)__cxa_allocate_exception(8);\n  *puVar2 = &PTR____concurrence_unlock_error_004564a8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 002f3c3a to 002f3c3e has its CatchHandler @ 002f3c3f */\n  __cxa_throw(puVar2,&__concurrence_unlock_error::typeinfo,\n              __concurrence_unlock_error::~__concurrence_unlock_error);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }" if (parenthesized_expression "(PTR___pthread_key_create_0045bee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0045bee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this);" (assignment_expression "iVar1 = pthread_mutex_unlock(*(pthread_mutex_t **)this)" identifier = (call_expression "pthread_mutex_unlock(*(pthread_mutex_t **)this)" identifier (argument_list "(*(pthread_mutex_t **)this)" ( (pointer_expression "*(pthread_mutex_t **)this" * (cast_expression "(pthread_mutex_t **)this" ( (type_descriptor "pthread_mutex_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined8 *)__cxa_allocate_exception(8);" (assignment_expression "puVar2 = (undefined8 *)__cxa_allocate_exception(8)" identifier = (cast_expression "(undefined8 *)__cxa_allocate_exception(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "__cxa_allocate_exception(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar2 = &PTR____concurrence_unlock_error_004564a8;" (assignment_expression "*puVar2 = &PTR____concurrence_unlock_error_004564a8" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR____concurrence_unlock_error_004564a8" & identifier)) ;) comment comment (expression_statement "__cxa_throw(puVar2,&__concurrence_unlock_error::typeinfo,\n              __concurrence_unlock_error::~__concurrence_unlock_error);" (call_expression "__cxa_throw(puVar2,&__concurrence_unlock_error::typeinfo,\n              __concurrence_unlock_error::~__concurrence_unlock_error)" identifier (argument_list "(puVar2,&__concurrence_unlock_error::typeinfo,\n              __concurrence_unlock_error::~__concurrence_unlock_error)" ( identifier , (pointer_expression "&__concurrence_unlock_error" & identifier) (ERROR "::typeinfo" : : identifier) , (ERROR "__concurrence_unlock_error::" identifier : :) (unary_expression "~__concurrence_unlock_error" ~ identifier) ))) ;) })))
(translation_unit "void FUN_002f3bf0(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  \n  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }\n  iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  puVar2 = (undefined8 *)FUN_002f1cf0(8);\n  *puVar2 = &PTR_FUN_004564a8;\n                    \n                    \n  FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);\n}\n\n" (function_definition "void FUN_002f3bf0(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  \n  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }\n  iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  puVar2 = (undefined8 *)FUN_002f1cf0(8);\n  *puVar2 = &PTR_FUN_004564a8;\n                    \n                    \n  FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);\n}" primitive_type (function_declarator "FUN_002f3bf0(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 *puVar2;\n  \n  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }\n  iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  puVar2 = (undefined8 *)FUN_002f1cf0(8);\n  *puVar2 = &PTR_FUN_004564a8;\n                    \n                    \n  FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (if_statement "if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }" if (parenthesized_expression "(PTR___pthread_key_create_0045bee8 == (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_0045bee8 == (undefined *)0x0" identifier == (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);" (assignment_expression "iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1)" identifier = (call_expression "pthread_mutex_unlock((pthread_mutex_t *)*param_1)" identifier (argument_list "((pthread_mutex_t *)*param_1)" ( (cast_expression "(pthread_mutex_t *)*param_1" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier)) )))) ;) (if_statement "if (iVar1 == 0) {\n    return;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined8 *)FUN_002f1cf0(8);" (assignment_expression "puVar2 = (undefined8 *)FUN_002f1cf0(8)" identifier = (cast_expression "(undefined8 *)FUN_002f1cf0(8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_002f1cf0(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar2 = &PTR_FUN_004564a8;" (assignment_expression "*puVar2 = &PTR_FUN_004564a8" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR_FUN_004564a8" & identifier)) ;) (expression_statement "FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);" (call_expression "FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950)" identifier (argument_list "(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950)" ( identifier , (pointer_expression "&PTR_PTR_FUN_00456458" & identifier) , identifier ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT ))) ;) })))
(function_definition "void FUN_002f3bf0(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 *puVar2;\n  \n  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }\n  iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  puVar2 = (undefined8 *)FUN_002f1cf0(8);\n  *puVar2 = &PTR_FUN_004564a8;\n                    \n                    \n  FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);\n}" (primitive_type "void") (function_declarator "FUN_002f3bf0(undefined8 *param_1)" (identifier "FUN_002f3bf0") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 *puVar2;\n  \n  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }\n  iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);\n  if (iVar1 == 0) {\n    return;\n  }\n  puVar2 = (undefined8 *)FUN_002f1cf0(8);\n  *puVar2 = &PTR_FUN_004564a8;\n                    \n                    \n  FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (if_statement "if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {\n    return;\n  }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_0045bee8 == (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_0045bee8 == (undefined *)0x0" (identifier "PTR___pthread_key_create_0045bee8") (== "==") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);" (assignment_expression "iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1)" (identifier "iVar1") (= "=") (call_expression "pthread_mutex_unlock((pthread_mutex_t *)*param_1)" (identifier "pthread_mutex_unlock") (argument_list "((pthread_mutex_t *)*param_1)" (( "(") (cast_expression "(pthread_mutex_t *)*param_1" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined8 *)FUN_002f1cf0(8);" (assignment_expression "puVar2 = (undefined8 *)FUN_002f1cf0(8)" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)FUN_002f1cf0(8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_002f1cf0(8)" (identifier "FUN_002f1cf0") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "*puVar2 = &PTR_FUN_004564a8;" (assignment_expression "*puVar2 = &PTR_FUN_004564a8" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "&PTR_FUN_004564a8" (& "&") (identifier "PTR_FUN_004564a8"))) (; ";")) (expression_statement "FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);" (call_expression "FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950)" (identifier "FUN_002f0a10") (argument_list "(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950)" (( "(") (identifier "puVar2") (, ",") (pointer_expression "&PTR_PTR_FUN_00456458" (& "&") (identifier "PTR_PTR_FUN_00456458")) (, ",") (identifier "FUN_002f1950") () ")"))) (; ";")) (} "}")))

/* __scoped_lock::~__scoped_lock() */

void __thiscall function_1::~function_1(function_1 *this)

{
  int var_3;
  type_1 *puVar2;
  
  if (var_1 == (type_2 *)0x0) {
    return;
  }
  var_3 = var_2(*(type_3 **)this);
  if (var_3 == 0) {
    return;
  }
  puVar2 = (type_1 *)var_4(8);
  *puVar2 = &PTR____concurrence_unlock_error_004564a8;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002f3c3a to 002f3c3e has its CatchHandler @ 002f3c3f */
  var_5(puVar2,&__concurrence_unlock_error::typeinfo,
              __concurrence_unlock_error::~__concurrence_unlock_error);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier)))))))

void MASKED(undefined8 *param_1)

{
  int iVar1;
  undefined8 *puVar2;
  
  if (PTR___pthread_key_create_0045bee8 == (undefined *)0x0) {
    return;
  }
  iVar1 = pthread_mutex_unlock((pthread_mutex_t *)*param_1);
  if (iVar1 == 0) {
    return;
  }
  puVar2 = (undefined8 *)FUN_002f1cf0(8);
  *puVar2 = &PTR_FUN_004564a8;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 002f3c3a to 002f3c3e has its CatchHandler @ 002f3c3f */
  FUN_002f0a10(puVar2,&PTR_PTR_FUN_00456458,FUN_002f1950);
}

