
/* 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;
  
  (this->super_Lock_impl)._vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_threads_00426cc8;
  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;
      }
      pcVar2 = strerror(iVar1);
      pcVar3 = "pthread_mutexattr_destroy failed: %s";
    }
    else {
      pcVar2 = strerror(iVar1);
      pcVar3 = "pthread_mutex_init failed: %s";
    }
  }
  else {
    pcVar2 = strerror(iVar1);
    pcVar3 = "pthead_mutexattr_init failed: %s";
  }
  pcVar3 = (char *)gettext(pcVar3);
                    /* WARNING: Subroutine does not return */
  gold_fatal(pcVar3,pcVar2);
}



void FUN_0017f070(undefined8 *param_1)

{
  int iVar1;
  undefined8 uVar2;
  char *pcVar3;
  char *pcVar4;
  pthread_mutexattr_t local_1c [3];
  
  *param_1 = &PTR_FUN_00426cc8;
  iVar1 = pthread_mutexattr_init(local_1c);
  if (iVar1 == 0) {
    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);
    if (iVar1 == 0) {
      iVar1 = pthread_mutexattr_destroy(local_1c);
      if (iVar1 == 0) {
        return;
      }
      pcVar3 = strerror(iVar1);
      pcVar4 = "pthread_mutexattr_destroy failed: %s";
    }
    else {
      pcVar3 = strerror(iVar1);
      pcVar4 = "pthread_mutex_init failed: %s";
    }
  }
  else {
    pcVar3 = strerror(iVar1);
    pcVar4 = "pthead_mutexattr_init failed: %s";
  }
  uVar2 = gettext(pcVar4);
                    /* WARNING: Subroutine does not return */
  FUN_001781e0(uVar2,pcVar3);
}


PUSH RBP
LEA RAX,[0x426cc8]
PUSH RBX
MOV RBX,RDI
SUB RSP,0x18
MOV qword ptr [RDI],RAX
LEA RBP,[RSP + 0xc]
MOV RDI,RBP
CALL 0x001479f0
TEST EAX,EAX
JNZ 0x0017f0b7
LEA RDI,[RBX + 0x8]
MOV RSI,RBP
CALL 0x001473a0
TEST EAX,EAX
JNZ 0x0017f0ed
MOV RDI,RBP
CALL 0x00147240
TEST EAX,EAX
JNZ 0x0017f0da
ADD RSP,0x18
POP RBX
POP RBP
RET
MOV EDI,EAX
CALL 0x00147610
LEA RDI,[0x373068]
MOV RBX,RAX
CALL 0x00147320
MOV RSI,RBX
MOV RDI,RAX
XOR EAX,EAX
CALL 0x001781e0
MOV EDI,EAX
CALL 0x00147610
LEA RDI,[0x373090]
MOV RBX,RAX
JMP 0x0017f0c8
MOV EDI,EAX
CALL 0x00147610
LEA RDI,[0x3730f0]
MOV RBX,RAX
JMP 0x0017f0c8
(translation_unit "void FUN_0017f070(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_1c [3];\n  \n  *param_1 = &PTR_FUN_00426cc8;\n  iVar1 = pthread_mutexattr_init(local_1c);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar2 = gettext(pcVar4);\n                    /* WARNING: Subroutine does not return */\n  FUN_001781e0(uVar2,pcVar3);\n}\n\n" (function_definition "void FUN_0017f070(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_1c [3];\n  \n  *param_1 = &PTR_FUN_00426cc8;\n  iVar1 = pthread_mutexattr_init(local_1c);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar2 = gettext(pcVar4);\n                    /* WARNING: Subroutine does not return */\n  FUN_001781e0(uVar2,pcVar3);\n}" primitive_type (function_declarator "FUN_0017f070(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_1c [3];\n  \n  *param_1 = &PTR_FUN_00426cc8;\n  iVar1 = pthread_mutexattr_init(local_1c);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar2 = gettext(pcVar4);\n                    /* WARNING: Subroutine does not return */\n  FUN_001781e0(uVar2,pcVar3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "pthread_mutexattr_t local_1c [3];" type_identifier (array_declarator "local_1c [3]" identifier [ number_literal ]) ;) (expression_statement "*param_1 = &PTR_FUN_00426cc8;" (assignment_expression "*param_1 = &PTR_FUN_00426cc8" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00426cc8" & identifier)) ;) (expression_statement "iVar1 = pthread_mutexattr_init(local_1c);" (assignment_expression "iVar1 = pthread_mutexattr_init(local_1c)" identifier = (call_expression "pthread_mutexattr_init(local_1c)" identifier (argument_list "(local_1c)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "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_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }" { (expression_statement "iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);" (assignment_expression "iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c)" identifier = (call_expression "pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c)" identifier (argument_list "((pthread_mutex_t *)(param_1 + 1),local_1c)" ( (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) ))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "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_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }" { (expression_statement "iVar1 = pthread_mutexattr_destroy(local_1c);" (assignment_expression "iVar1 = pthread_mutexattr_destroy(local_1c)" identifier = (call_expression "pthread_mutexattr_destroy(local_1c)" identifier (argument_list "(local_1c)" ( 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 "pcVar4 = "pthread_mutexattr_destroy failed: %s";" (assignment_expression "pcVar4 = "pthread_mutexattr_destroy failed: %s"" identifier = (string_literal ""pthread_mutexattr_destroy failed: %s"" " string_content ")) ;) }) (else_clause "else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }" else (compound_statement "{\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "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 "pcVar4 = "pthread_mutex_init failed: %s";" (assignment_expression "pcVar4 = "pthread_mutex_init failed: %s"" identifier = (string_literal ""pthread_mutex_init failed: %s"" " string_content ")) ;) }))) }) (else_clause "else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "pthead_mutexattr_init failed: %s";\n  }" else (compound_statement "{\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "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 "pcVar4 = "pthead_mutexattr_init failed: %s";" (assignment_expression "pcVar4 = "pthead_mutexattr_init failed: %s"" identifier = (string_literal ""pthead_mutexattr_init failed: %s"" " string_content ")) ;) }))) (expression_statement "uVar2 = gettext(pcVar4);" (assignment_expression "uVar2 = gettext(pcVar4)" identifier = (call_expression "gettext(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) comment (expression_statement "FUN_001781e0(uVar2,pcVar3);" (call_expression "FUN_001781e0(uVar2,pcVar3)" identifier (argument_list "(uVar2,pcVar3)" ( identifier , identifier ))) ;) })))
(translation_unit "/* 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  (this->super_Lock_impl)._vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_threads_00426cc8;\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      pcVar2 = strerror(iVar1);\n      pcVar3 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar2 = strerror(iVar1);\n      pcVar3 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar2 = strerror(iVar1);\n    pcVar3 = "pthead_mutexattr_init failed: %s";\n  }\n  pcVar3 = (char *)gettext(pcVar3);\n                    /* WARNING: Subroutine does not return */\n  gold_fatal(pcVar3,pcVar2);\n}\n\n" 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  (this->super_Lock_impl)._vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_threads_00426cc8;\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      pcVar2 = strerror(iVar1);\n      pcVar3 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar2 = strerror(iVar1);\n      pcVar3 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar2 = strerror(iVar1);\n    pcVar3 = "pthead_mutexattr_init failed: %s";\n  }\n  pcVar3 = (char *)gettext(pcVar3);\n                    /* WARNING: Subroutine does not return */\n  gold_fatal(pcVar3,pcVar2);\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  (this->super_Lock_impl)._vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_threads_00426cc8;\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      pcVar2 = strerror(iVar1);\n      pcVar3 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar2 = strerror(iVar1);\n      pcVar3 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar2 = strerror(iVar1);\n    pcVar3 = "pthead_mutexattr_init failed: %s";\n  }\n  pcVar3 = (char *)gettext(pcVar3);\n                    /* WARNING: Subroutine does not return */\n  gold_fatal(pcVar3,pcVar2);\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 "(this->super_Lock_impl)._vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_threads_00426cc8;" (assignment_expression "(this->super_Lock_impl)._vptr_Lock_impl = (_func_int_varargs **)&PTR__Lock_impl_threads_00426cc8" (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_00426cc8" ( (type_descriptor "_func_int_varargs **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "&PTR__Lock_impl_threads_00426cc8" & 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      pcVar2 = strerror(iVar1);\n      pcVar3 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar2 = strerror(iVar1);\n      pcVar3 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar2 = strerror(iVar1);\n    pcVar3 = "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      pcVar2 = strerror(iVar1);\n      pcVar3 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar2 = strerror(iVar1);\n      pcVar3 = "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      pcVar2 = strerror(iVar1);\n      pcVar3 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar2 = strerror(iVar1);\n      pcVar3 = "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      pcVar2 = strerror(iVar1);\n      pcVar3 = "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 "pcVar2 = strerror(iVar1);" (assignment_expression "pcVar2 = strerror(iVar1)" identifier = (call_expression "strerror(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "pcVar3 = "pthread_mutexattr_destroy failed: %s";" (assignment_expression "pcVar3 = "pthread_mutexattr_destroy failed: %s"" identifier = (string_literal ""pthread_mutexattr_destroy failed: %s"" " string_content ")) ;) }) (else_clause "else {\n      pcVar2 = strerror(iVar1);\n      pcVar3 = "pthread_mutex_init failed: %s";\n    }" else (compound_statement "{\n      pcVar2 = strerror(iVar1);\n      pcVar3 = "pthread_mutex_init failed: %s";\n    }" { (expression_statement "pcVar2 = strerror(iVar1);" (assignment_expression "pcVar2 = strerror(iVar1)" identifier = (call_expression "strerror(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "pcVar3 = "pthread_mutex_init failed: %s";" (assignment_expression "pcVar3 = "pthread_mutex_init failed: %s"" identifier = (string_literal ""pthread_mutex_init failed: %s"" " string_content ")) ;) }))) }) (else_clause "else {\n    pcVar2 = strerror(iVar1);\n    pcVar3 = "pthead_mutexattr_init failed: %s";\n  }" else (compound_statement "{\n    pcVar2 = strerror(iVar1);\n    pcVar3 = "pthead_mutexattr_init failed: %s";\n  }" { (expression_statement "pcVar2 = strerror(iVar1);" (assignment_expression "pcVar2 = strerror(iVar1)" identifier = (call_expression "strerror(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (expression_statement "pcVar3 = "pthead_mutexattr_init failed: %s";" (assignment_expression "pcVar3 = "pthead_mutexattr_init failed: %s"" identifier = (string_literal ""pthead_mutexattr_init failed: %s"" " string_content ")) ;) }))) (expression_statement "pcVar3 = (char *)gettext(pcVar3);" (assignment_expression "pcVar3 = (char *)gettext(pcVar3)" identifier = (cast_expression "(char *)gettext(pcVar3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "gettext(pcVar3)" identifier (argument_list "(pcVar3)" ( identifier ))))) ;) comment (expression_statement "gold_fatal(pcVar3,pcVar2);" (call_expression "gold_fatal(pcVar3,pcVar2)" identifier (argument_list "(pcVar3,pcVar2)" ( identifier , identifier ))) ;) })))
(translation_unit "void FUN_0017f070(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_1c [3];\n  \n  *param_1 = &PTR_FUN_00426cc8;\n  iVar1 = pthread_mutexattr_init(local_1c);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar2 = gettext(pcVar4);\n                    \n  FUN_001781e0(uVar2,pcVar3);\n}\n\n" (function_definition "void FUN_0017f070(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_1c [3];\n  \n  *param_1 = &PTR_FUN_00426cc8;\n  iVar1 = pthread_mutexattr_init(local_1c);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar2 = gettext(pcVar4);\n                    \n  FUN_001781e0(uVar2,pcVar3);\n}" primitive_type (function_declarator "FUN_0017f070(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_1c [3];\n  \n  *param_1 = &PTR_FUN_00426cc8;\n  iVar1 = pthread_mutexattr_init(local_1c);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar2 = gettext(pcVar4);\n                    \n  FUN_001781e0(uVar2,pcVar3);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "pthread_mutexattr_t local_1c [3];" type_identifier (array_declarator "local_1c [3]" identifier [ number_literal ]) ;) (expression_statement "*param_1 = &PTR_FUN_00426cc8;" (assignment_expression "*param_1 = &PTR_FUN_00426cc8" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00426cc8" & identifier)) ;) (expression_statement "iVar1 = pthread_mutexattr_init(local_1c);" (assignment_expression "iVar1 = pthread_mutexattr_init(local_1c)" identifier = (call_expression "pthread_mutexattr_init(local_1c)" identifier (argument_list "(local_1c)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "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_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }" { (expression_statement "iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);" (assignment_expression "iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c)" identifier = (call_expression "pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c)" identifier (argument_list "((pthread_mutex_t *)(param_1 + 1),local_1c)" ( (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) ))) , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "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_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }" { (expression_statement "iVar1 = pthread_mutexattr_destroy(local_1c);" (assignment_expression "iVar1 = pthread_mutexattr_destroy(local_1c)" identifier = (call_expression "pthread_mutexattr_destroy(local_1c)" identifier (argument_list "(local_1c)" ( 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 "pcVar4 = "pthread_mutexattr_destroy failed: %s";" (assignment_expression "pcVar4 = "pthread_mutexattr_destroy failed: %s"" identifier = (string_literal ""pthread_mutexattr_destroy failed: %s"" " string_content ")) ;) }) (else_clause "else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }" else (compound_statement "{\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "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 "pcVar4 = "pthread_mutex_init failed: %s";" (assignment_expression "pcVar4 = "pthread_mutex_init failed: %s"" identifier = (string_literal ""pthread_mutex_init failed: %s"" " string_content ")) ;) }))) }) (else_clause "else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "pthead_mutexattr_init failed: %s";\n  }" else (compound_statement "{\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "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 "pcVar4 = "pthead_mutexattr_init failed: %s";" (assignment_expression "pcVar4 = "pthead_mutexattr_init failed: %s"" identifier = (string_literal ""pthead_mutexattr_init failed: %s"" " string_content ")) ;) }))) (expression_statement "uVar2 = gettext(pcVar4);" (assignment_expression "uVar2 = gettext(pcVar4)" identifier = (call_expression "gettext(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "FUN_001781e0(uVar2,pcVar3);" (call_expression "FUN_001781e0(uVar2,pcVar3)" identifier (argument_list "(uVar2,pcVar3)" ( 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 IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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) ))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( 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_0017f070(undefined8 *param_1)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_1c [3];\n  \n  *param_1 = &PTR_FUN_00426cc8;\n  iVar1 = pthread_mutexattr_init(local_1c);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar2 = gettext(pcVar4);\n                    \n  FUN_001781e0(uVar2,pcVar3);\n}" (primitive_type "void") (function_declarator "FUN_0017f070(undefined8 *param_1)" (identifier "FUN_0017f070") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  char *pcVar3;\n  char *pcVar4;\n  pthread_mutexattr_t local_1c [3];\n  \n  *param_1 = &PTR_FUN_00426cc8;\n  iVar1 = pthread_mutexattr_init(local_1c);\n  if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "pthead_mutexattr_init failed: %s";\n  }\n  uVar2 = gettext(pcVar4);\n                    \n  FUN_001781e0(uVar2,pcVar3);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "pthread_mutexattr_t local_1c [3];" (type_identifier "pthread_mutexattr_t") (array_declarator "local_1c [3]" (identifier "local_1c") ([ "[") (number_literal "3") (] "]")) (; ";")) (expression_statement "*param_1 = &PTR_FUN_00426cc8;" (assignment_expression "*param_1 = &PTR_FUN_00426cc8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_00426cc8" (& "&") (identifier "PTR_FUN_00426cc8"))) (; ";")) (expression_statement "iVar1 = pthread_mutexattr_init(local_1c);" (assignment_expression "iVar1 = pthread_mutexattr_init(local_1c)" (identifier "iVar1") (= "=") (call_expression "pthread_mutexattr_init(local_1c)" (identifier "pthread_mutexattr_init") (argument_list "(local_1c)" (( "(") (identifier "local_1c") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }\n  else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "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_1c);\n    if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }\n  }" ({ "{") (expression_statement "iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);" (assignment_expression "iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c)" (identifier "iVar1") (= "=") (call_expression "pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c)" (identifier "pthread_mutex_init") (argument_list "((pthread_mutex_t *)(param_1 + 1),local_1c)" (( "(") (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")) () ")"))) (, ",") (identifier "local_1c") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      iVar1 = pthread_mutexattr_destroy(local_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }\n    else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "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_1c);\n      if (iVar1 == 0) {\n        return;\n      }\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutexattr_destroy failed: %s";\n    }" ({ "{") (expression_statement "iVar1 = pthread_mutexattr_destroy(local_1c);" (assignment_expression "iVar1 = pthread_mutexattr_destroy(local_1c)" (identifier "iVar1") (= "=") (call_expression "pthread_mutexattr_destroy(local_1c)" (identifier "pthread_mutexattr_destroy") (argument_list "(local_1c)" (( "(") (identifier "local_1c") () ")")))) (; ";")) (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 "pcVar3 = strerror(iVar1);" (assignment_expression "pcVar3 = strerror(iVar1)" (identifier "pcVar3") (= "=") (call_expression "strerror(iVar1)" (identifier "strerror") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "pcVar4 = "pthread_mutexattr_destroy failed: %s";" (assignment_expression "pcVar4 = "pthread_mutexattr_destroy failed: %s"" (identifier "pcVar4") (= "=") (string_literal ""pthread_mutexattr_destroy failed: %s"" (" """) (string_content "pthread_mutexattr_destroy failed: %s") (" """))) (; ";")) (} "}")) (else_clause "else {\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }" (else "else") (compound_statement "{\n      pcVar3 = strerror(iVar1);\n      pcVar4 = "pthread_mutex_init failed: %s";\n    }" ({ "{") (expression_statement "pcVar3 = strerror(iVar1);" (assignment_expression "pcVar3 = strerror(iVar1)" (identifier "pcVar3") (= "=") (call_expression "strerror(iVar1)" (identifier "strerror") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "pcVar4 = "pthread_mutex_init failed: %s";" (assignment_expression "pcVar4 = "pthread_mutex_init failed: %s"" (identifier "pcVar4") (= "=") (string_literal ""pthread_mutex_init failed: %s"" (" """) (string_content "pthread_mutex_init failed: %s") (" """))) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "pthead_mutexattr_init failed: %s";\n  }" (else "else") (compound_statement "{\n    pcVar3 = strerror(iVar1);\n    pcVar4 = "pthead_mutexattr_init failed: %s";\n  }" ({ "{") (expression_statement "pcVar3 = strerror(iVar1);" (assignment_expression "pcVar3 = strerror(iVar1)" (identifier "pcVar3") (= "=") (call_expression "strerror(iVar1)" (identifier "strerror") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "pcVar4 = "pthead_mutexattr_init failed: %s";" (assignment_expression "pcVar4 = "pthead_mutexattr_init failed: %s"" (identifier "pcVar4") (= "=") (string_literal ""pthead_mutexattr_init failed: %s"" (" """) (string_content "pthead_mutexattr_init failed: %s") (" """))) (; ";")) (} "}")))) (expression_statement "uVar2 = gettext(pcVar4);" (assignment_expression "uVar2 = gettext(pcVar4)" (identifier "uVar2") (= "=") (call_expression "gettext(pcVar4)" (identifier "gettext") (argument_list "(pcVar4)" (( "(") (identifier "pcVar4") () ")")))) (; ";")) (expression_statement "FUN_001781e0(uVar2,pcVar3);" (call_expression "FUN_001781e0(uVar2,pcVar3)" (identifier "FUN_001781e0") (argument_list "(uVar2,pcVar3)" (( "(") (identifier "uVar2") (, ",") (identifier "pcVar3") () ")"))) (; ";")) (} "}")))

/* 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;
  
  (this->super_Lock_impl)._vptr_Lock_impl = (type_2 **)&PTR__Lock_impl_threads_00426cc8;
  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;
      }
      pcVar2 = var_5(var_2);
      pcVar3 = "pthread_mutexattr_destroy failed: %s";
    }
    else {
      pcVar2 = var_5(var_2);
      pcVar3 = "pthread_mutex_init failed: %s";
    }
  }
  else {
    pcVar2 = var_5(var_2);
    pcVar3 = "pthead_mutexattr_init failed: %s";
  }
  pcVar3 = (char *)var_6(pcVar3);
                    /* WARNING: Subroutine does not return */
  var_7(pcVar3,pcVar2);
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (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 (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)))) (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 (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)))))))

void MASKED(undefined8 *param_1)

{
  int iVar1;
  undefined8 uVar2;
  char *pcVar3;
  char *pcVar4;
  pthread_mutexattr_t local_1c [3];
  
  *param_1 = &PTR_FUN_00426cc8;
  iVar1 = pthread_mutexattr_init(local_1c);
  if (iVar1 == 0) {
    iVar1 = pthread_mutex_init((pthread_mutex_t *)(param_1 + 1),local_1c);
    if (iVar1 == 0) {
      iVar1 = pthread_mutexattr_destroy(local_1c);
      if (iVar1 == 0) {
        return;
      }
      pcVar3 = strerror(iVar1);
      pcVar4 = "pthread_mutexattr_destroy failed: %s";
    }
    else {
      pcVar3 = strerror(iVar1);
      pcVar4 = "pthread_mutex_init failed: %s";
    }
  }
  else {
    pcVar3 = strerror(iVar1);
    pcVar4 = "pthead_mutexattr_init failed: %s";
  }
  uVar2 = gettext(pcVar4);
                    /* WARNING: Subroutine does not return */
  FUN_001781e0(uVar2,pcVar3);
}

