
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

ErrorHandler SetErrorHandler(ErrorHandler handler)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 uVar4;
  ErrorHandler p_Var5;
  
  puVar1 = PTR_DAT_003a88cc;
  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);
  if (iVar3 == 0) {
    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);
    iVar3 = *(int *)(puVar1 + -0x50b0);
  }
  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);
  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;
  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);
  p_Var5 = *(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198);
  *(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198) = handler;
  (*(code *)puVar2)(uVar4);
  return p_Var5;
}



undefined4 SetErrorHandler(undefined4 param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  
  puVar1 = PTR_DAT_003a88cc;
  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);
  if (iVar3 == 0) {
    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);
    iVar3 = *(int *)(puVar1 + -0x50b0);
  }
  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);
  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;
  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);
  uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);
  *(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;
  (*(code *)puVar2)(uVar4);
  return uVar5;
}


lui gp,0x2e
addiu gp,gp,0x600
addu gp,gp,t9
addiu sp,sp,-0x28
sw s0,0x1c(sp)
sw s1,0x20(sp)
or s1,a0,zero
lw s0,-0x7fe4(gp)
sw gp,0x10(sp)
sw ra,0x24(sp)
lw a0,-0x50b0(s0)
beq a0,zero,0x000d0324
_lw t9,-0x73c4(gp)
lw t9,-0x71c8(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw a0,-0x50b0(s0)
lw v1,-0x7f68(gp)
lw t9,-0x7530(gp)
lw s0,0x6198(v1)
jalr t9
_sw s1,0x6198(v1)
lw ra,0x24(sp)
or v0,s0,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
jalr t9
_addiu a0,s0,-0x50b0
lw gp,0x10(sp)
b 0x000d02e4
_lw a0,-0x50b0(s0)
(translation_unit "undefined4 SetErrorHandler(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }\n  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);\n  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;\n  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);\n  uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);\n  *(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;\n  (*(code *)puVar2)(uVar4);\n  return uVar5;\n}\n\n" (function_definition "undefined4 SetErrorHandler(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }\n  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);\n  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;\n  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);\n  uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);\n  *(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;\n  (*(code *)puVar2)(uVar4);\n  return uVar5;\n}" type_identifier (function_declarator "SetErrorHandler(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }\n  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);\n  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;\n  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);\n  uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);\n  *(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;\n  (*(code *)puVar2)(uVar4);\n  return uVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_003a88cc;" (assignment_expression "puVar1 = PTR_DAT_003a88cc" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0)" identifier = (pointer_expression "*(int *)(PTR_DAT_003a88cc + -0x50b0)" * (cast_expression "(int *)(PTR_DAT_003a88cc + -0x50b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_003a88cc + -0x50b0)" ( (binary_expression "PTR_DAT_003a88cc + -0x50b0" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }" { (expression_statement "(*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);" (call_expression "(*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0)" (parenthesized_expression "(*(code *)PTR_ActivateSemaphoreInfo_003a94ec)" ( (pointer_expression "*(code *)PTR_ActivateSemaphoreInfo_003a94ec" * (cast_expression "(code *)PTR_ActivateSemaphoreInfo_003a94ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_003a88cc + -0x50b0)" ( (binary_expression "PTR_DAT_003a88cc + -0x50b0" identifier + number_literal) ))) ;) (expression_statement "iVar3 = *(int *)(puVar1 + -0x50b0);" (assignment_expression "iVar3 = *(int *)(puVar1 + -0x50b0)" identifier = (pointer_expression "*(int *)(puVar1 + -0x50b0)" * (cast_expression "(int *)(puVar1 + -0x50b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50b0)" ( (binary_expression "puVar1 + -0x50b0" identifier + number_literal) ))))) ;) })) (expression_statement "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);" (call_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3)" (parenthesized_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)" ( (pointer_expression "*(code *)PTR_LockSemaphoreInfo_003a96e8" * (cast_expression "(code *)PTR_LockSemaphoreInfo_003a96e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "puVar2 = PTR_UnlockSemaphoreInfo_003a9380;" (assignment_expression "puVar2 = PTR_UnlockSemaphoreInfo_003a9380" identifier = identifier) ;) (expression_statement "uVar4 = *(undefined4 *)(puVar1 + -0x50b0);" (assignment_expression "uVar4 = *(undefined4 *)(puVar1 + -0x50b0)" identifier = (pointer_expression "*(undefined4 *)(puVar1 + -0x50b0)" * (cast_expression "(undefined4 *)(puVar1 + -0x50b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50b0)" ( (binary_expression "puVar1 + -0x50b0" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);" (assignment_expression "uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" identifier = (pointer_expression "*(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" * (cast_expression "(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_003a8948 + 0x6198)" ( (binary_expression "PTR_DAT_003a8948 + 0x6198" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;" (assignment_expression "*(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1" (pointer_expression "*(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" * (cast_expression "(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_003a8948 + 0x6198)" ( (binary_expression "PTR_DAT_003a8948 + 0x6198" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)puVar2)(uVar4);" (call_expression "(*(code *)puVar2)(uVar4)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nErrorHandler SetErrorHandler(ErrorHandler handler)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  ErrorHandler p_Var5;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }\n  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);\n  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;\n  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);\n  p_Var5 = *(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198);\n  *(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198) = handler;\n  (*(code *)puVar2)(uVar4);\n  return p_Var5;\n}\n\n" comment (function_definition "ErrorHandler SetErrorHandler(ErrorHandler handler)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  ErrorHandler p_Var5;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }\n  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);\n  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;\n  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);\n  p_Var5 = *(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198);\n  *(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198) = handler;\n  (*(code *)puVar2)(uVar4);\n  return p_Var5;\n}" type_identifier (function_declarator "SetErrorHandler(ErrorHandler handler)" identifier (parameter_list "(ErrorHandler handler)" ( (parameter_declaration "ErrorHandler handler" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  ErrorHandler p_Var5;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }\n  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);\n  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;\n  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);\n  p_Var5 = *(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198);\n  *(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198) = handler;\n  (*(code *)puVar2)(uVar4);\n  return p_Var5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "ErrorHandler p_Var5;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_003a88cc;" (assignment_expression "puVar1 = PTR_DAT_003a88cc" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0)" identifier = (pointer_expression "*(int *)(PTR_DAT_003a88cc + -0x50b0)" * (cast_expression "(int *)(PTR_DAT_003a88cc + -0x50b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_003a88cc + -0x50b0)" ( (binary_expression "PTR_DAT_003a88cc + -0x50b0" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }" { (expression_statement "(*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);" (call_expression "(*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0)" (parenthesized_expression "(*(code *)PTR_ActivateSemaphoreInfo_003a94ec)" ( (pointer_expression "*(code *)PTR_ActivateSemaphoreInfo_003a94ec" * (cast_expression "(code *)PTR_ActivateSemaphoreInfo_003a94ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_003a88cc + -0x50b0)" ( (binary_expression "PTR_DAT_003a88cc + -0x50b0" identifier + number_literal) ))) ;) (expression_statement "iVar3 = *(int *)(puVar1 + -0x50b0);" (assignment_expression "iVar3 = *(int *)(puVar1 + -0x50b0)" identifier = (pointer_expression "*(int *)(puVar1 + -0x50b0)" * (cast_expression "(int *)(puVar1 + -0x50b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50b0)" ( (binary_expression "puVar1 + -0x50b0" identifier + number_literal) ))))) ;) })) (expression_statement "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);" (call_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3)" (parenthesized_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)" ( (pointer_expression "*(code *)PTR_LockSemaphoreInfo_003a96e8" * (cast_expression "(code *)PTR_LockSemaphoreInfo_003a96e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "puVar2 = PTR_UnlockSemaphoreInfo_003a9380;" (assignment_expression "puVar2 = PTR_UnlockSemaphoreInfo_003a9380" identifier = identifier) ;) (expression_statement "uVar4 = *(undefined4 *)(puVar1 + -0x50b0);" (assignment_expression "uVar4 = *(undefined4 *)(puVar1 + -0x50b0)" identifier = (pointer_expression "*(undefined4 *)(puVar1 + -0x50b0)" * (cast_expression "(undefined4 *)(puVar1 + -0x50b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50b0)" ( (binary_expression "puVar1 + -0x50b0" identifier + number_literal) ))))) ;) (expression_statement "p_Var5 = *(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198);" (assignment_expression "p_Var5 = *(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198)" identifier = (pointer_expression "*(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198)" * (cast_expression "(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198)" ( (type_descriptor "ErrorHandler *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198)" ( (binary_expression "PTR_MagickImageList_3__magick_276__003a8948 + 0x6198" identifier + number_literal) ))))) ;) (expression_statement "*(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198) = handler;" (assignment_expression "*(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198) = handler" (pointer_expression "*(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198)" * (cast_expression "(ErrorHandler *)(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198)" ( (type_descriptor "ErrorHandler *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_MagickImageList_3__magick_276__003a8948 + 0x6198)" ( (binary_expression "PTR_MagickImageList_3__magick_276__003a8948 + 0x6198" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)puVar2)(uVar4);" (call_expression "(*(code *)puVar2)(uVar4)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return p_Var5;" return identifier ;) })))
(translation_unit "undefined4 SetErrorHandler(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }\n  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);\n  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;\n  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);\n  uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);\n  *(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;\n  (*(code *)puVar2)(uVar4);\n  return uVar5;\n}\n\n" (function_definition "undefined4 SetErrorHandler(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }\n  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);\n  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;\n  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);\n  uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);\n  *(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;\n  (*(code *)puVar2)(uVar4);\n  return uVar5;\n}" type_identifier (function_declarator "SetErrorHandler(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }\n  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);\n  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;\n  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);\n  uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);\n  *(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;\n  (*(code *)puVar2)(uVar4);\n  return uVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 uVar5;" type_identifier identifier ;) (expression_statement "puVar1 = PTR_DAT_003a88cc;" (assignment_expression "puVar1 = PTR_DAT_003a88cc" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0)" identifier = (pointer_expression "*(int *)(PTR_DAT_003a88cc + -0x50b0)" * (cast_expression "(int *)(PTR_DAT_003a88cc + -0x50b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_003a88cc + -0x50b0)" ( (binary_expression "PTR_DAT_003a88cc + -0x50b0" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }" { (expression_statement "(*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);" (call_expression "(*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0)" (parenthesized_expression "(*(code *)PTR_ActivateSemaphoreInfo_003a94ec)" ( (pointer_expression "*(code *)PTR_ActivateSemaphoreInfo_003a94ec" * (cast_expression "(code *)PTR_ActivateSemaphoreInfo_003a94ec" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_003a88cc + -0x50b0)" ( (binary_expression "PTR_DAT_003a88cc + -0x50b0" identifier + number_literal) ))) ;) (expression_statement "iVar3 = *(int *)(puVar1 + -0x50b0);" (assignment_expression "iVar3 = *(int *)(puVar1 + -0x50b0)" identifier = (pointer_expression "*(int *)(puVar1 + -0x50b0)" * (cast_expression "(int *)(puVar1 + -0x50b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50b0)" ( (binary_expression "puVar1 + -0x50b0" identifier + number_literal) ))))) ;) })) (expression_statement "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);" (call_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3)" (parenthesized_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)" ( (pointer_expression "*(code *)PTR_LockSemaphoreInfo_003a96e8" * (cast_expression "(code *)PTR_LockSemaphoreInfo_003a96e8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3)" ( identifier ))) ;) (expression_statement "puVar2 = PTR_UnlockSemaphoreInfo_003a9380;" (assignment_expression "puVar2 = PTR_UnlockSemaphoreInfo_003a9380" identifier = identifier) ;) (expression_statement "uVar4 = *(undefined4 *)(puVar1 + -0x50b0);" (assignment_expression "uVar4 = *(undefined4 *)(puVar1 + -0x50b0)" identifier = (pointer_expression "*(undefined4 *)(puVar1 + -0x50b0)" * (cast_expression "(undefined4 *)(puVar1 + -0x50b0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x50b0)" ( (binary_expression "puVar1 + -0x50b0" identifier + number_literal) ))))) ;) (expression_statement "uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);" (assignment_expression "uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" identifier = (pointer_expression "*(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" * (cast_expression "(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_003a8948 + 0x6198)" ( (binary_expression "PTR_DAT_003a8948 + 0x6198" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;" (assignment_expression "*(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1" (pointer_expression "*(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" * (cast_expression "(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_003a8948 + 0x6198)" ( (binary_expression "PTR_DAT_003a8948 + 0x6198" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)puVar2)(uVar4);" (call_expression "(*(code *)puVar2)(uVar4)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar4)" ( identifier ))) ;) (return_statement "return uVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 SetErrorHandler(undefined4 param_1)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }\n  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);\n  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;\n  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);\n  uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);\n  *(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;\n  (*(code *)puVar2)(uVar4);\n  return uVar5;\n}" (type_identifier "undefined4") (function_declarator "SetErrorHandler(undefined4 param_1)" (identifier "SetErrorHandler") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  undefined4 uVar5;\n  \n  puVar1 = PTR_DAT_003a88cc;\n  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);\n  if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }\n  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);\n  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;\n  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);\n  uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);\n  *(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;\n  (*(code *)puVar2)(uVar4);\n  return uVar5;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 uVar5;" (type_identifier "undefined4") (identifier "uVar5") (; ";")) (expression_statement "puVar1 = PTR_DAT_003a88cc;" (assignment_expression "puVar1 = PTR_DAT_003a88cc" (identifier "puVar1") (= "=") (identifier "PTR_DAT_003a88cc")) (; ";")) (expression_statement "iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);" (assignment_expression "iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(PTR_DAT_003a88cc + -0x50b0)" (* "*") (cast_expression "(int *)(PTR_DAT_003a88cc + -0x50b0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_003a88cc + -0x50b0)" (( "(") (binary_expression "PTR_DAT_003a88cc + -0x50b0" (identifier "PTR_DAT_003a88cc") (+ "+") (number_literal "-0x50b0")) () ")"))))) (; ";")) (if_statement "if (iVar3 == 0) {\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);\n    iVar3 = *(int *)(puVar1 + -0x50b0);\n  }" ({ "{") (expression_statement "(*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);" (call_expression "(*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0)" (parenthesized_expression "(*(code *)PTR_ActivateSemaphoreInfo_003a94ec)" (( "(") (pointer_expression "*(code *)PTR_ActivateSemaphoreInfo_003a94ec" (* "*") (cast_expression "(code *)PTR_ActivateSemaphoreInfo_003a94ec" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ActivateSemaphoreInfo_003a94ec"))) () ")")) (argument_list "(PTR_DAT_003a88cc + -0x50b0)" (( "(") (binary_expression "PTR_DAT_003a88cc + -0x50b0" (identifier "PTR_DAT_003a88cc") (+ "+") (number_literal "-0x50b0")) () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(puVar1 + -0x50b0);" (assignment_expression "iVar3 = *(int *)(puVar1 + -0x50b0)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(puVar1 + -0x50b0)" (* "*") (cast_expression "(int *)(puVar1 + -0x50b0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x50b0)" (( "(") (binary_expression "puVar1 + -0x50b0" (identifier "puVar1") (+ "+") (number_literal "-0x50b0")) () ")"))))) (; ";")) (} "}"))) (expression_statement "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);" (call_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3)" (parenthesized_expression "(*(code *)PTR_LockSemaphoreInfo_003a96e8)" (( "(") (pointer_expression "*(code *)PTR_LockSemaphoreInfo_003a96e8" (* "*") (cast_expression "(code *)PTR_LockSemaphoreInfo_003a96e8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_LockSemaphoreInfo_003a96e8"))) () ")")) (argument_list "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "puVar2 = PTR_UnlockSemaphoreInfo_003a9380;" (assignment_expression "puVar2 = PTR_UnlockSemaphoreInfo_003a9380" (identifier "puVar2") (= "=") (identifier "PTR_UnlockSemaphoreInfo_003a9380")) (; ";")) (expression_statement "uVar4 = *(undefined4 *)(puVar1 + -0x50b0);" (assignment_expression "uVar4 = *(undefined4 *)(puVar1 + -0x50b0)" (identifier "uVar4") (= "=") (pointer_expression "*(undefined4 *)(puVar1 + -0x50b0)" (* "*") (cast_expression "(undefined4 *)(puVar1 + -0x50b0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x50b0)" (( "(") (binary_expression "puVar1 + -0x50b0" (identifier "puVar1") (+ "+") (number_literal "-0x50b0")) () ")"))))) (; ";")) (expression_statement "uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);" (assignment_expression "uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" (identifier "uVar5") (= "=") (pointer_expression "*(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_003a8948 + 0x6198)" (( "(") (binary_expression "PTR_DAT_003a8948 + 0x6198" (identifier "PTR_DAT_003a8948") (+ "+") (number_literal "0x6198")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;" (assignment_expression "*(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1" (pointer_expression "*(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" (* "*") (cast_expression "(undefined4 *)(PTR_DAT_003a8948 + 0x6198)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_003a8948 + 0x6198)" (( "(") (binary_expression "PTR_DAT_003a8948 + 0x6198" (identifier "PTR_DAT_003a8948") (+ "+") (number_literal "0x6198")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "(*(code *)puVar2)(uVar4);" (call_expression "(*(code *)puVar2)(uVar4)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return uVar5;" (return "return") (identifier "uVar5") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (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))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (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 (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))))) (expression_statement (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 (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (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))) (expression_statement (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 (identifier)))) (return_statement (identifier)))))

undefined4 MASKED(undefined4 param_1)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 uVar4;
  undefined4 uVar5;
  
  puVar1 = PTR_DAT_003a88cc;
  iVar3 = *(int *)(PTR_DAT_003a88cc + -0x50b0);
  if (iVar3 == 0) {
    (*(code *)PTR_ActivateSemaphoreInfo_003a94ec)(PTR_DAT_003a88cc + -0x50b0);
    iVar3 = *(int *)(puVar1 + -0x50b0);
  }
  (*(code *)PTR_LockSemaphoreInfo_003a96e8)(iVar3);
  puVar2 = PTR_UnlockSemaphoreInfo_003a9380;
  uVar4 = *(undefined4 *)(puVar1 + -0x50b0);
  uVar5 = *(undefined4 *)(PTR_DAT_003a8948 + 0x6198);
  *(undefined4 *)(PTR_DAT_003a8948 + 0x6198) = param_1;
  (*(code *)puVar2)(uVar4);
  return uVar5;
}

