
void __register_frame_info_table_bases
               (undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)

{
  undefined *puVar1;
  undefined8 *puVar2;
  
  puVar1 = PTR___pthread_key_create_0043dee8;
  *param_2 = 0xffffffffffffffff;
  param_2[1] = param_3;
  param_2[2] = param_4;
  param_2[3] = param_1;
  param_2[4] = 0x7fa;
  if (puVar1 != (undefined *)0x0) {
    pthread_mutex_lock((pthread_mutex_t *)object_mutex);
  }
  puVar2 = param_2;
  param_2[5] = unseen_objects;
  unseen_objects = puVar2;
  if (any_objects_registered == 0) {
    any_objects_registered = 1;
  }
  if (puVar1 != (undefined *)0x0) {
    pthread_mutex_unlock((pthread_mutex_t *)object_mutex);
    return;
  }
  return;
}



void FUN_0036a440(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)

{
  undefined *puVar1;
  undefined8 *puVar2;
  
  puVar1 = PTR___pthread_key_create_0043dee8;
  *param_2 = 0xffffffffffffffff;
  param_2[1] = param_3;
  param_2[2] = param_4;
  param_2[3] = param_1;
  param_2[4] = 0x7fa;
  if (puVar1 != (undefined *)0x0) {
    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);
  }
  puVar2 = param_2;
  param_2[5] = DAT_0044c1b8;
  DAT_0044c1b8 = puVar2;
  if (DAT_0044c1a8 == 0) {
    DAT_0044c1a8 = 1;
  }
  if (puVar1 != (undefined *)0x0) {
    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);
    return;
  }
  return;
}


PUSH RBP
PUSH RBX
MOV RBX,RSI
SUB RSP,0x8
MOV RBP,qword ptr [0x0043dee8]
MOV qword ptr [RSI],-0x1
MOV qword ptr [RSI + 0x8],RDX
MOV qword ptr [RSI + 0x10],RCX
MOV qword ptr [RSI + 0x18],RDI
MOV qword ptr [RSI + 0x20],0x7fa
TEST RBP,RBP
JZ 0x0036a47c
LEA RDI,[0x44c180]
CALL 0x001479b0
MOV RAX,qword ptr [0x0044c1b8]
MOV qword ptr [0x0044c1b8],RBX
MOV qword ptr [RBX + 0x28],RAX
MOV EAX,dword ptr [0x0044c1a8]
TEST EAX,EAX
JZ 0x0036a4c0
TEST RBP,RBP
JZ 0x0036a4b0
ADD RSP,0x8
LEA RDI,[0x44c180]
POP RBX
POP RBP
JMP 0x00147a80
ADD RSP,0x8
POP RBX
POP RBP
RET
MOV dword ptr [0x0044c1a8],0x1
JMP 0x0036a498
(translation_unit "void FUN_0036a440(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  \n  puVar1 = PTR___pthread_key_create_0043dee8;\n  *param_2 = 0xffffffffffffffff;\n  param_2[1] = param_3;\n  param_2[2] = param_4;\n  param_2[3] = param_1;\n  param_2[4] = 0x7fa;\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_0044c1b8;\n  DAT_0044c1b8 = puVar2;\n  if (DAT_0044c1a8 == 0) {\n    DAT_0044c1a8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0036a440(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  \n  puVar1 = PTR___pthread_key_create_0043dee8;\n  *param_2 = 0xffffffffffffffff;\n  param_2[1] = param_3;\n  param_2[2] = param_4;\n  param_2[3] = param_1;\n  param_2[4] = 0x7fa;\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_0044c1b8;\n  DAT_0044c1b8 = puVar2;\n  if (DAT_0044c1a8 == 0) {\n    DAT_0044c1a8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0036a440(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  \n  puVar1 = PTR___pthread_key_create_0043dee8;\n  *param_2 = 0xffffffffffffffff;\n  param_2[1] = param_3;\n  param_2[2] = param_4;\n  param_2[3] = param_1;\n  param_2[4] = 0x7fa;\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_0044c1b8;\n  DAT_0044c1b8 = puVar2;\n  if (DAT_0044c1a8 == 0) {\n    DAT_0044c1a8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar1 = PTR___pthread_key_create_0043dee8;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043dee8" identifier = identifier) ;) (expression_statement "*param_2 = 0xffffffffffffffff;" (assignment_expression "*param_2 = 0xffffffffffffffff" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = param_4;" (assignment_expression "param_2[2] = param_4" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[3] = param_1;" (assignment_expression "param_2[3] = param_1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[4] = 0x7fa;" (assignment_expression "param_2[4] = 0x7fa" (subscript_expression "param_2[4]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\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    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\n  }" { (expression_statement "pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180)" identifier (argument_list "((pthread_mutex_t *)&DAT_0044c180)" ( (cast_expression "(pthread_mutex_t *)&DAT_0044c180" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0044c180" & identifier)) ))) ;) })) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" identifier = identifier) ;) (expression_statement "param_2[5] = DAT_0044c1b8;" (assignment_expression "param_2[5] = DAT_0044c1b8" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "DAT_0044c1b8 = puVar2;" (assignment_expression "DAT_0044c1b8 = puVar2" identifier = identifier) ;) (if_statement "if (DAT_0044c1a8 == 0) {\n    DAT_0044c1a8 = 1;\n  }" if (parenthesized_expression "(DAT_0044c1a8 == 0)" ( (binary_expression "DAT_0044c1a8 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0044c1a8 = 1;\n  }" { (expression_statement "DAT_0044c1a8 = 1;" (assignment_expression "DAT_0044c1a8 = 1" identifier = number_literal) ;) })) (if_statement "if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\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    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\n  }" { (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180)" identifier (argument_list "((pthread_mutex_t *)&DAT_0044c180)" ( (cast_expression "(pthread_mutex_t *)&DAT_0044c180" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0044c180" & identifier)) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void __register_frame_info_table_bases\n               (undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  \n  puVar1 = PTR___pthread_key_create_0043dee8;\n  *param_2 = 0xffffffffffffffff;\n  param_2[1] = param_3;\n  param_2[2] = param_4;\n  param_2[3] = param_1;\n  param_2[4] = 0x7fa;\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)object_mutex);\n  }\n  puVar2 = param_2;\n  param_2[5] = unseen_objects;\n  unseen_objects = puVar2;\n  if (any_objects_registered == 0) {\n    any_objects_registered = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)object_mutex);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void __register_frame_info_table_bases\n               (undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  \n  puVar1 = PTR___pthread_key_create_0043dee8;\n  *param_2 = 0xffffffffffffffff;\n  param_2[1] = param_3;\n  param_2[2] = param_4;\n  param_2[3] = param_1;\n  param_2[4] = 0x7fa;\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)object_mutex);\n  }\n  puVar2 = param_2;\n  param_2[5] = unseen_objects;\n  unseen_objects = puVar2;\n  if (any_objects_registered == 0) {\n    any_objects_registered = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)object_mutex);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "__register_frame_info_table_bases\n               (undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  \n  puVar1 = PTR___pthread_key_create_0043dee8;\n  *param_2 = 0xffffffffffffffff;\n  param_2[1] = param_3;\n  param_2[2] = param_4;\n  param_2[3] = param_1;\n  param_2[4] = 0x7fa;\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)object_mutex);\n  }\n  puVar2 = param_2;\n  param_2[5] = unseen_objects;\n  unseen_objects = puVar2;\n  if (any_objects_registered == 0) {\n    any_objects_registered = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)object_mutex);\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar1 = PTR___pthread_key_create_0043dee8;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043dee8" identifier = identifier) ;) (expression_statement "*param_2 = 0xffffffffffffffff;" (assignment_expression "*param_2 = 0xffffffffffffffff" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = param_4;" (assignment_expression "param_2[2] = param_4" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[3] = param_1;" (assignment_expression "param_2[3] = param_1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[4] = 0x7fa;" (assignment_expression "param_2[4] = 0x7fa" (subscript_expression "param_2[4]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)object_mutex);\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    pthread_mutex_lock((pthread_mutex_t *)object_mutex);\n  }" { (expression_statement "pthread_mutex_lock((pthread_mutex_t *)object_mutex);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)object_mutex)" identifier (argument_list "((pthread_mutex_t *)object_mutex)" ( (cast_expression "(pthread_mutex_t *)object_mutex" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) })) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" identifier = identifier) ;) (expression_statement "param_2[5] = unseen_objects;" (assignment_expression "param_2[5] = unseen_objects" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "unseen_objects = puVar2;" (assignment_expression "unseen_objects = puVar2" identifier = identifier) ;) (if_statement "if (any_objects_registered == 0) {\n    any_objects_registered = 1;\n  }" if (parenthesized_expression "(any_objects_registered == 0)" ( (binary_expression "any_objects_registered == 0" identifier == number_literal) )) (compound_statement "{\n    any_objects_registered = 1;\n  }" { (expression_statement "any_objects_registered = 1;" (assignment_expression "any_objects_registered = 1" identifier = number_literal) ;) })) (if_statement "if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)object_mutex);\n    return;\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    pthread_mutex_unlock((pthread_mutex_t *)object_mutex);\n    return;\n  }" { (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)object_mutex);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)object_mutex)" identifier (argument_list "((pthread_mutex_t *)object_mutex)" ( (cast_expression "(pthread_mutex_t *)object_mutex" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0036a440(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  \n  puVar1 = PTR___pthread_key_create_0043dee8;\n  *param_2 = 0xffffffffffffffff;\n  param_2[1] = param_3;\n  param_2[2] = param_4;\n  param_2[3] = param_1;\n  param_2[4] = 0x7fa;\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_0044c1b8;\n  DAT_0044c1b8 = puVar2;\n  if (DAT_0044c1a8 == 0) {\n    DAT_0044c1a8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0036a440(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  \n  puVar1 = PTR___pthread_key_create_0043dee8;\n  *param_2 = 0xffffffffffffffff;\n  param_2[1] = param_3;\n  param_2[2] = param_4;\n  param_2[3] = param_1;\n  param_2[4] = 0x7fa;\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_0044c1b8;\n  DAT_0044c1b8 = puVar2;\n  if (DAT_0044c1a8 == 0) {\n    DAT_0044c1a8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0036a440(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" identifier (parameter_list "(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  \n  puVar1 = PTR___pthread_key_create_0043dee8;\n  *param_2 = 0xffffffffffffffff;\n  param_2[1] = param_3;\n  param_2[2] = param_4;\n  param_2[3] = param_1;\n  param_2[4] = 0x7fa;\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_0044c1b8;\n  DAT_0044c1b8 = puVar2;\n  if (DAT_0044c1a8 == 0) {\n    DAT_0044c1a8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "puVar1 = PTR___pthread_key_create_0043dee8;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043dee8" identifier = identifier) ;) (expression_statement "*param_2 = 0xffffffffffffffff;" (assignment_expression "*param_2 = 0xffffffffffffffff" (pointer_expression "*param_2" * identifier) = number_literal) ;) (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[2] = param_4;" (assignment_expression "param_2[2] = param_4" (subscript_expression "param_2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[3] = param_1;" (assignment_expression "param_2[3] = param_1" (subscript_expression "param_2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[4] = 0x7fa;" (assignment_expression "param_2[4] = 0x7fa" (subscript_expression "param_2[4]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\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    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\n  }" { (expression_statement "pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180)" identifier (argument_list "((pthread_mutex_t *)&DAT_0044c180)" ( (cast_expression "(pthread_mutex_t *)&DAT_0044c180" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0044c180" & identifier)) ))) ;) })) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" identifier = identifier) ;) (expression_statement "param_2[5] = DAT_0044c1b8;" (assignment_expression "param_2[5] = DAT_0044c1b8" (subscript_expression "param_2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "DAT_0044c1b8 = puVar2;" (assignment_expression "DAT_0044c1b8 = puVar2" identifier = identifier) ;) (if_statement "if (DAT_0044c1a8 == 0) {\n    DAT_0044c1a8 = 1;\n  }" if (parenthesized_expression "(DAT_0044c1a8 == 0)" ( (binary_expression "DAT_0044c1a8 == 0" identifier == number_literal) )) (compound_statement "{\n    DAT_0044c1a8 = 1;\n  }" { (expression_statement "DAT_0044c1a8 = 1;" (assignment_expression "DAT_0044c1a8 = 1" identifier = number_literal) ;) })) (if_statement "if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\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    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\n  }" { (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180)" identifier (argument_list "((pthread_mutex_t *)&DAT_0044c180)" ( (cast_expression "(pthread_mutex_t *)&DAT_0044c180" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0044c180" & identifier)) ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) ))) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT)) ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void FUN_0036a440(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)\n\n{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  \n  puVar1 = PTR___pthread_key_create_0043dee8;\n  *param_2 = 0xffffffffffffffff;\n  param_2[1] = param_3;\n  param_2[2] = param_4;\n  param_2[3] = param_1;\n  param_2[4] = 0x7fa;\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_0044c1b8;\n  DAT_0044c1b8 = puVar2;\n  if (DAT_0044c1a8 == 0) {\n    DAT_0044c1a8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0036a440(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" (identifier "FUN_0036a440") (parameter_list "(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined8 *puVar2;\n  \n  puVar1 = PTR___pthread_key_create_0043dee8;\n  *param_2 = 0xffffffffffffffff;\n  param_2[1] = param_3;\n  param_2[2] = param_4;\n  param_2[3] = param_1;\n  param_2[4] = 0x7fa;\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\n  }\n  puVar2 = param_2;\n  param_2[5] = DAT_0044c1b8;\n  DAT_0044c1b8 = puVar2;\n  if (DAT_0044c1a8 == 0) {\n    DAT_0044c1a8 = 1;\n  }\n  if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "puVar1 = PTR___pthread_key_create_0043dee8;" (assignment_expression "puVar1 = PTR___pthread_key_create_0043dee8" (identifier "puVar1") (= "=") (identifier "PTR___pthread_key_create_0043dee8")) (; ";")) (expression_statement "*param_2 = 0xffffffffffffffff;" (assignment_expression "*param_2 = 0xffffffffffffffff" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "param_2[2] = param_4;" (assignment_expression "param_2[2] = param_4" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "param_2[3] = param_1;" (assignment_expression "param_2[3] = param_1" (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "param_2[4] = 0x7fa;" (assignment_expression "param_2[4] = 0x7fa" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0x7fa")) (; ";")) (if_statement "if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\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    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);\n  }" ({ "{") (expression_statement "pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180)" (identifier "pthread_mutex_lock") (argument_list "((pthread_mutex_t *)&DAT_0044c180)" (( "(") (cast_expression "(pthread_mutex_t *)&DAT_0044c180" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0044c180" (& "&") (identifier "DAT_0044c180"))) () ")"))) (; ";")) (} "}"))) (expression_statement "puVar2 = param_2;" (assignment_expression "puVar2 = param_2" (identifier "puVar2") (= "=") (identifier "param_2")) (; ";")) (expression_statement "param_2[5] = DAT_0044c1b8;" (assignment_expression "param_2[5] = DAT_0044c1b8" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "DAT_0044c1b8")) (; ";")) (expression_statement "DAT_0044c1b8 = puVar2;" (assignment_expression "DAT_0044c1b8 = puVar2" (identifier "DAT_0044c1b8") (= "=") (identifier "puVar2")) (; ";")) (if_statement "if (DAT_0044c1a8 == 0) {\n    DAT_0044c1a8 = 1;\n  }" (if "if") (parenthesized_expression "(DAT_0044c1a8 == 0)" (( "(") (binary_expression "DAT_0044c1a8 == 0" (identifier "DAT_0044c1a8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    DAT_0044c1a8 = 1;\n  }" ({ "{") (expression_statement "DAT_0044c1a8 = 1;" (assignment_expression "DAT_0044c1a8 = 1" (identifier "DAT_0044c1a8") (= "=") (number_literal "1")) (; ";")) (} "}"))) (if_statement "if (puVar1 != (undefined *)0x0) {\n    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\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    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);\n    return;\n  }" ({ "{") (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180)" (identifier "pthread_mutex_unlock") (argument_list "((pthread_mutex_t *)&DAT_0044c180)" (( "(") (cast_expression "(pthread_mutex_t *)&DAT_0044c180" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0044c180" (& "&") (identifier "DAT_0044c180"))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1
               (type_1 param_1,type_1 *param_2,type_1 param_3,type_1 param_4)

{
  type_2 *var_1;
  type_1 *puVar2;
  
  var_1 = PTR___pthread_key_create_0043dee8;
  *param_2 = 0xffffffffffffffff;
  param_2[1] = param_3;
  param_2[2] = param_4;
  param_2[3] = param_1;
  param_2[4] = 0x7fa;
  if (var_1 != (type_2 *)0x0) {
    var_2((type_3 *)object_mutex);
  }
  puVar2 = param_2;
  param_2[5] = unseen_objects;
  unseen_objects = puVar2;
  if (var_3 == 0) {
    var_3 = 1;
  }
  if (var_1 != (type_2 *)0x0) {
    var_4((type_3 *)object_mutex);
    return;
  }
  return;
}


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

void MASKED(undefined8 param_1,undefined8 *param_2,undefined8 param_3,undefined8 param_4)

{
  undefined *puVar1;
  undefined8 *puVar2;
  
  puVar1 = PTR___pthread_key_create_0043dee8;
  *param_2 = 0xffffffffffffffff;
  param_2[1] = param_3;
  param_2[2] = param_4;
  param_2[3] = param_1;
  param_2[4] = 0x7fa;
  if (puVar1 != (undefined *)0x0) {
    pthread_mutex_lock((pthread_mutex_t *)&DAT_0044c180);
  }
  puVar2 = param_2;
  param_2[5] = DAT_0044c1b8;
  DAT_0044c1b8 = puVar2;
  if (DAT_0044c1a8 == 0) {
    DAT_0044c1a8 = 1;
  }
  if (puVar1 != (undefined *)0x0) {
    pthread_mutex_unlock((pthread_mutex_t *)&DAT_0044c180);
    return;
  }
  return;
}

