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

MatrixInfo * DestroyMatrixInfo(MatrixInfo *matrix_info)

{
  CacheType CVar1;
  MatrixInfo *pMVar2;
  void *pvVar3;
  
  if (matrix_info == (MatrixInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,
                  "DestroyMatrixInfo");
  }
  if (matrix_info->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,
                  "DestroyMatrixInfo");
  }
  LockSemaphoreInfo(matrix_info->semaphore);
  CVar1 = matrix_info->type;
  if (CVar1 == MapCache) {
    UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);
    matrix_info->elements = (void *)0x0;
    RelinquishMagickResource(MapResource,matrix_info->length);
  }
  else {
    if (CVar1 == MemoryCache) {
      if (matrix_info->mapped == MagickFalse) {
        pvVar3 = RelinquishMagickMemory(matrix_info->elements);
        matrix_info->elements = pvVar3;
      }
      else {
        UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);
        matrix_info->elements = (void *)0x0;
      }
      RelinquishMagickResource(MemoryResource,matrix_info->length);
      goto LAB_000f8262;
    }
    if (CVar1 != DiskCache) goto LAB_000f8262;
  }
  if (matrix_info->file != -1) {
    close(matrix_info->file);
  }
  RelinquishUniqueFileResource(matrix_info->path);
  RelinquishMagickResource(DiskResource,matrix_info->length);
LAB_000f8262:
  UnlockSemaphoreInfo(matrix_info->semaphore);
  RelinquishSemaphoreInfo(&matrix_info->semaphore);
  pMVar2 = (MatrixInfo *)RelinquishMagickMemory(matrix_info);
  return pMVar2;
}



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

void DestroyMatrixInfo(int *param_1)

{
  int iVar1;
  
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,
                  "DestroyMatrixInfo");
  }
  if (param_1[0x40b] != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,
                  "DestroyMatrixInfo");
  }
  LockSemaphoreInfo(param_1[0x40a]);
  iVar1 = *param_1;
  if (iVar1 == 3) {
    UnmapBlob(param_1[0x409],param_1[4]);
    param_1[0x409] = 0;
    RelinquishMagickResource(5,param_1[4],param_1[5]);
  }
  else {
    if (iVar1 == 4) {
      if (param_1[6] == 0) {
        iVar1 = RelinquishMagickMemory(param_1[0x409]);
        param_1[0x409] = iVar1;
      }
      else {
        UnmapBlob(param_1[0x409],param_1[4]);
        param_1[0x409] = 0;
      }
      RelinquishMagickResource(6,param_1[4],param_1[5]);
      goto LAB_000f8262;
    }
    if (iVar1 != 1) goto LAB_000f8262;
  }
  if (param_1[0x408] != -1) {
    close(param_1[0x408]);
  }
  RelinquishUniqueFileResource(param_1 + 8);
  RelinquishMagickResource(2,param_1[4],param_1[5]);
LAB_000f8262:
  UnlockSemaphoreInfo(param_1[0x40a]);
  RelinquishSemaphoreInfo(param_1 + 0x40a);
  RelinquishMagickMemory(param_1);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x2e0de9
SUB ESP,0x4
MOV ESI,dword ptr [ESP + 0x10]
TEST ESI,ESI
JZ 0x000f8357
CMP dword ptr [ESI + 0x102c],0xabacadab
JNZ 0x000f8376
SUB ESP,0xc
PUSH dword ptr [ESI + 0x1028]
CALL 0x00031050
MOV EAX,dword ptr [ESI]
ADD ESP,0x10
CMP EAX,0x3
JZ 0x000f82d0
CMP EAX,0x4
JZ 0x000f8290
CMP EAX,0x1
JZ 0x000f82fe
SUB ESP,0xc
PUSH dword ptr [ESI + 0x1028]
CALL 0x00031da0
LEA EAX,[ESI + 0x1028]
MOV dword ptr [ESP],EAX
CALL 0x00030760
MOV dword ptr [ESP],ESI
CALL 0x00033ac8
ADD ESP,0x14
POP EBX
POP ESI
RET
MOV EDX,dword ptr [ESI + 0x18]
MOV EAX,dword ptr [ESI + 0x1024]
TEST EDX,EDX
JZ 0x000f8340
SUB ESP,0x8
PUSH dword ptr [ESI + 0x10]
PUSH EAX
CALL 0x000310d0
ADD ESP,0x10
MOV dword ptr [ESI + 0x1024],0x0
SUB ESP,0x4
PUSH dword ptr [ESI + 0x14]
PUSH dword ptr [ESI + 0x10]
PUSH 0x6
CALL 0x00030fd0
ADD ESP,0x10
JMP 0x000f8262
SUB ESP,0x8
PUSH dword ptr [ESI + 0x10]
PUSH dword ptr [ESI + 0x1024]
CALL 0x000310d0
ADD ESP,0xc
MOV dword ptr [ESI + 0x1024],0x0
PUSH dword ptr [ESI + 0x14]
PUSH dword ptr [ESI + 0x10]
PUSH 0x5
CALL 0x00030fd0
ADD ESP,0x10
MOV EAX,dword ptr [ESI + 0x1020]
CMP EAX,-0x1
JZ 0x000f8315
SUB ESP,0xc
PUSH EAX
CALL 0x000325b0
ADD ESP,0x10
LEA EAX,[ESI + 0x20]
SUB ESP,0xc
PUSH EAX
CALL 0x00032c90
ADD ESP,0xc
PUSH dword ptr [ESI + 0x14]
PUSH dword ptr [ESI + 0x10]
PUSH 0x2
CALL 0x00030fd0
ADD ESP,0x10
JMP 0x000f8262
SUB ESP,0xc
PUSH EAX
CALL 0x00033ac8
ADD ESP,0x10
MOV dword ptr [ESI + 0x1024],EAX
JMP 0x000f82ba
LEA EAX,[EBX + 0xffee0e04]
PUSH EAX
LEA EAX,[EBX + 0xffee0cf8]
PUSH 0x173
PUSH EAX
LEA EAX,[EBX + 0xffee0d1c]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffee0e04]
PUSH EAX
LEA EAX,[EBX + 0xffee0cf8]
PUSH 0x174
PUSH EAX
LEA EAX,[EBX + 0xffee0d40]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid DestroyMatrixInfo(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }\n  if (param_1[0x40b] != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }\n  LockSemaphoreInfo(param_1[0x40a]);\n  iVar1 = *param_1;\n  if (iVar1 == 3) {\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }\n  else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }\n  if (param_1[0x408] != -1) {\n    close(param_1[0x408]);\n  }\n  RelinquishUniqueFileResource(param_1 + 8);\n  RelinquishMagickResource(2,param_1[4],param_1[5]);\nLAB_000f8262:\n  UnlockSemaphoreInfo(param_1[0x40a]);\n  RelinquishSemaphoreInfo(param_1 + 0x40a);\n  RelinquishMagickMemory(param_1);\n  return;\n}\n\n" comment (function_definition "void DestroyMatrixInfo(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }\n  if (param_1[0x40b] != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }\n  LockSemaphoreInfo(param_1[0x40a]);\n  iVar1 = *param_1;\n  if (iVar1 == 3) {\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }\n  else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }\n  if (param_1[0x408] != -1) {\n    close(param_1[0x408]);\n  }\n  RelinquishUniqueFileResource(param_1 + 8);\n  RelinquishMagickResource(2,param_1[4],param_1[5]);\nLAB_000f8262:\n  UnlockSemaphoreInfo(param_1[0x40a]);\n  RelinquishSemaphoreInfo(param_1 + 0x40a);\n  RelinquishMagickMemory(param_1);\n  return;\n}" primitive_type (function_declarator "DestroyMatrixInfo(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }\n  if (param_1[0x40b] != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }\n  LockSemaphoreInfo(param_1[0x40a]);\n  iVar1 = *param_1;\n  if (iVar1 == 3) {\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }\n  else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }\n  if (param_1[0x408] != -1) {\n    close(param_1[0x408]);\n  }\n  RelinquishUniqueFileResource(param_1 + 8);\n  RelinquishMagickResource(2,param_1[4],param_1[5]);\nLAB_000f8262:\n  UnlockSemaphoreInfo(param_1[0x40a]);\n  RelinquishSemaphoreInfo(param_1 + 0x40a);\n  RelinquishMagickMemory(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }" { comment (expression_statement "__assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");" (call_expression "__assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo")" identifier (argument_list "("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo")" ( (string_literal ""matrix_info != (MatrixInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/matrix.c"" " string_content ") , number_literal , (string_literal ""DestroyMatrixInfo"" " string_content ") ))) ;) })) (if_statement "if (param_1[0x40b] != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }" if (parenthesized_expression "(param_1[0x40b] != -0x54535255)" ( (binary_expression "param_1[0x40b] != -0x54535255" (subscript_expression "param_1[0x40b]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }" { comment (expression_statement "__assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");" (call_expression "__assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo")" identifier (argument_list "("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo")" ( (string_literal ""matrix_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/matrix.c"" " string_content ") , number_literal , (string_literal ""DestroyMatrixInfo"" " string_content ") ))) ;) })) (expression_statement "LockSemaphoreInfo(param_1[0x40a]);" (call_expression "LockSemaphoreInfo(param_1[0x40a])" identifier (argument_list "(param_1[0x40a])" ( (subscript_expression "param_1[0x40a]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 == 3) {\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }\n  else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }" if (parenthesized_expression "(iVar1 == 3)" ( (binary_expression "iVar1 == 3" identifier == number_literal) )) (compound_statement "{\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }" { (expression_statement "UnmapBlob(param_1[0x409],param_1[4]);" (call_expression "UnmapBlob(param_1[0x409],param_1[4])" identifier (argument_list "(param_1[0x409],param_1[4])" ( (subscript_expression "param_1[0x409]" identifier [ number_literal ]) , (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[0x409] = 0;" (assignment_expression "param_1[0x409] = 0" (subscript_expression "param_1[0x409]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "RelinquishMagickResource(5,param_1[4],param_1[5]);" (call_expression "RelinquishMagickResource(5,param_1[4],param_1[5])" identifier (argument_list "(5,param_1[4],param_1[5])" ( number_literal , (subscript_expression "param_1[4]" identifier [ number_literal ]) , (subscript_expression "param_1[5]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }" else (compound_statement "{\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }" { (if_statement "if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }" if (parenthesized_expression "(iVar1 == 4)" ( (binary_expression "iVar1 == 4" identifier == number_literal) )) (compound_statement "{\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }" { (if_statement "if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }" if (parenthesized_expression "(param_1[6] == 0)" ( (binary_expression "param_1[6] == 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }" { (expression_statement "iVar1 = RelinquishMagickMemory(param_1[0x409]);" (assignment_expression "iVar1 = RelinquishMagickMemory(param_1[0x409])" identifier = (call_expression "RelinquishMagickMemory(param_1[0x409])" identifier (argument_list "(param_1[0x409])" ( (subscript_expression "param_1[0x409]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[0x409] = iVar1;" (assignment_expression "param_1[0x409] = iVar1" (subscript_expression "param_1[0x409]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }" else (compound_statement "{\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }" { (expression_statement "UnmapBlob(param_1[0x409],param_1[4]);" (call_expression "UnmapBlob(param_1[0x409],param_1[4])" identifier (argument_list "(param_1[0x409],param_1[4])" ( (subscript_expression "param_1[0x409]" identifier [ number_literal ]) , (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[0x409] = 0;" (assignment_expression "param_1[0x409] = 0" (subscript_expression "param_1[0x409]" identifier [ number_literal ]) = number_literal) ;) }))) (expression_statement "RelinquishMagickResource(6,param_1[4],param_1[5]);" (call_expression "RelinquishMagickResource(6,param_1[4],param_1[5])" identifier (argument_list "(6,param_1[4],param_1[5])" ( number_literal , (subscript_expression "param_1[4]" identifier [ number_literal ]) , (subscript_expression "param_1[5]" identifier [ number_literal ]) ))) ;) (goto_statement "goto LAB_000f8262;" goto statement_identifier ;) })) (if_statement "if (iVar1 != 1) goto LAB_000f8262;" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (goto_statement "goto LAB_000f8262;" goto statement_identifier ;)) }))) (if_statement "if (param_1[0x408] != -1) {\n    close(param_1[0x408]);\n  }" if (parenthesized_expression "(param_1[0x408] != -1)" ( (binary_expression "param_1[0x408] != -1" (subscript_expression "param_1[0x408]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    close(param_1[0x408]);\n  }" { (expression_statement "close(param_1[0x408]);" (call_expression "close(param_1[0x408])" identifier (argument_list "(param_1[0x408])" ( (subscript_expression "param_1[0x408]" identifier [ number_literal ]) ))) ;) })) (expression_statement "RelinquishUniqueFileResource(param_1 + 8);" (call_expression "RelinquishUniqueFileResource(param_1 + 8)" identifier (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) (expression_statement "RelinquishMagickResource(2,param_1[4],param_1[5]);" (call_expression "RelinquishMagickResource(2,param_1[4],param_1[5])" identifier (argument_list "(2,param_1[4],param_1[5])" ( number_literal , (subscript_expression "param_1[4]" identifier [ number_literal ]) , (subscript_expression "param_1[5]" identifier [ number_literal ]) ))) ;) (labeled_statement "LAB_000f8262:\n  UnlockSemaphoreInfo(param_1[0x40a]);" statement_identifier : (expression_statement "UnlockSemaphoreInfo(param_1[0x40a]);" (call_expression "UnlockSemaphoreInfo(param_1[0x40a])" identifier (argument_list "(param_1[0x40a])" ( (subscript_expression "param_1[0x40a]" identifier [ number_literal ]) ))) ;)) (expression_statement "RelinquishSemaphoreInfo(param_1 + 0x40a);" (call_expression "RelinquishSemaphoreInfo(param_1 + 0x40a)" identifier (argument_list "(param_1 + 0x40a)" ( (binary_expression "param_1 + 0x40a" identifier + number_literal) ))) ;) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nMatrixInfo * DestroyMatrixInfo(MatrixInfo *matrix_info)\n\n{\n  CacheType CVar1;\n  MatrixInfo *pMVar2;\n  void *pvVar3;\n  \n  if (matrix_info == (MatrixInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }\n  if (matrix_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }\n  LockSemaphoreInfo(matrix_info->semaphore);\n  CVar1 = matrix_info->type;\n  if (CVar1 == MapCache) {\n    UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n    matrix_info->elements = (void *)0x0;\n    RelinquishMagickResource(MapResource,matrix_info->length);\n  }\n  else {\n    if (CVar1 == MemoryCache) {\n      if (matrix_info->mapped == MagickFalse) {\n        pvVar3 = RelinquishMagickMemory(matrix_info->elements);\n        matrix_info->elements = pvVar3;\n      }\n      else {\n        UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n        matrix_info->elements = (void *)0x0;\n      }\n      RelinquishMagickResource(MemoryResource,matrix_info->length);\n      goto LAB_000f8262;\n    }\n    if (CVar1 != DiskCache) goto LAB_000f8262;\n  }\n  if (matrix_info->file != -1) {\n    close(matrix_info->file);\n  }\n  RelinquishUniqueFileResource(matrix_info->path);\n  RelinquishMagickResource(DiskResource,matrix_info->length);\nLAB_000f8262:\n  UnlockSemaphoreInfo(matrix_info->semaphore);\n  RelinquishSemaphoreInfo(&matrix_info->semaphore);\n  pMVar2 = (MatrixInfo *)RelinquishMagickMemory(matrix_info);\n  return pMVar2;\n}\n\n" comment comment (function_definition "MatrixInfo * DestroyMatrixInfo(MatrixInfo *matrix_info)\n\n{\n  CacheType CVar1;\n  MatrixInfo *pMVar2;\n  void *pvVar3;\n  \n  if (matrix_info == (MatrixInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }\n  if (matrix_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }\n  LockSemaphoreInfo(matrix_info->semaphore);\n  CVar1 = matrix_info->type;\n  if (CVar1 == MapCache) {\n    UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n    matrix_info->elements = (void *)0x0;\n    RelinquishMagickResource(MapResource,matrix_info->length);\n  }\n  else {\n    if (CVar1 == MemoryCache) {\n      if (matrix_info->mapped == MagickFalse) {\n        pvVar3 = RelinquishMagickMemory(matrix_info->elements);\n        matrix_info->elements = pvVar3;\n      }\n      else {\n        UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n        matrix_info->elements = (void *)0x0;\n      }\n      RelinquishMagickResource(MemoryResource,matrix_info->length);\n      goto LAB_000f8262;\n    }\n    if (CVar1 != DiskCache) goto LAB_000f8262;\n  }\n  if (matrix_info->file != -1) {\n    close(matrix_info->file);\n  }\n  RelinquishUniqueFileResource(matrix_info->path);\n  RelinquishMagickResource(DiskResource,matrix_info->length);\nLAB_000f8262:\n  UnlockSemaphoreInfo(matrix_info->semaphore);\n  RelinquishSemaphoreInfo(&matrix_info->semaphore);\n  pMVar2 = (MatrixInfo *)RelinquishMagickMemory(matrix_info);\n  return pMVar2;\n}" type_identifier (pointer_declarator "* DestroyMatrixInfo(MatrixInfo *matrix_info)" * (function_declarator "DestroyMatrixInfo(MatrixInfo *matrix_info)" identifier (parameter_list "(MatrixInfo *matrix_info)" ( (parameter_declaration "MatrixInfo *matrix_info" type_identifier (pointer_declarator "*matrix_info" * identifier)) )))) (compound_statement "{\n  CacheType CVar1;\n  MatrixInfo *pMVar2;\n  void *pvVar3;\n  \n  if (matrix_info == (MatrixInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }\n  if (matrix_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }\n  LockSemaphoreInfo(matrix_info->semaphore);\n  CVar1 = matrix_info->type;\n  if (CVar1 == MapCache) {\n    UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n    matrix_info->elements = (void *)0x0;\n    RelinquishMagickResource(MapResource,matrix_info->length);\n  }\n  else {\n    if (CVar1 == MemoryCache) {\n      if (matrix_info->mapped == MagickFalse) {\n        pvVar3 = RelinquishMagickMemory(matrix_info->elements);\n        matrix_info->elements = pvVar3;\n      }\n      else {\n        UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n        matrix_info->elements = (void *)0x0;\n      }\n      RelinquishMagickResource(MemoryResource,matrix_info->length);\n      goto LAB_000f8262;\n    }\n    if (CVar1 != DiskCache) goto LAB_000f8262;\n  }\n  if (matrix_info->file != -1) {\n    close(matrix_info->file);\n  }\n  RelinquishUniqueFileResource(matrix_info->path);\n  RelinquishMagickResource(DiskResource,matrix_info->length);\nLAB_000f8262:\n  UnlockSemaphoreInfo(matrix_info->semaphore);\n  RelinquishSemaphoreInfo(&matrix_info->semaphore);\n  pMVar2 = (MatrixInfo *)RelinquishMagickMemory(matrix_info);\n  return pMVar2;\n}" { (declaration "CacheType CVar1;" type_identifier identifier ;) (declaration "MatrixInfo *pMVar2;" type_identifier (pointer_declarator "*pMVar2" * identifier) ;) (declaration "void *pvVar3;" primitive_type (pointer_declarator "*pvVar3" * identifier) ;) (if_statement "if (matrix_info == (MatrixInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }" if (parenthesized_expression "(matrix_info == (MatrixInfo *)0x0)" ( (binary_expression "matrix_info == (MatrixInfo *)0x0" identifier == (cast_expression "(MatrixInfo *)0x0" ( (type_descriptor "MatrixInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }" { comment (expression_statement "__assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");" (call_expression "__assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo")" identifier (argument_list "("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo")" ( (string_literal ""matrix_info != (MatrixInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/matrix.c"" " string_content ") , number_literal , (string_literal ""DestroyMatrixInfo"" " string_content ") ))) ;) })) (if_statement "if (matrix_info->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }" if (parenthesized_expression "(matrix_info->signature != 0xabacadab)" ( (binary_expression "matrix_info->signature != 0xabacadab" (field_expression "matrix_info->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }" { comment (expression_statement "__assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");" (call_expression "__assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo")" identifier (argument_list "("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo")" ( (string_literal ""matrix_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/matrix.c"" " string_content ") , number_literal , (string_literal ""DestroyMatrixInfo"" " string_content ") ))) ;) })) (expression_statement "LockSemaphoreInfo(matrix_info->semaphore);" (call_expression "LockSemaphoreInfo(matrix_info->semaphore)" identifier (argument_list "(matrix_info->semaphore)" ( (field_expression "matrix_info->semaphore" identifier -> field_identifier) ))) ;) (expression_statement "CVar1 = matrix_info->type;" (assignment_expression "CVar1 = matrix_info->type" identifier = (field_expression "matrix_info->type" identifier -> field_identifier)) ;) (if_statement "if (CVar1 == MapCache) {\n    UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n    matrix_info->elements = (void *)0x0;\n    RelinquishMagickResource(MapResource,matrix_info->length);\n  }\n  else {\n    if (CVar1 == MemoryCache) {\n      if (matrix_info->mapped == MagickFalse) {\n        pvVar3 = RelinquishMagickMemory(matrix_info->elements);\n        matrix_info->elements = pvVar3;\n      }\n      else {\n        UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n        matrix_info->elements = (void *)0x0;\n      }\n      RelinquishMagickResource(MemoryResource,matrix_info->length);\n      goto LAB_000f8262;\n    }\n    if (CVar1 != DiskCache) goto LAB_000f8262;\n  }" if (parenthesized_expression "(CVar1 == MapCache)" ( (binary_expression "CVar1 == MapCache" identifier == identifier) )) (compound_statement "{\n    UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n    matrix_info->elements = (void *)0x0;\n    RelinquishMagickResource(MapResource,matrix_info->length);\n  }" { (expression_statement "UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);" (call_expression "UnmapBlob(matrix_info->elements,(size_t)matrix_info->length)" identifier (argument_list "(matrix_info->elements,(size_t)matrix_info->length)" ( (field_expression "matrix_info->elements" identifier -> field_identifier) , (cast_expression "(size_t)matrix_info->length" ( (type_descriptor "size_t" primitive_type) ) (field_expression "matrix_info->length" identifier -> field_identifier)) ))) ;) (expression_statement "matrix_info->elements = (void *)0x0;" (assignment_expression "matrix_info->elements = (void *)0x0" (field_expression "matrix_info->elements" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "RelinquishMagickResource(MapResource,matrix_info->length);" (call_expression "RelinquishMagickResource(MapResource,matrix_info->length)" identifier (argument_list "(MapResource,matrix_info->length)" ( identifier , (field_expression "matrix_info->length" identifier -> field_identifier) ))) ;) }) (else_clause "else {\n    if (CVar1 == MemoryCache) {\n      if (matrix_info->mapped == MagickFalse) {\n        pvVar3 = RelinquishMagickMemory(matrix_info->elements);\n        matrix_info->elements = pvVar3;\n      }\n      else {\n        UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n        matrix_info->elements = (void *)0x0;\n      }\n      RelinquishMagickResource(MemoryResource,matrix_info->length);\n      goto LAB_000f8262;\n    }\n    if (CVar1 != DiskCache) goto LAB_000f8262;\n  }" else (compound_statement "{\n    if (CVar1 == MemoryCache) {\n      if (matrix_info->mapped == MagickFalse) {\n        pvVar3 = RelinquishMagickMemory(matrix_info->elements);\n        matrix_info->elements = pvVar3;\n      }\n      else {\n        UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n        matrix_info->elements = (void *)0x0;\n      }\n      RelinquishMagickResource(MemoryResource,matrix_info->length);\n      goto LAB_000f8262;\n    }\n    if (CVar1 != DiskCache) goto LAB_000f8262;\n  }" { (if_statement "if (CVar1 == MemoryCache) {\n      if (matrix_info->mapped == MagickFalse) {\n        pvVar3 = RelinquishMagickMemory(matrix_info->elements);\n        matrix_info->elements = pvVar3;\n      }\n      else {\n        UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n        matrix_info->elements = (void *)0x0;\n      }\n      RelinquishMagickResource(MemoryResource,matrix_info->length);\n      goto LAB_000f8262;\n    }" if (parenthesized_expression "(CVar1 == MemoryCache)" ( (binary_expression "CVar1 == MemoryCache" identifier == identifier) )) (compound_statement "{\n      if (matrix_info->mapped == MagickFalse) {\n        pvVar3 = RelinquishMagickMemory(matrix_info->elements);\n        matrix_info->elements = pvVar3;\n      }\n      else {\n        UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n        matrix_info->elements = (void *)0x0;\n      }\n      RelinquishMagickResource(MemoryResource,matrix_info->length);\n      goto LAB_000f8262;\n    }" { (if_statement "if (matrix_info->mapped == MagickFalse) {\n        pvVar3 = RelinquishMagickMemory(matrix_info->elements);\n        matrix_info->elements = pvVar3;\n      }\n      else {\n        UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n        matrix_info->elements = (void *)0x0;\n      }" if (parenthesized_expression "(matrix_info->mapped == MagickFalse)" ( (binary_expression "matrix_info->mapped == MagickFalse" (field_expression "matrix_info->mapped" identifier -> field_identifier) == identifier) )) (compound_statement "{\n        pvVar3 = RelinquishMagickMemory(matrix_info->elements);\n        matrix_info->elements = pvVar3;\n      }" { (expression_statement "pvVar3 = RelinquishMagickMemory(matrix_info->elements);" (assignment_expression "pvVar3 = RelinquishMagickMemory(matrix_info->elements)" identifier = (call_expression "RelinquishMagickMemory(matrix_info->elements)" identifier (argument_list "(matrix_info->elements)" ( (field_expression "matrix_info->elements" identifier -> field_identifier) )))) ;) (expression_statement "matrix_info->elements = pvVar3;" (assignment_expression "matrix_info->elements = pvVar3" (field_expression "matrix_info->elements" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n        UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n        matrix_info->elements = (void *)0x0;\n      }" else (compound_statement "{\n        UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);\n        matrix_info->elements = (void *)0x0;\n      }" { (expression_statement "UnmapBlob(matrix_info->elements,(size_t)matrix_info->length);" (call_expression "UnmapBlob(matrix_info->elements,(size_t)matrix_info->length)" identifier (argument_list "(matrix_info->elements,(size_t)matrix_info->length)" ( (field_expression "matrix_info->elements" identifier -> field_identifier) , (cast_expression "(size_t)matrix_info->length" ( (type_descriptor "size_t" primitive_type) ) (field_expression "matrix_info->length" identifier -> field_identifier)) ))) ;) (expression_statement "matrix_info->elements = (void *)0x0;" (assignment_expression "matrix_info->elements = (void *)0x0" (field_expression "matrix_info->elements" identifier -> field_identifier) = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (expression_statement "RelinquishMagickResource(MemoryResource,matrix_info->length);" (call_expression "RelinquishMagickResource(MemoryResource,matrix_info->length)" identifier (argument_list "(MemoryResource,matrix_info->length)" ( identifier , (field_expression "matrix_info->length" identifier -> field_identifier) ))) ;) (goto_statement "goto LAB_000f8262;" goto statement_identifier ;) })) (if_statement "if (CVar1 != DiskCache) goto LAB_000f8262;" if (parenthesized_expression "(CVar1 != DiskCache)" ( (binary_expression "CVar1 != DiskCache" identifier != identifier) )) (goto_statement "goto LAB_000f8262;" goto statement_identifier ;)) }))) (if_statement "if (matrix_info->file != -1) {\n    close(matrix_info->file);\n  }" if (parenthesized_expression "(matrix_info->file != -1)" ( (binary_expression "matrix_info->file != -1" (field_expression "matrix_info->file" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    close(matrix_info->file);\n  }" { (expression_statement "close(matrix_info->file);" (call_expression "close(matrix_info->file)" identifier (argument_list "(matrix_info->file)" ( (field_expression "matrix_info->file" identifier -> field_identifier) ))) ;) })) (expression_statement "RelinquishUniqueFileResource(matrix_info->path);" (call_expression "RelinquishUniqueFileResource(matrix_info->path)" identifier (argument_list "(matrix_info->path)" ( (field_expression "matrix_info->path" identifier -> field_identifier) ))) ;) (expression_statement "RelinquishMagickResource(DiskResource,matrix_info->length);" (call_expression "RelinquishMagickResource(DiskResource,matrix_info->length)" identifier (argument_list "(DiskResource,matrix_info->length)" ( identifier , (field_expression "matrix_info->length" identifier -> field_identifier) ))) ;) (labeled_statement "LAB_000f8262:\n  UnlockSemaphoreInfo(matrix_info->semaphore);" statement_identifier : (expression_statement "UnlockSemaphoreInfo(matrix_info->semaphore);" (call_expression "UnlockSemaphoreInfo(matrix_info->semaphore)" identifier (argument_list "(matrix_info->semaphore)" ( (field_expression "matrix_info->semaphore" identifier -> field_identifier) ))) ;)) (expression_statement "RelinquishSemaphoreInfo(&matrix_info->semaphore);" (call_expression "RelinquishSemaphoreInfo(&matrix_info->semaphore)" identifier (argument_list "(&matrix_info->semaphore)" ( (pointer_expression "&matrix_info->semaphore" & (field_expression "matrix_info->semaphore" identifier -> field_identifier)) ))) ;) (expression_statement "pMVar2 = (MatrixInfo *)RelinquishMagickMemory(matrix_info);" (assignment_expression "pMVar2 = (MatrixInfo *)RelinquishMagickMemory(matrix_info)" identifier = (cast_expression "(MatrixInfo *)RelinquishMagickMemory(matrix_info)" ( (type_descriptor "MatrixInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "RelinquishMagickMemory(matrix_info)" identifier (argument_list "(matrix_info)" ( identifier ))))) ;) (return_statement "return pMVar2;" return identifier ;) })))
(translation_unit "void DestroyMatrixInfo(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }\n  if (param_1[0x40b] != -0x54535255) {\n                    \n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }\n  LockSemaphoreInfo(param_1[0x40a]);\n  iVar1 = *param_1;\n  if (iVar1 == 3) {\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }\n  else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }\n  if (param_1[0x408] != -1) {\n    close(param_1[0x408]);\n  }\n  RelinquishUniqueFileResource(param_1 + 8);\n  RelinquishMagickResource(2,param_1[4],param_1[5]);\nLAB_000f8262:\n  UnlockSemaphoreInfo(param_1[0x40a]);\n  RelinquishSemaphoreInfo(param_1 + 0x40a);\n  RelinquishMagickMemory(param_1);\n  return;\n}\n\n" (function_definition "void DestroyMatrixInfo(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }\n  if (param_1[0x40b] != -0x54535255) {\n                    \n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }\n  LockSemaphoreInfo(param_1[0x40a]);\n  iVar1 = *param_1;\n  if (iVar1 == 3) {\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }\n  else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }\n  if (param_1[0x408] != -1) {\n    close(param_1[0x408]);\n  }\n  RelinquishUniqueFileResource(param_1 + 8);\n  RelinquishMagickResource(2,param_1[4],param_1[5]);\nLAB_000f8262:\n  UnlockSemaphoreInfo(param_1[0x40a]);\n  RelinquishSemaphoreInfo(param_1 + 0x40a);\n  RelinquishMagickMemory(param_1);\n  return;\n}" primitive_type (function_declarator "DestroyMatrixInfo(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }\n  if (param_1[0x40b] != -0x54535255) {\n                    \n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }\n  LockSemaphoreInfo(param_1[0x40a]);\n  iVar1 = *param_1;\n  if (iVar1 == 3) {\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }\n  else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }\n  if (param_1[0x408] != -1) {\n    close(param_1[0x408]);\n  }\n  RelinquishUniqueFileResource(param_1 + 8);\n  RelinquishMagickResource(2,param_1[4],param_1[5]);\nLAB_000f8262:\n  UnlockSemaphoreInfo(param_1[0x40a]);\n  RelinquishSemaphoreInfo(param_1 + 0x40a);\n  RelinquishMagickMemory(param_1);\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }" if (parenthesized_expression "(param_1 == (int *)0x0)" ( (binary_expression "param_1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    \n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }" { (expression_statement "__assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");" (call_expression "__assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo")" identifier (argument_list "("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo")" ( (string_literal ""matrix_info != (MatrixInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/matrix.c"" " string_content ") , number_literal , (string_literal ""DestroyMatrixInfo"" " string_content ") ))) ;) })) (if_statement "if (param_1[0x40b] != -0x54535255) {\n                    \n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }" if (parenthesized_expression "(param_1[0x40b] != -0x54535255)" ( (binary_expression "param_1[0x40b] != -0x54535255" (subscript_expression "param_1[0x40b]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n                    \n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }" { (expression_statement "__assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");" (call_expression "__assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo")" identifier (argument_list "("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo")" ( (string_literal ""matrix_info->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/matrix.c"" " string_content ") , number_literal , (string_literal ""DestroyMatrixInfo"" " string_content ") ))) ;) })) (expression_statement "LockSemaphoreInfo(param_1[0x40a]);" (call_expression "LockSemaphoreInfo(param_1[0x40a])" identifier (argument_list "(param_1[0x40a])" ( (subscript_expression "param_1[0x40a]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (if_statement "if (iVar1 == 3) {\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }\n  else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }" if (parenthesized_expression "(iVar1 == 3)" ( (binary_expression "iVar1 == 3" identifier == number_literal) )) (compound_statement "{\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }" { (expression_statement "UnmapBlob(param_1[0x409],param_1[4]);" (call_expression "UnmapBlob(param_1[0x409],param_1[4])" identifier (argument_list "(param_1[0x409],param_1[4])" ( (subscript_expression "param_1[0x409]" identifier [ number_literal ]) , (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[0x409] = 0;" (assignment_expression "param_1[0x409] = 0" (subscript_expression "param_1[0x409]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "RelinquishMagickResource(5,param_1[4],param_1[5]);" (call_expression "RelinquishMagickResource(5,param_1[4],param_1[5])" identifier (argument_list "(5,param_1[4],param_1[5])" ( number_literal , (subscript_expression "param_1[4]" identifier [ number_literal ]) , (subscript_expression "param_1[5]" identifier [ number_literal ]) ))) ;) }) (else_clause "else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }" else (compound_statement "{\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }" { (if_statement "if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }" if (parenthesized_expression "(iVar1 == 4)" ( (binary_expression "iVar1 == 4" identifier == number_literal) )) (compound_statement "{\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }" { (if_statement "if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }" if (parenthesized_expression "(param_1[6] == 0)" ( (binary_expression "param_1[6] == 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }" { (expression_statement "iVar1 = RelinquishMagickMemory(param_1[0x409]);" (assignment_expression "iVar1 = RelinquishMagickMemory(param_1[0x409])" identifier = (call_expression "RelinquishMagickMemory(param_1[0x409])" identifier (argument_list "(param_1[0x409])" ( (subscript_expression "param_1[0x409]" identifier [ number_literal ]) )))) ;) (expression_statement "param_1[0x409] = iVar1;" (assignment_expression "param_1[0x409] = iVar1" (subscript_expression "param_1[0x409]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }" else (compound_statement "{\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }" { (expression_statement "UnmapBlob(param_1[0x409],param_1[4]);" (call_expression "UnmapBlob(param_1[0x409],param_1[4])" identifier (argument_list "(param_1[0x409],param_1[4])" ( (subscript_expression "param_1[0x409]" identifier [ number_literal ]) , (subscript_expression "param_1[4]" identifier [ number_literal ]) ))) ;) (expression_statement "param_1[0x409] = 0;" (assignment_expression "param_1[0x409] = 0" (subscript_expression "param_1[0x409]" identifier [ number_literal ]) = number_literal) ;) }))) (expression_statement "RelinquishMagickResource(6,param_1[4],param_1[5]);" (call_expression "RelinquishMagickResource(6,param_1[4],param_1[5])" identifier (argument_list "(6,param_1[4],param_1[5])" ( number_literal , (subscript_expression "param_1[4]" identifier [ number_literal ]) , (subscript_expression "param_1[5]" identifier [ number_literal ]) ))) ;) (goto_statement "goto LAB_000f8262;" goto statement_identifier ;) })) (if_statement "if (iVar1 != 1) goto LAB_000f8262;" if (parenthesized_expression "(iVar1 != 1)" ( (binary_expression "iVar1 != 1" identifier != number_literal) )) (goto_statement "goto LAB_000f8262;" goto statement_identifier ;)) }))) (if_statement "if (param_1[0x408] != -1) {\n    close(param_1[0x408]);\n  }" if (parenthesized_expression "(param_1[0x408] != -1)" ( (binary_expression "param_1[0x408] != -1" (subscript_expression "param_1[0x408]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    close(param_1[0x408]);\n  }" { (expression_statement "close(param_1[0x408]);" (call_expression "close(param_1[0x408])" identifier (argument_list "(param_1[0x408])" ( (subscript_expression "param_1[0x408]" identifier [ number_literal ]) ))) ;) })) (expression_statement "RelinquishUniqueFileResource(param_1 + 8);" (call_expression "RelinquishUniqueFileResource(param_1 + 8)" identifier (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) (expression_statement "RelinquishMagickResource(2,param_1[4],param_1[5]);" (call_expression "RelinquishMagickResource(2,param_1[4],param_1[5])" identifier (argument_list "(2,param_1[4],param_1[5])" ( number_literal , (subscript_expression "param_1[4]" identifier [ number_literal ]) , (subscript_expression "param_1[5]" identifier [ number_literal ]) ))) ;) (labeled_statement "LAB_000f8262:\n  UnlockSemaphoreInfo(param_1[0x40a]);" statement_identifier : (expression_statement "UnlockSemaphoreInfo(param_1[0x40a]);" (call_expression "UnlockSemaphoreInfo(param_1[0x40a])" identifier (argument_list "(param_1[0x40a])" ( (subscript_expression "param_1[0x40a]" identifier [ number_literal ]) ))) ;)) (expression_statement "RelinquishSemaphoreInfo(param_1 + 0x40a);" (call_expression "RelinquishSemaphoreInfo(param_1 + 0x40a)" identifier (argument_list "(param_1 + 0x40a)" ( (binary_expression "param_1 + 0x40a" identifier + number_literal) ))) ;) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( LIT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;)) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void DestroyMatrixInfo(int *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }\n  if (param_1[0x40b] != -0x54535255) {\n                    \n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }\n  LockSemaphoreInfo(param_1[0x40a]);\n  iVar1 = *param_1;\n  if (iVar1 == 3) {\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }\n  else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }\n  if (param_1[0x408] != -1) {\n    close(param_1[0x408]);\n  }\n  RelinquishUniqueFileResource(param_1 + 8);\n  RelinquishMagickResource(2,param_1[4],param_1[5]);\nLAB_000f8262:\n  UnlockSemaphoreInfo(param_1[0x40a]);\n  RelinquishSemaphoreInfo(param_1 + 0x40a);\n  RelinquishMagickMemory(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "DestroyMatrixInfo(int *param_1)" (identifier "DestroyMatrixInfo") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }\n  if (param_1[0x40b] != -0x54535255) {\n                    \n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }\n  LockSemaphoreInfo(param_1[0x40a]);\n  iVar1 = *param_1;\n  if (iVar1 == 3) {\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }\n  else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }\n  if (param_1[0x408] != -1) {\n    close(param_1[0x408]);\n  }\n  RelinquishUniqueFileResource(param_1 + 8);\n  RelinquishMagickResource(2,param_1[4],param_1[5]);\nLAB_000f8262:\n  UnlockSemaphoreInfo(param_1[0x40a]);\n  RelinquishSemaphoreInfo(param_1 + 0x40a);\n  RelinquishMagickMemory(param_1);\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1 == (int *)0x0) {\n                    \n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }" (if "if") (parenthesized_expression "(param_1 == (int *)0x0)" (( "(") (binary_expression "param_1 == (int *)0x0" (identifier "param_1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    \n    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");\n  }" ({ "{") (expression_statement "__assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo");" (call_expression "__assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo")" (identifier "__assert_fail") (argument_list "("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,\n                  "DestroyMatrixInfo")" (( "(") (string_literal ""matrix_info != (MatrixInfo *) NULL"" (" """) (string_content "matrix_info != (MatrixInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/matrix.c"" (" """) (string_content "MagickCore/matrix.c") (" """)) (, ",") (number_literal "0x173") (, ",") (string_literal ""DestroyMatrixInfo"" (" """) (string_content "DestroyMatrixInfo") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (param_1[0x40b] != -0x54535255) {\n                    \n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }" (if "if") (parenthesized_expression "(param_1[0x40b] != -0x54535255)" (( "(") (binary_expression "param_1[0x40b] != -0x54535255" (subscript_expression "param_1[0x40b]" (identifier "param_1") ([ "[") (number_literal "0x40b") (] "]")) (!= "!=") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n                    \n    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");\n  }" ({ "{") (expression_statement "__assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo");" (call_expression "__assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo")" (identifier "__assert_fail") (argument_list "("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,\n                  "DestroyMatrixInfo")" (( "(") (string_literal ""matrix_info->signature == MagickCoreSignature"" (" """) (string_content "matrix_info->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/matrix.c"" (" """) (string_content "MagickCore/matrix.c") (" """)) (, ",") (number_literal "0x174") (, ",") (string_literal ""DestroyMatrixInfo"" (" """) (string_content "DestroyMatrixInfo") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "LockSemaphoreInfo(param_1[0x40a]);" (call_expression "LockSemaphoreInfo(param_1[0x40a])" (identifier "LockSemaphoreInfo") (argument_list "(param_1[0x40a])" (( "(") (subscript_expression "param_1[0x40a]" (identifier "param_1") ([ "[") (number_literal "0x40a") (] "]")) () ")"))) (; ";")) (expression_statement "iVar1 = *param_1;" (assignment_expression "iVar1 = *param_1" (identifier "iVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (if_statement "if (iVar1 == 3) {\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }\n  else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }" (if "if") (parenthesized_expression "(iVar1 == 3)" (( "(") (binary_expression "iVar1 == 3" (identifier "iVar1") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n    UnmapBlob(param_1[0x409],param_1[4]);\n    param_1[0x409] = 0;\n    RelinquishMagickResource(5,param_1[4],param_1[5]);\n  }" ({ "{") (expression_statement "UnmapBlob(param_1[0x409],param_1[4]);" (call_expression "UnmapBlob(param_1[0x409],param_1[4])" (identifier "UnmapBlob") (argument_list "(param_1[0x409],param_1[4])" (( "(") (subscript_expression "param_1[0x409]" (identifier "param_1") ([ "[") (number_literal "0x409") (] "]")) (, ",") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (expression_statement "param_1[0x409] = 0;" (assignment_expression "param_1[0x409] = 0" (subscript_expression "param_1[0x409]" (identifier "param_1") ([ "[") (number_literal "0x409") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "RelinquishMagickResource(5,param_1[4],param_1[5]);" (call_expression "RelinquishMagickResource(5,param_1[4],param_1[5])" (identifier "RelinquishMagickResource") (argument_list "(5,param_1[4],param_1[5])" (( "(") (number_literal "5") (, ",") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (, ",") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }" (else "else") (compound_statement "{\n    if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }\n    if (iVar1 != 1) goto LAB_000f8262;\n  }" ({ "{") (if_statement "if (iVar1 == 4) {\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }" (if "if") (parenthesized_expression "(iVar1 == 4)" (( "(") (binary_expression "iVar1 == 4" (identifier "iVar1") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n      if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }\n      RelinquishMagickResource(6,param_1[4],param_1[5]);\n      goto LAB_000f8262;\n    }" ({ "{") (if_statement "if (param_1[6] == 0) {\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }\n      else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }" (if "if") (parenthesized_expression "(param_1[6] == 0)" (( "(") (binary_expression "param_1[6] == 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar1 = RelinquishMagickMemory(param_1[0x409]);\n        param_1[0x409] = iVar1;\n      }" ({ "{") (expression_statement "iVar1 = RelinquishMagickMemory(param_1[0x409]);" (assignment_expression "iVar1 = RelinquishMagickMemory(param_1[0x409])" (identifier "iVar1") (= "=") (call_expression "RelinquishMagickMemory(param_1[0x409])" (identifier "RelinquishMagickMemory") (argument_list "(param_1[0x409])" (( "(") (subscript_expression "param_1[0x409]" (identifier "param_1") ([ "[") (number_literal "0x409") (] "]")) () ")")))) (; ";")) (expression_statement "param_1[0x409] = iVar1;" (assignment_expression "param_1[0x409] = iVar1" (subscript_expression "param_1[0x409]" (identifier "param_1") ([ "[") (number_literal "0x409") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (} "}")) (else_clause "else {\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }" (else "else") (compound_statement "{\n        UnmapBlob(param_1[0x409],param_1[4]);\n        param_1[0x409] = 0;\n      }" ({ "{") (expression_statement "UnmapBlob(param_1[0x409],param_1[4]);" (call_expression "UnmapBlob(param_1[0x409],param_1[4])" (identifier "UnmapBlob") (argument_list "(param_1[0x409],param_1[4])" (( "(") (subscript_expression "param_1[0x409]" (identifier "param_1") ([ "[") (number_literal "0x409") (] "]")) (, ",") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) () ")"))) (; ";")) (expression_statement "param_1[0x409] = 0;" (assignment_expression "param_1[0x409] = 0" (subscript_expression "param_1[0x409]" (identifier "param_1") ([ "[") (number_literal "0x409") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "RelinquishMagickResource(6,param_1[4],param_1[5]);" (call_expression "RelinquishMagickResource(6,param_1[4],param_1[5])" (identifier "RelinquishMagickResource") (argument_list "(6,param_1[4],param_1[5])" (( "(") (number_literal "6") (, ",") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (, ",") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) () ")"))) (; ";")) (goto_statement "goto LAB_000f8262;" (goto "goto") (statement_identifier "LAB_000f8262") (; ";")) (} "}"))) (if_statement "if (iVar1 != 1) goto LAB_000f8262;" (if "if") (parenthesized_expression "(iVar1 != 1)" (( "(") (binary_expression "iVar1 != 1" (identifier "iVar1") (!= "!=") (number_literal "1")) () ")")) (goto_statement "goto LAB_000f8262;" (goto "goto") (statement_identifier "LAB_000f8262") (; ";"))) (} "}")))) (if_statement "if (param_1[0x408] != -1) {\n    close(param_1[0x408]);\n  }" (if "if") (parenthesized_expression "(param_1[0x408] != -1)" (( "(") (binary_expression "param_1[0x408] != -1" (subscript_expression "param_1[0x408]" (identifier "param_1") ([ "[") (number_literal "0x408") (] "]")) (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    close(param_1[0x408]);\n  }" ({ "{") (expression_statement "close(param_1[0x408]);" (call_expression "close(param_1[0x408])" (identifier "close") (argument_list "(param_1[0x408])" (( "(") (subscript_expression "param_1[0x408]" (identifier "param_1") ([ "[") (number_literal "0x408") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "RelinquishUniqueFileResource(param_1 + 8);" (call_expression "RelinquishUniqueFileResource(param_1 + 8)" (identifier "RelinquishUniqueFileResource") (argument_list "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "RelinquishMagickResource(2,param_1[4],param_1[5]);" (call_expression "RelinquishMagickResource(2,param_1[4],param_1[5])" (identifier "RelinquishMagickResource") (argument_list "(2,param_1[4],param_1[5])" (( "(") (number_literal "2") (, ",") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (, ",") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) () ")"))) (; ";")) (labeled_statement "LAB_000f8262:\n  UnlockSemaphoreInfo(param_1[0x40a]);" (statement_identifier "LAB_000f8262") (: ":") (expression_statement "UnlockSemaphoreInfo(param_1[0x40a]);" (call_expression "UnlockSemaphoreInfo(param_1[0x40a])" (identifier "UnlockSemaphoreInfo") (argument_list "(param_1[0x40a])" (( "(") (subscript_expression "param_1[0x40a]" (identifier "param_1") ([ "[") (number_literal "0x40a") (] "]")) () ")"))) (; ";"))) (expression_statement "RelinquishSemaphoreInfo(param_1 + 0x40a);" (call_expression "RelinquishSemaphoreInfo(param_1 + 0x40a)" (identifier "RelinquishSemaphoreInfo") (argument_list "(param_1 + 0x40a)" (( "(") (binary_expression "param_1 + 0x40a" (identifier "param_1") (+ "+") (number_literal "0x40a")) () ")"))) (; ";")) (expression_statement "RelinquishMagickMemory(param_1);" (call_expression "RelinquishMagickMemory(param_1)" (identifier "RelinquishMagickMemory") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

type_1 * function_1(type_1 *var_1)

{
  type_2 var_4;
  type_1 *pMVar2;
  void *pvVar3;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,
                  "DestroyMatrixInfo");
  }
  if (var_1->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_2("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,
                  "DestroyMatrixInfo");
  }
  var_3(var_1->semaphore);
  var_4 = var_1->type;
  if (var_4 == var_5) {
    var_6(var_1->elements,(size_t)var_1->length);
    var_1->elements = (void *)0x0;
    var_7(MapResource,var_1->length);
  }
  else {
    if (var_4 == var_8) {
      if (var_1->mapped == var_9) {
        pvVar3 = var_10(var_1->elements);
        var_1->elements = pvVar3;
      }
      else {
        var_6(var_1->elements,(size_t)var_1->length);
        var_1->elements = (void *)0x0;
      }
      var_7(MemoryResource,var_1->length);
      goto LAB_000f8262;
    }
    if (var_4 != var_11) goto LAB_000f8262;
  }
  if (var_1->file != -1) {
    var_12(var_1->file);
  }
  var_13(var_1->path);
  var_7(DiskResource,var_1->length);
LAB_000f8262:
  var_14(var_1->semaphore);
  var_15(&var_1->semaphore);
  pMVar2 = (type_1 *)var_10(var_1);
  return pMVar2;
}


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

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

void MASKED(int *param_1)

{
  int iVar1;
  
  if (param_1 == (int *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("matrix_info != (MatrixInfo *) NULL","MagickCore/matrix.c",0x173,
                  "MASKED");
  }
  if (param_1[0x40b] != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("matrix_info->signature == MagickCoreSignature","MagickCore/matrix.c",0x174,
                  "MASKED");
  }
  LockSemaphoreInfo(param_1[0x40a]);
  iVar1 = *param_1;
  if (iVar1 == 3) {
    UnmapBlob(param_1[0x409],param_1[4]);
    param_1[0x409] = 0;
    RelinquishMagickResource(5,param_1[4],param_1[5]);
  }
  else {
    if (iVar1 == 4) {
      if (param_1[6] == 0) {
        iVar1 = RelinquishMagickMemory(param_1[0x409]);
        param_1[0x409] = iVar1;
      }
      else {
        UnmapBlob(param_1[0x409],param_1[4]);
        param_1[0x409] = 0;
      }
      RelinquishMagickResource(6,param_1[4],param_1[5]);
      goto LAB_000f8262;
    }
    if (iVar1 != 1) goto LAB_000f8262;
  }
  if (param_1[0x408] != -1) {
    close(param_1[0x408]);
  }
  RelinquishUniqueFileResource(param_1 + 8);
  RelinquishMagickResource(2,param_1[4],param_1[5]);
LAB_000f8262:
  UnlockSemaphoreInfo(param_1[0x40a]);
  RelinquishSemaphoreInfo(param_1 + 0x40a);
  RelinquishMagickMemory(param_1);
  return;
}

