
/* WARNING: Unknown calling convention */

MagickBooleanType RegistryComponentGenesis(void)

{
  undefined *puVar1;
  undefined4 uVar2;
  
  puVar1 = PTR_DAT_003a88cc;
  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {
    return MagickTrue;
  }
  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();
  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;
  return MagickTrue;
}



undefined4 FUN_0018883c(void)

{
  undefined *puVar1;
  undefined4 uVar2;
  
  puVar1 = PTR_DAT_003a88cc;
  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {
    return 1;
  }
  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();
  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;
  return 1;
}


lui gp,0x23
addiu gp,gp,-0x7f8c
addu gp,gp,t9
addiu sp,sp,-0x20
sw s0,0x18(sp)
lw s0,-0x7fe4(gp)
sw gp,0x10(sp)
sw ra,0x1c(sp)
lw v0,-0x4ef0(s0)
beq v0,zero,0x00188878
_lw ra,0x1c(sp)
li v0,0x1
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw t9,-0x7284(gp)
jalr t9
_nop
lw ra,0x1c(sp)
sw v0,-0x4ef0(s0)
li v0,0x1
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 FUN_0018883c(void)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return 1;\n  }\n  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();\n  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0018883c(void)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return 1;\n  }\n  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();\n  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;\n  return 1;\n}" type_identifier (function_declarator "FUN_0018883c(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return 1;\n  }\n  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();\n  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;\n  return 1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_003a88cc;" (assignment_expression "puVar1 = PTR_DAT_003a88cc" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return 1;\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0)" ( (binary_expression "*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0" (pointer_expression "*(int *)(PTR_DAT_003a88cc + -0x4ef0)" * (cast_expression "(int *)(PTR_DAT_003a88cc + -0x4ef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_003a88cc + -0x4ef0)" ( (binary_expression "PTR_DAT_003a88cc + -0x4ef0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();" (assignment_expression "uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)()" identifier = (call_expression "(*(code *)PTR_AcquireSemaphoreInfo_003a962c)()" (parenthesized_expression "(*(code *)PTR_AcquireSemaphoreInfo_003a962c)" ( (pointer_expression "*(code *)PTR_AcquireSemaphoreInfo_003a962c" * (cast_expression "(code *)PTR_AcquireSemaphoreInfo_003a962c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(puVar1 + -0x4ef0) = uVar2;" (assignment_expression "*(undefined4 *)(puVar1 + -0x4ef0) = uVar2" (pointer_expression "*(undefined4 *)(puVar1 + -0x4ef0)" * (cast_expression "(undefined4 *)(puVar1 + -0x4ef0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x4ef0)" ( (binary_expression "puVar1 + -0x4ef0" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nMagickBooleanType RegistryComponentGenesis(void)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return MagickTrue;\n  }\n  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();\n  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;\n  return MagickTrue;\n}\n\n" comment (function_definition "MagickBooleanType RegistryComponentGenesis(void)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return MagickTrue;\n  }\n  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();\n  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;\n  return MagickTrue;\n}" type_identifier (function_declarator "RegistryComponentGenesis(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return MagickTrue;\n  }\n  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();\n  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;\n  return MagickTrue;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_003a88cc;" (assignment_expression "puVar1 = PTR_DAT_003a88cc" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return MagickTrue;\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0)" ( (binary_expression "*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0" (pointer_expression "*(int *)(PTR_DAT_003a88cc + -0x4ef0)" * (cast_expression "(int *)(PTR_DAT_003a88cc + -0x4ef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_003a88cc + -0x4ef0)" ( (binary_expression "PTR_DAT_003a88cc + -0x4ef0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return MagickTrue;\n  }" { (return_statement "return MagickTrue;" return identifier ;) })) (expression_statement "uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();" (assignment_expression "uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)()" identifier = (call_expression "(*(code *)PTR_AcquireSemaphoreInfo_003a962c)()" (parenthesized_expression "(*(code *)PTR_AcquireSemaphoreInfo_003a962c)" ( (pointer_expression "*(code *)PTR_AcquireSemaphoreInfo_003a962c" * (cast_expression "(code *)PTR_AcquireSemaphoreInfo_003a962c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(puVar1 + -0x4ef0) = uVar2;" (assignment_expression "*(undefined4 *)(puVar1 + -0x4ef0) = uVar2" (pointer_expression "*(undefined4 *)(puVar1 + -0x4ef0)" * (cast_expression "(undefined4 *)(puVar1 + -0x4ef0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x4ef0)" ( (binary_expression "puVar1 + -0x4ef0" identifier + number_literal) )))) = identifier) ;) (return_statement "return MagickTrue;" return identifier ;) })))
(translation_unit "undefined4 FUN_0018883c(void)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return 1;\n  }\n  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();\n  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_0018883c(void)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return 1;\n  }\n  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();\n  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;\n  return 1;\n}" type_identifier (function_declarator "FUN_0018883c(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return 1;\n  }\n  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();\n  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;\n  return 1;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_003a88cc;" (assignment_expression "puVar1 = PTR_DAT_003a88cc" identifier = identifier) ;) (if_statement "if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return 1;\n  }" if (parenthesized_expression "(*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0)" ( (binary_expression "*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0" (pointer_expression "*(int *)(PTR_DAT_003a88cc + -0x4ef0)" * (cast_expression "(int *)(PTR_DAT_003a88cc + -0x4ef0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_003a88cc + -0x4ef0)" ( (binary_expression "PTR_DAT_003a88cc + -0x4ef0" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return 1;\n  }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();" (assignment_expression "uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)()" identifier = (call_expression "(*(code *)PTR_AcquireSemaphoreInfo_003a962c)()" (parenthesized_expression "(*(code *)PTR_AcquireSemaphoreInfo_003a962c)" ( (pointer_expression "*(code *)PTR_AcquireSemaphoreInfo_003a962c" * (cast_expression "(code *)PTR_AcquireSemaphoreInfo_003a962c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(puVar1 + -0x4ef0) = uVar2;" (assignment_expression "*(undefined4 *)(puVar1 + -0x4ef0) = uVar2" (pointer_expression "*(undefined4 *)(puVar1 + -0x4ef0)" * (cast_expression "(undefined4 *)(puVar1 + -0x4ef0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x4ef0)" ( (binary_expression "puVar1 + -0x4ef0" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0018883c(void)\n\n{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return 1;\n  }\n  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();\n  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0018883c(void)" (identifier "FUN_0018883c") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return 1;\n  }\n  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();\n  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;\n  return 1;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "puVar1 = PTR_DAT_003a88cc;" (assignment_expression "puVar1 = PTR_DAT_003a88cc" (identifier "puVar1") (= "=") (identifier "PTR_DAT_003a88cc")) (; ";")) (if_statement "if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {\n    return 1;\n  }" (if "if") (parenthesized_expression "(*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0)" (( "(") (binary_expression "*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0" (pointer_expression "*(int *)(PTR_DAT_003a88cc + -0x4ef0)" (* "*") (cast_expression "(int *)(PTR_DAT_003a88cc + -0x4ef0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_003a88cc + -0x4ef0)" (( "(") (binary_expression "PTR_DAT_003a88cc + -0x4ef0" (identifier "PTR_DAT_003a88cc") (+ "+") (number_literal "-0x4ef0")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return 1;\n  }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();" (assignment_expression "uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)()" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_AcquireSemaphoreInfo_003a962c)()" (parenthesized_expression "(*(code *)PTR_AcquireSemaphoreInfo_003a962c)" (( "(") (pointer_expression "*(code *)PTR_AcquireSemaphoreInfo_003a962c" (* "*") (cast_expression "(code *)PTR_AcquireSemaphoreInfo_003a962c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_AcquireSemaphoreInfo_003a962c"))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + -0x4ef0) = uVar2;" (assignment_expression "*(undefined4 *)(puVar1 + -0x4ef0) = uVar2" (pointer_expression "*(undefined4 *)(puVar1 + -0x4ef0)" (* "*") (cast_expression "(undefined4 *)(puVar1 + -0x4ef0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x4ef0)" (( "(") (binary_expression "puVar1 + -0x4ef0" (identifier "puVar1") (+ "+") (number_literal "-0x4ef0")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(void)

{
  type_2 *var_2;
  type_3 uVar2;
  
  var_2 = var_1;
  if (*(int *)(var_1 + -0x4ef0) != 0) {
    return MagickTrue;
  }
  uVar2 = (*(type_4 *)PTR_AcquireSemaphoreInfo_003a962c)();
  *(type_3 *)(var_2 + -0x4ef0) = uVar2;
  return MagickTrue;
}


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

undefined4 MASKED(void)

{
  undefined *puVar1;
  undefined4 uVar2;
  
  puVar1 = PTR_DAT_003a88cc;
  if (*(int *)(PTR_DAT_003a88cc + -0x4ef0) != 0) {
    return 1;
  }
  uVar2 = (*(code *)PTR_AcquireSemaphoreInfo_003a962c)();
  *(undefined4 *)(puVar1 + -0x4ef0) = uVar2;
  return 1;
}

