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

uint ReadBlobMSBLong(Image *image)

{
  int iVar1;
  uint *puVar2;
  uint uVar3;
  int in_GS_OFFSET;
  ssize_t count;
  uchar buffer [4];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");
  }
  if (image->signature == 0xabacadab) {
    buffer[0] = '\0';
    puVar2 = (uint *)ReadBlobStream(image,4,buffer,&count);
    uVar3 = 0;
    if (count == 4) {
      uVar3 = *puVar2;
      uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;
    }
    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
      return uVar3;
    }
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,
                "ReadBlobMSBLong");
}



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

uint ReadBlobMSBLong(int param_1)

{
  uint *puVar1;
  uint uVar2;
  int in_GS_OFFSET;
  int local_18;
  undefined1 local_14 [4];
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x44ad6;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");
  }
  if (*(int *)(param_1 + 0x3344) == -0x54535255) {
    local_14[0] = 0;
    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);
    uVar2 = 0;
    if (local_18 == 4) {
      uVar2 = *puVar1;
      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
    }
    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
      return uVar2;
    }
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,
                "ReadBlobMSBLong");
}


PUSH EBX
CALL 0x00038830
ADD EBX,0x39452a
SUB ESP,0x18
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0xc],ECX
XOR ECX,ECX
MOV EAX,dword ptr [ESP + 0x20]
TEST EAX,EAX
JZ 0x00044b5a
CMP dword ptr [EAX + 0x3344],0xabacadab
JNZ 0x00044b3b
LEA EDX,[ESP + 0x4]
MOV byte ptr [ESP + 0x8],0x0
PUSH EDX
LEA EDX,[ESP + 0xc]
PUSH EDX
PUSH 0x4
PUSH EAX
CALL 0x000328c0
ADD ESP,0x10
XOR EDX,EDX
CMP dword ptr [ESP + 0x4],0x4
JNZ 0x00044b27
MOV EDX,dword ptr [EAX]
BSWAP EDX
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,EDX
JNZ 0x00044b79
ADD ESP,0x18
POP EBX
RET
LEA EAX,[EBX + 0xffec6f94]
PUSH EAX
LEA EAX,[EBX + 0xffec6758]
PUSH 0x1178
PUSH EAX
LEA EAX,[EBX + 0xffed1338]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffec6f94]
PUSH EAX
LEA EAX,[EBX + 0xffec6758]
PUSH 0x1177
PUSH EAX
LEA EAX,[EBX + 0xffede594]
PUSH EAX
CALL 0x000313d0
CALL 0x0029eab0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint ReadBlobMSBLong(int param_1)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_14 [4];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x44ad6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");\n}\n\n" comment (function_definition "uint ReadBlobMSBLong(int param_1)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_14 [4];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x44ad6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");\n}" type_identifier (function_declarator "ReadBlobMSBLong(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_14 [4];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x44ad6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "undefined1 local_14 [4];" type_identifier (array_declarator "local_14 [4]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x44ad6;" (assignment_expression "uStack_8 = 0x44ad6" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\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("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong")" identifier (argument_list "("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobMSBLong"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3344) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x3344) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" * (cast_expression "(int *)(param_1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3344)" ( (binary_expression "param_1 + 0x3344" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    /* WARNING: Subroutine does not return */\n    FUN_0029eab0();\n  }" { (expression_statement "local_14[0] = 0;" (assignment_expression "local_14[0] = 0" (subscript_expression "local_14[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);" (assignment_expression "puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18)" identifier = (cast_expression "(uint *)ReadBlobStream(param_1,4,local_14,&local_18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ReadBlobStream(param_1,4,local_14,&local_18)" identifier (argument_list "(param_1,4,local_14,&local_18)" ( identifier , number_literal , identifier , (pointer_expression "&local_18" & identifier) ))))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }" if (parenthesized_expression "(local_18 == 4)" ( (binary_expression "local_18 == 4" identifier == number_literal) )) (compound_statement "{\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }" { (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" identifier = (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal))) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return uVar2;\n    }" { (return_statement "return uVar2;" return identifier ;) })) comment (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobMSBLong"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "GravityType": Some values do not have unique names */\n/* WARNING: Enum "DisposeType": Some values do not have unique names */\n/* WARNING: Enum "ChannelType": Some values do not have unique names */\n/* WARNING: Enum "PixelChannel": Some values do not have unique names */\n\nuint ReadBlobMSBLong(Image *image)\n\n{\n  int iVar1;\n  uint *puVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  ssize_t count;\n  uchar buffer [4];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }\n  if (image->signature == 0xabacadab) {\n    buffer[0] = '\0';\n    puVar2 = (uint *)ReadBlobStream(image,4,buffer,&count);\n    uVar3 = 0;\n    if (count == 4) {\n      uVar3 = *puVar2;\n      uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar3;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");\n}\n\n" comment comment comment comment comment comment (function_definition "uint ReadBlobMSBLong(Image *image)\n\n{\n  int iVar1;\n  uint *puVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  ssize_t count;\n  uchar buffer [4];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }\n  if (image->signature == 0xabacadab) {\n    buffer[0] = '\0';\n    puVar2 = (uint *)ReadBlobStream(image,4,buffer,&count);\n    uVar3 = 0;\n    if (count == 4) {\n      uVar3 = *puVar2;\n      uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar3;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");\n}" type_identifier (function_declarator "ReadBlobMSBLong(Image *image)" identifier (parameter_list "(Image *image)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint *puVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  ssize_t count;\n  uchar buffer [4];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }\n  if (image->signature == 0xabacadab) {\n    buffer[0] = '\0';\n    puVar2 = (uint *)ReadBlobStream(image,4,buffer,&count);\n    uVar3 = 0;\n    if (count == 4) {\n      uVar3 = *puVar2;\n      uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar3;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "ssize_t count;" primitive_type identifier ;) (declaration "uchar buffer [4];" type_identifier (array_declarator "buffer [4]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }" if (parenthesized_expression "(image == (Image *)0x0)" ( (binary_expression "image == (Image *)0x0" identifier == (cast_expression "(Image *)0x0" ( (type_descriptor "Image *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong")" identifier (argument_list "("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobMSBLong"" " string_content ") ))) ;) })) (if_statement "if (image->signature == 0xabacadab) {\n    buffer[0] = '\0';\n    puVar2 = (uint *)ReadBlobStream(image,4,buffer,&count);\n    uVar3 = 0;\n    if (count == 4) {\n      uVar3 = *puVar2;\n      uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar3;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(image->signature == 0xabacadab)" ( (binary_expression "image->signature == 0xabacadab" (field_expression "image->signature" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    buffer[0] = '\0';\n    puVar2 = (uint *)ReadBlobStream(image,4,buffer,&count);\n    uVar3 = 0;\n    if (count == 4) {\n      uVar3 = *puVar2;\n      uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n    }\n    if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar3;\n    }\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { (expression_statement "buffer[0] = '\0';" (assignment_expression "buffer[0] = '\0'" (subscript_expression "buffer[0]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "puVar2 = (uint *)ReadBlobStream(image,4,buffer,&count);" (assignment_expression "puVar2 = (uint *)ReadBlobStream(image,4,buffer,&count)" identifier = (cast_expression "(uint *)ReadBlobStream(image,4,buffer,&count)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ReadBlobStream(image,4,buffer,&count)" identifier (argument_list "(image,4,buffer,&count)" ( identifier , number_literal , identifier , (pointer_expression "&count" & identifier) ))))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (count == 4) {\n      uVar3 = *puVar2;\n      uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n    }" if (parenthesized_expression "(count == 4)" ( (binary_expression "count == 4" identifier == number_literal) )) (compound_statement "{\n      uVar3 = *puVar2;\n      uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;\n    }" { (expression_statement "uVar3 = *puVar2;" (assignment_expression "uVar3 = *puVar2" identifier = (pointer_expression "*puVar2" * identifier)) ;) (expression_statement "uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18;" (assignment_expression "uVar3 = uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18" identifier = (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8 | uVar3 << 0x18" (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8 | (uVar3 & 0xff00) << 8" (binary_expression "uVar3 >> 0x18 | (uVar3 & 0xff0000) >> 8" (binary_expression "uVar3 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar3 & 0xff0000) >> 8" (parenthesized_expression "(uVar3 & 0xff0000)" ( (binary_expression "uVar3 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar3 & 0xff00) << 8" (parenthesized_expression "(uVar3 & 0xff00)" ( (binary_expression "uVar3 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar3 << 0x18" identifier << number_literal))) ;) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar3;\n    }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return uVar3;\n    }" { (return_statement "return uVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobMSBLong"" " string_content ") ))) ;) })))
(translation_unit "uint ReadBlobMSBLong(int param_1)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_14 [4];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x44ad6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    \n    FUN_0029eab0();\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");\n}\n\n" (function_definition "uint ReadBlobMSBLong(int param_1)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_14 [4];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x44ad6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    \n    FUN_0029eab0();\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");\n}" type_identifier (function_declarator "ReadBlobMSBLong(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_14 [4];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x44ad6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    \n    FUN_0029eab0();\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "undefined1 local_14 [4];" type_identifier (array_declarator "local_14 [4]" identifier [ number_literal ]) ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x44ad6;" (assignment_expression "uStack_8 = 0x44ad6" identifier = number_literal) ;) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }" { (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong")" identifier (argument_list "("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobMSBLong"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    \n    FUN_0029eab0();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x3344) == -0x54535255)" ( (binary_expression "*(int *)(param_1 + 0x3344) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" * (cast_expression "(int *)(param_1 + 0x3344)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3344)" ( (binary_expression "param_1 + 0x3344" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    \n    FUN_0029eab0();\n  }" { (expression_statement "local_14[0] = 0;" (assignment_expression "local_14[0] = 0" (subscript_expression "local_14[0]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);" (assignment_expression "puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18)" identifier = (cast_expression "(uint *)ReadBlobStream(param_1,4,local_14,&local_18)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ReadBlobStream(param_1,4,local_14,&local_18)" identifier (argument_list "(param_1,4,local_14,&local_18)" ( identifier , number_literal , identifier , (pointer_expression "&local_18" & identifier) ))))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }" if (parenthesized_expression "(local_18 == 4)" ( (binary_expression "local_18 == 4" identifier == number_literal) )) (compound_statement "{\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }" { (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" identifier = (pointer_expression "*puVar1" * identifier)) ;) (expression_statement "uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" identifier = (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" ( (binary_expression "uVar2 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" ( (binary_expression "uVar2 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar2 << 0x18" identifier << number_literal))) ;) })) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }" if (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n      return uVar2;\n    }" { (return_statement "return uVar2;" return identifier ;) })) (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobMSBLong"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , (pointer_expression & IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "uint ReadBlobMSBLong(int param_1)\n\n{\n  uint *puVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_14 [4];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x44ad6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    \n    FUN_0029eab0();\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");\n}" (type_identifier "uint") (function_declarator "ReadBlobMSBLong(int param_1)" (identifier "ReadBlobMSBLong") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint *puVar1;\n  uint uVar2;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_14 [4];\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x44ad6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }\n  if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    \n    FUN_0029eab0();\n  }\n                    \n  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");\n}" ({ "{") (declaration "uint *puVar1;" (type_identifier "uint") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_18;" (primitive_type "int") (identifier "local_18") (; ";")) (declaration "undefined1 local_14 [4];" (type_identifier "undefined1") (array_declarator "local_14 [4]" (identifier "local_14") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_8;" (type_identifier "undefined4") (identifier "uStack_8") (; ";")) (expression_statement "uStack_8 = 0x44ad6;" (assignment_expression "uStack_8 = 0x44ad6" (identifier "uStack_8") (= "=") (number_literal "0x44ad6")) (; ";")) (expression_statement "local_10 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_10 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\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("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");\n  }" ({ "{") (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong")" (identifier "__assert_fail") (argument_list "("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong")" (( "(") (string_literal ""image != (Image *) NULL"" (" """) (string_content "image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/blob.c"" (" """) (string_content "MagickCore/blob.c") (" """)) (, ",") (number_literal "0x1177") (, ",") (string_literal ""ReadBlobMSBLong"" (" """) (string_content "ReadBlobMSBLong") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3344) == -0x54535255) {\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    \n    FUN_0029eab0();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x3344) == -0x54535255)" (( "(") (binary_expression "*(int *)(param_1 + 0x3344) == -0x54535255" (pointer_expression "*(int *)(param_1 + 0x3344)" (* "*") (cast_expression "(int *)(param_1 + 0x3344)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3344)" (( "(") (binary_expression "param_1 + 0x3344" (identifier "param_1") (+ "+") (number_literal "0x3344")) () ")")))) (== "==") (number_literal "-0x54535255")) () ")")) (compound_statement "{\n    local_14[0] = 0;\n    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);\n    uVar2 = 0;\n    if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }\n    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }\n                    \n    FUN_0029eab0();\n  }" ({ "{") (expression_statement "local_14[0] = 0;" (assignment_expression "local_14[0] = 0" (subscript_expression "local_14[0]" (identifier "local_14") ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);" (assignment_expression "puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18)" (identifier "puVar1") (= "=") (cast_expression "(uint *)ReadBlobStream(param_1,4,local_14,&local_18)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "ReadBlobStream(param_1,4,local_14,&local_18)" (identifier "ReadBlobStream") (argument_list "(param_1,4,local_14,&local_18)" (( "(") (identifier "param_1") (, ",") (number_literal "4") (, ",") (identifier "local_14") (, ",") (pointer_expression "&local_18" (& "&") (identifier "local_18")) () ")"))))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_18 == 4) {\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }" (if "if") (parenthesized_expression "(local_18 == 4)" (( "(") (binary_expression "local_18 == 4" (identifier "local_18") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n      uVar2 = *puVar1;\n      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;\n    }" ({ "{") (expression_statement "uVar2 = *puVar1;" (assignment_expression "uVar2 = *puVar1" (identifier "uVar2") (= "=") (pointer_expression "*puVar1" (* "*") (identifier "puVar1"))) (; ";")) (expression_statement "uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;" (assignment_expression "uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (identifier "uVar2") (= "=") (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8" (binary_expression "uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8" (binary_expression "uVar2 >> 0x18" (identifier "uVar2") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar2 & 0xff0000) >> 8" (parenthesized_expression "(uVar2 & 0xff0000)" (( "(") (binary_expression "uVar2 & 0xff0000" (identifier "uVar2") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar2 & 0xff00) << 8" (parenthesized_expression "(uVar2 & 0xff00)" (( "(") (binary_expression "uVar2 & 0xff00" (identifier "uVar2") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar2 << 0x18" (identifier "uVar2") (<< "<<") (number_literal "0x18")))) (; ";")) (} "}"))) (if_statement "if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(local_10 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_10 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_10") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n      return uVar2;\n    }" ({ "{") (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (expression_statement "FUN_0029eab0();" (call_expression "FUN_0029eab0()" (identifier "FUN_0029eab0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong")" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,\n                "ReadBlobMSBLong")" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/blob.c"" (" """) (string_content "MagickCore/blob.c") (" """)) (, ",") (number_literal "0x1178") (, ",") (string_literal ""ReadBlobMSBLong"" (" """) (string_content "ReadBlobMSBLong") (" """)) () ")"))) (; ";")) (} "}")))

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

type_1 function_1(type_2 *var_2)

{
  int var_7;
  type_1 *puVar2;
  type_1 var_6;
  int var_1;
  ssize_t var_5;
  type_3 buffer [4];
  
  var_7 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("image != (Image *) NULL","MagickCore/blob.c",0x1177,"ReadBlobMSBLong");
  }
  if (var_2->signature == 0xabacadab) {
    buffer[0] = '\0';
    puVar2 = (type_1 *)var_4(var_2,4,buffer,&var_5);
    var_6 = 0;
    if (var_5 == 4) {
      var_6 = *puVar2;
      var_6 = var_6 >> 0x18 | (var_6 & 0xff0000) >> 8 | (var_6 & 0xff00) << 8 | var_6 << 0x18;
    }
    if (var_7 == *(int *)(var_1 + 0x14)) {
      return var_6;
    }
                    /* WARNING: Subroutine does not return */
    var_8();
  }
                    /* WARNING: Subroutine does not return */
  var_3("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,
                "ReadBlobMSBLong");
}


(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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (identifier) (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))))

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

uint MASKED(int param_1)

{
  uint *puVar1;
  uint uVar2;
  int in_GS_OFFSET;
  int local_18;
  undefined1 local_14 [4];
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x44ad6;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x1177,"MASKED");
  }
  if (*(int *)(param_1 + 0x3344) == -0x54535255) {
    local_14[0] = 0;
    puVar1 = (uint *)ReadBlobStream(param_1,4,local_14,&local_18);
    uVar2 = 0;
    if (local_18 == 4) {
      uVar2 = *puVar1;
      uVar2 = uVar2 >> 0x18 | (uVar2 & 0xff0000) >> 8 | (uVar2 & 0xff00) << 8 | uVar2 << 0x18;
    }
    if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
      return uVar2;
    }
                    /* WARNING: Subroutine does not return */
    FUN_0029eab0();
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x1178,
                "MASKED");
}

