
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::Catalogs::_M_get(int) const */

void std::Catalogs::_M_get(int param_1)

{
}



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

int * FUN_003f67e0(pthread_mutex_t *param_1,int param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  int *piVar5;
  
  puVar1 = PTR___pthread_key_create_005e9ff8;
  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {
    iVar2 = pthread_mutex_lock(param_1);
    if (iVar2 != 0) {
      FUN_003adb70();
                    /* catch() { ... } // from try @ 003f68c6 with catch @ 003f68d3 */
      piVar5 = (int *)FUN_0004d83c();
      return piVar5;
    }
  }
  puVar3 = *(undefined4 **)((int)param_1 + 0x1c);
  for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;
      iVar2 = (iVar2 - iVar4) + -1) {
    while( true ) {
      iVar4 = iVar2 >> 1;
      if (*(int *)puVar3[iVar4] < param_2) break;
      iVar2 = iVar4;
      if (iVar4 == 0) goto LAB_003f6857;
    }
    puVar3 = puVar3 + iVar4 + 1;
  }
LAB_003f6857:
  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {
    piVar5 = (int *)0x0;
  }
  else {
    piVar5 = (int *)*puVar3;
    if (*piVar5 != param_2) {
      piVar5 = (int *)0x0;
    }
  }
  if (puVar1 != (undefined *)0x0) {
    iVar2 = pthread_mutex_unlock(param_1);
    if (iVar2 != 0) {
      puVar3 = (undefined4 *)FUN_003adeb0(4);
      *puVar3 = &DAT_005e6fc8;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 003f68c6 to 003f68ca has its CatchHandler @ 003f68d3 */
      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);
    }
  }
  return piVar5;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x1f3815
SUB ESP,0x1c
MOV ESI,dword ptr [EBP + 0xc]
MOV EAX,dword ptr [EBX + 0xfffffff8]
MOV dword ptr [EBP + -0x24],EBX
MOV dword ptr [EBP + -0x20],EAX
TEST EAX,EAX
JZ 0x003f681d
SUB ESP,0xc
PUSH dword ptr [EBP + 0x8]
CALL 0x000396b0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x003f68cb
MOV EAX,dword ptr [EBP + 0x8]
MOV EDI,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EAX + 0x20]
MOV EBX,dword ptr [EDI + 0x1c]
MOV dword ptr [EBP + -0x1c],EAX
SUB EAX,EBX
SAR EAX,0x2
JMP 0x003f6840
SUB EAX,EDX
LEA EBX,[ECX + 0x4]
SUB EAX,0x1
TEST EAX,EAX
JLE 0x003f6857
MOV EDX,EAX
SAR EDX,0x1
LEA ECX,[EBX + EDX*0x4]
MOV EDI,dword ptr [ECX]
CMP dword ptr [EDI],ESI
JL 0x003f6838
MOV EAX,EDX
TEST EDX,EDX
JNZ 0x003f6844
CMP dword ptr [EBP + -0x1c],EBX
JZ 0x003f6898
MOV EDX,dword ptr [EBX]
MOV EAX,0x0
CMP dword ptr [EDX],ESI
CMOVNZ EDX,EAX
MOV EAX,dword ptr [EBP + -0x20]
TEST EAX,EAX
JZ 0x003f688a
SUB ESP,0xc
PUSH dword ptr [EBP + 0x8]
MOV EBX,dword ptr [EBP + -0x24]
MOV dword ptr [EBP + -0x1c],EDX
CALL 0x000395e0
ADD ESP,0x10
MOV EDX,dword ptr [EBP + -0x1c]
TEST EAX,EAX
JNZ 0x003f689c
LEA ESP,[EBP + -0xc]
MOV EAX,EDX
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EDX,EDX
JMP 0x003f6868
SUB ESP,0xc
MOV EDI,dword ptr [EBP + -0x24]
PUSH 0x4
MOV EBX,EDI
CALL 0x003adeb0
LEA EDX,[EDI + 0xffffcfc0]
ADD ESP,0xc
ADD EDX,0x8
MOV dword ptr [EAX],EDX
PUSH dword ptr [EDI + 0xfffffbf0]
PUSH dword ptr [EDI + 0xfffffe60]
PUSH EAX
CALL 0x003ac900
MOV EBX,dword ptr [EBP + -0x24]
CALL 0x003adb70
JMP 0x0004d83c
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_003f67e0(pthread_mutex_t *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  \n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    /* catch() { ... } // from try @ 003f68c6 with catch @ 003f68d3 */\n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }\n  puVar3 = *(undefined4 **)((int)param_1 + 0x1c);\n  for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;\n      iVar2 = (iVar2 - iVar4) + -1) {\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }\nLAB_003f6857:\n  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 003f68c6 to 003f68ca has its CatchHandler @ 003f68d3 */\n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }\n  return piVar5;\n}\n\n" comment (function_definition "int * FUN_003f67e0(pthread_mutex_t *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  \n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    /* catch() { ... } // from try @ 003f68c6 with catch @ 003f68d3 */\n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }\n  puVar3 = *(undefined4 **)((int)param_1 + 0x1c);\n  for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;\n      iVar2 = (iVar2 - iVar4) + -1) {\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }\nLAB_003f6857:\n  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 003f68c6 to 003f68ca has its CatchHandler @ 003f68d3 */\n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }\n  return piVar5;\n}" primitive_type (pointer_declarator "* FUN_003f67e0(pthread_mutex_t *param_1,int param_2)" * (function_declarator "FUN_003f67e0(pthread_mutex_t *param_1,int param_2)" identifier (parameter_list "(pthread_mutex_t *param_1,int param_2)" ( (parameter_declaration "pthread_mutex_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  \n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    /* catch() { ... } // from try @ 003f68c6 with catch @ 003f68d3 */\n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }\n  puVar3 = *(undefined4 **)((int)param_1 + 0x1c);\n  for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;\n      iVar2 = (iVar2 - iVar4) + -1) {\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }\nLAB_003f6857:\n  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 003f68c6 to 003f68ca has its CatchHandler @ 003f68d3 */\n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }\n  return piVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "puVar1 = PTR___pthread_key_create_005e9ff8;" (assignment_expression "puVar1 = PTR___pthread_key_create_005e9ff8" identifier = identifier) ;) (if_statement "if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    /* catch() { ... } // from try @ 003f68c6 with catch @ 003f68d3 */\n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }" if (parenthesized_expression "(PTR___pthread_key_create_005e9ff8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_005e9ff8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    /* catch() { ... } // from try @ 003f68c6 with catch @ 003f68d3 */\n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }" { (expression_statement "iVar2 = pthread_mutex_lock(param_1);" (assignment_expression "iVar2 = pthread_mutex_lock(param_1)" identifier = (call_expression "pthread_mutex_lock(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      FUN_003adb70();\n                    /* catch() { ... } // from try @ 003f68c6 with catch @ 003f68d3 */\n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_003adb70();\n                    /* catch() { ... } // from try @ 003f68c6 with catch @ 003f68d3 */\n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }" { (expression_statement "FUN_003adb70();" (call_expression "FUN_003adb70()" identifier (argument_list "()" ( ))) ;) comment (expression_statement "piVar5 = (int *)FUN_0004d83c();" (assignment_expression "piVar5 = (int *)FUN_0004d83c()" identifier = (cast_expression "(int *)FUN_0004d83c()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004d83c()" identifier (argument_list "()" ( ))))) ;) (return_statement "return piVar5;" return identifier ;) })) })) (expression_statement "puVar3 = *(undefined4 **)((int)param_1 + 0x1c);" (assignment_expression "puVar3 = *(undefined4 **)((int)param_1 + 0x1c)" identifier = (pointer_expression "*(undefined4 **)((int)param_1 + 0x1c)" * (cast_expression "(undefined4 **)((int)param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0x1c)" ( (binary_expression "(int)param_1 + 0x1c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (for_statement "for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;\n      iVar2 = (iVar2 - iVar4) + -1) {\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }" for ( (assignment_expression "iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2" identifier = (binary_expression "(int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2" (binary_expression "(int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3" (cast_expression "(int)*(undefined4 **)((int)param_1 + 0x20)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(undefined4 **)((int)param_1 + 0x20)" * (cast_expression "(undefined4 **)((int)param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0x20)" ( (binary_expression "(int)param_1 + 0x20" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) - (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ; (binary_expression "0 < iVar2" number_literal < identifier) ; (assignment_expression "iVar2 = (iVar2 - iVar4) + -1" identifier = (binary_expression "(iVar2 - iVar4) + -1" (parenthesized_expression "(iVar2 - iVar4)" ( (binary_expression "iVar2 - iVar4" identifier - identifier) )) + number_literal)) ) (compound_statement "{\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }" { (while_statement "while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }" { (expression_statement "iVar4 = iVar2 >> 1;" (assignment_expression "iVar4 = iVar2 >> 1" identifier = (binary_expression "iVar2 >> 1" identifier >> number_literal)) ;) (if_statement "if (*(int *)puVar3[iVar4] < param_2) break;" if (parenthesized_expression "(*(int *)puVar3[iVar4] < param_2)" ( (binary_expression "*(int *)puVar3[iVar4] < param_2" (pointer_expression "*(int *)puVar3[iVar4]" * (cast_expression "(int *)puVar3[iVar4]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[iVar4]" identifier [ identifier ]))) < identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) (if_statement "if (iVar4 == 0) goto LAB_003f6857;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_003f6857;" goto statement_identifier ;)) })) (expression_statement "puVar3 = puVar3 + iVar4 + 1;" (assignment_expression "puVar3 = puVar3 + iVar4 + 1" identifier = (binary_expression "puVar3 + iVar4 + 1" (binary_expression "puVar3 + iVar4" identifier + identifier) + number_literal)) ;) })) (labeled_statement "LAB_003f6857:\n  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }" statement_identifier : (if_statement "if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }" if (parenthesized_expression "(*(undefined4 **)((int)param_1 + 0x20) == puVar3)" ( (binary_expression "*(undefined4 **)((int)param_1 + 0x20) == puVar3" (pointer_expression "*(undefined4 **)((int)param_1 + 0x20)" * (cast_expression "(undefined4 **)((int)param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0x20)" ( (binary_expression "(int)param_1 + 0x20" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    piVar5 = (int *)0x0;\n  }" { (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }" else (compound_statement "{\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }" { (expression_statement "piVar5 = (int *)*puVar3;" (assignment_expression "piVar5 = (int *)*puVar3" identifier = (cast_expression "(int *)*puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) (if_statement "if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }" if (parenthesized_expression "(*piVar5 != param_2)" ( (binary_expression "*piVar5 != param_2" (pointer_expression "*piVar5" * identifier) != identifier) )) (compound_statement "{\n      piVar5 = (int *)0x0;\n    }" { (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) })))) (if_statement "if (puVar1 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 003f68c6 to 003f68ca has its CatchHandler @ 003f68d3 */\n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 003f68c6 to 003f68ca has its CatchHandler @ 003f68d3 */\n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }" { (expression_statement "iVar2 = pthread_mutex_unlock(param_1);" (assignment_expression "iVar2 = pthread_mutex_unlock(param_1)" identifier = (call_expression "pthread_mutex_unlock(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 003f68c6 to 003f68ca has its CatchHandler @ 003f68d3 */\n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    /* WARNING: Subroutine does not return */\n                    /* try { // try from 003f68c6 to 003f68ca has its CatchHandler @ 003f68d3 */\n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }" { (expression_statement "puVar3 = (undefined4 *)FUN_003adeb0(4);" (assignment_expression "puVar3 = (undefined4 *)FUN_003adeb0(4)" identifier = (cast_expression "(undefined4 *)FUN_003adeb0(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003adeb0(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*puVar3 = &DAT_005e6fc8;" (assignment_expression "*puVar3 = &DAT_005e6fc8" (pointer_expression "*puVar3" * identifier) = (pointer_expression "&DAT_005e6fc8" & identifier)) ;) comment comment (expression_statement "FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);" (call_expression "FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0)" identifier (argument_list "(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return piVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::Catalogs::_M_get(int) const */\n\nvoid std::Catalogs::_M_get(int param_1)\n\n{\n}\n\n" comment comment (function_definition "void std::Catalogs::_M_get(int param_1)\n\n{\n}" primitive_type (ERROR "std::Catalogs::" identifier : : identifier : :) (function_declarator "_M_get(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "int * FUN_003f67e0(pthread_mutex_t *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  \n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }\n  puVar3 = *(undefined4 **)((int)param_1 + 0x1c);\n  for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;\n      iVar2 = (iVar2 - iVar4) + -1) {\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }\nLAB_003f6857:\n  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }\n  return piVar5;\n}\n\n" (function_definition "int * FUN_003f67e0(pthread_mutex_t *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  \n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }\n  puVar3 = *(undefined4 **)((int)param_1 + 0x1c);\n  for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;\n      iVar2 = (iVar2 - iVar4) + -1) {\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }\nLAB_003f6857:\n  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }\n  return piVar5;\n}" primitive_type (pointer_declarator "* FUN_003f67e0(pthread_mutex_t *param_1,int param_2)" * (function_declarator "FUN_003f67e0(pthread_mutex_t *param_1,int param_2)" identifier (parameter_list "(pthread_mutex_t *param_1,int param_2)" ( (parameter_declaration "pthread_mutex_t *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  \n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }\n  puVar3 = *(undefined4 **)((int)param_1 + 0x1c);\n  for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;\n      iVar2 = (iVar2 - iVar4) + -1) {\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }\nLAB_003f6857:\n  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }\n  return piVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (expression_statement "puVar1 = PTR___pthread_key_create_005e9ff8;" (assignment_expression "puVar1 = PTR___pthread_key_create_005e9ff8" identifier = identifier) ;) (if_statement "if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }" if (parenthesized_expression "(PTR___pthread_key_create_005e9ff8 != (undefined *)0x0)" ( (binary_expression "PTR___pthread_key_create_005e9ff8 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }" { (expression_statement "iVar2 = pthread_mutex_lock(param_1);" (assignment_expression "iVar2 = pthread_mutex_lock(param_1)" identifier = (call_expression "pthread_mutex_lock(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }" { (expression_statement "FUN_003adb70();" (call_expression "FUN_003adb70()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar5 = (int *)FUN_0004d83c();" (assignment_expression "piVar5 = (int *)FUN_0004d83c()" identifier = (cast_expression "(int *)FUN_0004d83c()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0004d83c()" identifier (argument_list "()" ( ))))) ;) (return_statement "return piVar5;" return identifier ;) })) })) (expression_statement "puVar3 = *(undefined4 **)((int)param_1 + 0x1c);" (assignment_expression "puVar3 = *(undefined4 **)((int)param_1 + 0x1c)" identifier = (pointer_expression "*(undefined4 **)((int)param_1 + 0x1c)" * (cast_expression "(undefined4 **)((int)param_1 + 0x1c)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0x1c)" ( (binary_expression "(int)param_1 + 0x1c" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (for_statement "for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;\n      iVar2 = (iVar2 - iVar4) + -1) {\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }" for ( (assignment_expression "iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2" identifier = (binary_expression "(int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2" (binary_expression "(int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3" (cast_expression "(int)*(undefined4 **)((int)param_1 + 0x20)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(undefined4 **)((int)param_1 + 0x20)" * (cast_expression "(undefined4 **)((int)param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0x20)" ( (binary_expression "(int)param_1 + 0x20" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) - (cast_expression "(int)puVar3" ( (type_descriptor "int" primitive_type) ) identifier)) >> number_literal)) ; (binary_expression "0 < iVar2" number_literal < identifier) ; (assignment_expression "iVar2 = (iVar2 - iVar4) + -1" identifier = (binary_expression "(iVar2 - iVar4) + -1" (parenthesized_expression "(iVar2 - iVar4)" ( (binary_expression "iVar2 - iVar4" identifier - identifier) )) + number_literal)) ) (compound_statement "{\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }" { (while_statement "while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }" { (expression_statement "iVar4 = iVar2 >> 1;" (assignment_expression "iVar4 = iVar2 >> 1" identifier = (binary_expression "iVar2 >> 1" identifier >> number_literal)) ;) (if_statement "if (*(int *)puVar3[iVar4] < param_2) break;" if (parenthesized_expression "(*(int *)puVar3[iVar4] < param_2)" ( (binary_expression "*(int *)puVar3[iVar4] < param_2" (pointer_expression "*(int *)puVar3[iVar4]" * (cast_expression "(int *)puVar3[iVar4]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar3[iVar4]" identifier [ identifier ]))) < identifier) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) (if_statement "if (iVar4 == 0) goto LAB_003f6857;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (goto_statement "goto LAB_003f6857;" goto statement_identifier ;)) })) (expression_statement "puVar3 = puVar3 + iVar4 + 1;" (assignment_expression "puVar3 = puVar3 + iVar4 + 1" identifier = (binary_expression "puVar3 + iVar4 + 1" (binary_expression "puVar3 + iVar4" identifier + identifier) + number_literal)) ;) })) (labeled_statement "LAB_003f6857:\n  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }" statement_identifier : (if_statement "if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }" if (parenthesized_expression "(*(undefined4 **)((int)param_1 + 0x20) == puVar3)" ( (binary_expression "*(undefined4 **)((int)param_1 + 0x20) == puVar3" (pointer_expression "*(undefined4 **)((int)param_1 + 0x20)" * (cast_expression "(undefined4 **)((int)param_1 + 0x20)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + 0x20)" ( (binary_expression "(int)param_1 + 0x20" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == identifier) )) (compound_statement "{\n    piVar5 = (int *)0x0;\n  }" { (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }" else (compound_statement "{\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }" { (expression_statement "piVar5 = (int *)*puVar3;" (assignment_expression "piVar5 = (int *)*puVar3" identifier = (cast_expression "(int *)*puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar3" * identifier))) ;) (if_statement "if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }" if (parenthesized_expression "(*piVar5 != param_2)" ( (binary_expression "*piVar5 != param_2" (pointer_expression "*piVar5" * identifier) != identifier) )) (compound_statement "{\n      piVar5 = (int *)0x0;\n    }" { (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) })))) (if_statement "if (puVar1 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }" if (parenthesized_expression "(puVar1 != (undefined *)0x0)" ( (binary_expression "puVar1 != (undefined *)0x0" identifier != (cast_expression "(undefined *)0x0" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }" { (expression_statement "iVar2 = pthread_mutex_unlock(param_1);" (assignment_expression "iVar2 = pthread_mutex_unlock(param_1)" identifier = (call_expression "pthread_mutex_unlock(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }" { (expression_statement "puVar3 = (undefined4 *)FUN_003adeb0(4);" (assignment_expression "puVar3 = (undefined4 *)FUN_003adeb0(4)" identifier = (cast_expression "(undefined4 *)FUN_003adeb0(4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003adeb0(4)" identifier (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "*puVar3 = &DAT_005e6fc8;" (assignment_expression "*puVar3 = &DAT_005e6fc8" (pointer_expression "*puVar3" * identifier) = (pointer_expression "&DAT_005e6fc8" & identifier)) ;) (expression_statement "FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);" (call_expression "FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0)" identifier (argument_list "(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0)" ( identifier , identifier , identifier ))) ;) })) })) (return_statement "return piVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) >> LIT)) ; (binary_expression LIT < IDENT) ; (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT)) ) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ IDENT ]))) < IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_003f67e0(pthread_mutex_t *param_1,int param_2)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  \n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }\n  puVar3 = *(undefined4 **)((int)param_1 + 0x1c);\n  for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;\n      iVar2 = (iVar2 - iVar4) + -1) {\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }\nLAB_003f6857:\n  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }\n  return piVar5;\n}" (primitive_type "int") (pointer_declarator "* FUN_003f67e0(pthread_mutex_t *param_1,int param_2)" (* "*") (function_declarator "FUN_003f67e0(pthread_mutex_t *param_1,int param_2)" (identifier "FUN_003f67e0") (parameter_list "(pthread_mutex_t *param_1,int param_2)" (( "(") (parameter_declaration "pthread_mutex_t *param_1" (type_identifier "pthread_mutex_t") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  undefined4 *puVar3;\n  int iVar4;\n  int *piVar5;\n  \n  puVar1 = PTR___pthread_key_create_005e9ff8;\n  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }\n  puVar3 = *(undefined4 **)((int)param_1 + 0x1c);\n  for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;\n      iVar2 = (iVar2 - iVar4) + -1) {\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }\nLAB_003f6857:\n  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }\n  if (puVar1 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }\n  return piVar5;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (expression_statement "puVar1 = PTR___pthread_key_create_005e9ff8;" (assignment_expression "puVar1 = PTR___pthread_key_create_005e9ff8" (identifier "puVar1") (= "=") (identifier "PTR___pthread_key_create_005e9ff8")) (; ";")) (if_statement "if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }" (if "if") (parenthesized_expression "(PTR___pthread_key_create_005e9ff8 != (undefined *)0x0)" (( "(") (binary_expression "PTR___pthread_key_create_005e9ff8 != (undefined *)0x0" (identifier "PTR___pthread_key_create_005e9ff8") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar2 = pthread_mutex_lock(param_1);\n    if (iVar2 != 0) {\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }\n  }" ({ "{") (expression_statement "iVar2 = pthread_mutex_lock(param_1);" (assignment_expression "iVar2 = pthread_mutex_lock(param_1)" (identifier "iVar2") (= "=") (call_expression "pthread_mutex_lock(param_1)" (identifier "pthread_mutex_lock") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_003adb70();\n                    \n      piVar5 = (int *)FUN_0004d83c();\n      return piVar5;\n    }" ({ "{") (expression_statement "FUN_003adb70();" (call_expression "FUN_003adb70()" (identifier "FUN_003adb70") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar5 = (int *)FUN_0004d83c();" (assignment_expression "piVar5 = (int *)FUN_0004d83c()" (identifier "piVar5") (= "=") (cast_expression "(int *)FUN_0004d83c()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0004d83c()" (identifier "FUN_0004d83c") (argument_list "()" (( "(") () ")"))))) (; ";")) (return_statement "return piVar5;" (return "return") (identifier "piVar5") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar3 = *(undefined4 **)((int)param_1 + 0x1c);" (assignment_expression "puVar3 = *(undefined4 **)((int)param_1 + 0x1c)" (identifier "puVar3") (= "=") (pointer_expression "*(undefined4 **)((int)param_1 + 0x1c)" (* "*") (cast_expression "(undefined4 **)((int)param_1 + 0x1c)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + 0x1c)" (( "(") (binary_expression "(int)param_1 + 0x1c" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (for_statement "for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;\n      iVar2 = (iVar2 - iVar4) + -1) {\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }" (for "for") (( "(") (assignment_expression "iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2" (identifier "iVar2") (= "=") (binary_expression "(int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2" (binary_expression "(int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3" (cast_expression "(int)*(undefined4 **)((int)param_1 + 0x20)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(undefined4 **)((int)param_1 + 0x20)" (* "*") (cast_expression "(undefined4 **)((int)param_1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + 0x20)" (( "(") (binary_expression "(int)param_1 + 0x20" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x20")) () ")"))))) (- "-") (cast_expression "(int)puVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar3"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "0 < iVar2" (number_literal "0") (< "<") (identifier "iVar2")) (; ";") (assignment_expression "iVar2 = (iVar2 - iVar4) + -1" (identifier "iVar2") (= "=") (binary_expression "(iVar2 - iVar4) + -1" (parenthesized_expression "(iVar2 - iVar4)" (( "(") (binary_expression "iVar2 - iVar4" (identifier "iVar2") (- "-") (identifier "iVar4")) () ")")) (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }\n    puVar3 = puVar3 + iVar4 + 1;\n  }" ({ "{") (while_statement "while( true ) {\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      iVar4 = iVar2 >> 1;\n      if (*(int *)puVar3[iVar4] < param_2) break;\n      iVar2 = iVar4;\n      if (iVar4 == 0) goto LAB_003f6857;\n    }" ({ "{") (expression_statement "iVar4 = iVar2 >> 1;" (assignment_expression "iVar4 = iVar2 >> 1" (identifier "iVar4") (= "=") (binary_expression "iVar2 >> 1" (identifier "iVar2") (>> ">>") (number_literal "1"))) (; ";")) (if_statement "if (*(int *)puVar3[iVar4] < param_2) break;" (if "if") (parenthesized_expression "(*(int *)puVar3[iVar4] < param_2)" (( "(") (binary_expression "*(int *)puVar3[iVar4] < param_2" (pointer_expression "*(int *)puVar3[iVar4]" (* "*") (cast_expression "(int *)puVar3[iVar4]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar3[iVar4]" (identifier "puVar3") ([ "[") (identifier "iVar4") (] "]")))) (< "<") (identifier "param_2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" (identifier "iVar2") (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 == 0) goto LAB_003f6857;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_003f6857;" (goto "goto") (statement_identifier "LAB_003f6857") (; ";"))) (} "}"))) (expression_statement "puVar3 = puVar3 + iVar4 + 1;" (assignment_expression "puVar3 = puVar3 + iVar4 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + iVar4 + 1" (binary_expression "puVar3 + iVar4" (identifier "puVar3") (+ "+") (identifier "iVar4")) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (labeled_statement "LAB_003f6857:\n  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }" (statement_identifier "LAB_003f6857") (: ":") (if_statement "if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {\n    piVar5 = (int *)0x0;\n  }\n  else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }" (if "if") (parenthesized_expression "(*(undefined4 **)((int)param_1 + 0x20) == puVar3)" (( "(") (binary_expression "*(undefined4 **)((int)param_1 + 0x20) == puVar3" (pointer_expression "*(undefined4 **)((int)param_1 + 0x20)" (* "*") (cast_expression "(undefined4 **)((int)param_1 + 0x20)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + 0x20)" (( "(") (binary_expression "(int)param_1 + 0x20" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x20")) () ")")))) (== "==") (identifier "puVar3")) () ")")) (compound_statement "{\n    piVar5 = (int *)0x0;\n  }" ({ "{") (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" (identifier "piVar5") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }" (else "else") (compound_statement "{\n    piVar5 = (int *)*puVar3;\n    if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }\n  }" ({ "{") (expression_statement "piVar5 = (int *)*puVar3;" (assignment_expression "piVar5 = (int *)*puVar3" (identifier "piVar5") (= "=") (cast_expression "(int *)*puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar3" (* "*") (identifier "puVar3")))) (; ";")) (if_statement "if (*piVar5 != param_2) {\n      piVar5 = (int *)0x0;\n    }" (if "if") (parenthesized_expression "(*piVar5 != param_2)" (( "(") (binary_expression "*piVar5 != param_2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (!= "!=") (identifier "param_2")) () ")")) (compound_statement "{\n      piVar5 = (int *)0x0;\n    }" ({ "{") (expression_statement "piVar5 = (int *)0x0;" (assignment_expression "piVar5 = (int *)0x0" (identifier "piVar5") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (} "}"))))) (if_statement "if (puVar1 != (undefined *)0x0) {\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }" (if "if") (parenthesized_expression "(puVar1 != (undefined *)0x0)" (( "(") (binary_expression "puVar1 != (undefined *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined *)0x0" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar2 = pthread_mutex_unlock(param_1);\n    if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }\n  }" ({ "{") (expression_statement "iVar2 = pthread_mutex_unlock(param_1);" (assignment_expression "iVar2 = pthread_mutex_unlock(param_1)" (identifier "iVar2") (= "=") (call_expression "pthread_mutex_unlock(param_1)" (identifier "pthread_mutex_unlock") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar3 = (undefined4 *)FUN_003adeb0(4);\n      *puVar3 = &DAT_005e6fc8;\n                    \n                    \n      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);\n    }" ({ "{") (expression_statement "puVar3 = (undefined4 *)FUN_003adeb0(4);" (assignment_expression "puVar3 = (undefined4 *)FUN_003adeb0(4)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)FUN_003adeb0(4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003adeb0(4)" (identifier "FUN_003adeb0") (argument_list "(4)" (( "(") (number_literal "4") () ")"))))) (; ";")) (expression_statement "*puVar3 = &DAT_005e6fc8;" (assignment_expression "*puVar3 = &DAT_005e6fc8" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (pointer_expression "&DAT_005e6fc8" (& "&") (identifier "DAT_005e6fc8"))) (; ";")) (expression_statement "FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);" (call_expression "FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0)" (identifier "FUN_003ac900") (argument_list "(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0)" (( "(") (identifier "puVar3") (, ",") (identifier "PTR_PTR_005e9e60") (, ",") (identifier "PTR_FUN_005e9bf0") () ")"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return piVar5;" (return "return") (identifier "piVar5") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::Catalogs::_M_get(int) const */

void std::Catalogs::function_1(int param_1)

{
}


(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (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 (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (return_statement (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))))) (for_statement initializer: (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))) right: (number_literal))) condition: (binary_expression left: (number_literal) right: (identifier)) update: (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))) body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (identifier)))) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (number_literal)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))))) (return_statement (identifier)))))

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

int * MASKED(pthread_mutex_t *param_1,int param_2)

{
  undefined *puVar1;
  int iVar2;
  undefined4 *puVar3;
  int iVar4;
  int *piVar5;
  
  puVar1 = PTR___pthread_key_create_005e9ff8;
  if (PTR___pthread_key_create_005e9ff8 != (undefined *)0x0) {
    iVar2 = pthread_mutex_lock(param_1);
    if (iVar2 != 0) {
      FUN_003adb70();
                    /* catch() { ... } // from try @ 003f68c6 with catch @ 003f68d3 */
      piVar5 = (int *)FUN_0004d83c();
      return piVar5;
    }
  }
  puVar3 = *(undefined4 **)((int)param_1 + 0x1c);
  for (iVar2 = (int)*(undefined4 **)((int)param_1 + 0x20) - (int)puVar3 >> 2; 0 < iVar2;
      iVar2 = (iVar2 - iVar4) + -1) {
    while( true ) {
      iVar4 = iVar2 >> 1;
      if (*(int *)puVar3[iVar4] < param_2) break;
      iVar2 = iVar4;
      if (iVar4 == 0) goto LAB_003f6857;
    }
    puVar3 = puVar3 + iVar4 + 1;
  }
LAB_003f6857:
  if (*(undefined4 **)((int)param_1 + 0x20) == puVar3) {
    piVar5 = (int *)0x0;
  }
  else {
    piVar5 = (int *)*puVar3;
    if (*piVar5 != param_2) {
      piVar5 = (int *)0x0;
    }
  }
  if (puVar1 != (undefined *)0x0) {
    iVar2 = pthread_mutex_unlock(param_1);
    if (iVar2 != 0) {
      puVar3 = (undefined4 *)FUN_003adeb0(4);
      *puVar3 = &DAT_005e6fc8;
                    /* WARNING: Subroutine does not return */
                    /* try { // try from 003f68c6 to 003f68ca has its CatchHandler @ 003f68d3 */
      FUN_003ac900(puVar3,PTR_PTR_005e9e60,PTR_FUN_005e9bf0);
    }
  }
  return piVar5;
}

