
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void Condvar(Condvar * this, Lock * lock) */

void __thiscall gold::Condvar::Condvar(Condvar *this,Lock *lock)

{
  Condvar_impl_threads *this_00;
  Condvar_impl *pCVar1;
  
  this->lock_ = lock;
  if (parameters->options_ == (General_options *)0x0) {
                    /* WARNING: Subroutine does not return */
    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");
  }
  if ((parameters->options_->threads_).value != false) {
    this_00 = (Condvar_impl_threads *)operator_new(0x34);
                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */
    Condvar_impl_threads::Condvar_impl_threads(this_00);
    this->condvar_ = (Condvar_impl *)this_00;
    return;
  }
  pCVar1 = (Condvar_impl *)operator_new(4);
  pCVar1->_vptr_Condvar_impl = (_func_int_varargs **)&PTR__Condvar_impl_nothreads_00382e8c;
  this->condvar_ = pCVar1;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm2
FUN_0006ccb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)

{
  undefined4 uVar1;
  undefined4 *puVar2;
  
  *param_3 = param_4;
  if (*(int *)(DAT_0038f378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);
  }
  if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {
    uVar1 = FUN_001e5200(0x34);
                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */
    FUN_0006cc50(uVar1);
    param_3[1] = uVar1;
    return;
  }
  puVar2 = (undefined4 *)FUN_001e5200(4);
  *puVar2 = &PTR_FUN_00382e8c;
  param_3[1] = puVar2;
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
CALL 0x000559ea
ADD ESI,0x322346
PUSH EBX
SUB ESP,0x1c
MOV EAX,dword ptr [EBP + 0xc]
MOV EDI,dword ptr [EBP + 0x8]
MOV dword ptr [EDI],EAX
LEA EAX,[ESI + 0x378]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x0006cd32
CMP byte ptr [EAX + 0x3d69],0x0
JZ 0x0006cd10
SUB ESP,0xc
MOV EBX,ESI
PUSH 0x34
CALL 0x001e5200
MOV EBX,EAX
MOV dword ptr [EBP + -0x1c],EAX
MOV dword ptr [ESP],EAX
CALL 0x0006cc50
MOV dword ptr [EDI + 0x4],EBX
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV EBX,ESI
PUSH 0x4
CALL 0x001e5200
LEA EDX,[ESI + 0xffff3e8c]
ADD ESP,0x10
MOV dword ptr [EAX],EDX
MOV dword ptr [EDI + 0x4],EAX
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[ESI + 0xffef8c2c]
PUSH EDX
MOV EBX,ESI
PUSH EAX
LEA EAX,[ESI + 0xffef8210]
PUSH 0x5c
PUSH EAX
CALL 0x00069d00
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid __regparm2\nFUN_0006ccb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  *param_3 = param_4;\n  if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001e5200(0x34);\n                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */\n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001e5200(4);\n  *puVar2 = &PTR_FUN_00382e8c;\n  param_3[1] = puVar2;\n  return;\n}\n\n" comment (function_definition "void __regparm2\nFUN_0006ccb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  *param_3 = param_4;\n  if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001e5200(0x34);\n                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */\n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001e5200(4);\n  *puVar2 = &PTR_FUN_00382e8c;\n  param_3[1] = puVar2;\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_0006ccb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  *param_3 = param_4;\n  if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001e5200(0x34);\n                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */\n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001e5200(4);\n  *puVar2 = &PTR_FUN_00382e8c;\n  param_3[1] = puVar2;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "*param_3 = param_4;" (assignment_expression "*param_3 = param_4" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }" if (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }" { comment (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",param_2)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , identifier ))) ;) })) (if_statement "if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001e5200(0x34);\n                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */\n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69)" * (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x3d69)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x3d69" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar1 = FUN_001e5200(0x34);\n                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */\n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }" { (expression_statement "uVar1 = FUN_001e5200(0x34);" (assignment_expression "uVar1 = FUN_001e5200(0x34)" identifier = (call_expression "FUN_001e5200(0x34)" identifier (argument_list "(0x34)" ( number_literal )))) ;) comment (expression_statement "FUN_0006cc50(uVar1);" (call_expression "FUN_0006cc50(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "param_3[1] = uVar1;" (assignment_expression "param_3[1] = uVar1" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_001e5200(4);" (assignment_expression "puVar2 = (undefined4 *)FUN_001e5200(4)" identifier = (cast_expression "(undefined4 *)FUN_001e5200(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*puVar2 = &PTR_FUN_00382e8c;" (assignment_expression "*puVar2 = &PTR_FUN_00382e8c" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR_FUN_00382e8c" & identifier)) ;) (expression_statement "param_3[1] = puVar2;" (assignment_expression "param_3[1] = puVar2" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Enum "DT": Some values do not have unique names */\n/* DWARF original prototype: void Condvar(Condvar * this, Lock * lock) */\n\nvoid __thiscall gold::Condvar::Condvar(Condvar *this,Lock *lock)\n\n{\n  Condvar_impl_threads *this_00;\n  Condvar_impl *pCVar1;\n  \n  this->lock_ = lock;\n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  if ((parameters->options_->threads_).value != false) {\n    this_00 = (Condvar_impl_threads *)operator_new(0x34);\n                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */\n    Condvar_impl_threads::Condvar_impl_threads(this_00);\n    this->condvar_ = (Condvar_impl *)this_00;\n    return;\n  }\n  pCVar1 = (Condvar_impl *)operator_new(4);\n  pCVar1->_vptr_Condvar_impl = (_func_int_varargs **)&PTR__Condvar_impl_nothreads_00382e8c;\n  this->condvar_ = pCVar1;\n  return;\n}\n\n" comment comment comment (function_definition "void __thiscall gold::Condvar::Condvar(Condvar *this,Lock *lock)\n\n{\n  Condvar_impl_threads *this_00;\n  Condvar_impl *pCVar1;\n  \n  this->lock_ = lock;\n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  if ((parameters->options_->threads_).value != false) {\n    this_00 = (Condvar_impl_threads *)operator_new(0x34);\n                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */\n    Condvar_impl_threads::Condvar_impl_threads(this_00);\n    this->condvar_ = (Condvar_impl *)this_00;\n    return;\n  }\n  pCVar1 = (Condvar_impl *)operator_new(4);\n  pCVar1->_vptr_Condvar_impl = (_func_int_varargs **)&PTR__Condvar_impl_nothreads_00382e8c;\n  this->condvar_ = pCVar1;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Condvar::" identifier : : identifier : :) (function_declarator "Condvar(Condvar *this,Lock *lock)" identifier (parameter_list "(Condvar *this,Lock *lock)" ( (parameter_declaration "Condvar *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "Lock *lock" type_identifier (pointer_declarator "*lock" * identifier)) ))) (compound_statement "{\n  Condvar_impl_threads *this_00;\n  Condvar_impl *pCVar1;\n  \n  this->lock_ = lock;\n  if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }\n  if ((parameters->options_->threads_).value != false) {\n    this_00 = (Condvar_impl_threads *)operator_new(0x34);\n                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */\n    Condvar_impl_threads::Condvar_impl_threads(this_00);\n    this->condvar_ = (Condvar_impl *)this_00;\n    return;\n  }\n  pCVar1 = (Condvar_impl *)operator_new(4);\n  pCVar1->_vptr_Condvar_impl = (_func_int_varargs **)&PTR__Condvar_impl_nothreads_00382e8c;\n  this->condvar_ = pCVar1;\n  return;\n}" { (declaration "Condvar_impl_threads *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "Condvar_impl *pCVar1;" type_identifier (pointer_declarator "*pCVar1" * identifier) ;) (expression_statement "this->lock_ = lock;" (assignment_expression "this->lock_ = lock" (field_expression "this->lock_" identifier -> field_identifier) = identifier) ;) (if_statement "if (parameters->options_ == (General_options *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }" if (parenthesized_expression "(parameters->options_ == (General_options *)0x0)" ( (binary_expression "parameters->options_ == (General_options *)0x0" (field_expression "parameters->options_" identifier -> field_identifier) == (cast_expression "(General_options *)0x0" ( (type_descriptor "General_options *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    do_gold_unreachable("../../gold/parameters.h",0x5c,"options");\n  }" { comment (expression_statement "do_gold_unreachable("../../gold/parameters.h",0x5c,"options");" (call_expression "do_gold_unreachable("../../gold/parameters.h",0x5c,"options")" identifier (argument_list "("../../gold/parameters.h",0x5c,"options")" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") ))) ;) })) (if_statement "if ((parameters->options_->threads_).value != false) {\n    this_00 = (Condvar_impl_threads *)operator_new(0x34);\n                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */\n    Condvar_impl_threads::Condvar_impl_threads(this_00);\n    this->condvar_ = (Condvar_impl *)this_00;\n    return;\n  }" if (parenthesized_expression "((parameters->options_->threads_).value != false)" ( (binary_expression "(parameters->options_->threads_).value != false" (field_expression "(parameters->options_->threads_).value" (parenthesized_expression "(parameters->options_->threads_)" ( (field_expression "parameters->options_->threads_" (field_expression "parameters->options_" identifier -> field_identifier) -> field_identifier) )) . field_identifier) != false) )) (compound_statement "{\n    this_00 = (Condvar_impl_threads *)operator_new(0x34);\n                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */\n    Condvar_impl_threads::Condvar_impl_threads(this_00);\n    this->condvar_ = (Condvar_impl *)this_00;\n    return;\n  }" { (expression_statement "this_00 = (Condvar_impl_threads *)operator_new(0x34);" (assignment_expression "this_00 = (Condvar_impl_threads *)operator_new(0x34)" identifier = (cast_expression "(Condvar_impl_threads *)operator_new(0x34)" ( (type_descriptor "Condvar_impl_threads *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x34)" identifier (argument_list "(0x34)" ( number_literal ))))) ;) comment (labeled_statement "Condvar_impl_threads::Condvar_impl_threads(this_00);" statement_identifier : (ERROR ":" :) (expression_statement "Condvar_impl_threads(this_00);" (call_expression "Condvar_impl_threads(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;)) (expression_statement "this->condvar_ = (Condvar_impl *)this_00;" (assignment_expression "this->condvar_ = (Condvar_impl *)this_00" (field_expression "this->condvar_" identifier -> field_identifier) = (cast_expression "(Condvar_impl *)this_00" ( (type_descriptor "Condvar_impl *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "pCVar1 = (Condvar_impl *)operator_new(4);" (assignment_expression "pCVar1 = (Condvar_impl *)operator_new(4)" identifier = (cast_expression "(Condvar_impl *)operator_new(4)" ( (type_descriptor "Condvar_impl *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "pCVar1->_vptr_Condvar_impl = (_func_int_varargs **)&PTR__Condvar_impl_nothreads_00382e8c;" (assignment_expression "pCVar1->_vptr_Condvar_impl = (_func_int_varargs **)&PTR__Condvar_impl_nothreads_00382e8c" (field_expression "pCVar1->_vptr_Condvar_impl" identifier -> field_identifier) = (cast_expression "(_func_int_varargs **)&PTR__Condvar_impl_nothreads_00382e8c" ( (type_descriptor "_func_int_varargs **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&PTR__Condvar_impl_nothreads_00382e8c" & identifier))) ;) (expression_statement "this->condvar_ = pCVar1;" (assignment_expression "this->condvar_ = pCVar1" (field_expression "this->condvar_" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm2\nFUN_0006ccb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  *param_3 = param_4;\n  if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001e5200(0x34);\n                    \n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001e5200(4);\n  *puVar2 = &PTR_FUN_00382e8c;\n  param_3[1] = puVar2;\n  return;\n}\n\n" (function_definition "void __regparm2\nFUN_0006ccb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  *param_3 = param_4;\n  if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001e5200(0x34);\n                    \n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001e5200(4);\n  *puVar2 = &PTR_FUN_00382e8c;\n  param_3[1] = puVar2;\n  return;\n}" primitive_type (ERROR "__regparm2" identifier) (function_declarator "FUN_0006ccb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  *param_3 = param_4;\n  if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001e5200(0x34);\n                    \n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001e5200(4);\n  *puVar2 = &PTR_FUN_00382e8c;\n  param_3[1] = puVar2;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "*param_3 = param_4;" (assignment_expression "*param_3 = param_4" (pointer_expression "*param_3" * identifier) = identifier) ;) (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }" if (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }" { (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",param_2)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , identifier ))) ;) })) (if_statement "if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001e5200(0x34);\n                    \n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69)" * (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x3d69)" ( (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x3d69" (pointer_expression "*(int *)(DAT_0038f378 + 8)" * (cast_expression "(int *)(DAT_0038f378 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_0038f378 + 8)" ( (binary_expression "DAT_0038f378 + 8" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar1 = FUN_001e5200(0x34);\n                    \n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }" { (expression_statement "uVar1 = FUN_001e5200(0x34);" (assignment_expression "uVar1 = FUN_001e5200(0x34)" identifier = (call_expression "FUN_001e5200(0x34)" identifier (argument_list "(0x34)" ( number_literal )))) ;) (expression_statement "FUN_0006cc50(uVar1);" (call_expression "FUN_0006cc50(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "param_3[1] = uVar1;" (assignment_expression "param_3[1] = uVar1" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_001e5200(4);" (assignment_expression "puVar2 = (undefined4 *)FUN_001e5200(4)" identifier = (cast_expression "(undefined4 *)FUN_001e5200(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001e5200(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*puVar2 = &PTR_FUN_00382e8c;" (assignment_expression "*puVar2 = &PTR_FUN_00382e8c" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR_FUN_00382e8c" & identifier)) ;) (expression_statement "param_3[1] = puVar2;" (assignment_expression "param_3[1] = puVar2" (subscript_expression "param_3[1]" identifier [ number_literal ]) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return ;) })))
(function_definition "void __regparm2\nFUN_0006ccb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  *param_3 = param_4;\n  if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001e5200(0x34);\n                    \n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001e5200(4);\n  *puVar2 = &PTR_FUN_00382e8c;\n  param_3[1] = puVar2;\n  return;\n}" (primitive_type "void") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_0006ccb0(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)" (identifier "FUN_0006ccb0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  \n  *param_3 = param_4;\n  if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }\n  if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001e5200(0x34);\n                    \n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001e5200(4);\n  *puVar2 = &PTR_FUN_00382e8c;\n  param_3[1] = puVar2;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "*param_3 = param_4;" (assignment_expression "*param_3 = param_4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "param_4")) (; ";")) (if_statement "if (*(int *)(DAT_0038f378 + 8) == 0) {\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_0038f378 + 8) == 0" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);\n  }" ({ "{") (expression_statement "FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);" (call_expression "FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2)" (identifier "FUN_00069d00") (argument_list "("../../gold/parameters.h",0x5c,"options",param_2)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001e5200(0x34);\n                    \n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0')" (( "(") (binary_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69)" (* "*") (cast_expression "(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_0038f378 + 8) + 0x3d69)" (( "(") (binary_expression "*(int *)(DAT_0038f378 + 8) + 0x3d69" (pointer_expression "*(int *)(DAT_0038f378 + 8)" (* "*") (cast_expression "(int *)(DAT_0038f378 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_0038f378 + 8)" (( "(") (binary_expression "DAT_0038f378 + 8" (identifier "DAT_0038f378") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x3d69")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar1 = FUN_001e5200(0x34);\n                    \n    FUN_0006cc50(uVar1);\n    param_3[1] = uVar1;\n    return;\n  }" ({ "{") (expression_statement "uVar1 = FUN_001e5200(0x34);" (assignment_expression "uVar1 = FUN_001e5200(0x34)" (identifier "uVar1") (= "=") (call_expression "FUN_001e5200(0x34)" (identifier "FUN_001e5200") (argument_list "(0x34)" (( "(") (number_literal "0x34") () ")")))) (; ";")) (expression_statement "FUN_0006cc50(uVar1);" (call_expression "FUN_0006cc50(uVar1)" (identifier "FUN_0006cc50") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "param_3[1] = uVar1;" (assignment_expression "param_3[1] = uVar1" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)FUN_001e5200(4);" (assignment_expression "puVar2 = (undefined4 *)FUN_001e5200(4)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_001e5200(4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001e5200(4)" (identifier "FUN_001e5200") (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "*puVar2 = &PTR_FUN_00382e8c;" (assignment_expression "*puVar2 = &PTR_FUN_00382e8c" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "&PTR_FUN_00382e8c" (& "&") (identifier "PTR_FUN_00382e8c"))) (; ";")) (expression_statement "param_3[1] = puVar2;" (assignment_expression "param_3[1] = puVar2" (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Enum "DT": Some values do not have unique names */
/* DWARF original prototype: void Condvar(Condvar * this, Lock * lock) */

void __thiscall gold::function_1::function_1(function_1 *this,type_1 *lock)

{
  type_2 *this_00;
  type_3 *pCVar1;
  
  this->lock_ = lock;
  if (parameters->options_ == (type_4 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/parameters.h",0x5c,"options");
  }
  if ((parameters->options_->threads_).value != false) {
    this_00 = (type_2 *)var_2(0x34);
                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */
    Condvar_impl_threads::type_2(this_00);
    this->condvar_ = (type_3 *)this_00;
    return;
  }
  pCVar1 = (type_3 *)var_2(4);
  pCVar1->_vptr_Condvar_impl = (type_5 **)&PTR__Condvar_impl_nothreads_00382e8c;
  this->condvar_ = pCVar1;
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

void __regparm2
MASKED(undefined4 param_1,undefined4 param_2,undefined4 *param_3,undefined4 param_4)

{
  undefined4 uVar1;
  undefined4 *puVar2;
  
  *param_3 = param_4;
  if (*(int *)(DAT_0038f378 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_00069d00("../../gold/parameters.h",0x5c,"options",param_2);
  }
  if (*(char *)(*(int *)(DAT_0038f378 + 8) + 0x3d69) != '\0') {
    uVar1 = FUN_001e5200(0x34);
                    /* try { // try from 0006ccf8 to 0006ccfc has its CatchHandler @ 0006cd4a */
    FUN_0006cc50(uVar1);
    param_3[1] = uVar1;
    return;
  }
  puVar2 = (undefined4 *)FUN_001e5200(4);
  *puVar2 = &PTR_FUN_00382e8c;
  param_3[1] = puVar2;
  return;
}

