
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void Lock_impl_threads(Lock_impl_threads * this) */

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

{
  int iVar1;
  char *pcVar2;
  char *pcVar3;
  pthread_mutexattr_t attr;
  
  attr.__align = 0x61e48;
  (this->super_Lock_impl)._vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_threads_002f789c;
  iVar1 = pthread_mutexattr_init((pthread_mutexattr_t *)&attr);
  if (iVar1 == 0) {
    iVar1 = pthread_mutex_init((pthread_mutex_t *)&this->mutex_,(pthread_mutexattr_t *)&attr);
    if (iVar1 == 0) {
      iVar1 = pthread_mutexattr_destroy((pthread_mutexattr_t *)&attr);
      if (iVar1 == 0) {
        return;
      }
      pcVar3 = strerror(iVar1);
      pcVar2 = "pthread_mutexattr_destroy failed: %s";
    }
    else {
      pcVar3 = strerror(iVar1);
      pcVar2 = "pthread_mutex_init failed: %s";
    }
  }
  else {
    pcVar3 = strerror(iVar1);
    pcVar2 = "pthead_mutexattr_init failed: %s";
  }
  pcVar2 = (char *)gettext(pcVar2);
                    /* WARNING: Subroutine does not return */
  gold_fatal(pcVar2,pcVar3);
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_00061e40(undefined4 *param_1)

{
  int iVar1;
  char *pcVar2;
  undefined4 uVar3;
  char *pcVar4;
  pthread_mutexattr_t local_10;
  
  local_10.__align = 0x61e48;
  *param_1 = &PTR_FUN_002f789c;
  iVar1 = pthread_mutexattr_init(&local_10);
  if (iVar1 == 0) {
    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);
    if (iVar1 == 0) {
      iVar1 = pthread_mutexattr_destroy(&local_10);
      if (iVar1 == 0) {
        return;
      }
      pcVar4 = strerror(iVar1);
      pcVar2 = "pthread_mutexattr_destroy failed: %s";
    }
    else {
      pcVar4 = strerror(iVar1);
      pcVar2 = "pthread_mutex_init failed: %s";
    }
  }
  else {
    pcVar4 = strerror(iVar1);
    pcVar2 = "pthead_mutexattr_init failed: %s";
  }
  uVar3 = gettext(pcVar2);
                    /* WARNING: Subroutine does not return */
  FUN_0005aca0(uVar3,pcVar4);
}


PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x2a01b8
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x2c]
LEA EDI,[ESP + 0x18]
LEA EAX,[EBX + 0xffff589c]
MOV dword ptr [ESI],EAX
PUSH EDI
CALL 0x00026a90
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00061e99
SUB ESP,0x8
ADD ESI,0x4
PUSH EDI
PUSH ESI
CALL 0x000266d0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00061ece
SUB ESP,0xc
PUSH EDI
CALL 0x00026570
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00061ebb
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
SUB ESP,0xc
PUSH EAX
CALL 0x00026100
MOV ESI,EAX
LEA EAX,[EBX + 0xfff1f268]
MOV dword ptr [ESP],EAX
CALL 0x000263b0
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x0005aca0
SUB ESP,0xc
PUSH EAX
CALL 0x00026100
MOV ESI,EAX
LEA EAX,[EBX + 0xfff1f28c]
JMP 0x00061eaa
SUB ESP,0xc
PUSH EAX
CALL 0x00026100
MOV ESI,EAX
LEA EAX,[EBX + 0xfff1f2ec]
JMP 0x00061eaa
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00061e40(undefined4 *param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_10;\n  \n  local_10.__align = 0x61e48;\n  *param_1 = &PTR_FUN_002f789c;\n  iVar1 = pthread_mutexattr_init(&local_10);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar3 = gettext(pcVar2);\n                    /* WARNING: Subroutine does not return */\n  FUN_0005aca0(uVar3,pcVar4);\n}\n\n" comment (function_definition "void FUN_00061e40(undefined4 *param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_10;\n  \n  local_10.__align = 0x61e48;\n  *param_1 = &PTR_FUN_002f789c;\n  iVar1 = pthread_mutexattr_init(&local_10);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar3 = gettext(pcVar2);\n                    /* WARNING: Subroutine does not return */\n  FUN_0005aca0(uVar3,pcVar4);\n}" primitive_type (function_declarator "FUN_00061e40(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_10;\n  \n  local_10.__align = 0x61e48;\n  *param_1 = &PTR_FUN_002f789c;\n  iVar1 = pthread_mutexattr_init(&local_10);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar3 = gettext(pcVar2);\n                    /* WARNING: Subroutine does not return */\n  FUN_0005aca0(uVar3,pcVar4);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "pthread_mutexattr_t local_10;" type_identifier identifier ;) (expression_statement "local_10.__align = 0x61e48;" (assignment_expression "local_10.__align = 0x61e48" (field_expression "local_10.__align" identifier . field_identifier) = number_literal) ;) (expression_statement "*param_1 = &PTR_FUN_002f789c;" (assignment_expression "*param_1 = &PTR_FUN_002f789c" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_002f789c" & identifier)) ;) (expression_statement "iVar1 = pthread_mutexattr_init(&local_10);" (assignment_expression "iVar1 = pthread_mutexattr_init(&local_10)" identifier = (call_expression "pthread_mutexattr_init(&local_10)" identifier (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }" { (expression_statement "iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);" (assignment_expression "iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10)" identifier = (call_expression "pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10)" identifier (argument_list "((pthread_mutex_t *)(param_1 + 1),&local_10)" ( (cast_expression "(pthread_mutex_t *)(param_1 + 1)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) , (pointer_expression "&local_10" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }" { (expression_statement "iVar1 = pthread_mutexattr_destroy(&local_10);" (assignment_expression "iVar1 = pthread_mutexattr_destroy(&local_10)" identifier = (call_expression "pthread_mutexattr_destroy(&local_10)" identifier (argument_list "(&local_10)" ( (pointer_expression "&local_10" & 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 "pcVar4 = strerror(iVar1);" (assignment_expression "pcVar4 = strerror(iVar1)" identifier = (call_expression "strerror(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "pcVar2 = "pthread_mutexattr_destroy failed: %s";" (assignment_expression "pcVar2 = "pthread_mutexattr_destroy failed: %s"" identifier = (string_literal ""pthread_mutexattr_destroy failed: %s"" " string_content ")) ;) }) (else_clause "else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }" else (compound_statement "{\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }" { (expression_statement "pcVar4 = strerror(iVar1);" (assignment_expression "pcVar4 = strerror(iVar1)" identifier = (call_expression "strerror(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "pcVar2 = "pthread_mutex_init failed: %s";" (assignment_expression "pcVar2 = "pthread_mutex_init failed: %s"" identifier = (string_literal ""pthread_mutex_init failed: %s"" " string_content ")) ;) }))) }) (else_clause "else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }" else (compound_statement "{\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }" { (expression_statement "pcVar4 = strerror(iVar1);" (assignment_expression "pcVar4 = strerror(iVar1)" identifier = (call_expression "strerror(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "pcVar2 = "pthead_mutexattr_init failed: %s";" (assignment_expression "pcVar2 = "pthead_mutexattr_init failed: %s"" identifier = (string_literal ""pthead_mutexattr_init failed: %s"" " string_content ")) ;) }))) (expression_statement "uVar3 = gettext(pcVar2);" (assignment_expression "uVar3 = gettext(pcVar2)" identifier = (call_expression "gettext(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) comment (expression_statement "FUN_0005aca0(uVar3,pcVar4);" (call_expression "FUN_0005aca0(uVar3,pcVar4)" identifier (argument_list "(uVar3,pcVar4)" ( identifier , identifier ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void Lock_impl_threads(Lock_impl_threads * this) */\n\nvoid __thiscall gold::Lock_impl_threads::Lock_impl_threads(Lock_impl_threads *this)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  pthread_mutexattr_t attr;\n  \n  attr.__align = 0x61e48;\n  (this->super_Lock_impl)._vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_threads_002f789c;\n  iVar1 = pthread_mutexattr_init((pthread_mutexattr_t *)&attr);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)&this->mutex_,(pthread_mutexattr_t *)&attr);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy((pthread_mutexattr_t *)&attr);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }\n  pcVar2 = (char *)gettext(pcVar2);\n                    /* WARNING: Subroutine does not return */\n  gold_fatal(pcVar2,pcVar3);\n}\n\n" comment comment (function_definition "void __thiscall gold::Lock_impl_threads::Lock_impl_threads(Lock_impl_threads *this)\n\n{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  pthread_mutexattr_t attr;\n  \n  attr.__align = 0x61e48;\n  (this->super_Lock_impl)._vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_threads_002f789c;\n  iVar1 = pthread_mutexattr_init((pthread_mutexattr_t *)&attr);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)&this->mutex_,(pthread_mutexattr_t *)&attr);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy((pthread_mutexattr_t *)&attr);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }\n  pcVar2 = (char *)gettext(pcVar2);\n                    /* WARNING: Subroutine does not return */\n  gold_fatal(pcVar2,pcVar3);\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Lock_impl_threads::" identifier : : identifier : :) (function_declarator "Lock_impl_threads(Lock_impl_threads *this)" identifier (parameter_list "(Lock_impl_threads *this)" ( (parameter_declaration "Lock_impl_threads *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  pthread_mutexattr_t attr;\n  \n  attr.__align = 0x61e48;\n  (this->super_Lock_impl)._vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_threads_002f789c;\n  iVar1 = pthread_mutexattr_init((pthread_mutexattr_t *)&attr);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)&this->mutex_,(pthread_mutexattr_t *)&attr);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy((pthread_mutexattr_t *)&attr);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }\n  pcVar2 = (char *)gettext(pcVar2);\n                    /* WARNING: Subroutine does not return */\n  gold_fatal(pcVar2,pcVar3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "pthread_mutexattr_t attr;" type_identifier identifier ;) (expression_statement "attr.__align = 0x61e48;" (assignment_expression "attr.__align = 0x61e48" (field_expression "attr.__align" identifier . field_identifier) = number_literal) ;) (expression_statement "(this->super_Lock_impl)._vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_threads_002f789c;" (assignment_expression "(this->super_Lock_impl)._vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_threads_002f789c" (field_expression "(this->super_Lock_impl)._vptr_Lock_impl" (parenthesized_expression "(this->super_Lock_impl)" ( (field_expression "this->super_Lock_impl" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(_func_int_varargs **)&PTR__Lock_impl_threads_002f789c" ( (type_descriptor "_func_int_varargs **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&PTR__Lock_impl_threads_002f789c" & identifier))) ;) (expression_statement "iVar1 = pthread_mutexattr_init((pthread_mutexattr_t *)&attr);" (assignment_expression "iVar1 = pthread_mutexattr_init((pthread_mutexattr_t *)&attr)" identifier = (call_expression "pthread_mutexattr_init((pthread_mutexattr_t *)&attr)" identifier (argument_list "((pthread_mutexattr_t *)&attr)" ( (cast_expression "(pthread_mutexattr_t *)&attr" ( (type_descriptor "pthread_mutexattr_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&attr" & identifier)) )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)&this->mutex_,(pthread_mutexattr_t *)&attr);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy((pthread_mutexattr_t *)&attr);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)&this->mutex_,(pthread_mutexattr_t *)&attr);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy((pthread_mutexattr_t *)&attr);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }" { (expression_statement "iVar1 = pthread_mutex_init((pthread_mutex_t *)&this->mutex_,(pthread_mutexattr_t *)&attr);" (assignment_expression "iVar1 = pthread_mutex_init((pthread_mutex_t *)&this->mutex_,(pthread_mutexattr_t *)&attr)" identifier = (call_expression "pthread_mutex_init((pthread_mutex_t *)&this->mutex_,(pthread_mutexattr_t *)&attr)" identifier (argument_list "((pthread_mutex_t *)&this->mutex_,(pthread_mutexattr_t *)&attr)" ( (cast_expression "(pthread_mutex_t *)&this->mutex_" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&this->mutex_" & (field_expression "this->mutex_" identifier -> field_identifier))) , (cast_expression "(pthread_mutexattr_t *)&attr" ( (type_descriptor "pthread_mutexattr_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&attr" & identifier)) )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy((pthread_mutexattr_t *)&attr);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = pthread_mutexattr_destroy((pthread_mutexattr_t *)&attr);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }" { (expression_statement "iVar1 = pthread_mutexattr_destroy((pthread_mutexattr_t *)&attr);" (assignment_expression "iVar1 = pthread_mutexattr_destroy((pthread_mutexattr_t *)&attr)" identifier = (call_expression "pthread_mutexattr_destroy((pthread_mutexattr_t *)&attr)" identifier (argument_list "((pthread_mutexattr_t *)&attr)" ( (cast_expression "(pthread_mutexattr_t *)&attr" ( (type_descriptor "pthread_mutexattr_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&attr" & 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 "pcVar3 = strerror(iVar1);" (assignment_expression "pcVar3 = strerror(iVar1)" identifier = (call_expression "strerror(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "pcVar2 = "pthread_mutexattr_destroy failed: %s";" (assignment_expression "pcVar2 = "pthread_mutexattr_destroy failed: %s"" identifier = (string_literal ""pthread_mutexattr_destroy failed: %s"" " string_content ")) ;) }) (else_clause "else {\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }" else (compound_statement "{\n      pcVar3 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }" { (expression_statement "pcVar3 = strerror(iVar1);" (assignment_expression "pcVar3 = strerror(iVar1)" identifier = (call_expression "strerror(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "pcVar2 = "pthread_mutex_init failed: %s";" (assignment_expression "pcVar2 = "pthread_mutex_init failed: %s"" identifier = (string_literal ""pthread_mutex_init failed: %s"" " string_content ")) ;) }))) }) (else_clause "else {\n    pcVar3 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }" else (compound_statement "{\n    pcVar3 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }" { (expression_statement "pcVar3 = strerror(iVar1);" (assignment_expression "pcVar3 = strerror(iVar1)" identifier = (call_expression "strerror(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "pcVar2 = "pthead_mutexattr_init failed: %s";" (assignment_expression "pcVar2 = "pthead_mutexattr_init failed: %s"" identifier = (string_literal ""pthead_mutexattr_init failed: %s"" " string_content ")) ;) }))) (expression_statement "pcVar2 = (char *)gettext(pcVar2);" (assignment_expression "pcVar2 = (char *)gettext(pcVar2)" identifier = (cast_expression "(char *)gettext(pcVar2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))))) ;) comment (expression_statement "gold_fatal(pcVar2,pcVar3);" (call_expression "gold_fatal(pcVar2,pcVar3)" identifier (argument_list "(pcVar2,pcVar3)" ( identifier , identifier ))) ;) })))
(translation_unit "void FUN_00061e40(undefined4 *param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_10;\n  \n  local_10.__align = 0x61e48;\n  *param_1 = &PTR_FUN_002f789c;\n  iVar1 = pthread_mutexattr_init(&local_10);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar3 = gettext(pcVar2);\n                    \n  FUN_0005aca0(uVar3,pcVar4);\n}\n\n" (function_definition "void FUN_00061e40(undefined4 *param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_10;\n  \n  local_10.__align = 0x61e48;\n  *param_1 = &PTR_FUN_002f789c;\n  iVar1 = pthread_mutexattr_init(&local_10);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar3 = gettext(pcVar2);\n                    \n  FUN_0005aca0(uVar3,pcVar4);\n}" primitive_type (function_declarator "FUN_00061e40(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_10;\n  \n  local_10.__align = 0x61e48;\n  *param_1 = &PTR_FUN_002f789c;\n  iVar1 = pthread_mutexattr_init(&local_10);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar3 = gettext(pcVar2);\n                    \n  FUN_0005aca0(uVar3,pcVar4);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "pthread_mutexattr_t local_10;" type_identifier identifier ;) (expression_statement "local_10.__align = 0x61e48;" (assignment_expression "local_10.__align = 0x61e48" (field_expression "local_10.__align" identifier . field_identifier) = number_literal) ;) (expression_statement "*param_1 = &PTR_FUN_002f789c;" (assignment_expression "*param_1 = &PTR_FUN_002f789c" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_002f789c" & identifier)) ;) (expression_statement "iVar1 = pthread_mutexattr_init(&local_10);" (assignment_expression "iVar1 = pthread_mutexattr_init(&local_10)" identifier = (call_expression "pthread_mutexattr_init(&local_10)" identifier (argument_list "(&local_10)" ( (pointer_expression "&local_10" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }" { (expression_statement "iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);" (assignment_expression "iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10)" identifier = (call_expression "pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10)" identifier (argument_list "((pthread_mutex_t *)(param_1 + 1),&local_10)" ( (cast_expression "(pthread_mutex_t *)(param_1 + 1)" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) , (pointer_expression "&local_10" & identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }" { (expression_statement "iVar1 = pthread_mutexattr_destroy(&local_10);" (assignment_expression "iVar1 = pthread_mutexattr_destroy(&local_10)" identifier = (call_expression "pthread_mutexattr_destroy(&local_10)" identifier (argument_list "(&local_10)" ( (pointer_expression "&local_10" & 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 "pcVar4 = strerror(iVar1);" (assignment_expression "pcVar4 = strerror(iVar1)" identifier = (call_expression "strerror(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "pcVar2 = "pthread_mutexattr_destroy failed: %s";" (assignment_expression "pcVar2 = "pthread_mutexattr_destroy failed: %s"" identifier = (string_literal ""pthread_mutexattr_destroy failed: %s"" " string_content ")) ;) }) (else_clause "else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }" else (compound_statement "{\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }" { (expression_statement "pcVar4 = strerror(iVar1);" (assignment_expression "pcVar4 = strerror(iVar1)" identifier = (call_expression "strerror(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "pcVar2 = "pthread_mutex_init failed: %s";" (assignment_expression "pcVar2 = "pthread_mutex_init failed: %s"" identifier = (string_literal ""pthread_mutex_init failed: %s"" " string_content ")) ;) }))) }) (else_clause "else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }" else (compound_statement "{\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }" { (expression_statement "pcVar4 = strerror(iVar1);" (assignment_expression "pcVar4 = strerror(iVar1)" identifier = (call_expression "strerror(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "pcVar2 = "pthead_mutexattr_init failed: %s";" (assignment_expression "pcVar2 = "pthead_mutexattr_init failed: %s"" identifier = (string_literal ""pthead_mutexattr_init failed: %s"" " string_content ")) ;) }))) (expression_statement "uVar3 = gettext(pcVar2);" (assignment_expression "uVar3 = gettext(pcVar2)" identifier = (call_expression "gettext(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "FUN_0005aca0(uVar3,pcVar4);" (call_expression "FUN_0005aca0(uVar3,pcVar4)" identifier (argument_list "(uVar3,pcVar4)" ( 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) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })))
(function_definition "void FUN_00061e40(undefined4 *param_1)\n\n{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_10;\n  \n  local_10.__align = 0x61e48;\n  *param_1 = &PTR_FUN_002f789c;\n  iVar1 = pthread_mutexattr_init(&local_10);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar3 = gettext(pcVar2);\n                    \n  FUN_0005aca0(uVar3,pcVar4);\n}" (primitive_type "void") (function_declarator "FUN_00061e40(undefined4 *param_1)" (identifier "FUN_00061e40") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_10;\n  \n  local_10.__align = 0x61e48;\n  *param_1 = &PTR_FUN_002f789c;\n  iVar1 = pthread_mutexattr_init(&local_10);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar3 = gettext(pcVar2);\n                    \n  FUN_0005aca0(uVar3,pcVar4);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "pthread_mutexattr_t local_10;" (type_identifier "pthread_mutexattr_t") (identifier "local_10") (; ";")) (expression_statement "local_10.__align = 0x61e48;" (assignment_expression "local_10.__align = 0x61e48" (field_expression "local_10.__align" (identifier "local_10") (. ".") (field_identifier "__align")) (= "=") (number_literal "0x61e48")) (; ";")) (expression_statement "*param_1 = &PTR_FUN_002f789c;" (assignment_expression "*param_1 = &PTR_FUN_002f789c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_002f789c" (& "&") (identifier "PTR_FUN_002f789c"))) (; ";")) (expression_statement "iVar1 = pthread_mutexattr_init(&local_10);" (assignment_expression "iVar1 = pthread_mutexattr_init(&local_10)" (identifier "iVar1") (= "=") (call_expression "pthread_mutexattr_init(&local_10)" (identifier "pthread_mutexattr_init") (argument_list "(&local_10)" (( "(") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }\n  }" ({ "{") (expression_statement "iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);" (assignment_expression "iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10)" (identifier "iVar1") (= "=") (call_expression "pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10)" (identifier "pthread_mutex_init") (argument_list "((pthread_mutex_t *)(param_1 + 1),&local_10)" (( "(") (cast_expression "(pthread_mutex_t *)(param_1 + 1)" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (, ",") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = pthread_mutexattr_destroy(&local_10);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutexattr_destroy failed: %s";\n    }" ({ "{") (expression_statement "iVar1 = pthread_mutexattr_destroy(&local_10);" (assignment_expression "iVar1 = pthread_mutexattr_destroy(&local_10)" (identifier "iVar1") (= "=") (call_expression "pthread_mutexattr_destroy(&local_10)" (identifier "pthread_mutexattr_destroy") (argument_list "(&local_10)" (( "(") (pointer_expression "&local_10" (& "&") (identifier "local_10")) () ")")))) (; ";")) (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 "pcVar4 = strerror(iVar1);" (assignment_expression "pcVar4 = strerror(iVar1)" (identifier "pcVar4") (= "=") (call_expression "strerror(iVar1)" (identifier "strerror") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "pcVar2 = "pthread_mutexattr_destroy failed: %s";" (assignment_expression "pcVar2 = "pthread_mutexattr_destroy failed: %s"" (identifier "pcVar2") (= "=") (string_literal ""pthread_mutexattr_destroy failed: %s"" (" """) (string_content "pthread_mutexattr_destroy failed: %s") (" """))) (; ";")) (} "}")) (else_clause "else {\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }" (else "else") (compound_statement "{\n      pcVar4 = strerror(iVar1);\n      pcVar2 = "pthread_mutex_init failed: %s";\n    }" ({ "{") (expression_statement "pcVar4 = strerror(iVar1);" (assignment_expression "pcVar4 = strerror(iVar1)" (identifier "pcVar4") (= "=") (call_expression "strerror(iVar1)" (identifier "strerror") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "pcVar2 = "pthread_mutex_init failed: %s";" (assignment_expression "pcVar2 = "pthread_mutex_init failed: %s"" (identifier "pcVar2") (= "=") (string_literal ""pthread_mutex_init failed: %s"" (" """) (string_content "pthread_mutex_init failed: %s") (" """))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }" (else "else") (compound_statement "{\n    pcVar4 = strerror(iVar1);\n    pcVar2 = "pthead_mutexattr_init failed: %s";\n  }" ({ "{") (expression_statement "pcVar4 = strerror(iVar1);" (assignment_expression "pcVar4 = strerror(iVar1)" (identifier "pcVar4") (= "=") (call_expression "strerror(iVar1)" (identifier "strerror") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "pcVar2 = "pthead_mutexattr_init failed: %s";" (assignment_expression "pcVar2 = "pthead_mutexattr_init failed: %s"" (identifier "pcVar2") (= "=") (string_literal ""pthead_mutexattr_init failed: %s"" (" """) (string_content "pthead_mutexattr_init failed: %s") (" """))) (; ";")) (} "}")))) (expression_statement "uVar3 = gettext(pcVar2);" (assignment_expression "uVar3 = gettext(pcVar2)" (identifier "uVar3") (= "=") (call_expression "gettext(pcVar2)" (identifier "gettext") (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")")))) (; ";")) (expression_statement "FUN_0005aca0(uVar3,pcVar4);" (call_expression "FUN_0005aca0(uVar3,pcVar4)" (identifier "FUN_0005aca0") (argument_list "(uVar3,pcVar4)" (( "(") (identifier "uVar3") (, ",") (identifier "pcVar4") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void Lock_impl_threads(Lock_impl_threads * this) */

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

{
  int var_2;
  char *pcVar2;
  char *pcVar3;
  type_1 attr;
  
  attr.__align = 0x61e48;
  (this->super_Lock_impl)._vptr_Lock_impl = (type_2 **)&PTR__Lock_impl_threads_002f789c;
  var_2 = var_1((type_1 *)&attr);
  if (var_2 == 0) {
    var_2 = var_3((type_3 *)&this->mutex_,(type_1 *)&attr);
    if (var_2 == 0) {
      var_2 = var_4((type_1 *)&attr);
      if (var_2 == 0) {
        return;
      }
      pcVar3 = var_5(var_2);
      pcVar2 = "pthread_mutexattr_destroy failed: %s";
    }
    else {
      pcVar3 = var_5(var_2);
      pcVar2 = "pthread_mutex_init failed: %s";
    }
  }
  else {
    pcVar3 = var_5(var_2);
    pcVar2 = "pthead_mutexattr_init failed: %s";
  }
  pcVar2 = (char *)var_6(pcVar2);
                    /* WARNING: Subroutine does not return */
  var_7(pcVar2,pcVar3);
}


(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: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(undefined4 *param_1)

{
  int iVar1;
  char *pcVar2;
  undefined4 uVar3;
  char *pcVar4;
  pthread_mutexattr_t local_10;
  
  local_10.__align = 0x61e48;
  *param_1 = &PTR_FUN_002f789c;
  iVar1 = pthread_mutexattr_init(&local_10);
  if (iVar1 == 0) {
    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),&local_10);
    if (iVar1 == 0) {
      iVar1 = pthread_mutexattr_destroy(&local_10);
      if (iVar1 == 0) {
        return;
      }
      pcVar4 = strerror(iVar1);
      pcVar2 = "pthread_mutexattr_destroy failed: %s";
    }
    else {
      pcVar4 = strerror(iVar1);
      pcVar2 = "pthread_mutex_init failed: %s";
    }
  }
  else {
    pcVar4 = strerror(iVar1);
    pcVar2 = "pthead_mutexattr_init failed: %s";
  }
  uVar3 = gettext(pcVar2);
                    /* WARNING: Subroutine does not return */
  FUN_0005aca0(uVar3,pcVar4);
}

