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

void ActivateSemaphoreInfo(SemaphoreInfo **semaphore_info)

{
  SemaphoreInfo *pSVar1;
  
  if (semaphore_info == (SemaphoreInfo **)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,
                  "ActivateSemaphoreInfo");
  }
  if (*semaphore_info != (SemaphoreInfo *)0x0) {
    return;
  }
  if (translation_unit_initialized == MagickFalse) {
    omp_init_lock(&translation_unit_mutex);
    translation_unit_initialized = MagickTrue;
  }
  omp_set_lock(&translation_unit_mutex);
  if (*semaphore_info == (SemaphoreInfo *)0x0) {
    pSVar1 = AcquireSemaphoreInfo();
    *semaphore_info = pSVar1;
  }
  omp_unset_lock(&translation_unit_mutex);
  return;
}



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

void ActivateSemaphoreInfo(int *param_1)

{
  int iVar1;
  
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,
                  "ActivateSemaphoreInfo");
  }
  if (*param_1 != 0) {
    return;
  }
  if (DAT_00422998 == 0) {
    omp_init_lock(&DAT_00422994);
    DAT_00422998 = 1;
  }
  omp_set_lock(&DAT_00422994);
  if (*param_1 == 0) {
    iVar1 = AcquireSemaphoreInfo();
    *param_1 = iVar1;
  }
  omp_unset_lock(&DAT_00422994);
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00039d70
ADD EBX,0x274c74
TEST ESI,ESI
JZ 0x001a93f9
MOV ECX,dword ptr [ESI]
TEST ECX,ECX
JZ 0x001a93a0
POP EBX
POP ESI
POP EDI
RET
MOV EDX,dword ptr [EBX + 0x4998]
LEA EDI,[EBX + 0x4994]
TEST EDX,EDX
JNZ 0x001a93c6
SUB ESP,0xc
PUSH EDI
CALL 0x00031f50
ADD ESP,0x10
MOV dword ptr [EBX + 0x4998],0x1
SUB ESP,0xc
PUSH EDI
CALL 0x000321c0
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x001a93f0
SUB ESP,0xc
PUSH EDI
CALL 0x00030d80
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
CALL 0x00031330
MOV dword ptr [ESI],EAX
JMP 0x001a93d8
LEA EAX,[EBX + 0xffeea374]
PUSH EAX
LEA EAX,[EBX + 0xffeea218]
PUSH 0x64
PUSH EAX
LEA EAX,[EBX + 0xffeea230]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid ActivateSemaphoreInfo(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }\n  if (*param_1 != 0) {\n    return;\n  }\n  if (DAT_00422998 == 0) {\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }\n  omp_set_lock(&DAT_00422994);\n  if (*param_1 == 0) {\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }\n  omp_unset_lock(&DAT_00422994);\n  return;\n}\n\n" comment (function_definition "void ActivateSemaphoreInfo(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }\n  if (*param_1 != 0) {\n    return;\n  }\n  if (DAT_00422998 == 0) {\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }\n  omp_set_lock(&DAT_00422994);\n  if (*param_1 == 0) {\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }\n  omp_unset_lock(&DAT_00422994);\n  return;\n}" primitive_type (function_declarator "ActivateSemaphoreInfo(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }\n  if (*param_1 != 0) {\n    return;\n  }\n  if (DAT_00422998 == 0) {\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }\n  omp_set_lock(&DAT_00422994);\n  if (*param_1 == 0) {\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }\n  omp_unset_lock(&DAT_00422994);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }" { comment (expression_statement "__assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");" (call_expression "__assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo")" identifier (argument_list "("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo")" ( (string_literal ""semaphore_info != (SemaphoreInfo **) NULL"" " string_content ") , (string_literal ""MagickCore/semaphore.c"" " string_content ") , number_literal , (string_literal ""ActivateSemaphoreInfo"" " string_content ") ))) ;) })) (if_statement "if (*param_1 != 0) {\n    return;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (DAT_00422998 == 0) {\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }" if (parenthesized_expression "(DAT_00422998 == 0)" ( (binary_expression "DAT_00422998 == 0" identifier == number_literal) )) (compound_statement "{\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }" { (expression_statement "omp_init_lock(&DAT_00422994);" (call_expression "omp_init_lock(&DAT_00422994)" identifier (argument_list "(&DAT_00422994)" ( (pointer_expression "&DAT_00422994" & identifier) ))) ;) (expression_statement "DAT_00422998 = 1;" (assignment_expression "DAT_00422998 = 1" identifier = number_literal) ;) })) (expression_statement "omp_set_lock(&DAT_00422994);" (call_expression "omp_set_lock(&DAT_00422994)" identifier (argument_list "(&DAT_00422994)" ( (pointer_expression "&DAT_00422994" & identifier) ))) ;) (if_statement "if (*param_1 == 0) {\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }" { (expression_statement "iVar1 = AcquireSemaphoreInfo();" (assignment_expression "iVar1 = AcquireSemaphoreInfo()" identifier = (call_expression "AcquireSemaphoreInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (expression_statement "omp_unset_lock(&DAT_00422994);" (call_expression "omp_unset_lock(&DAT_00422994)" identifier (argument_list "(&DAT_00422994)" ( (pointer_expression "&DAT_00422994" & identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid ActivateSemaphoreInfo(SemaphoreInfo **semaphore_info)\n\n{\n  SemaphoreInfo *pSVar1;\n  \n  if (semaphore_info == (SemaphoreInfo **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }\n  if (*semaphore_info != (SemaphoreInfo *)0x0) {\n    return;\n  }\n  if (translation_unit_initialized == MagickFalse) {\n    omp_init_lock(&translation_unit_mutex);\n    translation_unit_initialized = MagickTrue;\n  }\n  omp_set_lock(&translation_unit_mutex);\n  if (*semaphore_info == (SemaphoreInfo *)0x0) {\n    pSVar1 = AcquireSemaphoreInfo();\n    *semaphore_info = pSVar1;\n  }\n  omp_unset_lock(&translation_unit_mutex);\n  return;\n}\n\n" comment (function_definition "void ActivateSemaphoreInfo(SemaphoreInfo **semaphore_info)\n\n{\n  SemaphoreInfo *pSVar1;\n  \n  if (semaphore_info == (SemaphoreInfo **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }\n  if (*semaphore_info != (SemaphoreInfo *)0x0) {\n    return;\n  }\n  if (translation_unit_initialized == MagickFalse) {\n    omp_init_lock(&translation_unit_mutex);\n    translation_unit_initialized = MagickTrue;\n  }\n  omp_set_lock(&translation_unit_mutex);\n  if (*semaphore_info == (SemaphoreInfo *)0x0) {\n    pSVar1 = AcquireSemaphoreInfo();\n    *semaphore_info = pSVar1;\n  }\n  omp_unset_lock(&translation_unit_mutex);\n  return;\n}" primitive_type (function_declarator "ActivateSemaphoreInfo(SemaphoreInfo **semaphore_info)" identifier (parameter_list "(SemaphoreInfo **semaphore_info)" ( (parameter_declaration "SemaphoreInfo **semaphore_info" type_identifier (pointer_declarator "**semaphore_info" * (pointer_declarator "*semaphore_info" * identifier))) ))) (compound_statement "{\n  SemaphoreInfo *pSVar1;\n  \n  if (semaphore_info == (SemaphoreInfo **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }\n  if (*semaphore_info != (SemaphoreInfo *)0x0) {\n    return;\n  }\n  if (translation_unit_initialized == MagickFalse) {\n    omp_init_lock(&translation_unit_mutex);\n    translation_unit_initialized = MagickTrue;\n  }\n  omp_set_lock(&translation_unit_mutex);\n  if (*semaphore_info == (SemaphoreInfo *)0x0) {\n    pSVar1 = AcquireSemaphoreInfo();\n    *semaphore_info = pSVar1;\n  }\n  omp_unset_lock(&translation_unit_mutex);\n  return;\n}" { (declaration "SemaphoreInfo *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (if_statement "if (semaphore_info == (SemaphoreInfo **)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }" if (parenthesized_expression "(semaphore_info == (SemaphoreInfo **)0x0)" ( (binary_expression "semaphore_info == (SemaphoreInfo **)0x0" identifier == (cast_expression "(SemaphoreInfo **)0x0" ( (type_descriptor "SemaphoreInfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }" { comment (expression_statement "__assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");" (call_expression "__assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo")" identifier (argument_list "("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo")" ( (string_literal ""semaphore_info != (SemaphoreInfo **) NULL"" " string_content ") , (string_literal ""MagickCore/semaphore.c"" " string_content ") , number_literal , (string_literal ""ActivateSemaphoreInfo"" " string_content ") ))) ;) })) (if_statement "if (*semaphore_info != (SemaphoreInfo *)0x0) {\n    return;\n  }" if (parenthesized_expression "(*semaphore_info != (SemaphoreInfo *)0x0)" ( (binary_expression "*semaphore_info != (SemaphoreInfo *)0x0" (pointer_expression "*semaphore_info" * identifier) != (cast_expression "(SemaphoreInfo *)0x0" ( (type_descriptor "SemaphoreInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (translation_unit_initialized == MagickFalse) {\n    omp_init_lock(&translation_unit_mutex);\n    translation_unit_initialized = MagickTrue;\n  }" if (parenthesized_expression "(translation_unit_initialized == MagickFalse)" ( (binary_expression "translation_unit_initialized == MagickFalse" identifier == identifier) )) (compound_statement "{\n    omp_init_lock(&translation_unit_mutex);\n    translation_unit_initialized = MagickTrue;\n  }" { (expression_statement "omp_init_lock(&translation_unit_mutex);" (call_expression "omp_init_lock(&translation_unit_mutex)" identifier (argument_list "(&translation_unit_mutex)" ( (pointer_expression "&translation_unit_mutex" & identifier) ))) ;) (expression_statement "translation_unit_initialized = MagickTrue;" (assignment_expression "translation_unit_initialized = MagickTrue" identifier = identifier) ;) })) (expression_statement "omp_set_lock(&translation_unit_mutex);" (call_expression "omp_set_lock(&translation_unit_mutex)" identifier (argument_list "(&translation_unit_mutex)" ( (pointer_expression "&translation_unit_mutex" & identifier) ))) ;) (if_statement "if (*semaphore_info == (SemaphoreInfo *)0x0) {\n    pSVar1 = AcquireSemaphoreInfo();\n    *semaphore_info = pSVar1;\n  }" if (parenthesized_expression "(*semaphore_info == (SemaphoreInfo *)0x0)" ( (binary_expression "*semaphore_info == (SemaphoreInfo *)0x0" (pointer_expression "*semaphore_info" * identifier) == (cast_expression "(SemaphoreInfo *)0x0" ( (type_descriptor "SemaphoreInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pSVar1 = AcquireSemaphoreInfo();\n    *semaphore_info = pSVar1;\n  }" { (expression_statement "pSVar1 = AcquireSemaphoreInfo();" (assignment_expression "pSVar1 = AcquireSemaphoreInfo()" identifier = (call_expression "AcquireSemaphoreInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "*semaphore_info = pSVar1;" (assignment_expression "*semaphore_info = pSVar1" (pointer_expression "*semaphore_info" * identifier) = identifier) ;) })) (expression_statement "omp_unset_lock(&translation_unit_mutex);" (call_expression "omp_unset_lock(&translation_unit_mutex)" identifier (argument_list "(&translation_unit_mutex)" ( (pointer_expression "&translation_unit_mutex" & identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void ActivateSemaphoreInfo(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }\n  if (*param_1 != 0) {\n    return;\n  }\n  if (DAT_00422998 == 0) {\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }\n  omp_set_lock(&DAT_00422994);\n  if (*param_1 == 0) {\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }\n  omp_unset_lock(&DAT_00422994);\n  return;\n}\n\n" (function_definition "void ActivateSemaphoreInfo(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }\n  if (*param_1 != 0) {\n    return;\n  }\n  if (DAT_00422998 == 0) {\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }\n  omp_set_lock(&DAT_00422994);\n  if (*param_1 == 0) {\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }\n  omp_unset_lock(&DAT_00422994);\n  return;\n}" primitive_type (function_declarator "ActivateSemaphoreInfo(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }\n  if (*param_1 != 0) {\n    return;\n  }\n  if (DAT_00422998 == 0) {\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }\n  omp_set_lock(&DAT_00422994);\n  if (*param_1 == 0) {\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }\n  omp_unset_lock(&DAT_00422994);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }" { (expression_statement "__assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");" (call_expression "__assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo")" identifier (argument_list "("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo")" ( (string_literal ""semaphore_info != (SemaphoreInfo **) NULL"" " string_content ") , (string_literal ""MagickCore/semaphore.c"" " string_content ") , number_literal , (string_literal ""ActivateSemaphoreInfo"" " string_content ") ))) ;) })) (if_statement "if (*param_1 != 0) {\n    return;\n  }" if (parenthesized_expression "(*param_1 != 0)" ( (binary_expression "*param_1 != 0" (pointer_expression "*param_1" * identifier) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (if_statement "if (DAT_00422998 == 0) {\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }" if (parenthesized_expression "(DAT_00422998 == 0)" ( (binary_expression "DAT_00422998 == 0" identifier == number_literal) )) (compound_statement "{\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }" { (expression_statement "omp_init_lock(&DAT_00422994);" (call_expression "omp_init_lock(&DAT_00422994)" identifier (argument_list "(&DAT_00422994)" ( (pointer_expression "&DAT_00422994" & identifier) ))) ;) (expression_statement "DAT_00422998 = 1;" (assignment_expression "DAT_00422998 = 1" identifier = number_literal) ;) })) (expression_statement "omp_set_lock(&DAT_00422994);" (call_expression "omp_set_lock(&DAT_00422994)" identifier (argument_list "(&DAT_00422994)" ( (pointer_expression "&DAT_00422994" & identifier) ))) ;) (if_statement "if (*param_1 == 0) {\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }" { (expression_statement "iVar1 = AcquireSemaphoreInfo();" (assignment_expression "iVar1 = AcquireSemaphoreInfo()" identifier = (call_expression "AcquireSemaphoreInfo()" identifier (argument_list "()" ( )))) ;) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" * identifier) = identifier) ;) })) (expression_statement "omp_unset_lock(&DAT_00422994);" (call_expression "omp_unset_lock(&DAT_00422994)" identifier (argument_list "(&DAT_00422994)" ( (pointer_expression "&DAT_00422994" & identifier) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (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 ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (return_statement return ;) })))
(function_definition "void ActivateSemaphoreInfo(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }\n  if (*param_1 != 0) {\n    return;\n  }\n  if (DAT_00422998 == 0) {\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }\n  omp_set_lock(&DAT_00422994);\n  if (*param_1 == 0) {\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }\n  omp_unset_lock(&DAT_00422994);\n  return;\n}" (primitive_type "void") (function_declarator "ActivateSemaphoreInfo(int *param_1)" (identifier "ActivateSemaphoreInfo") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }\n  if (*param_1 != 0) {\n    return;\n  }\n  if (DAT_00422998 == 0) {\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }\n  omp_set_lock(&DAT_00422994);\n  if (*param_1 == 0) {\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }\n  omp_unset_lock(&DAT_00422994);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");\n  }" ({ "{") (expression_statement "__assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo");" (call_expression "__assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo")" (identifier "__assert_fail") (argument_list "("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,\n                  "ActivateSemaphoreInfo")" (( "(") (string_literal ""semaphore_info != (SemaphoreInfo **) NULL"" (" """) (string_content "semaphore_info != (SemaphoreInfo **) NULL") (" """)) (, ",") (string_literal ""MagickCore/semaphore.c"" (" """) (string_content "MagickCore/semaphore.c") (" """)) (, ",") (number_literal "100") (, ",") (string_literal ""ActivateSemaphoreInfo"" (" """) (string_content "ActivateSemaphoreInfo") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*param_1 != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(*param_1 != 0)" (( "(") (binary_expression "*param_1 != 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (DAT_00422998 == 0) {\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }" (if "if") (parenthesized_expression "(DAT_00422998 == 0)" (( "(") (binary_expression "DAT_00422998 == 0" (identifier "DAT_00422998") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    omp_init_lock(&DAT_00422994);\n    DAT_00422998 = 1;\n  }" ({ "{") (expression_statement "omp_init_lock(&DAT_00422994);" (call_expression "omp_init_lock(&DAT_00422994)" (identifier "omp_init_lock") (argument_list "(&DAT_00422994)" (( "(") (pointer_expression "&DAT_00422994" (& "&") (identifier "DAT_00422994")) () ")"))) (; ";")) (expression_statement "DAT_00422998 = 1;" (assignment_expression "DAT_00422998 = 1" (identifier "DAT_00422998") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "omp_set_lock(&DAT_00422994);" (call_expression "omp_set_lock(&DAT_00422994)" (identifier "omp_set_lock") (argument_list "(&DAT_00422994)" (( "(") (pointer_expression "&DAT_00422994" (& "&") (identifier "DAT_00422994")) () ")"))) (; ";")) (if_statement "if (*param_1 == 0) {\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = AcquireSemaphoreInfo();\n    *param_1 = iVar1;\n  }" ({ "{") (expression_statement "iVar1 = AcquireSemaphoreInfo();" (assignment_expression "iVar1 = AcquireSemaphoreInfo()" (identifier "iVar1") (= "=") (call_expression "AcquireSemaphoreInfo()" (identifier "AcquireSemaphoreInfo") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*param_1 = iVar1;" (assignment_expression "*param_1 = iVar1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar1")) (; ";")) (} "}"))) (expression_statement "omp_unset_lock(&DAT_00422994);" (call_expression "omp_unset_lock(&DAT_00422994)" (identifier "omp_unset_lock") (argument_list "(&DAT_00422994)" (( "(") (pointer_expression "&DAT_00422994" (& "&") (identifier "DAT_00422994")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 **var_1)

{
  type_1 *pSVar1;
  
  if (var_1 == (type_1 **)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,
                  "ActivateSemaphoreInfo");
  }
  if (*var_1 != (type_1 *)0x0) {
    return;
  }
  if (var_3 == var_4) {
    var_5(&translation_unit_mutex);
    var_3 = MagickTrue;
  }
  var_6(&translation_unit_mutex);
  if (*var_1 == (type_1 *)0x0) {
    pSVar1 = var_7();
    *var_1 = pSVar1;
  }
  var_8(&translation_unit_mutex);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (return_statement))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (return_statement))))

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

void MASKED(int *param_1)

{
  int iVar1;
  
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("semaphore_info != (SemaphoreInfo **) NULL","MagickCore/semaphore.c",100,
                  "MASKED");
  }
  if (*param_1 != 0) {
    return;
  }
  if (DAT_00422998 == 0) {
    omp_init_lock(&DAT_00422994);
    DAT_00422998 = 1;
  }
  omp_set_lock(&DAT_00422994);
  if (*param_1 == 0) {
    iVar1 = AcquireSemaphoreInfo();
    *param_1 = iVar1;
  }
  omp_unset_lock(&DAT_00422994);
  return;
}

