
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

size_t GetMagicPatternExtent(ExceptionInfo *exception)

{
  MagickBooleanType MVar1;
  void *pvVar2;
  uint uVar3;
  uint uVar4;
  
  if (exception == (ExceptionInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,
                  "GetMagicPatternExtent");
  }
  if (GetMagicPatternExtent::size == 0) {
    MVar1 = IsMagicListInstantiated(exception);
    if (MVar1 != MagickFalse) {
      LockSemaphoreInfo(magic_list_semaphore);
      ResetLinkedListIterator(magic_list);
      uVar4 = 0;
      while (pvVar2 = GetNextValueInLinkedList(magic_list), pvVar2 != (void *)0x0) {
        uVar3 = *(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14);
        if (uVar4 < uVar3) {
          uVar4 = uVar3;
        }
      }
      GetMagicPatternExtent::size = uVar4;
      UnlockSemaphoreInfo(magic_list_semaphore);
      return GetMagicPatternExtent::size;
    }
    return GetMagicPatternExtent::size;
  }
  return GetMagicPatternExtent::size;
}



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

uint GetMagicPatternExtent(int param_1)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,
                  "GetMagicPatternExtent");
  }
  if (DAT_004227c8 == 0) {
    iVar1 = FUN_00108380();
    if (iVar1 != 0) {
      LockSemaphoreInfo(DAT_004227cc);
      ResetLinkedListIterator(DAT_004227d4);
      uVar3 = 0;
      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {
        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);
        if (uVar3 < uVar2) {
          uVar3 = uVar2;
        }
      }
      DAT_004227c8 = uVar3;
      UnlockSemaphoreInfo(DAT_004227cc);
      return DAT_004227c8;
    }
    return DAT_004227c8;
  }
  return DAT_004227c8;
}


PUSH ESI
PUSH EBX
CALL 0x00039d70
ADD EBX,0x3156d9
SUB ESP,0x4
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x001089d5
MOV ESI,dword ptr [EBX + 0x47c8]
TEST ESI,ESI
JZ 0x00108950
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
CALL 0x00108380
TEST EAX,EAX
JNZ 0x00108970
MOV ESI,dword ptr [EBX + 0x47c8]
ADD ESP,0x4
POP EBX
MOV EAX,ESI
POP ESI
RET
SUB ESP,0xc
PUSH dword ptr [EBX + 0x47cc]
CALL 0x00031050
POP EAX
PUSH dword ptr [EBX + 0x47d4]
CALL 0x00031700
POP EDX
JMP 0x0010899e
MOV EDX,dword ptr [EAX + 0x10]
ADD EDX,dword ptr [EAX + 0x14]
CMP ESI,EDX
CMOVC ESI,EDX
SUB ESP,0xc
PUSH dword ptr [EBX + 0x47d4]
CALL 0x00031f60
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00108990
SUB ESP,0xc
MOV dword ptr [EBX + 0x47c8],ESI
PUSH dword ptr [EBX + 0x47cc]
CALL 0x00031da0
MOV ESI,dword ptr [EBX + 0x47c8]
ADD ESP,0x10
ADD ESP,0x4
POP EBX
MOV EAX,ESI
POP ESI
RET
LEA EAX,[EBX + 0xffedbf50]
PUSH EAX
LEA EAX,[EBX + 0xffedbc44]
PUSH 0x177
PUSH EAX
LEA EAX,[EBX + 0xffec1be4]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint GetMagicPatternExtent(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }\n  if (DAT_004227c8 == 0) {\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }\n  return DAT_004227c8;\n}\n\n" comment (function_definition "uint GetMagicPatternExtent(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }\n  if (DAT_004227c8 == 0) {\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }\n  return DAT_004227c8;\n}" type_identifier (function_declarator "GetMagicPatternExtent(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }\n  if (DAT_004227c8 == 0) {\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }\n  return DAT_004227c8;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/magic.c"" " string_content ") , number_literal , (string_literal ""GetMagicPatternExtent"" " string_content ") ))) ;) })) (if_statement "if (DAT_004227c8 == 0) {\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }" if (parenthesized_expression "(DAT_004227c8 == 0)" ( (binary_expression "DAT_004227c8 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }" { (expression_statement "iVar1 = FUN_00108380();" (assignment_expression "iVar1 = FUN_00108380()" identifier = (call_expression "FUN_00108380()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }" { (expression_statement "LockSemaphoreInfo(DAT_004227cc);" (call_expression "LockSemaphoreInfo(DAT_004227cc)" identifier (argument_list "(DAT_004227cc)" ( identifier ))) ;) (expression_statement "ResetLinkedListIterator(DAT_004227d4);" (call_expression "ResetLinkedListIterator(DAT_004227d4)" identifier (argument_list "(DAT_004227d4)" ( identifier ))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (while_statement "while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }" while (parenthesized_expression "(iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0)" ( (comma_expression "iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0" (assignment_expression "iVar1 = GetNextValueInLinkedList(DAT_004227d4)" identifier = (call_expression "GetNextValueInLinkedList(DAT_004227d4)" identifier (argument_list "(DAT_004227d4)" ( identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )) (compound_statement "{\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }" { (expression_statement "uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);" (assignment_expression "uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14)" identifier = (binary_expression "*(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14)" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))))) ;) (if_statement "if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }" if (parenthesized_expression "(uVar3 < uVar2)" ( (binary_expression "uVar3 < uVar2" identifier < identifier) )) (compound_statement "{\n          uVar3 = uVar2;\n        }" { (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) })) })) (expression_statement "DAT_004227c8 = uVar3;" (assignment_expression "DAT_004227c8 = uVar3" identifier = identifier) ;) (expression_statement "UnlockSemaphoreInfo(DAT_004227cc);" (call_expression "UnlockSemaphoreInfo(DAT_004227cc)" identifier (argument_list "(DAT_004227cc)" ( identifier ))) ;) (return_statement "return DAT_004227c8;" return identifier ;) })) (return_statement "return DAT_004227c8;" return identifier ;) })) (return_statement "return DAT_004227c8;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nsize_t GetMagicPatternExtent(ExceptionInfo *exception)\n\n{\n  MagickBooleanType MVar1;\n  void *pvVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }\n  if (GetMagicPatternExtent::size == 0) {\n    MVar1 = IsMagicListInstantiated(exception);\n    if (MVar1 != MagickFalse) {\n      LockSemaphoreInfo(magic_list_semaphore);\n      ResetLinkedListIterator(magic_list);\n      uVar4 = 0;\n      while (pvVar2 = GetNextValueInLinkedList(magic_list), pvVar2 != (void *)0x0) {\n        uVar3 = *(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14);\n        if (uVar4 < uVar3) {\n          uVar4 = uVar3;\n        }\n      }\n      GetMagicPatternExtent::size = uVar4;\n      UnlockSemaphoreInfo(magic_list_semaphore);\n      return GetMagicPatternExtent::size;\n    }\n    return GetMagicPatternExtent::size;\n  }\n  return GetMagicPatternExtent::size;\n}\n\n" comment comment comment (function_definition "size_t GetMagicPatternExtent(ExceptionInfo *exception)\n\n{\n  MagickBooleanType MVar1;\n  void *pvVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }\n  if (GetMagicPatternExtent::size == 0) {\n    MVar1 = IsMagicListInstantiated(exception);\n    if (MVar1 != MagickFalse) {\n      LockSemaphoreInfo(magic_list_semaphore);\n      ResetLinkedListIterator(magic_list);\n      uVar4 = 0;\n      while (pvVar2 = GetNextValueInLinkedList(magic_list), pvVar2 != (void *)0x0) {\n        uVar3 = *(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14);\n        if (uVar4 < uVar3) {\n          uVar4 = uVar3;\n        }\n      }\n      GetMagicPatternExtent::size = uVar4;\n      UnlockSemaphoreInfo(magic_list_semaphore);\n      return GetMagicPatternExtent::size;\n    }\n    return GetMagicPatternExtent::size;\n  }\n  return GetMagicPatternExtent::size;\n}" primitive_type (function_declarator "GetMagicPatternExtent(ExceptionInfo *exception)" identifier (parameter_list "(ExceptionInfo *exception)" ( (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  MagickBooleanType MVar1;\n  void *pvVar2;\n  uint uVar3;\n  uint uVar4;\n  \n  if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }\n  if (GetMagicPatternExtent::size == 0) {\n    MVar1 = IsMagicListInstantiated(exception);\n    if (MVar1 != MagickFalse) {\n      LockSemaphoreInfo(magic_list_semaphore);\n      ResetLinkedListIterator(magic_list);\n      uVar4 = 0;\n      while (pvVar2 = GetNextValueInLinkedList(magic_list), pvVar2 != (void *)0x0) {\n        uVar3 = *(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14);\n        if (uVar4 < uVar3) {\n          uVar4 = uVar3;\n        }\n      }\n      GetMagicPatternExtent::size = uVar4;\n      UnlockSemaphoreInfo(magic_list_semaphore);\n      return GetMagicPatternExtent::size;\n    }\n    return GetMagicPatternExtent::size;\n  }\n  return GetMagicPatternExtent::size;\n}" { (declaration "MagickBooleanType MVar1;" type_identifier identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (if_statement "if (exception == (ExceptionInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }" if (parenthesized_expression "(exception == (ExceptionInfo *)0x0)" ( (binary_expression "exception == (ExceptionInfo *)0x0" identifier == (cast_expression "(ExceptionInfo *)0x0" ( (type_descriptor "ExceptionInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }" { comment (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/magic.c"" " string_content ") , number_literal , (string_literal ""GetMagicPatternExtent"" " string_content ") ))) ;) })) (if_statement "if (GetMagicPatternExtent::size == 0) {\n    MVar1 = IsMagicListInstantiated(exception);\n    if (MVar1 != MagickFalse) {\n      LockSemaphoreInfo(magic_list_semaphore);\n      ResetLinkedListIterator(magic_list);\n      uVar4 = 0;\n      while (pvVar2 = GetNextValueInLinkedList(magic_list), pvVar2 != (void *)0x0) {\n        uVar3 = *(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14);\n        if (uVar4 < uVar3) {\n          uVar4 = uVar3;\n        }\n      }\n      GetMagicPatternExtent::size = uVar4;\n      UnlockSemaphoreInfo(magic_list_semaphore);\n      return GetMagicPatternExtent::size;\n    }\n    return GetMagicPatternExtent::size;\n  }" if (parenthesized_expression "(GetMagicPatternExtent::size == 0)" ( (binary_expression "GetMagicPatternExtent::size == 0" identifier (ERROR "::size" : : identifier) == number_literal) )) (compound_statement "{\n    MVar1 = IsMagicListInstantiated(exception);\n    if (MVar1 != MagickFalse) {\n      LockSemaphoreInfo(magic_list_semaphore);\n      ResetLinkedListIterator(magic_list);\n      uVar4 = 0;\n      while (pvVar2 = GetNextValueInLinkedList(magic_list), pvVar2 != (void *)0x0) {\n        uVar3 = *(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14);\n        if (uVar4 < uVar3) {\n          uVar4 = uVar3;\n        }\n      }\n      GetMagicPatternExtent::size = uVar4;\n      UnlockSemaphoreInfo(magic_list_semaphore);\n      return GetMagicPatternExtent::size;\n    }\n    return GetMagicPatternExtent::size;\n  }" { (expression_statement "MVar1 = IsMagicListInstantiated(exception);" (assignment_expression "MVar1 = IsMagicListInstantiated(exception)" identifier = (call_expression "IsMagicListInstantiated(exception)" identifier (argument_list "(exception)" ( identifier )))) ;) (if_statement "if (MVar1 != MagickFalse) {\n      LockSemaphoreInfo(magic_list_semaphore);\n      ResetLinkedListIterator(magic_list);\n      uVar4 = 0;\n      while (pvVar2 = GetNextValueInLinkedList(magic_list), pvVar2 != (void *)0x0) {\n        uVar3 = *(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14);\n        if (uVar4 < uVar3) {\n          uVar4 = uVar3;\n        }\n      }\n      GetMagicPatternExtent::size = uVar4;\n      UnlockSemaphoreInfo(magic_list_semaphore);\n      return GetMagicPatternExtent::size;\n    }" if (parenthesized_expression "(MVar1 != MagickFalse)" ( (binary_expression "MVar1 != MagickFalse" identifier != identifier) )) (compound_statement "{\n      LockSemaphoreInfo(magic_list_semaphore);\n      ResetLinkedListIterator(magic_list);\n      uVar4 = 0;\n      while (pvVar2 = GetNextValueInLinkedList(magic_list), pvVar2 != (void *)0x0) {\n        uVar3 = *(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14);\n        if (uVar4 < uVar3) {\n          uVar4 = uVar3;\n        }\n      }\n      GetMagicPatternExtent::size = uVar4;\n      UnlockSemaphoreInfo(magic_list_semaphore);\n      return GetMagicPatternExtent::size;\n    }" { (expression_statement "LockSemaphoreInfo(magic_list_semaphore);" (call_expression "LockSemaphoreInfo(magic_list_semaphore)" identifier (argument_list "(magic_list_semaphore)" ( identifier ))) ;) (expression_statement "ResetLinkedListIterator(magic_list);" (call_expression "ResetLinkedListIterator(magic_list)" identifier (argument_list "(magic_list)" ( identifier ))) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (while_statement "while (pvVar2 = GetNextValueInLinkedList(magic_list), pvVar2 != (void *)0x0) {\n        uVar3 = *(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14);\n        if (uVar4 < uVar3) {\n          uVar4 = uVar3;\n        }\n      }" while (parenthesized_expression "(pvVar2 = GetNextValueInLinkedList(magic_list), pvVar2 != (void *)0x0)" ( (comma_expression "pvVar2 = GetNextValueInLinkedList(magic_list), pvVar2 != (void *)0x0" (assignment_expression "pvVar2 = GetNextValueInLinkedList(magic_list)" identifier = (call_expression "GetNextValueInLinkedList(magic_list)" identifier (argument_list "(magic_list)" ( identifier )))) , (binary_expression "pvVar2 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) )) (compound_statement "{\n        uVar3 = *(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14);\n        if (uVar4 < uVar3) {\n          uVar4 = uVar3;\n        }\n      }" { (expression_statement "uVar3 = *(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14);" (assignment_expression "uVar3 = *(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14)" identifier = (binary_expression "*(int *)((int)pvVar2 + 0x10) + *(int *)((int)pvVar2 + 0x14)" (pointer_expression "*(int *)((int)pvVar2 + 0x10)" * (cast_expression "(int *)((int)pvVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x10)" ( (binary_expression "(int)pvVar2 + 0x10" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + (pointer_expression "*(int *)((int)pvVar2 + 0x14)" * (cast_expression "(int *)((int)pvVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pvVar2 + 0x14)" ( (binary_expression "(int)pvVar2 + 0x14" (cast_expression "(int)pvVar2" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) (if_statement "if (uVar4 < uVar3) {\n          uVar4 = uVar3;\n        }" if (parenthesized_expression "(uVar4 < uVar3)" ( (binary_expression "uVar4 < uVar3" identifier < identifier) )) (compound_statement "{\n          uVar4 = uVar3;\n        }" { (expression_statement "uVar4 = uVar3;" (assignment_expression "uVar4 = uVar3" identifier = identifier) ;) })) })) (labeled_statement "GetMagicPatternExtent::size = uVar4;" statement_identifier : (ERROR ":" :) (expression_statement "size = uVar4;" (assignment_expression "size = uVar4" identifier = identifier) ;)) (expression_statement "UnlockSemaphoreInfo(magic_list_semaphore);" (call_expression "UnlockSemaphoreInfo(magic_list_semaphore)" identifier (argument_list "(magic_list_semaphore)" ( identifier ))) ;) (return_statement "return GetMagicPatternExtent::size;" return identifier (ERROR "::size" : : identifier) ;) })) (return_statement "return GetMagicPatternExtent::size;" return identifier (ERROR "::size" : : identifier) ;) })) (return_statement "return GetMagicPatternExtent::size;" return identifier (ERROR "::size" : : identifier) ;) })))
(translation_unit "uint GetMagicPatternExtent(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }\n  if (DAT_004227c8 == 0) {\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }\n  return DAT_004227c8;\n}\n\n" (function_definition "uint GetMagicPatternExtent(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }\n  if (DAT_004227c8 == 0) {\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }\n  return DAT_004227c8;\n}" type_identifier (function_declarator "GetMagicPatternExtent(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }\n  if (DAT_004227c8 == 0) {\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }\n  return DAT_004227c8;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }" { (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent")" identifier (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent")" ( (string_literal ""exception != (ExceptionInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/magic.c"" " string_content ") , number_literal , (string_literal ""GetMagicPatternExtent"" " string_content ") ))) ;) })) (if_statement "if (DAT_004227c8 == 0) {\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }" if (parenthesized_expression "(DAT_004227c8 == 0)" ( (binary_expression "DAT_004227c8 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }" { (expression_statement "iVar1 = FUN_00108380();" (assignment_expression "iVar1 = FUN_00108380()" identifier = (call_expression "FUN_00108380()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }" { (expression_statement "LockSemaphoreInfo(DAT_004227cc);" (call_expression "LockSemaphoreInfo(DAT_004227cc)" identifier (argument_list "(DAT_004227cc)" ( identifier ))) ;) (expression_statement "ResetLinkedListIterator(DAT_004227d4);" (call_expression "ResetLinkedListIterator(DAT_004227d4)" identifier (argument_list "(DAT_004227d4)" ( identifier ))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (while_statement "while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }" while (parenthesized_expression "(iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0)" ( (comma_expression "iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0" (assignment_expression "iVar1 = GetNextValueInLinkedList(DAT_004227d4)" identifier = (call_expression "GetNextValueInLinkedList(DAT_004227d4)" identifier (argument_list "(DAT_004227d4)" ( identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) )) (compound_statement "{\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }" { (expression_statement "uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);" (assignment_expression "uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14)" identifier = (binary_expression "*(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14)" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))))) ;) (if_statement "if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }" if (parenthesized_expression "(uVar3 < uVar2)" ( (binary_expression "uVar3 < uVar2" identifier < identifier) )) (compound_statement "{\n          uVar3 = uVar2;\n        }" { (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" identifier = identifier) ;) })) })) (expression_statement "DAT_004227c8 = uVar3;" (assignment_expression "DAT_004227c8 = uVar3" identifier = identifier) ;) (expression_statement "UnlockSemaphoreInfo(DAT_004227cc);" (call_expression "UnlockSemaphoreInfo(DAT_004227cc)" identifier (argument_list "(DAT_004227cc)" ( identifier ))) ;) (return_statement "return DAT_004227c8;" return identifier ;) })) (return_statement "return DAT_004227c8;" return identifier ;) })) (return_statement "return DAT_004227c8;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == 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 IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) , (binary_expression IDENT != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "uint GetMagicPatternExtent(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }\n  if (DAT_004227c8 == 0) {\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }\n  return DAT_004227c8;\n}" (type_identifier "uint") (function_declarator "GetMagicPatternExtent(int param_1)" (identifier "GetMagicPatternExtent") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }\n  if (DAT_004227c8 == 0) {\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }\n  return DAT_004227c8;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");\n  }" ({ "{") (expression_statement "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent");" (call_expression "__assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent")" (identifier "__assert_fail") (argument_list "("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,\n                  "GetMagicPatternExtent")" (( "(") (string_literal ""exception != (ExceptionInfo *) NULL"" (" """) (string_content "exception != (ExceptionInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/magic.c"" (" """) (string_content "MagickCore/magic.c") (" """)) (, ",") (number_literal "0x177") (, ",") (string_literal ""GetMagicPatternExtent"" (" """) (string_content "GetMagicPatternExtent") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (DAT_004227c8 == 0) {\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }" (if "if") (parenthesized_expression "(DAT_004227c8 == 0)" (( "(") (binary_expression "DAT_004227c8 == 0" (identifier "DAT_004227c8") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_00108380();\n    if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }\n    return DAT_004227c8;\n  }" ({ "{") (expression_statement "iVar1 = FUN_00108380();" (assignment_expression "iVar1 = FUN_00108380()" (identifier "iVar1") (= "=") (call_expression "FUN_00108380()" (identifier "FUN_00108380") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      LockSemaphoreInfo(DAT_004227cc);\n      ResetLinkedListIterator(DAT_004227d4);\n      uVar3 = 0;\n      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }\n      DAT_004227c8 = uVar3;\n      UnlockSemaphoreInfo(DAT_004227cc);\n      return DAT_004227c8;\n    }" ({ "{") (expression_statement "LockSemaphoreInfo(DAT_004227cc);" (call_expression "LockSemaphoreInfo(DAT_004227cc)" (identifier "LockSemaphoreInfo") (argument_list "(DAT_004227cc)" (( "(") (identifier "DAT_004227cc") () ")"))) (; ";")) (expression_statement "ResetLinkedListIterator(DAT_004227d4);" (call_expression "ResetLinkedListIterator(DAT_004227d4)" (identifier "ResetLinkedListIterator") (argument_list "(DAT_004227d4)" (( "(") (identifier "DAT_004227d4") () ")"))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (while_statement "while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }" (while "while") (parenthesized_expression "(iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0)" (( "(") (comma_expression "iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0" (assignment_expression "iVar1 = GetNextValueInLinkedList(DAT_004227d4)" (identifier "iVar1") (= "=") (call_expression "GetNextValueInLinkedList(DAT_004227d4)" (identifier "GetNextValueInLinkedList") (argument_list "(DAT_004227d4)" (( "(") (identifier "DAT_004227d4") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);\n        if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }\n      }" ({ "{") (expression_statement "uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);" (assignment_expression "uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14)" (identifier "uVar2") (= "=") (binary_expression "*(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14)" (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (pointer_expression "*(int *)(iVar1 + 0x14)" (* "*") (cast_expression "(int *)(iVar1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))))) (; ";")) (if_statement "if (uVar3 < uVar2) {\n          uVar3 = uVar2;\n        }" (if "if") (parenthesized_expression "(uVar3 < uVar2)" (( "(") (binary_expression "uVar3 < uVar2" (identifier "uVar3") (< "<") (identifier "uVar2")) () ")")) (compound_statement "{\n          uVar3 = uVar2;\n        }" ({ "{") (expression_statement "uVar3 = uVar2;" (assignment_expression "uVar3 = uVar2" (identifier "uVar3") (= "=") (identifier "uVar2")) (; ";")) (} "}"))) (} "}"))) (expression_statement "DAT_004227c8 = uVar3;" (assignment_expression "DAT_004227c8 = uVar3" (identifier "DAT_004227c8") (= "=") (identifier "uVar3")) (; ";")) (expression_statement "UnlockSemaphoreInfo(DAT_004227cc);" (call_expression "UnlockSemaphoreInfo(DAT_004227cc)" (identifier "UnlockSemaphoreInfo") (argument_list "(DAT_004227cc)" (( "(") (identifier "DAT_004227cc") () ")"))) (; ";")) (return_statement "return DAT_004227c8;" (return "return") (identifier "DAT_004227c8") (; ";")) (} "}"))) (return_statement "return DAT_004227c8;" (return "return") (identifier "DAT_004227c8") (; ";")) (} "}"))) (return_statement "return DAT_004227c8;" (return "return") (identifier "DAT_004227c8") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

size_t function_1(type_1 *var_1)

{
  type_2 var_4;
  void *var_9;
  type_3 var_11;
  type_3 var_10;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,
                  "GetMagicPatternExtent");
  }
  if (function_1::size == 0) {
    var_4 = var_3(var_1);
    if (var_4 != var_5) {
      var_6(magic_list_semaphore);
      var_7(magic_list);
      var_10 = 0;
      while (var_9 = var_8(magic_list), var_9 != (void *)0x0) {
        var_11 = *(int *)((int)var_9 + 0x10) + *(int *)((int)var_9 + 0x14);
        if (var_10 < var_11) {
          var_10 = var_11;
        }
      }
      GetMagicPatternExtent::size = var_10;
      var_12(magic_list_semaphore);
      return function_1::size;
    }
    return function_1::size;
  }
  return function_1::size;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (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: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (identifier)))) (return_statement (identifier)))) (return_statement (identifier)))))

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

uint MASKED(int param_1)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("exception != (ExceptionInfo *) NULL","MagickCore/magic.c",0x177,
                  "MASKED");
  }
  if (DAT_004227c8 == 0) {
    iVar1 = FUN_00108380();
    if (iVar1 != 0) {
      LockSemaphoreInfo(DAT_004227cc);
      ResetLinkedListIterator(DAT_004227d4);
      uVar3 = 0;
      while (iVar1 = GetNextValueInLinkedList(DAT_004227d4), iVar1 != 0) {
        uVar2 = *(int *)(iVar1 + 0x10) + *(int *)(iVar1 + 0x14);
        if (uVar3 < uVar2) {
          uVar3 = uVar2;
        }
      }
      DAT_004227c8 = uVar3;
      UnlockSemaphoreInfo(DAT_004227cc);
      return DAT_004227c8;
    }
    return DAT_004227c8;
  }
  return DAT_004227c8;
}

