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

void __thiscall gold::Lock::Lock(Lock *this)

{
  Lock_impl_threads *this_00;
  Lock_impl *pLVar1;
  
  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 = (Lock_impl_threads *)operator_new(0x1c);
                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */
    Lock_impl_threads::Lock_impl_threads(this_00);
    this->lock_ = (Lock_impl *)this_00;
    return;
  }
  pLVar1 = (Lock_impl *)operator_new(8);
  pLVar1->_vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_nothreads_003a28d0;
  *(undefined1 *)&pLVar1[1]._vptr_Lock_impl = 0;
  this->lock_ = pLVar1;
  return;
}



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

void FUN_0007fe40(undefined4 *param_1)

{
  undefined4 uVar1;
  undefined4 *puVar2;
  undefined4 in_ECX;
  
  if (*(int *)(DAT_003af408 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);
  }
  if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {
    uVar1 = FUN_001fd480(0x1c);
                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */
    FUN_0007fd90(uVar1);
    *param_1 = uVar1;
    return;
  }
  puVar2 = (undefined4 *)FUN_001fd480(8);
  *puVar2 = &PTR_FUN_003a28d0;
  *(undefined1 *)(puVar2 + 1) = 0;
  *param_1 = puVar2;
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
CALL 0x0004a046
ADD ESI,0x32f1b6
PUSH EBX
SUB ESP,0x1c
LEA EAX,[ESI + 0x408]
MOV EAX,dword ptr [EAX]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x0007fec0
CMP byte ptr [EAX + 0x3d69],0x0
JZ 0x0007fe98
SUB ESP,0xc
MOV EBX,ESI
PUSH 0x1c
CALL 0x001fd480
MOV EDI,EAX
MOV dword ptr [ESP],EAX
CALL 0x0007fd90
MOV EAX,dword ptr [EBP + 0x8]
ADD ESP,0x10
MOV dword ptr [EAX],EDI
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV EBX,ESI
PUSH 0x8
CALL 0x001fd480
MOV ECX,dword ptr [EBP + 0x8]
LEA EDX,[ESI + 0xffff38d0]
ADD ESP,0x10
MOV dword ptr [EAX],EDX
MOV byte ptr [EAX + 0x4],0x0
MOV dword ptr [ECX],EAX
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[ESI + 0xffef45d0]
PUSH ECX
MOV EBX,ESI
PUSH EAX
LEA EAX,[ESI + 0xffee926d]
PUSH 0x5c
PUSH EAX
CALL 0x0007d010
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid FUN_0007fe40(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  undefined4 in_ECX;\n  \n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }\n  if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001fd480(0x1c);\n                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */\n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001fd480(8);\n  *puVar2 = &PTR_FUN_003a28d0;\n  *(undefined1 *)(puVar2 + 1) = 0;\n  *param_1 = puVar2;\n  return;\n}\n\n" comment (function_definition "void FUN_0007fe40(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  undefined4 in_ECX;\n  \n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }\n  if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001fd480(0x1c);\n                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */\n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001fd480(8);\n  *puVar2 = &PTR_FUN_003a28d0;\n  *(undefined1 *)(puVar2 + 1) = 0;\n  *param_1 = puVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0007fe40(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  undefined4 in_ECX;\n  \n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }\n  if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001fd480(0x1c);\n                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */\n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001fd480(8);\n  *puVar2 = &PTR_FUN_003a28d0;\n  *(undefined1 *)(puVar2 + 1) = 0;\n  *param_1 = puVar2;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (if_statement "if (*(int *)(DAT_003af408 + 8) == 0) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }" if (parenthesized_expression "(*(int *)(DAT_003af408 + 8) == 0)" ( (binary_expression "*(int *)(DAT_003af408 + 8) == 0" (pointer_expression "*(int *)(DAT_003af408 + 8)" * (cast_expression "(int *)(DAT_003af408 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_003af408 + 8)" ( (binary_expression "DAT_003af408 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }" { comment (expression_statement "FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);" (call_expression "FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",in_ECX)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , identifier ))) ;) })) (if_statement "if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001fd480(0x1c);\n                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */\n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69)" * (cast_expression "(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_003af408 + 8) + 0x3d69)" ( (binary_expression "*(int *)(DAT_003af408 + 8) + 0x3d69" (pointer_expression "*(int *)(DAT_003af408 + 8)" * (cast_expression "(int *)(DAT_003af408 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_003af408 + 8)" ( (binary_expression "DAT_003af408 + 8" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar1 = FUN_001fd480(0x1c);\n                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */\n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }" { (expression_statement "uVar1 = FUN_001fd480(0x1c);" (assignment_expression "uVar1 = FUN_001fd480(0x1c)" identifier = (call_expression "FUN_001fd480(0x1c)" identifier (argument_list "(0x1c)" ( number_literal )))) ;) comment (expression_statement "FUN_0007fd90(uVar1);" (call_expression "FUN_0007fd90(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "*param_1 = uVar1;" (assignment_expression "*param_1 = uVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_001fd480(8);" (assignment_expression "puVar2 = (undefined4 *)FUN_001fd480(8)" identifier = (cast_expression "(undefined4 *)FUN_001fd480(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001fd480(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar2 = &PTR_FUN_003a28d0;" (assignment_expression "*puVar2 = &PTR_FUN_003a28d0" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR_FUN_003a28d0" & identifier)) ;) (expression_statement "*(undefined1 *)(puVar2 + 1) = 0;" (assignment_expression "*(undefined1 *)(puVar2 + 1) = 0" (pointer_expression "*(undefined1 *)(puVar2 + 1)" * (cast_expression "(undefined1 *)(puVar2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*param_1 = puVar2;" (assignment_expression "*param_1 = puVar2" (pointer_expression "*param_1" * identifier) = 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/* WARNING: Enum "ELFOSABI": Some values do not have unique names */\n/* DWARF original prototype: void Lock(Lock * this) */\n\nvoid __thiscall gold::Lock::Lock(Lock *this)\n\n{\n  Lock_impl_threads *this_00;\n  Lock_impl *pLVar1;\n  \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 = (Lock_impl_threads *)operator_new(0x1c);\n                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */\n    Lock_impl_threads::Lock_impl_threads(this_00);\n    this->lock_ = (Lock_impl *)this_00;\n    return;\n  }\n  pLVar1 = (Lock_impl *)operator_new(8);\n  pLVar1->_vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_nothreads_003a28d0;\n  *(undefined1 *)&pLVar1[1]._vptr_Lock_impl = 0;\n  this->lock_ = pLVar1;\n  return;\n}\n\n" comment comment comment comment (function_definition "void __thiscall gold::Lock::Lock(Lock *this)\n\n{\n  Lock_impl_threads *this_00;\n  Lock_impl *pLVar1;\n  \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 = (Lock_impl_threads *)operator_new(0x1c);\n                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */\n    Lock_impl_threads::Lock_impl_threads(this_00);\n    this->lock_ = (Lock_impl *)this_00;\n    return;\n  }\n  pLVar1 = (Lock_impl *)operator_new(8);\n  pLVar1->_vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_nothreads_003a28d0;\n  *(undefined1 *)&pLVar1[1]._vptr_Lock_impl = 0;\n  this->lock_ = pLVar1;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Lock::" identifier : : identifier : :) (function_declarator "Lock(Lock *this)" identifier (parameter_list "(Lock *this)" ( (parameter_declaration "Lock *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  Lock_impl_threads *this_00;\n  Lock_impl *pLVar1;\n  \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 = (Lock_impl_threads *)operator_new(0x1c);\n                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */\n    Lock_impl_threads::Lock_impl_threads(this_00);\n    this->lock_ = (Lock_impl *)this_00;\n    return;\n  }\n  pLVar1 = (Lock_impl *)operator_new(8);\n  pLVar1->_vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_nothreads_003a28d0;\n  *(undefined1 *)&pLVar1[1]._vptr_Lock_impl = 0;\n  this->lock_ = pLVar1;\n  return;\n}" { (declaration "Lock_impl_threads *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "Lock_impl *pLVar1;" type_identifier (pointer_declarator "*pLVar1" * 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 = (Lock_impl_threads *)operator_new(0x1c);\n                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */\n    Lock_impl_threads::Lock_impl_threads(this_00);\n    this->lock_ = (Lock_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 = (Lock_impl_threads *)operator_new(0x1c);\n                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */\n    Lock_impl_threads::Lock_impl_threads(this_00);\n    this->lock_ = (Lock_impl *)this_00;\n    return;\n  }" { (expression_statement "this_00 = (Lock_impl_threads *)operator_new(0x1c);" (assignment_expression "this_00 = (Lock_impl_threads *)operator_new(0x1c)" identifier = (cast_expression "(Lock_impl_threads *)operator_new(0x1c)" ( (type_descriptor "Lock_impl_threads *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(0x1c)" identifier (argument_list "(0x1c)" ( number_literal ))))) ;) comment (labeled_statement "Lock_impl_threads::Lock_impl_threads(this_00);" statement_identifier : (ERROR ":" :) (expression_statement "Lock_impl_threads(this_00);" (call_expression "Lock_impl_threads(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;)) (expression_statement "this->lock_ = (Lock_impl *)this_00;" (assignment_expression "this->lock_ = (Lock_impl *)this_00" (field_expression "this->lock_" identifier -> field_identifier) = (cast_expression "(Lock_impl *)this_00" ( (type_descriptor "Lock_impl *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (return_statement "return;" return ;) })) (expression_statement "pLVar1 = (Lock_impl *)operator_new(8);" (assignment_expression "pLVar1 = (Lock_impl *)operator_new(8)" identifier = (cast_expression "(Lock_impl *)operator_new(8)" ( (type_descriptor "Lock_impl *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "operator_new(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "pLVar1->_vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_nothreads_003a28d0;" (assignment_expression "pLVar1->_vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_nothreads_003a28d0" (field_expression "pLVar1->_vptr_Lock_impl" identifier -> field_identifier) = (cast_expression "(_func_int_varargs **)&PTR__Lock_impl_nothreads_003a28d0" ( (type_descriptor "_func_int_varargs **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&PTR__Lock_impl_nothreads_003a28d0" & identifier))) ;) (expression_statement "*(undefined1 *)&pLVar1[1]._vptr_Lock_impl = 0;" (assignment_expression "*(undefined1 *)&pLVar1[1]._vptr_Lock_impl = 0" (pointer_expression "*(undefined1 *)&pLVar1[1]._vptr_Lock_impl" * (cast_expression "(undefined1 *)&pLVar1[1]._vptr_Lock_impl" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pLVar1[1]._vptr_Lock_impl" & (field_expression "pLVar1[1]._vptr_Lock_impl" (subscript_expression "pLVar1[1]" identifier [ number_literal ]) . field_identifier)))) = number_literal) ;) (expression_statement "this->lock_ = pLVar1;" (assignment_expression "this->lock_ = pLVar1" (field_expression "this->lock_" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0007fe40(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  undefined4 in_ECX;\n  \n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }\n  if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001fd480(0x1c);\n                    \n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001fd480(8);\n  *puVar2 = &PTR_FUN_003a28d0;\n  *(undefined1 *)(puVar2 + 1) = 0;\n  *param_1 = puVar2;\n  return;\n}\n\n" (function_definition "void FUN_0007fe40(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  undefined4 in_ECX;\n  \n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }\n  if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001fd480(0x1c);\n                    \n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001fd480(8);\n  *puVar2 = &PTR_FUN_003a28d0;\n  *(undefined1 *)(puVar2 + 1) = 0;\n  *param_1 = puVar2;\n  return;\n}" primitive_type (function_declarator "FUN_0007fe40(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  undefined4 in_ECX;\n  \n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }\n  if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001fd480(0x1c);\n                    \n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001fd480(8);\n  *puVar2 = &PTR_FUN_003a28d0;\n  *(undefined1 *)(puVar2 + 1) = 0;\n  *param_1 = puVar2;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 in_ECX;" type_identifier identifier ;) (if_statement "if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }" if (parenthesized_expression "(*(int *)(DAT_003af408 + 8) == 0)" ( (binary_expression "*(int *)(DAT_003af408 + 8) == 0" (pointer_expression "*(int *)(DAT_003af408 + 8)" * (cast_expression "(int *)(DAT_003af408 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_003af408 + 8)" ( (binary_expression "DAT_003af408 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }" { (expression_statement "FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);" (call_expression "FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX)" identifier (argument_list "("../../gold/parameters.h",0x5c,"options",in_ECX)" ( (string_literal ""../../gold/parameters.h"" " string_content ") , number_literal , (string_literal ""options"" " string_content ") , identifier ))) ;) })) (if_statement "if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001fd480(0x1c);\n                    \n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }" if (parenthesized_expression "(*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0')" ( (binary_expression "*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69)" * (cast_expression "(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(DAT_003af408 + 8) + 0x3d69)" ( (binary_expression "*(int *)(DAT_003af408 + 8) + 0x3d69" (pointer_expression "*(int *)(DAT_003af408 + 8)" * (cast_expression "(int *)(DAT_003af408 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_003af408 + 8)" ( (binary_expression "DAT_003af408 + 8" identifier + number_literal) )))) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    uVar1 = FUN_001fd480(0x1c);\n                    \n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }" { (expression_statement "uVar1 = FUN_001fd480(0x1c);" (assignment_expression "uVar1 = FUN_001fd480(0x1c)" identifier = (call_expression "FUN_001fd480(0x1c)" identifier (argument_list "(0x1c)" ( number_literal )))) ;) (expression_statement "FUN_0007fd90(uVar1);" (call_expression "FUN_0007fd90(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "*param_1 = uVar1;" (assignment_expression "*param_1 = uVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_001fd480(8);" (assignment_expression "puVar2 = (undefined4 *)FUN_001fd480(8)" identifier = (cast_expression "(undefined4 *)FUN_001fd480(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001fd480(8)" identifier (argument_list "(8)" ( number_literal ))))) ;) (expression_statement "*puVar2 = &PTR_FUN_003a28d0;" (assignment_expression "*puVar2 = &PTR_FUN_003a28d0" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR_FUN_003a28d0" & identifier)) ;) (expression_statement "*(undefined1 *)(puVar2 + 1) = 0;" (assignment_expression "*(undefined1 *)(puVar2 + 1) = 0" (pointer_expression "*(undefined1 *)(puVar2 + 1)" * (cast_expression "(undefined1 *)(puVar2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*param_1 = puVar2;" (assignment_expression "*param_1 = puVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (return_statement "return;" return ;) })))
(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) ;) (declaration TYPE 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 (pointer_expression * IDENT) = 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return ;) })))
(function_definition "void FUN_0007fe40(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  undefined4 in_ECX;\n  \n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }\n  if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001fd480(0x1c);\n                    \n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001fd480(8);\n  *puVar2 = &PTR_FUN_003a28d0;\n  *(undefined1 *)(puVar2 + 1) = 0;\n  *param_1 = puVar2;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0007fe40(undefined4 *param_1)" (identifier "FUN_0007fe40") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 *puVar2;\n  undefined4 in_ECX;\n  \n  if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }\n  if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001fd480(0x1c);\n                    \n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }\n  puVar2 = (undefined4 *)FUN_001fd480(8);\n  *puVar2 = &PTR_FUN_003a28d0;\n  *(undefined1 *)(puVar2 + 1) = 0;\n  *param_1 = puVar2;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 in_ECX;" (type_identifier "undefined4") (identifier "in_ECX") (; ";")) (if_statement "if (*(int *)(DAT_003af408 + 8) == 0) {\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }" (if "if") (parenthesized_expression "(*(int *)(DAT_003af408 + 8) == 0)" (( "(") (binary_expression "*(int *)(DAT_003af408 + 8) == 0" (pointer_expression "*(int *)(DAT_003af408 + 8)" (* "*") (cast_expression "(int *)(DAT_003af408 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_003af408 + 8)" (( "(") (binary_expression "DAT_003af408 + 8" (identifier "DAT_003af408") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);\n  }" ({ "{") (expression_statement "FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);" (call_expression "FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX)" (identifier "FUN_0007d010") (argument_list "("../../gold/parameters.h",0x5c,"options",in_ECX)" (( "(") (string_literal ""../../gold/parameters.h"" (" """) (string_content "../../gold/parameters.h") (" """)) (, ",") (number_literal "0x5c") (, ",") (string_literal ""options"" (" """) (string_content "options") (" """)) (, ",") (identifier "in_ECX") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {\n    uVar1 = FUN_001fd480(0x1c);\n                    \n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }" (if "if") (parenthesized_expression "(*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0')" (( "(") (binary_expression "*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0'" (pointer_expression "*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69)" (* "*") (cast_expression "(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(DAT_003af408 + 8) + 0x3d69)" (( "(") (binary_expression "*(int *)(DAT_003af408 + 8) + 0x3d69" (pointer_expression "*(int *)(DAT_003af408 + 8)" (* "*") (cast_expression "(int *)(DAT_003af408 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_003af408 + 8)" (( "(") (binary_expression "DAT_003af408 + 8" (identifier "DAT_003af408") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "0x3d69")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    uVar1 = FUN_001fd480(0x1c);\n                    \n    FUN_0007fd90(uVar1);\n    *param_1 = uVar1;\n    return;\n  }" ({ "{") (expression_statement "uVar1 = FUN_001fd480(0x1c);" (assignment_expression "uVar1 = FUN_001fd480(0x1c)" (identifier "uVar1") (= "=") (call_expression "FUN_001fd480(0x1c)" (identifier "FUN_001fd480") (argument_list "(0x1c)" (( "(") (number_literal "0x1c") () ")")))) (; ";")) (expression_statement "FUN_0007fd90(uVar1);" (call_expression "FUN_0007fd90(uVar1)" (identifier "FUN_0007fd90") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "*param_1 = uVar1;" (assignment_expression "*param_1 = uVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)FUN_001fd480(8);" (assignment_expression "puVar2 = (undefined4 *)FUN_001fd480(8)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_001fd480(8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001fd480(8)" (identifier "FUN_001fd480") (argument_list "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "*puVar2 = &PTR_FUN_003a28d0;" (assignment_expression "*puVar2 = &PTR_FUN_003a28d0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "&PTR_FUN_003a28d0" (& "&") (identifier "PTR_FUN_003a28d0"))) (; ";")) (expression_statement "*(undefined1 *)(puVar2 + 1) = 0;" (assignment_expression "*(undefined1 *)(puVar2 + 1) = 0" (pointer_expression "*(undefined1 *)(puVar2 + 1)" (* "*") (cast_expression "(undefined1 *)(puVar2 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 1)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = puVar2;" (assignment_expression "*param_1 = puVar2" (pointer_expression "*param_1" (* "*") (identifier "param_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 */
/* WARNING: Enum "ELFOSABI": Some values do not have unique names */
/* DWARF original prototype: void Lock(Lock * this) */

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

{
  type_1 *this_00;
  type_2 *pLVar1;
  
  if (parameters->options_ == (type_3 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_1("../../gold/parameters.h",0x5c,"options");
  }
  if ((parameters->options_->threads_).value != false) {
    this_00 = (type_1 *)var_2(0x1c);
                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */
    Lock_impl_threads::type_1(this_00);
    this->lock_ = (type_2 *)this_00;
    return;
  }
  pLVar1 = (type_2 *)var_2(8);
  pLVar1->_vptr_Lock_impl = (type_4 **)&PTR__Lock_impl_nothreads_003a28d0;
  *(type_5 *)&pLVar1[1]._vptr_Lock_impl = 0;
  this->lock_ = pLVar1;
  return;
}


(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: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (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: (pointer_expression argument: (identifier)) 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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement))))

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

void MASKED(undefined4 *param_1)

{
  undefined4 uVar1;
  undefined4 *puVar2;
  undefined4 in_ECX;
  
  if (*(int *)(DAT_003af408 + 8) == 0) {
                    /* WARNING: Subroutine does not return */
    FUN_0007d010("../../gold/parameters.h",0x5c,"options",in_ECX);
  }
  if (*(char *)(*(int *)(DAT_003af408 + 8) + 0x3d69) != '\0') {
    uVar1 = FUN_001fd480(0x1c);
                    /* try { // try from 0007fe7d to 0007fe81 has its CatchHandler @ 0007fed8 */
    FUN_0007fd90(uVar1);
    *param_1 = uVar1;
    return;
  }
  puVar2 = (undefined4 *)FUN_001fd480(8);
  *puVar2 = &PTR_FUN_003a28d0;
  *(undefined1 *)(puVar2 + 1) = 0;
  *param_1 = puVar2;
  return;
}

