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

char * ReadBlobString(Image *image,char *string)

{
  int iVar1;
  int iVar2;
  char *pcVar3;
  char *pcVar4;
  
  if (image == (Image *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");
  }
  if (image->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,
                  "ReadBlobString");
  }
  iVar2 = 0;
  pcVar3 = string;
  while( true ) {
    iVar1 = ReadBlobByte(image);
    if (iVar1 == -1) {
      pcVar4 = string + iVar2;
      if (iVar2 == 0) {
        return (char *)0x0;
      }
      goto LAB_00044db0;
    }
    *pcVar3 = (char)iVar1;
    if (iVar1 == 10) break;
    iVar2 = iVar2 + 1;
    pcVar3 = pcVar3 + 1;
    if (iVar2 == 0xfff) {
      pcVar4 = string + 0xfff;
LAB_00044db0:
      *pcVar4 = '\0';
      return string;
    }
  }
  pcVar4 = string;
  if ((iVar2 != 0) && (pcVar4 = pcVar3, string[iVar2 + -1] == '\r')) {
    pcVar4 = string + iVar2 + -1;
  }
  goto LAB_00044db0;
}



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

undefined1 * ReadBlobString(int param_1,undefined1 *param_2)

{
  int iVar1;
  int iVar2;
  undefined1 *puVar3;
  undefined1 *puVar4;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,
                  "ReadBlobString");
  }
  iVar2 = 0;
  puVar3 = param_2;
  while( true ) {
    iVar1 = ReadBlobByte(param_1);
    if (iVar1 == -1) {
      puVar4 = param_2 + iVar2;
      if (iVar2 == 0) {
        return (undefined1 *)0x0;
      }
      goto LAB_00044db0;
    }
    *puVar3 = (char)iVar1;
    if (iVar1 == 10) break;
    iVar2 = iVar2 + 1;
    puVar3 = puVar3 + 1;
    if (iVar2 == 0xfff) {
      puVar4 = param_2 + 0xfff;
LAB_00044db0:
      *puVar4 = 0;
      return param_2;
    }
  }
  puVar4 = param_2;
  if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {
    puVar4 = param_2 + iVar2 + -1;
  }
  goto LAB_00044db0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00038830
ADD EBX,0x3942b7
SUB ESP,0xc
MOV EDI,dword ptr [ESP + 0x20]
TEST EDI,EDI
JZ 0x00044df0
CMP dword ptr [EDI + 0x3344],0xabacadab
JNZ 0x00044e0f
MOV ESI,dword ptr [ESP + 0x24]
XOR EBP,EBP
JMP 0x00044d95
MOV byte ptr [ESI],AL
CMP EAX,0xa
JZ 0x00044dc0
ADD EBP,0x1
ADD ESI,0x1
CMP EBP,0xfff
JZ 0x00044de0
SUB ESP,0xc
PUSH EDI
CALL 0x00030c90
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x00044d80
MOV ESI,dword ptr [ESP + 0x24]
ADD ESI,EBP
TEST EBP,EBP
JZ 0x00044dec
MOV EAX,dword ptr [ESP + 0x24]
MOV byte ptr [ESI],0x0
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
TEST EBP,EBP
JZ 0x00044dd8
MOV EAX,dword ptr [ESP + 0x24]
CMP byte ptr [EAX + EBP*0x1 + -0x1],0xd
JNZ 0x00044db0
LEA ESI,[EAX + EBP*0x1 + -0x1]
JMP 0x00044db0
MOV ESI,dword ptr [ESP + 0x24]
JMP 0x00044db0
MOV EAX,dword ptr [ESP + 0x24]
LEA ESI,[EAX + 0xfff]
JMP 0x00044db0
XOR EAX,EAX
JMP 0x00044db7
LEA EAX,[EBX + 0xffec6f4c]
PUSH EAX
LEA EAX,[EBX + 0xffec6758]
PUSH 0x12e7
PUSH EAX
LEA EAX,[EBX + 0xffede594]
PUSH EAX
CALL 0x000313d0
LEA EAX,[EBX + 0xffec6f4c]
PUSH EAX
LEA EAX,[EBX + 0xffec6758]
PUSH 0x12e8
PUSH EAX
LEA EAX,[EBX + 0xffed1338]
PUSH EAX
CALL 0x000313d0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined1 * ReadBlobString(int param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\n  }\n  iVar2 = 0;\n  puVar3 = param_2;\n  while( true ) {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }\n  puVar4 = param_2;\n  if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {\n    puVar4 = param_2 + iVar2 + -1;\n  }\n  goto LAB_00044db0;\n}\n\n" comment (function_definition "undefined1 * ReadBlobString(int param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\n  }\n  iVar2 = 0;\n  puVar3 = param_2;\n  while( true ) {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }\n  puVar4 = param_2;\n  if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {\n    puVar4 = param_2 + iVar2 + -1;\n  }\n  goto LAB_00044db0;\n}" type_identifier (pointer_declarator "* ReadBlobString(int param_1,undefined1 *param_2)" * (function_declarator "ReadBlobString(int param_1,undefined1 *param_2)" identifier (parameter_list "(int param_1,undefined1 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\n  }\n  iVar2 = 0;\n  puVar3 = param_2;\n  while( true ) {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }\n  puVar4 = param_2;\n  if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {\n    puVar4 = param_2 + iVar2 + -1;\n  }\n  goto LAB_00044db0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (param_1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\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",0x12e7,"ReadBlobString");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString")" identifier (argument_list "("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobString"" " 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",0x12e8,\n                  "ReadBlobString");\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",0x12e8,\n                  "ReadBlobString");\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobString"" " string_content ") ))) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = param_2;" (assignment_expression "puVar3 = param_2" identifier = identifier) ;) (while_statement "while( true ) {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }" { (expression_statement "iVar1 = ReadBlobByte(param_1);" (assignment_expression "iVar1 = ReadBlobByte(param_1)" identifier = (call_expression "ReadBlobByte(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }" { (expression_statement "puVar4 = param_2 + iVar2;" (assignment_expression "puVar4 = param_2 + iVar2" identifier = (binary_expression "param_2 + iVar2" identifier + identifier)) ;) (if_statement "if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return (undefined1 *)0x0;\n      }" { (return_statement "return (undefined1 *)0x0;" return (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (goto_statement "goto LAB_00044db0;" goto statement_identifier ;) })) (expression_statement "*puVar3 = (char)iVar1;" (assignment_expression "*puVar3 = (char)iVar1" (pointer_expression "*puVar3" * identifier) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (iVar1 == 10) break;" if (parenthesized_expression "(iVar1 == 10)" ( (binary_expression "iVar1 == 10" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }" if (parenthesized_expression "(iVar2 == 0xfff)" ( (binary_expression "iVar2 == 0xfff" identifier == number_literal) )) (compound_statement "{\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }" { (expression_statement "puVar4 = param_2 + 0xfff;" (assignment_expression "puVar4 = param_2 + 0xfff" identifier = (binary_expression "param_2 + 0xfff" identifier + number_literal)) ;) (labeled_statement "LAB_00044db0:\n      *puVar4 = 0;" statement_identifier : (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;)) (return_statement "return param_2;" return identifier ;) })) })) (expression_statement "puVar4 = param_2;" (assignment_expression "puVar4 = param_2" identifier = identifier) ;) (if_statement "if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {\n    puVar4 = param_2 + iVar2 + -1;\n  }" if (parenthesized_expression "((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r'))" ( (binary_expression "(iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(puVar4 = puVar3, param_2[iVar2 + -1] == '\r')" ( (comma_expression "puVar4 = puVar3, param_2[iVar2 + -1] == '\r'" (assignment_expression "puVar4 = puVar3" identifier = identifier) , (binary_expression "param_2[iVar2 + -1] == '\r'" (subscript_expression "param_2[iVar2 + -1]" identifier [ (binary_expression "iVar2 + -1" identifier + number_literal) ]) == (char_literal "'\r'" ' escape_sequence '))) ))) )) (compound_statement "{\n    puVar4 = param_2 + iVar2 + -1;\n  }" { (expression_statement "puVar4 = param_2 + iVar2 + -1;" (assignment_expression "puVar4 = param_2 + iVar2 + -1" identifier = (binary_expression "param_2 + iVar2 + -1" (binary_expression "param_2 + iVar2" identifier + identifier) + number_literal)) ;) })) (goto_statement "goto LAB_00044db0;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "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\nchar * ReadBlobString(Image *image,char *string)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\n  }\n  iVar2 = 0;\n  pcVar3 = string;\n  while( true ) {\n    iVar1 = ReadBlobByte(image);\n    if (iVar1 == -1) {\n      pcVar4 = string + iVar2;\n      if (iVar2 == 0) {\n        return (char *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *pcVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    pcVar3 = pcVar3 + 1;\n    if (iVar2 == 0xfff) {\n      pcVar4 = string + 0xfff;\nLAB_00044db0:\n      *pcVar4 = '\0';\n      return string;\n    }\n  }\n  pcVar4 = string;\n  if ((iVar2 != 0) && (pcVar4 = pcVar3, string[iVar2 + -1] == '\r')) {\n    pcVar4 = string + iVar2 + -1;\n  }\n  goto LAB_00044db0;\n}\n\n" comment comment comment comment comment comment (function_definition "char * ReadBlobString(Image *image,char *string)\n\n{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\n  }\n  iVar2 = 0;\n  pcVar3 = string;\n  while( true ) {\n    iVar1 = ReadBlobByte(image);\n    if (iVar1 == -1) {\n      pcVar4 = string + iVar2;\n      if (iVar2 == 0) {\n        return (char *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *pcVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    pcVar3 = pcVar3 + 1;\n    if (iVar2 == 0xfff) {\n      pcVar4 = string + 0xfff;\nLAB_00044db0:\n      *pcVar4 = '\0';\n      return string;\n    }\n  }\n  pcVar4 = string;\n  if ((iVar2 != 0) && (pcVar4 = pcVar3, string[iVar2 + -1] == '\r')) {\n    pcVar4 = string + iVar2 + -1;\n  }\n  goto LAB_00044db0;\n}" primitive_type (pointer_declarator "* ReadBlobString(Image *image,char *string)" * (function_declarator "ReadBlobString(Image *image,char *string)" identifier (parameter_list "(Image *image,char *string)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  char *pcVar3;\n  char *pcVar4;\n  \n  if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\n  }\n  if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\n  }\n  iVar2 = 0;\n  pcVar3 = string;\n  while( true ) {\n    iVar1 = ReadBlobByte(image);\n    if (iVar1 == -1) {\n      pcVar4 = string + iVar2;\n      if (iVar2 == 0) {\n        return (char *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *pcVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    pcVar3 = pcVar3 + 1;\n    if (iVar2 == 0xfff) {\n      pcVar4 = string + 0xfff;\nLAB_00044db0:\n      *pcVar4 = '\0';\n      return string;\n    }\n  }\n  pcVar4 = string;\n  if ((iVar2 != 0) && (pcVar4 = pcVar3, string[iVar2 + -1] == '\r')) {\n    pcVar4 = string + iVar2 + -1;\n  }\n  goto LAB_00044db0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (if_statement "if (image == (Image *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\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",0x12e7,"ReadBlobString");\n  }" { comment (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString")" identifier (argument_list "("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobString"" " string_content ") ))) ;) })) (if_statement "if (image->signature != 0xabacadab) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\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",0x12e8,\n                  "ReadBlobString");\n  }" { comment (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobString"" " string_content ") ))) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "pcVar3 = string;" (assignment_expression "pcVar3 = string" identifier = identifier) ;) (while_statement "while( true ) {\n    iVar1 = ReadBlobByte(image);\n    if (iVar1 == -1) {\n      pcVar4 = string + iVar2;\n      if (iVar2 == 0) {\n        return (char *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *pcVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    pcVar3 = pcVar3 + 1;\n    if (iVar2 == 0xfff) {\n      pcVar4 = string + 0xfff;\nLAB_00044db0:\n      *pcVar4 = '\0';\n      return string;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = ReadBlobByte(image);\n    if (iVar1 == -1) {\n      pcVar4 = string + iVar2;\n      if (iVar2 == 0) {\n        return (char *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *pcVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    pcVar3 = pcVar3 + 1;\n    if (iVar2 == 0xfff) {\n      pcVar4 = string + 0xfff;\nLAB_00044db0:\n      *pcVar4 = '\0';\n      return string;\n    }\n  }" { (expression_statement "iVar1 = ReadBlobByte(image);" (assignment_expression "iVar1 = ReadBlobByte(image)" identifier = (call_expression "ReadBlobByte(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (iVar1 == -1) {\n      pcVar4 = string + iVar2;\n      if (iVar2 == 0) {\n        return (char *)0x0;\n      }\n      goto LAB_00044db0;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      pcVar4 = string + iVar2;\n      if (iVar2 == 0) {\n        return (char *)0x0;\n      }\n      goto LAB_00044db0;\n    }" { (expression_statement "pcVar4 = string + iVar2;" (assignment_expression "pcVar4 = string + iVar2" identifier = (binary_expression "string + iVar2" identifier + identifier)) ;) (if_statement "if (iVar2 == 0) {\n        return (char *)0x0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return (char *)0x0;\n      }" { (return_statement "return (char *)0x0;" return (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (goto_statement "goto LAB_00044db0;" goto statement_identifier ;) })) (expression_statement "*pcVar3 = (char)iVar1;" (assignment_expression "*pcVar3 = (char)iVar1" (pointer_expression "*pcVar3" * identifier) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (iVar1 == 10) break;" if (parenthesized_expression "(iVar1 == 10)" ( (binary_expression "iVar1 == 10" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "pcVar3 = pcVar3 + 1;" (assignment_expression "pcVar3 = pcVar3 + 1" identifier = (binary_expression "pcVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0xfff) {\n      pcVar4 = string + 0xfff;\nLAB_00044db0:\n      *pcVar4 = '\0';\n      return string;\n    }" if (parenthesized_expression "(iVar2 == 0xfff)" ( (binary_expression "iVar2 == 0xfff" identifier == number_literal) )) (compound_statement "{\n      pcVar4 = string + 0xfff;\nLAB_00044db0:\n      *pcVar4 = '\0';\n      return string;\n    }" { (expression_statement "pcVar4 = string + 0xfff;" (assignment_expression "pcVar4 = string + 0xfff" identifier = (binary_expression "string + 0xfff" identifier + number_literal)) ;) (labeled_statement "LAB_00044db0:\n      *pcVar4 = '\0';" statement_identifier : (expression_statement "*pcVar4 = '\0';" (assignment_expression "*pcVar4 = '\0'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;)) (return_statement "return string;" return identifier ;) })) })) (expression_statement "pcVar4 = string;" (assignment_expression "pcVar4 = string" identifier = identifier) ;) (if_statement "if ((iVar2 != 0) && (pcVar4 = pcVar3, string[iVar2 + -1] == '\r')) {\n    pcVar4 = string + iVar2 + -1;\n  }" if (parenthesized_expression "((iVar2 != 0) && (pcVar4 = pcVar3, string[iVar2 + -1] == '\r'))" ( (binary_expression "(iVar2 != 0) && (pcVar4 = pcVar3, string[iVar2 + -1] == '\r')" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(pcVar4 = pcVar3, string[iVar2 + -1] == '\r')" ( (comma_expression "pcVar4 = pcVar3, string[iVar2 + -1] == '\r'" (assignment_expression "pcVar4 = pcVar3" identifier = identifier) , (binary_expression "string[iVar2 + -1] == '\r'" (subscript_expression "string[iVar2 + -1]" identifier [ (binary_expression "iVar2 + -1" identifier + number_literal) ]) == (char_literal "'\r'" ' escape_sequence '))) ))) )) (compound_statement "{\n    pcVar4 = string + iVar2 + -1;\n  }" { (expression_statement "pcVar4 = string + iVar2 + -1;" (assignment_expression "pcVar4 = string + iVar2 + -1" identifier = (binary_expression "string + iVar2 + -1" (binary_expression "string + iVar2" identifier + identifier) + number_literal)) ;) })) (goto_statement "goto LAB_00044db0;" goto statement_identifier ;) })))
(translation_unit "undefined1 * ReadBlobString(int param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\n  }\n  iVar2 = 0;\n  puVar3 = param_2;\n  while( true ) {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }\n  puVar4 = param_2;\n  if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {\n    puVar4 = param_2 + iVar2 + -1;\n  }\n  goto LAB_00044db0;\n}\n\n" (function_definition "undefined1 * ReadBlobString(int param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\n  }\n  iVar2 = 0;\n  puVar3 = param_2;\n  while( true ) {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }\n  puVar4 = param_2;\n  if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {\n    puVar4 = param_2 + iVar2 + -1;\n  }\n  goto LAB_00044db0;\n}" type_identifier (pointer_declarator "* ReadBlobString(int param_1,undefined1 *param_2)" * (function_declarator "ReadBlobString(int param_1,undefined1 *param_2)" identifier (parameter_list "(int param_1,undefined1 *param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined1 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) )))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\n  }\n  iVar2 = 0;\n  puVar3 = param_2;\n  while( true ) {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }\n  puVar4 = param_2;\n  if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {\n    puVar4 = param_2 + iVar2 + -1;\n  }\n  goto LAB_00044db0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\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",0x12e7,"ReadBlobString");\n  }" { (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString")" identifier (argument_list "("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString")" ( (string_literal ""image != (Image *) NULL"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobString"" " string_content ") ))) ;) })) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\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",0x12e8,\n                  "ReadBlobString");\n  }" { (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString")" identifier (argument_list "("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString")" ( (string_literal ""image->signature == MagickCoreSignature"" " string_content ") , (string_literal ""MagickCore/blob.c"" " string_content ") , number_literal , (string_literal ""ReadBlobString"" " string_content ") ))) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "puVar3 = param_2;" (assignment_expression "puVar3 = param_2" identifier = identifier) ;) (while_statement "while( true ) {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }" { (expression_statement "iVar1 = ReadBlobByte(param_1);" (assignment_expression "iVar1 = ReadBlobByte(param_1)" identifier = (call_expression "ReadBlobByte(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }" { (expression_statement "puVar4 = param_2 + iVar2;" (assignment_expression "puVar4 = param_2 + iVar2" identifier = (binary_expression "param_2 + iVar2" identifier + identifier)) ;) (if_statement "if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        return (undefined1 *)0x0;\n      }" { (return_statement "return (undefined1 *)0x0;" return (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (goto_statement "goto LAB_00044db0;" goto statement_identifier ;) })) (expression_statement "*puVar3 = (char)iVar1;" (assignment_expression "*puVar3 = (char)iVar1" (pointer_expression "*puVar3" * identifier) = (cast_expression "(char)iVar1" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (iVar1 == 10) break;" if (parenthesized_expression "(iVar1 == 10)" ( (binary_expression "iVar1 == 10" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" identifier = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }" if (parenthesized_expression "(iVar2 == 0xfff)" ( (binary_expression "iVar2 == 0xfff" identifier == number_literal) )) (compound_statement "{\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }" { (expression_statement "puVar4 = param_2 + 0xfff;" (assignment_expression "puVar4 = param_2 + 0xfff" identifier = (binary_expression "param_2 + 0xfff" identifier + number_literal)) ;) (labeled_statement "LAB_00044db0:\n      *puVar4 = 0;" statement_identifier : (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" * identifier) = number_literal) ;)) (return_statement "return param_2;" return identifier ;) })) })) (expression_statement "puVar4 = param_2;" (assignment_expression "puVar4 = param_2" identifier = identifier) ;) (if_statement "if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {\n    puVar4 = param_2 + iVar2 + -1;\n  }" if (parenthesized_expression "((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r'))" ( (binary_expression "(iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(puVar4 = puVar3, param_2[iVar2 + -1] == '\r')" ( (comma_expression "puVar4 = puVar3, param_2[iVar2 + -1] == '\r'" (assignment_expression "puVar4 = puVar3" identifier = identifier) , (binary_expression "param_2[iVar2 + -1] == '\r'" (subscript_expression "param_2[iVar2 + -1]" identifier [ (binary_expression "iVar2 + -1" identifier + number_literal) ]) == (char_literal "'\r'" ' escape_sequence '))) ))) )) (compound_statement "{\n    puVar4 = param_2 + iVar2 + -1;\n  }" { (expression_statement "puVar4 = param_2 + iVar2 + -1;" (assignment_expression "puVar4 = param_2 + iVar2 + -1" identifier = (binary_expression "param_2 + iVar2 + -1" (binary_expression "param_2 + iVar2" identifier + identifier) + number_literal)) ;) })) (goto_statement "goto LAB_00044db0;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (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 = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;)) (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) == (char_literal ' escape_sequence '))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) })) (goto_statement goto statement_identifier ;) })))
(function_definition "undefined1 * ReadBlobString(int param_1,undefined1 *param_2)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\n  }\n  iVar2 = 0;\n  puVar3 = param_2;\n  while( true ) {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }\n  puVar4 = param_2;\n  if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {\n    puVar4 = param_2 + iVar2 + -1;\n  }\n  goto LAB_00044db0;\n}" (type_identifier "undefined1") (pointer_declarator "* ReadBlobString(int param_1,undefined1 *param_2)" (* "*") (function_declarator "ReadBlobString(int param_1,undefined1 *param_2)" (identifier "ReadBlobString") (parameter_list "(int param_1,undefined1 *param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined1 *param_2" (type_identifier "undefined1") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) () ")")))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined1 *puVar3;\n  undefined1 *puVar4;\n  \n  if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\n  }\n  if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\n  }\n  iVar2 = 0;\n  puVar3 = param_2;\n  while( true ) {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }\n  puVar4 = param_2;\n  if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {\n    puVar4 = param_2 + iVar2 + -1;\n  }\n  goto LAB_00044db0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (if_statement "if (param_1 == 0) {\n                    \n    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");\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",0x12e7,"ReadBlobString");\n  }" ({ "{") (expression_statement "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");" (call_expression "__assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString")" (identifier "__assert_fail") (argument_list "("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString")" (( "(") (string_literal ""image != (Image *) NULL"" (" """) (string_content "image != (Image *) NULL") (" """)) (, ",") (string_literal ""MagickCore/blob.c"" (" """) (string_content "MagickCore/blob.c") (" """)) (, ",") (number_literal "0x12e7") (, ",") (string_literal ""ReadBlobString"" (" """) (string_content "ReadBlobString") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x3344) != -0x54535255) {\n                    \n    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");\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",0x12e8,\n                  "ReadBlobString");\n  }" ({ "{") (expression_statement "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString");" (call_expression "__assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString")" (identifier "__assert_fail") (argument_list "("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,\n                  "ReadBlobString")" (( "(") (string_literal ""image->signature == MagickCoreSignature"" (" """) (string_content "image->signature == MagickCoreSignature") (" """)) (, ",") (string_literal ""MagickCore/blob.c"" (" """) (string_content "MagickCore/blob.c") (" """)) (, ",") (number_literal "0x12e8") (, ",") (string_literal ""ReadBlobString"" (" """) (string_content "ReadBlobString") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3 = param_2;" (assignment_expression "puVar3 = param_2" (identifier "puVar3") (= "=") (identifier "param_2")) (; ";")) (while_statement "while( true ) {\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    iVar1 = ReadBlobByte(param_1);\n    if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }\n    *puVar3 = (char)iVar1;\n    if (iVar1 == 10) break;\n    iVar2 = iVar2 + 1;\n    puVar3 = puVar3 + 1;\n    if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }\n  }" ({ "{") (expression_statement "iVar1 = ReadBlobByte(param_1);" (assignment_expression "iVar1 = ReadBlobByte(param_1)" (identifier "iVar1") (= "=") (call_expression "ReadBlobByte(param_1)" (identifier "ReadBlobByte") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == -1) {\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      puVar4 = param_2 + iVar2;\n      if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }\n      goto LAB_00044db0;\n    }" ({ "{") (expression_statement "puVar4 = param_2 + iVar2;" (assignment_expression "puVar4 = param_2 + iVar2" (identifier "puVar4") (= "=") (binary_expression "param_2 + iVar2" (identifier "param_2") (+ "+") (identifier "iVar2"))) (; ";")) (if_statement "if (iVar2 == 0) {\n        return (undefined1 *)0x0;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return (undefined1 *)0x0;\n      }" ({ "{") (return_statement "return (undefined1 *)0x0;" (return "return") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (goto_statement "goto LAB_00044db0;" (goto "goto") (statement_identifier "LAB_00044db0") (; ";")) (} "}"))) (expression_statement "*puVar3 = (char)iVar1;" (assignment_expression "*puVar3 = (char)iVar1" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (cast_expression "(char)iVar1" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar1"))) (; ";")) (if_statement "if (iVar1 == 10) break;" (if "if") (parenthesized_expression "(iVar1 == 10)" (( "(") (binary_expression "iVar1 == 10" (identifier "iVar1") (== "==") (number_literal "10")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar2 = iVar2 + 1;" (assignment_expression "iVar2 = iVar2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" (identifier "puVar3") (= "=") (binary_expression "puVar3 + 1" (identifier "puVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar2 == 0xfff) {\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }" (if "if") (parenthesized_expression "(iVar2 == 0xfff)" (( "(") (binary_expression "iVar2 == 0xfff" (identifier "iVar2") (== "==") (number_literal "0xfff")) () ")")) (compound_statement "{\n      puVar4 = param_2 + 0xfff;\nLAB_00044db0:\n      *puVar4 = 0;\n      return param_2;\n    }" ({ "{") (expression_statement "puVar4 = param_2 + 0xfff;" (assignment_expression "puVar4 = param_2 + 0xfff" (identifier "puVar4") (= "=") (binary_expression "param_2 + 0xfff" (identifier "param_2") (+ "+") (number_literal "0xfff"))) (; ";")) (labeled_statement "LAB_00044db0:\n      *puVar4 = 0;" (statement_identifier "LAB_00044db0") (: ":") (expression_statement "*puVar4 = 0;" (assignment_expression "*puVar4 = 0" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (number_literal "0")) (; ";"))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar4 = param_2;" (assignment_expression "puVar4 = param_2" (identifier "puVar4") (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {\n    puVar4 = param_2 + iVar2 + -1;\n  }" (if "if") (parenthesized_expression "((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r'))" (( "(") (binary_expression "(iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(puVar4 = puVar3, param_2[iVar2 + -1] == '\r')" (( "(") (comma_expression "puVar4 = puVar3, param_2[iVar2 + -1] == '\r'" (assignment_expression "puVar4 = puVar3" (identifier "puVar4") (= "=") (identifier "puVar3")) (, ",") (binary_expression "param_2[iVar2 + -1] == '\r'" (subscript_expression "param_2[iVar2 + -1]" (identifier "param_2") ([ "[") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1")) (] "]")) (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'")))) () ")"))) () ")")) (compound_statement "{\n    puVar4 = param_2 + iVar2 + -1;\n  }" ({ "{") (expression_statement "puVar4 = param_2 + iVar2 + -1;" (assignment_expression "puVar4 = param_2 + iVar2 + -1" (identifier "puVar4") (= "=") (binary_expression "param_2 + iVar2 + -1" (binary_expression "param_2 + iVar2" (identifier "param_2") (+ "+") (identifier "iVar2")) (+ "+") (number_literal "-1"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00044db0;" (goto "goto") (statement_identifier "LAB_00044db0") (; ";")) (} "}")))

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

char * function_1(type_1 *var_1,char *var_5)

{
  int var_4;
  int var_6;
  char *var_7;
  char *pcVar4;
  
  if (var_1 == (type_1 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"ReadBlobString");
  }
  if (var_1->signature != 0xabacadab) {
                    /* WARNING: Subroutine does not return */
    var_2("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,
                  "ReadBlobString");
  }
  var_6 = 0;
  var_7 = var_5;
  while( true ) {
    var_4 = var_3(var_1);
    if (var_4 == -1) {
      pcVar4 = var_5 + var_6;
      if (var_6 == 0) {
        return (char *)0x0;
      }
      goto LAB_00044db0;
    }
    *var_7 = (char)var_4;
    if (var_4 == 10) break;
    var_6 = var_6 + 1;
    var_7 = var_7 + 1;
    if (var_6 == 0xfff) {
      pcVar4 = var_5 + 0xfff;
LAB_00044db0:
      *pcVar4 = '\0';
      return var_5;
    }
  }
  pcVar4 = var_5;
  if ((var_6 != 0) && (pcVar4 = var_7, var_5[var_6 + -1] == '\r')) {
    pcVar4 = var_5 + var_6 + -1;
  }
  goto LAB_00044db0;
}


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

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

undefined1 * MASKED(int param_1,undefined1 *param_2)

{
  int iVar1;
  int iVar2;
  undefined1 *puVar3;
  undefined1 *puVar4;
  
  if (param_1 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image != (Image *) NULL","MagickCore/blob.c",0x12e7,"MASKED");
  }
  if (*(int *)(param_1 + 0x3344) != -0x54535255) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("image->signature == MagickCoreSignature","MagickCore/blob.c",0x12e8,
                  "MASKED");
  }
  iVar2 = 0;
  puVar3 = param_2;
  while( true ) {
    iVar1 = ReadBlobByte(param_1);
    if (iVar1 == -1) {
      puVar4 = param_2 + iVar2;
      if (iVar2 == 0) {
        return (undefined1 *)0x0;
      }
      goto LAB_00044db0;
    }
    *puVar3 = (char)iVar1;
    if (iVar1 == 10) break;
    iVar2 = iVar2 + 1;
    puVar3 = puVar3 + 1;
    if (iVar2 == 0xfff) {
      puVar4 = param_2 + 0xfff;
LAB_00044db0:
      *puVar4 = 0;
      return param_2;
    }
  }
  puVar4 = param_2;
  if ((iVar2 != 0) && (puVar4 = puVar3, param_2[iVar2 + -1] == '\r')) {
    puVar4 = param_2 + iVar2 + -1;
  }
  goto LAB_00044db0;
}

