
/* 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 */

int ReadBlobByte(Image *image)

{
  int iVar1;
  BlobInfo *pBVar2;
  uint uVar3;
  byte *pbVar4;
  int in_GS_OFFSET;
  ssize_t count;
  uchar buffer [1];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte");
  }
  if (image->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"
                 );
  }
  pBVar2 = image->blob;
  if (pBVar2 == (BlobInfo *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");
  }
  if (pBVar2->type == UndefinedStream) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");
  }
  if (pBVar2->type - FileStream < 3) {
    uVar3 = _IO_getc((_IO_FILE *)(pBVar2->file_info).file);
    if (uVar3 == 0xffffffff) goto LAB_0004453a;
  }
  else {
    pbVar4 = (byte *)ReadBlobStream(image,1,buffer,&count);
    if (count != 1) {
      uVar3 = 0xffffffff;
      goto LAB_0004453a;
    }
    uVar3 = (uint)*pbVar4;
  }
  uVar3 = uVar3 & 0xff;
LAB_0004453a:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

uint ReadBlobByte(int param_1)

{
  int iVar1;
  uint uVar2;
  byte *pbVar3;
  int in_GS_OFFSET;
  int local_18;
  undefined1 local_11;
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x444d6;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"
                 );
  }
  iVar1 = *(int *)(param_1 + 0x3320);
  if (iVar1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");
  }
  if (*(int *)(iVar1 + 0x40) == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");
  }
  if (*(int *)(iVar1 + 0x40) - 1U < 3) {
    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));
    if (uVar2 == 0xffffffff) goto LAB_0004453a;
  }
  else {
    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);
    if (local_18 != 1) {
      uVar2 = 0xffffffff;
      goto LAB_0004453a;
    }
    uVar2 = (uint)*pbVar3;
  }
  uVar2 = uVar2 & 0xff;
LAB_0004453a:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0029eab0();
}


PUSH EBX
CALL 0x00038830
ADD EBX,0x394b2a
SUB ESP,0x18
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EDX,dword ptr [ESP + 0x20]
TEST EDX,EDX
JZ 0x000445dc
CMP dword ptr [EDX + 0x3344],0xabacadab
JNZ 0x000445bd
MOV ECX,dword ptr [EDX + 0x3320]
TEST ECX,ECX
JZ 0x0004459e
MOV EAX,dword ptr [ECX + 0x40]
TEST EAX,EAX
JZ 0x0004457f
SUB EAX,0x1
CMP EAX,0x2
JA 0x00044550
SUB ESP,0xc
PUSH dword ptr [ECX + 0x44]
CALL 0x00031220
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x0004453a
MOVZX EAX,AL
MOV EBX,dword ptr [ESP + 0xc]
XOR EBX,dword ptr GS:[0x14]
JNZ 0x000445fb
ADD ESP,0x18
POP EBX
RET
LEA EAX,[ESP + 0x4]
PUSH EAX
LEA EAX,[ESP + 0xf]
PUSH EAX
PUSH 0x1
PUSH EDX
CALL 0x000328c0
ADD ESP,0x10
CMP dword ptr [ESP + 0x4],0x1
JNZ 0x00044578
MOVZX EAX,byte ptr [EAX]
JMP 0x00044537
MOV EAX,0xffffffff
JMP 0x0004453a
LEA EAX,[EBX + 0xffec6ffc]
PUSH EAX
LEA EAX,[EBX + 0xffec6758]
PUSH 0xf84
PUSH EAX
LEA EAX,[EBX + 0xffec6964]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffec6ffc]
PUSH EAX
LEA EAX,[EBX + 0xffec6758]
PUSH 0xf83
PUSH EAX
LEA EAX,[EBX + 0xffec6940]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffec6ffc]
PUSH EAX
LEA EAX,[EBX + 0xffec6758]
PUSH 0xf82
PUSH EAX
LEA EAX,[EBX + 0xffed1338]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffec6ffc]
PUSH EAX
LEA EAX,[EBX + 0xffec6758]
PUSH 0xf81
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 ReadBlobByte(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_11;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x444d6;\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",0xf81,"ReadBlobByte");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }\n  iVar1 = *(int *)(param_1 + 0x3320);\n  if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) - 1U < 3) {\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }\n  uVar2 = uVar2 & 0xff;\nLAB_0004453a:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0029eab0();\n}\n\n" comment (function_definition "uint ReadBlobByte(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_11;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x444d6;\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",0xf81,"ReadBlobByte");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }\n  iVar1 = *(int *)(param_1 + 0x3320);\n  if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) - 1U < 3) {\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }\n  uVar2 = uVar2 & 0xff;\nLAB_0004453a:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0029eab0();\n}" type_identifier (function_declarator "ReadBlobByte(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_11;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x444d6;\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",0xf81,"ReadBlobByte");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }\n  iVar1 = *(int *)(param_1 + 0x3320);\n  if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) - 1U < 3) {\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }\n  uVar2 = uVar2 & 0xff;\nLAB_0004453a:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0029eab0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "undefined1 local_11;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x444d6;" (assignment_expression "uStack_8 = 0x444d6" 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",0xf81,"ReadBlobByte");\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",0xf81,"ReadBlobByte");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte")" identifier (argument_list "("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobByte"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\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                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 )" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 )" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobByte"" " string_content ") ))) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x3320);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x3320)" identifier = (pointer_expression "*(int *)(param_1 + 0x3320)" * (cast_expression "(int *)(param_1 + 0x3320)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3320)" ( (binary_expression "param_1 + 0x3320" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }" { comment (expression_statement "__assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");" (call_expression "__assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte")" identifier (argument_list "("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte")" ( (string_literal ""image->blob != (BlobInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobByte"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(iVar1 + 0x40) == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x40) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x40) == 0" (pointer_expression "*(int *)(iVar1 + 0x40)" * (cast_expression "(int *)(iVar1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }" { comment (expression_statement "__assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");" (call_expression "__assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte")" identifier (argument_list "("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte")" ( (string_literal ""image->blob->type != UndefinedStream"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobByte"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(iVar1 + 0x40) - 1U < 3) {\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x40) - 1U < 3)" ( (binary_expression "*(int *)(iVar1 + 0x40) - 1U < 3" (binary_expression "*(int *)(iVar1 + 0x40) - 1U" (pointer_expression "*(int *)(iVar1 + 0x40)" * (cast_expression "(int *)(iVar1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) - number_literal) < number_literal) )) (compound_statement "{\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }" { (expression_statement "uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));" (assignment_expression "uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44))" identifier = (call_expression "_IO_getc(*(_IO_FILE **)(iVar1 + 0x44))" identifier (argument_list "(*(_IO_FILE **)(iVar1 + 0x44))" ( (pointer_expression "*(_IO_FILE **)(iVar1 + 0x44)" * (cast_expression "(_IO_FILE **)(iVar1 + 0x44)" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x44)" ( (binary_expression "iVar1 + 0x44" identifier + number_literal) )))) )))) ;) (if_statement "if (uVar2 == 0xffffffff) goto LAB_0004453a;" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_0004453a;" goto statement_identifier ;)) }) (else_clause "else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }" else (compound_statement "{\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }" { (expression_statement "pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);" (assignment_expression "pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18)" identifier = (cast_expression "(byte *)ReadBlobStream(param_1,1,&local_11,&local_18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ReadBlobStream(param_1,1,&local_11,&local_18)" identifier (argument_list "(param_1,1,&local_11,&local_18)" ( identifier , number_literal , (pointer_expression "&local_11" & identifier) , (pointer_expression "&local_18" & identifier) ))))) ;) (if_statement "if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }" if (parenthesized_expression "(local_18 != 1)" ( (binary_expression "local_18 != 1" identifier != number_literal) )) (compound_statement "{\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_0004453a;" goto statement_identifier ;) })) (expression_statement "uVar2 = (uint)*pbVar3;" (assignment_expression "uVar2 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }))) (expression_statement "uVar2 = uVar2 & 0xff;" (assignment_expression "uVar2 = uVar2 & 0xff" identifier = (binary_expression "uVar2 & 0xff" identifier & number_literal)) ;) (labeled_statement "LAB_0004453a:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" statement_identifier : (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 "()" ( ))) ;) })))
(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\nint ReadBlobByte(Image *image)\n\n{\n  int iVar1;\n  BlobInfo *pBVar2;\n  uint uVar3;\n  byte *pbVar4;\n  int in_GS_OFFSET;\n  ssize_t count;\n  uchar buffer [1];\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",0xf81,"ReadBlobByte");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }\n  pBVar2 = image->blob;\n  if (pBVar2 == (BlobInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }\n  if (pBVar2->type == UndefinedStream) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }\n  if (pBVar2->type - FileStream < 3) {\n    uVar3 = _IO_getc((_IO_FILE *)(pBVar2->file_info).file);\n    if (uVar3 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar4 = (byte *)ReadBlobStream(image,1,buffer,&count);\n    if (count != 1) {\n      uVar3 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar3 = (uint)*pbVar4;\n  }\n  uVar3 = uVar3 & 0xff;\nLAB_0004453a:\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\n" comment comment comment comment comment comment (function_definition "int ReadBlobByte(Image *image)\n\n{\n  int iVar1;\n  BlobInfo *pBVar2;\n  uint uVar3;\n  byte *pbVar4;\n  int in_GS_OFFSET;\n  ssize_t count;\n  uchar buffer [1];\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",0xf81,"ReadBlobByte");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }\n  pBVar2 = image->blob;\n  if (pBVar2 == (BlobInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }\n  if (pBVar2->type == UndefinedStream) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }\n  if (pBVar2->type - FileStream < 3) {\n    uVar3 = _IO_getc((_IO_FILE *)(pBVar2->file_info).file);\n    if (uVar3 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar4 = (byte *)ReadBlobStream(image,1,buffer,&count);\n    if (count != 1) {\n      uVar3 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar3 = (uint)*pbVar4;\n  }\n  uVar3 = uVar3 & 0xff;\nLAB_0004453a:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (function_declarator "ReadBlobByte(Image *image)" identifier (parameter_list "(Image *image)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  BlobInfo *pBVar2;\n  uint uVar3;\n  byte *pbVar4;\n  int in_GS_OFFSET;\n  ssize_t count;\n  uchar buffer [1];\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",0xf81,"ReadBlobByte");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }\n  pBVar2 = image->blob;\n  if (pBVar2 == (BlobInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }\n  if (pBVar2->type == UndefinedStream) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }\n  if (pBVar2->type - FileStream < 3) {\n    uVar3 = _IO_getc((_IO_FILE *)(pBVar2->file_info).file);\n    if (uVar3 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar4 = (byte *)ReadBlobStream(image,1,buffer,&count);\n    if (count != 1) {\n      uVar3 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar3 = (uint)*pbVar4;\n  }\n  uVar3 = uVar3 & 0xff;\nLAB_0004453a:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "BlobInfo *pBVar2;" type_identifier (pointer_declarator "*pBVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "ssize_t count;" primitive_type identifier ;) (declaration "uchar buffer [1];" type_identifier (array_declarator "buffer [1]" 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",0xf81,"ReadBlobByte");\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",0xf81,"ReadBlobByte");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte")" identifier (argument_list "("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobByte"" " string_content ") ))) ;) })) (if_statement "if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }" if (parenthesized_expression "(image->signature != 0xabacadab)" ( (binary_expression "image->signature != 0xabacadab" (field_expression "image->signature" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 )" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 )" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobByte"" " string_content ") ))) ;) })) (expression_statement "pBVar2 = image->blob;" (assignment_expression "pBVar2 = image->blob" identifier = (field_expression "image->blob" identifier -> field_identifier)) ;) (if_statement "if (pBVar2 == (BlobInfo *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }" if (parenthesized_expression "(pBVar2 == (BlobInfo *)0x0)" ( (binary_expression "pBVar2 == (BlobInfo *)0x0" identifier == (cast_expression "(BlobInfo *)0x0" ( (type_descriptor "BlobInfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }" { comment (expression_statement "__assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");" (call_expression "__assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte")" identifier (argument_list "("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte")" ( (string_literal ""image->blob != (BlobInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobByte"" " string_content ") ))) ;) })) (if_statement "if (pBVar2->type == UndefinedStream) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }" if (parenthesized_expression "(pBVar2->type == UndefinedStream)" ( (binary_expression "pBVar2->type == UndefinedStream" (field_expression "pBVar2->type" identifier -> field_identifier) == identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }" { comment (expression_statement "__assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");" (call_expression "__assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte")" identifier (argument_list "("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte")" ( (string_literal ""image->blob->type != UndefinedStream"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobByte"" " string_content ") ))) ;) })) (if_statement "if (pBVar2->type - FileStream < 3) {\n    uVar3 = _IO_getc((_IO_FILE *)(pBVar2->file_info).file);\n    if (uVar3 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar4 = (byte *)ReadBlobStream(image,1,buffer,&count);\n    if (count != 1) {\n      uVar3 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar3 = (uint)*pbVar4;\n  }" if (parenthesized_expression "(pBVar2->type - FileStream < 3)" ( (binary_expression "pBVar2->type - FileStream < 3" (binary_expression "pBVar2->type - FileStream" (field_expression "pBVar2->type" identifier -> field_identifier) - identifier) < number_literal) )) (compound_statement "{\n    uVar3 = _IO_getc((_IO_FILE *)(pBVar2->file_info).file);\n    if (uVar3 == 0xffffffff) goto LAB_0004453a;\n  }" { (expression_statement "uVar3 = _IO_getc((_IO_FILE *)(pBVar2->file_info).file);" (assignment_expression "uVar3 = _IO_getc((_IO_FILE *)(pBVar2->file_info).file)" identifier = (call_expression "_IO_getc((_IO_FILE *)(pBVar2->file_info).file)" identifier (argument_list "((_IO_FILE *)(pBVar2->file_info).file)" ( (cast_expression "(_IO_FILE *)(pBVar2->file_info).file" ( (type_descriptor "_IO_FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "(pBVar2->file_info).file" (parenthesized_expression "(pBVar2->file_info)" ( (field_expression "pBVar2->file_info" identifier -> field_identifier) )) . field_identifier)) )))) ;) (if_statement "if (uVar3 == 0xffffffff) goto LAB_0004453a;" if (parenthesized_expression "(uVar3 == 0xffffffff)" ( (binary_expression "uVar3 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_0004453a;" goto statement_identifier ;)) }) (else_clause "else {\n    pbVar4 = (byte *)ReadBlobStream(image,1,buffer,&count);\n    if (count != 1) {\n      uVar3 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar3 = (uint)*pbVar4;\n  }" else (compound_statement "{\n    pbVar4 = (byte *)ReadBlobStream(image,1,buffer,&count);\n    if (count != 1) {\n      uVar3 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar3 = (uint)*pbVar4;\n  }" { (expression_statement "pbVar4 = (byte *)ReadBlobStream(image,1,buffer,&count);" (assignment_expression "pbVar4 = (byte *)ReadBlobStream(image,1,buffer,&count)" identifier = (cast_expression "(byte *)ReadBlobStream(image,1,buffer,&count)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ReadBlobStream(image,1,buffer,&count)" identifier (argument_list "(image,1,buffer,&count)" ( identifier , number_literal , identifier , (pointer_expression "&count" & identifier) ))))) ;) (if_statement "if (count != 1) {\n      uVar3 = 0xffffffff;\n      goto LAB_0004453a;\n    }" if (parenthesized_expression "(count != 1)" ( (binary_expression "count != 1" identifier != number_literal) )) (compound_statement "{\n      uVar3 = 0xffffffff;\n      goto LAB_0004453a;\n    }" { (expression_statement "uVar3 = 0xffffffff;" (assignment_expression "uVar3 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_0004453a;" goto statement_identifier ;) })) (expression_statement "uVar3 = (uint)*pbVar4;" (assignment_expression "uVar3 = (uint)*pbVar4" identifier = (binary_expression "(uint)*pbVar4" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }))) (expression_statement "uVar3 = uVar3 & 0xff;" (assignment_expression "uVar3 = uVar3 & 0xff" identifier = (binary_expression "uVar3 & 0xff" identifier & number_literal)) ;) (labeled_statement "LAB_0004453a:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar3;\n  }" statement_identifier : (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 "()" ( ))) ;) })))
(translation_unit "uint ReadBlobByte(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_11;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x444d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }\n  iVar1 = *(int *)(param_1 + 0x3320);\n  if (iVar1 == 0) {\n                    \n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) == 0) {\n                    \n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) - 1U < 3) {\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }\n  uVar2 = uVar2 & 0xff;\nLAB_0004453a:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0029eab0();\n}\n\n" (function_definition "uint ReadBlobByte(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_11;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x444d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }\n  iVar1 = *(int *)(param_1 + 0x3320);\n  if (iVar1 == 0) {\n                    \n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) == 0) {\n                    \n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) - 1U < 3) {\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }\n  uVar2 = uVar2 & 0xff;\nLAB_0004453a:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0029eab0();\n}" type_identifier (function_declarator "ReadBlobByte(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_11;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x444d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }\n  iVar1 = *(int *)(param_1 + 0x3320);\n  if (iVar1 == 0) {\n                    \n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) == 0) {\n                    \n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) - 1U < 3) {\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }\n  uVar2 = uVar2 & 0xff;\nLAB_0004453a:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0029eab0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "undefined1 local_11;" type_identifier identifier ;) (declaration "int local_10;" primitive_type identifier ;) (declaration "undefined4 uStack_8;" type_identifier identifier ;) (expression_statement "uStack_8 = 0x444d6;" (assignment_expression "uStack_8 = 0x444d6" 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",0xf81,"ReadBlobByte");\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",0xf81,"ReadBlobByte");\n  }" { (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte")" identifier (argument_list "("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobByte"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\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                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }" { (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 )" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 )" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobByte"" " string_content ") ))) ;) })) (expression_statement "iVar1 = *(int *)(param_1 + 0x3320);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x3320)" identifier = (pointer_expression "*(int *)(param_1 + 0x3320)" * (cast_expression "(int *)(param_1 + 0x3320)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3320)" ( (binary_expression "param_1 + 0x3320" identifier + number_literal) ))))) ;) (if_statement "if (iVar1 == 0) {\n                    \n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }" { (expression_statement "__assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");" (call_expression "__assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte")" identifier (argument_list "("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte")" ( (string_literal ""image->blob != (BlobInfo *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobByte"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(iVar1 + 0x40) == 0) {\n                    \n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x40) == 0)" ( (binary_expression "*(int *)(iVar1 + 0x40) == 0" (pointer_expression "*(int *)(iVar1 + 0x40)" * (cast_expression "(int *)(iVar1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }" { (expression_statement "__assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");" (call_expression "__assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte")" identifier (argument_list "("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte")" ( (string_literal ""image->blob->type != UndefinedStream"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobByte"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(iVar1 + 0x40) - 1U < 3) {\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }" if (parenthesized_expression "(*(int *)(iVar1 + 0x40) - 1U < 3)" ( (binary_expression "*(int *)(iVar1 + 0x40) - 1U < 3" (binary_expression "*(int *)(iVar1 + 0x40) - 1U" (pointer_expression "*(int *)(iVar1 + 0x40)" * (cast_expression "(int *)(iVar1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x40)" ( (binary_expression "iVar1 + 0x40" identifier + number_literal) )))) - number_literal) < number_literal) )) (compound_statement "{\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }" { (expression_statement "uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));" (assignment_expression "uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44))" identifier = (call_expression "_IO_getc(*(_IO_FILE **)(iVar1 + 0x44))" identifier (argument_list "(*(_IO_FILE **)(iVar1 + 0x44))" ( (pointer_expression "*(_IO_FILE **)(iVar1 + 0x44)" * (cast_expression "(_IO_FILE **)(iVar1 + 0x44)" ( (type_descriptor "_IO_FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x44)" ( (binary_expression "iVar1 + 0x44" identifier + number_literal) )))) )))) ;) (if_statement "if (uVar2 == 0xffffffff) goto LAB_0004453a;" if (parenthesized_expression "(uVar2 == 0xffffffff)" ( (binary_expression "uVar2 == 0xffffffff" identifier == number_literal) )) (goto_statement "goto LAB_0004453a;" goto statement_identifier ;)) }) (else_clause "else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }" else (compound_statement "{\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }" { (expression_statement "pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);" (assignment_expression "pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18)" identifier = (cast_expression "(byte *)ReadBlobStream(param_1,1,&local_11,&local_18)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "ReadBlobStream(param_1,1,&local_11,&local_18)" identifier (argument_list "(param_1,1,&local_11,&local_18)" ( identifier , number_literal , (pointer_expression "&local_11" & identifier) , (pointer_expression "&local_18" & identifier) ))))) ;) (if_statement "if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }" if (parenthesized_expression "(local_18 != 1)" ( (binary_expression "local_18 != 1" identifier != number_literal) )) (compound_statement "{\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }" { (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" identifier = number_literal) ;) (goto_statement "goto LAB_0004453a;" goto statement_identifier ;) })) (expression_statement "uVar2 = (uint)*pbVar3;" (assignment_expression "uVar2 = (uint)*pbVar3" identifier = (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }))) (expression_statement "uVar2 = uVar2 & 0xff;" (assignment_expression "uVar2 = uVar2 & 0xff" identifier = (binary_expression "uVar2 & 0xff" identifier & number_literal)) ;) (labeled_statement "LAB_0004453a:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" statement_identifier : (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 "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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 (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 (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , (pointer_expression & IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (labeled_statement statement_identifier : (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 ( ))) ;) })))
(function_definition "uint ReadBlobByte(int param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_11;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x444d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }\n  iVar1 = *(int *)(param_1 + 0x3320);\n  if (iVar1 == 0) {\n                    \n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) == 0) {\n                    \n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) - 1U < 3) {\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }\n  uVar2 = uVar2 & 0xff;\nLAB_0004453a:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0029eab0();\n}" (type_identifier "uint") (function_declarator "ReadBlobByte(int param_1)" (identifier "ReadBlobByte") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  byte *pbVar3;\n  int in_GS_OFFSET;\n  int local_18;\n  undefined1 local_11;\n  int local_10;\n  undefined4 uStack_8;\n  \n  uStack_8 = 0x444d6;\n  local_10 = *(int *)(in_GS_OFFSET + 0x14);\n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }\n  iVar1 = *(int *)(param_1 + 0x3320);\n  if (iVar1 == 0) {\n                    \n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) == 0) {\n                    \n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }\n  if (*(int *)(iVar1 + 0x40) - 1U < 3) {\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }\n  uVar2 = uVar2 & 0xff;\nLAB_0004453a:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }\n                    \n  FUN_0029eab0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (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_11;" (type_identifier "undefined1") (identifier "local_11") (; ";")) (declaration "int local_10;" (primitive_type "int") (identifier "local_10") (; ";")) (declaration "undefined4 uStack_8;" (type_identifier "undefined4") (identifier "uStack_8") (; ";")) (expression_statement "uStack_8 = 0x444d6;" (assignment_expression "uStack_8 = 0x444d6" (identifier "uStack_8") (= "=") (number_literal "0x444d6")) (; ";")) (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",0xf81,"ReadBlobByte");\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",0xf81,"ReadBlobByte");\n  }" ({ "{") (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte")" (identifier "__assert_fail") (argument_list "("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte")" (( "(") (string_literal ""image != (Image *) NULL"" (" """) (string_content "image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/blob.c"" (" """) (string_content "MagickCore/blob.c") (" """)) (, ",") (number_literal "0xf81") (, ",") (string_literal ""ReadBlobByte"" (" """) (string_content "ReadBlobByte") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\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                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );\n  }" ({ "{") (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 );" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 )" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"\n                 )" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/blob.c"" (" """) (string_content "MagickCore/blob.c") (" """)) (, ",") (number_literal "0xf82") (, ",") (string_literal ""ReadBlobByte"" (" """) (string_content "ReadBlobByte") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = *(int *)(param_1 + 0x3320);" (assignment_expression "iVar1 = *(int *)(param_1 + 0x3320)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0x3320)" (* "*") (cast_expression "(int *)(param_1 + 0x3320)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3320)" (( "(") (binary_expression "param_1 + 0x3320" (identifier "param_1") (+ "+") (number_literal "0x3320")) () ")"))))) (; ";")) (if_statement "if (iVar1 == 0) {\n                    \n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");\n  }" ({ "{") (expression_statement "__assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");" (call_expression "__assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte")" (identifier "__assert_fail") (argument_list "("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte")" (( "(") (string_literal ""image->blob != (BlobInfo *) NULL"" (" """) (string_content "image->blob != (BlobInfo *) NULL") (" """)) (, ",") (string_literal ""MagickCore/blob.c"" (" """) (string_content "MagickCore/blob.c") (" """)) (, ",") (number_literal "0xf83") (, ",") (string_literal ""ReadBlobByte"" (" """) (string_content "ReadBlobByte") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar1 + 0x40) == 0) {\n                    \n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x40) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x40) == 0" (pointer_expression "*(int *)(iVar1 + 0x40)" (* "*") (cast_expression "(int *)(iVar1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x40)" (( "(") (binary_expression "iVar1 + 0x40" (identifier "iVar1") (+ "+") (number_literal "0x40")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");\n  }" ({ "{") (expression_statement "__assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");" (call_expression "__assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte")" (identifier "__assert_fail") (argument_list "("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte")" (( "(") (string_literal ""image->blob->type != UndefinedStream"" (" """) (string_content "image->blob->type != UndefinedStream") (" """)) (, ",") (string_literal ""MagickCore/blob.c"" (" """) (string_content "MagickCore/blob.c") (" """)) (, ",") (number_literal "0xf84") (, ",") (string_literal ""ReadBlobByte"" (" """) (string_content "ReadBlobByte") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar1 + 0x40) - 1U < 3) {\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }\n  else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x40) - 1U < 3)" (( "(") (binary_expression "*(int *)(iVar1 + 0x40) - 1U < 3" (binary_expression "*(int *)(iVar1 + 0x40) - 1U" (pointer_expression "*(int *)(iVar1 + 0x40)" (* "*") (cast_expression "(int *)(iVar1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x40)" (( "(") (binary_expression "iVar1 + 0x40" (identifier "iVar1") (+ "+") (number_literal "0x40")) () ")")))) (- "-") (number_literal "1U")) (< "<") (number_literal "3")) () ")")) (compound_statement "{\n    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));\n    if (uVar2 == 0xffffffff) goto LAB_0004453a;\n  }" ({ "{") (expression_statement "uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));" (assignment_expression "uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44))" (identifier "uVar2") (= "=") (call_expression "_IO_getc(*(_IO_FILE **)(iVar1 + 0x44))" (identifier "_IO_getc") (argument_list "(*(_IO_FILE **)(iVar1 + 0x44))" (( "(") (pointer_expression "*(_IO_FILE **)(iVar1 + 0x44)" (* "*") (cast_expression "(_IO_FILE **)(iVar1 + 0x44)" (( "(") (type_descriptor "_IO_FILE **" (type_identifier "_IO_FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x44)" (( "(") (binary_expression "iVar1 + 0x44" (identifier "iVar1") (+ "+") (number_literal "0x44")) () ")")))) () ")")))) (; ";")) (if_statement "if (uVar2 == 0xffffffff) goto LAB_0004453a;" (if "if") (parenthesized_expression "(uVar2 == 0xffffffff)" (( "(") (binary_expression "uVar2 == 0xffffffff" (identifier "uVar2") (== "==") (number_literal "0xffffffff")) () ")")) (goto_statement "goto LAB_0004453a;" (goto "goto") (statement_identifier "LAB_0004453a") (; ";"))) (} "}")) (else_clause "else {\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }" (else "else") (compound_statement "{\n    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);\n    if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }\n    uVar2 = (uint)*pbVar3;\n  }" ({ "{") (expression_statement "pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);" (assignment_expression "pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18)" (identifier "pbVar3") (= "=") (cast_expression "(byte *)ReadBlobStream(param_1,1,&local_11,&local_18)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "ReadBlobStream(param_1,1,&local_11,&local_18)" (identifier "ReadBlobStream") (argument_list "(param_1,1,&local_11,&local_18)" (( "(") (identifier "param_1") (, ",") (number_literal "1") (, ",") (pointer_expression "&local_11" (& "&") (identifier "local_11")) (, ",") (pointer_expression "&local_18" (& "&") (identifier "local_18")) () ")"))))) (; ";")) (if_statement "if (local_18 != 1) {\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }" (if "if") (parenthesized_expression "(local_18 != 1)" (( "(") (binary_expression "local_18 != 1" (identifier "local_18") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      uVar2 = 0xffffffff;\n      goto LAB_0004453a;\n    }" ({ "{") (expression_statement "uVar2 = 0xffffffff;" (assignment_expression "uVar2 = 0xffffffff" (identifier "uVar2") (= "=") (number_literal "0xffffffff")) (; ";")) (goto_statement "goto LAB_0004453a;" (goto "goto") (statement_identifier "LAB_0004453a") (; ";")) (} "}"))) (expression_statement "uVar2 = (uint)*pbVar3;" (assignment_expression "uVar2 = (uint)*pbVar3" (identifier "uVar2") (= "=") (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3"))) (; ";")) (} "}")))) (expression_statement "uVar2 = uVar2 & 0xff;" (assignment_expression "uVar2 = uVar2 & 0xff" (identifier "uVar2") (= "=") (binary_expression "uVar2 & 0xff" (identifier "uVar2") (& "&") (number_literal "0xff"))) (; ";")) (labeled_statement "LAB_0004453a:\n  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar2;\n  }" (statement_identifier "LAB_0004453a") (: ":") (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 "()" (( "(") () ")"))) (; ";")) (} "}")))

/* 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 */

int function_1(type_1 *var_2)

{
  int var_12;
  type_2 *var_4;
  type_3 var_8;
  type_4 *var_11;
  int var_1;
  ssize_t var_10;
  type_5 buffer [1];
  
  var_12 = *(int *)(var_1 + 0x14);
  if (var_2 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("image != (Image *) NULL","MagickCore/blob.c",0xf81,"ReadBlobByte");
  }
  if (var_2->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_3("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"ReadBlobByte"
                 );
  }
  var_4 = var_2->blob;
  if (var_4 == (type_2 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_3("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"ReadBlobByte");
  }
  if (var_4->type == var_5) {
                    /* WARNING: Subroutine does not return */
    var_3("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"ReadBlobByte");
  }
  if (var_4->type - var_6 < 3) {
    var_8 = var_7((type_6 *)(var_4->file_info).file);
    if (var_8 == 0xffffffff) goto LAB_0004453a;
  }
  else {
    var_11 = (type_4 *)var_9(var_2,1,buffer,&var_10);
    if (var_10 != 1) {
      var_8 = 0xffffffff;
      goto LAB_0004453a;
    }
    var_8 = (type_3)*var_11;
  }
  var_8 = var_8 & 0xff;
LAB_0004453a:
  if (var_12 == *(int *)(var_1 + 0x14)) {
    return var_8;
  }
                    /* WARNING: Subroutine does not return */
  var_13();
}


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

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

uint MASKED(int param_1)

{
  int iVar1;
  uint uVar2;
  byte *pbVar3;
  int in_GS_OFFSET;
  int local_18;
  undefined1 local_11;
  int local_10;
  undefined4 uStack_8;
  
  uStack_8 = 0x444d6;
  local_10 = *(int *)(in_GS_OFFSET + 0x14);
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0xf81,"MASKED");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0xf82,"MASKED"
                 );
  }
  iVar1 = *(int *)(param_1 + 0x3320);
  if (iVar1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->blob != (BlobInfo *) NULL","MagickCore/blob.c",0xf83,"MASKED");
  }
  if (*(int *)(iVar1 + 0x40) == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->blob->type != UndefinedStream","MagickCore/blob.c",0xf84,"MASKED");
  }
  if (*(int *)(iVar1 + 0x40) - 1U < 3) {
    uVar2 = _IO_getc(*(_IO_FILE **)(iVar1 + 0x44));
    if (uVar2 == 0xffffffff) goto LAB_0004453a;
  }
  else {
    pbVar3 = (byte *)ReadBlobStream(param_1,1,&local_11,&local_18);
    if (local_18 != 1) {
      uVar2 = 0xffffffff;
      goto LAB_0004453a;
    }
    uVar2 = (uint)*pbVar3;
  }
  uVar2 = uVar2 & 0xff;
LAB_0004453a:
  if (local_10 == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0029eab0();
}

