
/* 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 */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

MagickBooleanType
SkipDXTMipmaps(Image *image,DDSInfo *dds_info,int texel_size,ExceptionInfo *exception)

{
  int iVar1;
  MagickBooleanType MVar2;
  int *piVar3;
  char *string;
  MagickOffsetType MVar4;
  ulong uVar5;
  ulong uVar6;
  long lVar7;
  
  iVar1 = EOFBlob(image);
  if (iVar1 == 0) {
    MVar2 = MagickTrue;
    if (((dds_info->ddscaps1 & 0x400000) != 0) &&
       (((dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0)))) {
      uVar5 = dds_info->width >> 1;
      if (dds_info->width < 2) {
        uVar5 = 1;
      }
      uVar6 = dds_info->height >> 1;
      if (dds_info->height < 2) {
        uVar6 = 1;
      }
      if ((long)dds_info->mipmapcount < 2) {
        MVar2 = MagickTrue;
      }
      else if ((uVar5 == 0) || (uVar6 == 0)) {
        MVar2 = MagickTrue;
      }
      else {
        lVar7 = 1;
        do {
          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);
          if (MVar4 < 0) {
            return MagickTrue;
          }
          if (uVar5 < 2) {
            if (uVar6 < 2) {
              return MagickTrue;
            }
            uVar5 = 1;
LAB_003439e6:
            uVar6 = uVar6 >> 1;
          }
          else {
            uVar5 = uVar5 >> 1;
            if (1 < uVar6) goto LAB_003439e6;
            uVar6 = 1;
          }
          if ((uVar5 == 1) && (uVar6 == 1)) {
            return MagickTrue;
          }
          lVar7 = lVar7 + 1;
          if ((long)dds_info->mipmapcount <= lVar7) {
            return MagickTrue;
          }
        } while (uVar5 != 0 && uVar6 != 0);
        MVar2 = MagickTrue;
      }
    }
  }
  else {
    piVar3 = __errno_location();
    string = GetExceptionMessage(*piVar3);
    ThrowMagickException
              (exception,"coders/dds.c","SkipDXTMipmaps",0x4b6,CorruptImageWarning,
               "UnexpectedEndOfFile","\'%s\': %s",image->filename,string);
    DestroyString(string);
    MVar2 = MagickFalse;
  }
  return MVar2;
}



undefined8 FUN_0034389e(long param_1,long param_2,int param_3,undefined8 param_4)

{
  int iVar1;
  undefined8 uVar2;
  int *piVar3;
  long lVar4;
  ulong uVar5;
  ulong uVar6;
  long lVar7;
  
  iVar1 = EOFBlob();
  if (iVar1 == 0) {
    uVar2 = 1;
    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&
       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {
      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;
      if (*(ulong *)(param_2 + 0x10) < 2) {
        uVar5 = 1;
      }
      uVar6 = *(ulong *)(param_2 + 8) >> 1;
      if (*(ulong *)(param_2 + 8) < 2) {
        uVar6 = 1;
      }
      if (*(long *)(param_2 + 0x28) < 2) {
        uVar2 = 1;
      }
      else if ((uVar5 == 0) || (uVar6 == 0)) {
        uVar2 = 1;
      }
      else {
        lVar7 = 1;
        do {
          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);
          if (lVar4 < 0) {
            return 1;
          }
          if (uVar5 < 2) {
            if (uVar6 < 2) {
              return 1;
            }
            uVar5 = 1;
LAB_003439e6:
            uVar6 = uVar6 >> 1;
          }
          else {
            uVar5 = uVar5 >> 1;
            if (1 < uVar6) goto LAB_003439e6;
            uVar6 = 1;
          }
          if ((uVar5 == 1) && (uVar6 == 1)) {
            return 1;
          }
          lVar7 = lVar7 + 1;
          if (*(long *)(param_2 + 0x28) <= lVar7) {
            return 1;
          }
        } while (uVar5 != 0 && uVar6 != 0);
        uVar2 = 1;
      }
    }
  }
  else {
    piVar3 = __errno_location();
    uVar2 = GetExceptionMessage(*piVar3);
    ThrowMagickException
              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",
               "\'%s\': %s",param_1 + 0x3f8,uVar2);
    DestroyString(uVar2);
    uVar2 = 0;
  }
  return uVar2;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV R13,RDI
MOV R14,RSI
MOV R15D,EDX
MOV RBX,RCX
CALL 0x0014a540
TEST EAX,EAX
JNZ 0x0034393f
MOV RDX,qword ptr [R14 + 0x30]
MOV EAX,0x1
TEST EDX,0x400000
JZ 0x003439a2
TEST DH,0x10
JNZ 0x003438e6
TEST byte ptr [R14 + 0x39],0x2
JZ 0x003439a2
MOV RAX,qword ptr [R14 + 0x10]
MOV RBX,RAX
SHR RBX,0x1
CMP RAX,0x1
MOV EAX,0x1
CMOVBE RBX,RAX
MOV RAX,qword ptr [R14 + 0x8]
MOV RBP,RAX
SHR RBP,0x1
CMP RAX,0x1
MOV EAX,0x1
CMOVBE RBP,RAX
CMP qword ptr [R14 + 0x28],0x1
JLE 0x003439b8
TEST RBX,RBX
JZ 0x003439bf
TEST RBP,RBP
JZ 0x003439bf
MOV R12D,0x1
MOVSXD R15,R15D
JMP 0x00343a0f
CALL 0x0014c2f0
MOV EDI,dword ptr [RAX]
CALL 0x0014b460
MOV RBP,RAX
SUB RSP,0x8
PUSH RAX
ADD R13,0x3f8
PUSH R13
LEA RAX,[0x3f86ec]
PUSH RAX
LEA R9,[0x43a120]
MOV R8D,0x145
MOV ECX,0x4b6
LEA RDX,[0x446c68]
LEA RSI,[0x446b25]
MOV RDI,RBX
MOV EAX,0x0
CALL 0x0014cb70
ADD RSP,0x20
MOV RDI,RBP
CALL 0x0014c570
MOV EAX,0x0
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV EAX,0x1
JMP 0x003439a2
MOV EAX,0x1
JMP 0x003439a2
MOV EAX,0x1
JMP 0x003439a2
MOV EAX,0x1
JMP 0x003439a2
MOV EAX,0x1
JMP 0x003439a2
MOV EAX,0x1
JMP 0x003439a2
CMP RBP,0x1
JBE 0x00343a4f
MOV EBX,0x1
SHR RBP,0x1
CMP RBX,0x1
JNZ 0x003439f5
CMP RBP,0x1
JZ 0x003439cd
ADD R12,0x1
CMP qword ptr [R14 + 0x28],R12
JLE 0x003439d4
TEST RBX,RBX
SETNZ DL
TEST RBP,RBP
SETNZ AL
TEST DL,AL
JZ 0x003439b1
LEA RSI,[RBX + 0x3]
SHR RSI,0x2
LEA RAX,[RBP + 0x3]
SHR RAX,0x2
IMUL RSI,RAX
IMUL RSI,R15
MOV EDX,0x1
MOV RDI,R13
CALL 0x0014b7f0
TEST RAX,RAX
JS 0x003439c6
CMP RBX,0x1
JBE 0x003439db
SHR RBX,0x1
CMP RBP,0x1
JA 0x003439e6
MOV EBP,0x1
JMP 0x003439e9
MOV EAX,0x1
JMP 0x003439a2
(translation_unit "undefined8 FUN_0034389e(long param_1,long param_2,int param_3,undefined8 param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  ulong uVar6;\n  long lVar7;\n  \n  iVar1 = EOFBlob();\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined8 FUN_0034389e(long param_1,long param_2,int param_3,undefined8 param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  ulong uVar6;\n  long lVar7;\n  \n  iVar1 = EOFBlob();\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0034389e(long param_1,long param_2,int param_3,undefined8 param_4)" identifier (parameter_list "(long param_1,long param_2,int param_3,undefined8 param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  ulong uVar6;\n  long lVar7;\n  \n  iVar1 = EOFBlob();\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar1 = EOFBlob();" (assignment_expression "iVar1 = EOFBlob()" identifier = (call_expression "EOFBlob()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }" if (parenthesized_expression "(((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0))))" ( (binary_expression "((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))" (parenthesized_expression "((*(ulong *)(param_2 + 0x30) & 0x400000) != 0)" ( (binary_expression "(*(ulong *)(param_2 + 0x30) & 0x400000) != 0" (parenthesized_expression "(*(ulong *)(param_2 + 0x30) & 0x400000)" ( (binary_expression "*(ulong *)(param_2 + 0x30) & 0x400000" (pointer_expression "*(ulong *)(param_2 + 0x30)" * (cast_expression "(ulong *)(param_2 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))" ( (parenthesized_expression "((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0))" ( (binary_expression "(*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)" (binary_expression "(*(ulong *)(param_2 + 0x30) & 0x1000) != 0" (parenthesized_expression "(*(ulong *)(param_2 + 0x30) & 0x1000)" ( (binary_expression "*(ulong *)(param_2 + 0x30) & 0x1000" (pointer_expression "*(ulong *)(param_2 + 0x30)" * (cast_expression "(ulong *)(param_2 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) & number_literal) )) != number_literal) || (parenthesized_expression "((*(byte *)(param_2 + 0x39) & 2) != 0)" ( (binary_expression "(*(byte *)(param_2 + 0x39) & 2) != 0" (parenthesized_expression "(*(byte *)(param_2 + 0x39) & 2)" ( (binary_expression "*(byte *)(param_2 + 0x39) & 2" (pointer_expression "*(byte *)(param_2 + 0x39)" * (cast_expression "(byte *)(param_2 + 0x39)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x39)" ( (binary_expression "param_2 + 0x39" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) ))) )) (compound_statement "{\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }" { (expression_statement "uVar5 = *(ulong *)(param_2 + 0x10) >> 1;" (assignment_expression "uVar5 = *(ulong *)(param_2 + 0x10) >> 1" identifier = (binary_expression "*(ulong *)(param_2 + 0x10) >> 1" (pointer_expression "*(ulong *)(param_2 + 0x10)" * (cast_expression "(ulong *)(param_2 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) >> number_literal)) ;) (if_statement "if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }" if (parenthesized_expression "(*(ulong *)(param_2 + 0x10) < 2)" ( (binary_expression "*(ulong *)(param_2 + 0x10) < 2" (pointer_expression "*(ulong *)(param_2 + 0x10)" * (cast_expression "(ulong *)(param_2 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n        uVar5 = 1;\n      }" { (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) })) (expression_statement "uVar6 = *(ulong *)(param_2 + 8) >> 1;" (assignment_expression "uVar6 = *(ulong *)(param_2 + 8) >> 1" identifier = (binary_expression "*(ulong *)(param_2 + 8) >> 1" (pointer_expression "*(ulong *)(param_2 + 8)" * (cast_expression "(ulong *)(param_2 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) >> number_literal)) ;) (if_statement "if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }" if (parenthesized_expression "(*(ulong *)(param_2 + 8) < 2)" ( (binary_expression "*(ulong *)(param_2 + 8) < 2" (pointer_expression "*(ulong *)(param_2 + 8)" * (cast_expression "(ulong *)(param_2 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n        uVar6 = 1;\n      }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) })) (if_statement "if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" if (parenthesized_expression "(*(long *)(param_2 + 0x28) < 2)" ( (binary_expression "*(long *)(param_2 + 0x28) < 2" (pointer_expression "*(long *)(param_2 + 0x28)" * (cast_expression "(long *)(param_2 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n        uVar2 = 1;\n      }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" else (if_statement "if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" if (parenthesized_expression "((uVar5 == 0) || (uVar6 == 0))" ( (binary_expression "(uVar5 == 0) || (uVar6 == 0)" (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) ))) )) (compound_statement "{\n        uVar2 = 1;\n      }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" else (compound_statement "{\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" { (expression_statement "lVar7 = 1;" (assignment_expression "lVar7 = 1" identifier = number_literal) ;) (do_statement "do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);" do (compound_statement "{\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        }" { (expression_statement "lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);" (assignment_expression "lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1)" identifier = (call_expression "SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1)" identifier (argument_list "(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1)" ( identifier , (binary_expression "(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3" (binary_expression "(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2)" (parenthesized_expression "(uVar5 + 3 >> 2)" ( (binary_expression "uVar5 + 3 >> 2" (binary_expression "uVar5 + 3" identifier + number_literal) >> number_literal) )) * (parenthesized_expression "(uVar6 + 3 >> 2)" ( (binary_expression "uVar6 + 3 >> 2" (binary_expression "uVar6 + 3" identifier + number_literal) >> number_literal) ))) * (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) , number_literal )))) ;) (if_statement "if (lVar4 < 0) {\n            return 1;\n          }" if (parenthesized_expression "(lVar4 < 0)" ( (binary_expression "lVar4 < 0" identifier < number_literal) )) (compound_statement "{\n            return 1;\n          }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }" if (parenthesized_expression "(uVar5 < 2)" ( (binary_expression "uVar5 < 2" identifier < number_literal) )) (compound_statement "{\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }" { (if_statement "if (uVar6 < 2) {\n              return 1;\n            }" if (parenthesized_expression "(uVar6 < 2)" ( (binary_expression "uVar6 < 2" identifier < number_literal) )) (compound_statement "{\n              return 1;\n            }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (labeled_statement "LAB_003439e6:\n            uVar6 = uVar6 >> 1;" statement_identifier : (expression_statement "uVar6 = uVar6 >> 1;" (assignment_expression "uVar6 = uVar6 >> 1" identifier = (binary_expression "uVar6 >> 1" identifier >> number_literal)) ;)) }) (else_clause "else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }" else (compound_statement "{\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }" { (expression_statement "uVar5 = uVar5 >> 1;" (assignment_expression "uVar5 = uVar5 >> 1" identifier = (binary_expression "uVar5 >> 1" identifier >> number_literal)) ;) (if_statement "if (1 < uVar6) goto LAB_003439e6;" if (parenthesized_expression "(1 < uVar6)" ( (binary_expression "1 < uVar6" number_literal < identifier) )) (goto_statement "goto LAB_003439e6;" goto statement_identifier ;)) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) }))) (if_statement "if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }" if (parenthesized_expression "((uVar5 == 1) && (uVar6 == 1))" ( (binary_expression "(uVar5 == 1) && (uVar6 == 1)" (parenthesized_expression "(uVar5 == 1)" ( (binary_expression "uVar5 == 1" identifier == number_literal) )) && (parenthesized_expression "(uVar6 == 1)" ( (binary_expression "uVar6 == 1" identifier == number_literal) ))) )) (compound_statement "{\n            return 1;\n          }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" identifier = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) (if_statement "if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }" if (parenthesized_expression "(*(long *)(param_2 + 0x28) <= lVar7)" ( (binary_expression "*(long *)(param_2 + 0x28) <= lVar7" (pointer_expression "*(long *)(param_2 + 0x28)" * (cast_expression "(long *)(param_2 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n            return 1;\n          }" { (return_statement "return 1;" return number_literal ;) })) }) while (parenthesized_expression "(uVar5 != 0 && uVar6 != 0)" ( (binary_expression "uVar5 != 0 && uVar6 != 0" (binary_expression "uVar5 != 0" identifier != number_literal) && (binary_expression "uVar6 != 0" identifier != number_literal)) )) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }))))) })) }) (else_clause "else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }" else (compound_statement "{\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = GetExceptionMessage(*piVar3);" (assignment_expression "uVar2 = GetExceptionMessage(*piVar3)" identifier = (call_expression "GetExceptionMessage(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (expression_statement "ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);" (call_expression "ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2)" identifier (argument_list "(param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2)" ( identifier , (string_literal ""coders/dds.c"" " string_content ") , (string_literal ""SkipDXTMipmaps"" " string_content ") , number_literal , number_literal , (string_literal ""UnexpectedEndOfFile"" " string_content ") , (string_literal ""\'%s\': %s"" " escape_sequence string_content escape_sequence string_content ") , (binary_expression "param_1 + 0x3f8" identifier + number_literal) , identifier ))) ;) (expression_statement "DestroyString(uVar2);" (call_expression "DestroyString(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* 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/* WARNING: Enum "ExceptionType": Some values do not have unique names */\n\nMagickBooleanType\nSkipDXTMipmaps(Image *image,DDSInfo *dds_info,int texel_size,ExceptionInfo *exception)\n\n{\n  int iVar1;\n  MagickBooleanType MVar2;\n  int *piVar3;\n  char *string;\n  MagickOffsetType MVar4;\n  ulong uVar5;\n  ulong uVar6;\n  long lVar7;\n  \n  iVar1 = EOFBlob(image);\n  if (iVar1 == 0) {\n    MVar2 = MagickTrue;\n    if (((dds_info->ddscaps1 & 0x400000) != 0) &&\n       (((dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0)))) {\n      uVar5 = dds_info->width >> 1;\n      if (dds_info->width < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = dds_info->height >> 1;\n      if (dds_info->height < 2) {\n        uVar6 = 1;\n      }\n      if ((long)dds_info->mipmapcount < 2) {\n        MVar2 = MagickTrue;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        MVar2 = MagickTrue;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        MVar2 = MagickTrue;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    string = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (exception,"coders/dds.c","SkipDXTMipmaps",0x4b6,CorruptImageWarning,\n               "UnexpectedEndOfFile","\'%s\': %s",image->filename,string);\n    DestroyString(string);\n    MVar2 = MagickFalse;\n  }\n  return MVar2;\n}\n\n" comment comment comment comment comment (function_definition "MagickBooleanType\nSkipDXTMipmaps(Image *image,DDSInfo *dds_info,int texel_size,ExceptionInfo *exception)\n\n{\n  int iVar1;\n  MagickBooleanType MVar2;\n  int *piVar3;\n  char *string;\n  MagickOffsetType MVar4;\n  ulong uVar5;\n  ulong uVar6;\n  long lVar7;\n  \n  iVar1 = EOFBlob(image);\n  if (iVar1 == 0) {\n    MVar2 = MagickTrue;\n    if (((dds_info->ddscaps1 & 0x400000) != 0) &&\n       (((dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0)))) {\n      uVar5 = dds_info->width >> 1;\n      if (dds_info->width < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = dds_info->height >> 1;\n      if (dds_info->height < 2) {\n        uVar6 = 1;\n      }\n      if ((long)dds_info->mipmapcount < 2) {\n        MVar2 = MagickTrue;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        MVar2 = MagickTrue;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        MVar2 = MagickTrue;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    string = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (exception,"coders/dds.c","SkipDXTMipmaps",0x4b6,CorruptImageWarning,\n               "UnexpectedEndOfFile","\'%s\': %s",image->filename,string);\n    DestroyString(string);\n    MVar2 = MagickFalse;\n  }\n  return MVar2;\n}" type_identifier (function_declarator "SkipDXTMipmaps(Image *image,DDSInfo *dds_info,int texel_size,ExceptionInfo *exception)" identifier (parameter_list "(Image *image,DDSInfo *dds_info,int texel_size,ExceptionInfo *exception)" ( (parameter_declaration "Image *image" type_identifier (pointer_declarator "*image" * identifier)) , (parameter_declaration "DDSInfo *dds_info" type_identifier (pointer_declarator "*dds_info" * identifier)) , (parameter_declaration "int texel_size" primitive_type identifier) , (parameter_declaration "ExceptionInfo *exception" type_identifier (pointer_declarator "*exception" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  MagickBooleanType MVar2;\n  int *piVar3;\n  char *string;\n  MagickOffsetType MVar4;\n  ulong uVar5;\n  ulong uVar6;\n  long lVar7;\n  \n  iVar1 = EOFBlob(image);\n  if (iVar1 == 0) {\n    MVar2 = MagickTrue;\n    if (((dds_info->ddscaps1 & 0x400000) != 0) &&\n       (((dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0)))) {\n      uVar5 = dds_info->width >> 1;\n      if (dds_info->width < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = dds_info->height >> 1;\n      if (dds_info->height < 2) {\n        uVar6 = 1;\n      }\n      if ((long)dds_info->mipmapcount < 2) {\n        MVar2 = MagickTrue;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        MVar2 = MagickTrue;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        MVar2 = MagickTrue;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    string = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (exception,"coders/dds.c","SkipDXTMipmaps",0x4b6,CorruptImageWarning,\n               "UnexpectedEndOfFile","\'%s\': %s",image->filename,string);\n    DestroyString(string);\n    MVar2 = MagickFalse;\n  }\n  return MVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "MagickBooleanType MVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "char *string;" primitive_type (pointer_declarator "*string" * identifier) ;) (declaration "MagickOffsetType MVar4;" type_identifier identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar1 = EOFBlob(image);" (assignment_expression "iVar1 = EOFBlob(image)" identifier = (call_expression "EOFBlob(image)" identifier (argument_list "(image)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    MVar2 = MagickTrue;\n    if (((dds_info->ddscaps1 & 0x400000) != 0) &&\n       (((dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0)))) {\n      uVar5 = dds_info->width >> 1;\n      if (dds_info->width < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = dds_info->height >> 1;\n      if (dds_info->height < 2) {\n        uVar6 = 1;\n      }\n      if ((long)dds_info->mipmapcount < 2) {\n        MVar2 = MagickTrue;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        MVar2 = MagickTrue;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        MVar2 = MagickTrue;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    string = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (exception,"coders/dds.c","SkipDXTMipmaps",0x4b6,CorruptImageWarning,\n               "UnexpectedEndOfFile","\'%s\': %s",image->filename,string);\n    DestroyString(string);\n    MVar2 = MagickFalse;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    MVar2 = MagickTrue;\n    if (((dds_info->ddscaps1 & 0x400000) != 0) &&\n       (((dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0)))) {\n      uVar5 = dds_info->width >> 1;\n      if (dds_info->width < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = dds_info->height >> 1;\n      if (dds_info->height < 2) {\n        uVar6 = 1;\n      }\n      if ((long)dds_info->mipmapcount < 2) {\n        MVar2 = MagickTrue;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        MVar2 = MagickTrue;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        MVar2 = MagickTrue;\n      }\n    }\n  }" { (expression_statement "MVar2 = MagickTrue;" (assignment_expression "MVar2 = MagickTrue" identifier = identifier) ;) (if_statement "if (((dds_info->ddscaps1 & 0x400000) != 0) &&\n       (((dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0)))) {\n      uVar5 = dds_info->width >> 1;\n      if (dds_info->width < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = dds_info->height >> 1;\n      if (dds_info->height < 2) {\n        uVar6 = 1;\n      }\n      if ((long)dds_info->mipmapcount < 2) {\n        MVar2 = MagickTrue;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        MVar2 = MagickTrue;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        MVar2 = MagickTrue;\n      }\n    }" if (parenthesized_expression "(((dds_info->ddscaps1 & 0x400000) != 0) &&\n       (((dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0))))" ( (binary_expression "((dds_info->ddscaps1 & 0x400000) != 0) &&\n       (((dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0)))" (parenthesized_expression "((dds_info->ddscaps1 & 0x400000) != 0)" ( (binary_expression "(dds_info->ddscaps1 & 0x400000) != 0" (parenthesized_expression "(dds_info->ddscaps1 & 0x400000)" ( (binary_expression "dds_info->ddscaps1 & 0x400000" (field_expression "dds_info->ddscaps1" identifier -> field_identifier) & number_literal) )) != number_literal) )) && (parenthesized_expression "(((dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0)))" ( (parenthesized_expression "((dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0))" ( (binary_expression "(dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0)" (binary_expression "(dds_info->ddscaps1 & 0x1000) != 0" (parenthesized_expression "(dds_info->ddscaps1 & 0x1000)" ( (binary_expression "dds_info->ddscaps1 & 0x1000" (field_expression "dds_info->ddscaps1" identifier -> field_identifier) & number_literal) )) != number_literal) || (parenthesized_expression "((dds_info->ddscaps2 & 0x200) != 0)" ( (binary_expression "(dds_info->ddscaps2 & 0x200) != 0" (parenthesized_expression "(dds_info->ddscaps2 & 0x200)" ( (binary_expression "dds_info->ddscaps2 & 0x200" (field_expression "dds_info->ddscaps2" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) ))) )) (compound_statement "{\n      uVar5 = dds_info->width >> 1;\n      if (dds_info->width < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = dds_info->height >> 1;\n      if (dds_info->height < 2) {\n        uVar6 = 1;\n      }\n      if ((long)dds_info->mipmapcount < 2) {\n        MVar2 = MagickTrue;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        MVar2 = MagickTrue;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        MVar2 = MagickTrue;\n      }\n    }" { (expression_statement "uVar5 = dds_info->width >> 1;" (assignment_expression "uVar5 = dds_info->width >> 1" identifier = (binary_expression "dds_info->width >> 1" (field_expression "dds_info->width" identifier -> field_identifier) >> number_literal)) ;) (if_statement "if (dds_info->width < 2) {\n        uVar5 = 1;\n      }" if (parenthesized_expression "(dds_info->width < 2)" ( (binary_expression "dds_info->width < 2" (field_expression "dds_info->width" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n        uVar5 = 1;\n      }" { (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) })) (expression_statement "uVar6 = dds_info->height >> 1;" (assignment_expression "uVar6 = dds_info->height >> 1" identifier = (binary_expression "dds_info->height >> 1" (field_expression "dds_info->height" identifier -> field_identifier) >> number_literal)) ;) (if_statement "if (dds_info->height < 2) {\n        uVar6 = 1;\n      }" if (parenthesized_expression "(dds_info->height < 2)" ( (binary_expression "dds_info->height < 2" (field_expression "dds_info->height" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n        uVar6 = 1;\n      }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) })) (if_statement "if ((long)dds_info->mipmapcount < 2) {\n        MVar2 = MagickTrue;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        MVar2 = MagickTrue;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        MVar2 = MagickTrue;\n      }" if (parenthesized_expression "((long)dds_info->mipmapcount < 2)" ( (binary_expression "(long)dds_info->mipmapcount < 2" (cast_expression "(long)dds_info->mipmapcount" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "dds_info->mipmapcount" identifier -> field_identifier)) < number_literal) )) (compound_statement "{\n        MVar2 = MagickTrue;\n      }" { (expression_statement "MVar2 = MagickTrue;" (assignment_expression "MVar2 = MagickTrue" identifier = identifier) ;) }) (else_clause "else if ((uVar5 == 0) || (uVar6 == 0)) {\n        MVar2 = MagickTrue;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        MVar2 = MagickTrue;\n      }" else (if_statement "if ((uVar5 == 0) || (uVar6 == 0)) {\n        MVar2 = MagickTrue;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        MVar2 = MagickTrue;\n      }" if (parenthesized_expression "((uVar5 == 0) || (uVar6 == 0))" ( (binary_expression "(uVar5 == 0) || (uVar6 == 0)" (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) ))) )) (compound_statement "{\n        MVar2 = MagickTrue;\n      }" { (expression_statement "MVar2 = MagickTrue;" (assignment_expression "MVar2 = MagickTrue" identifier = identifier) ;) }) (else_clause "else {\n        lVar7 = 1;\n        do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        MVar2 = MagickTrue;\n      }" else (compound_statement "{\n        lVar7 = 1;\n        do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        MVar2 = MagickTrue;\n      }" { (expression_statement "lVar7 = 1;" (assignment_expression "lVar7 = 1" identifier = number_literal) ;) (do_statement "do {\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);" do (compound_statement "{\n          MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);\n          if (MVar4 < 0) {\n            return MagickTrue;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }\n          lVar7 = lVar7 + 1;\n          if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }\n        }" { (expression_statement "MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1);" (assignment_expression "MVar4 = SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1)" identifier = (call_expression "SeekBlob(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1)" identifier (argument_list "(image,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size,1)" ( identifier , (binary_expression "(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)texel_size" (binary_expression "(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2)" (parenthesized_expression "(uVar5 + 3 >> 2)" ( (binary_expression "uVar5 + 3 >> 2" (binary_expression "uVar5 + 3" identifier + number_literal) >> number_literal) )) * (parenthesized_expression "(uVar6 + 3 >> 2)" ( (binary_expression "uVar6 + 3 >> 2" (binary_expression "uVar6 + 3" identifier + number_literal) >> number_literal) ))) * (cast_expression "(long)texel_size" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) , number_literal )))) ;) (if_statement "if (MVar4 < 0) {\n            return MagickTrue;\n          }" if (parenthesized_expression "(MVar4 < 0)" ( (binary_expression "MVar4 < 0" identifier < number_literal) )) (compound_statement "{\n            return MagickTrue;\n          }" { (return_statement "return MagickTrue;" return identifier ;) })) (if_statement "if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }" if (parenthesized_expression "(uVar5 < 2)" ( (binary_expression "uVar5 < 2" identifier < number_literal) )) (compound_statement "{\n            if (uVar6 < 2) {\n              return MagickTrue;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }" { (if_statement "if (uVar6 < 2) {\n              return MagickTrue;\n            }" if (parenthesized_expression "(uVar6 < 2)" ( (binary_expression "uVar6 < 2" identifier < number_literal) )) (compound_statement "{\n              return MagickTrue;\n            }" { (return_statement "return MagickTrue;" return identifier ;) })) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (labeled_statement "LAB_003439e6:\n            uVar6 = uVar6 >> 1;" statement_identifier : (expression_statement "uVar6 = uVar6 >> 1;" (assignment_expression "uVar6 = uVar6 >> 1" identifier = (binary_expression "uVar6 >> 1" identifier >> number_literal)) ;)) }) (else_clause "else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }" else (compound_statement "{\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }" { (expression_statement "uVar5 = uVar5 >> 1;" (assignment_expression "uVar5 = uVar5 >> 1" identifier = (binary_expression "uVar5 >> 1" identifier >> number_literal)) ;) (if_statement "if (1 < uVar6) goto LAB_003439e6;" if (parenthesized_expression "(1 < uVar6)" ( (binary_expression "1 < uVar6" number_literal < identifier) )) (goto_statement "goto LAB_003439e6;" goto statement_identifier ;)) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) }))) (if_statement "if ((uVar5 == 1) && (uVar6 == 1)) {\n            return MagickTrue;\n          }" if (parenthesized_expression "((uVar5 == 1) && (uVar6 == 1))" ( (binary_expression "(uVar5 == 1) && (uVar6 == 1)" (parenthesized_expression "(uVar5 == 1)" ( (binary_expression "uVar5 == 1" identifier == number_literal) )) && (parenthesized_expression "(uVar6 == 1)" ( (binary_expression "uVar6 == 1" identifier == number_literal) ))) )) (compound_statement "{\n            return MagickTrue;\n          }" { (return_statement "return MagickTrue;" return identifier ;) })) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" identifier = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) (if_statement "if ((long)dds_info->mipmapcount <= lVar7) {\n            return MagickTrue;\n          }" if (parenthesized_expression "((long)dds_info->mipmapcount <= lVar7)" ( (binary_expression "(long)dds_info->mipmapcount <= lVar7" (cast_expression "(long)dds_info->mipmapcount" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "dds_info->mipmapcount" identifier -> field_identifier)) <= identifier) )) (compound_statement "{\n            return MagickTrue;\n          }" { (return_statement "return MagickTrue;" return identifier ;) })) }) while (parenthesized_expression "(uVar5 != 0 && uVar6 != 0)" ( (binary_expression "uVar5 != 0 && uVar6 != 0" (binary_expression "uVar5 != 0" identifier != number_literal) && (binary_expression "uVar6 != 0" identifier != number_literal)) )) ;) (expression_statement "MVar2 = MagickTrue;" (assignment_expression "MVar2 = MagickTrue" identifier = identifier) ;) }))))) })) }) (else_clause "else {\n    piVar3 = __errno_location();\n    string = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (exception,"coders/dds.c","SkipDXTMipmaps",0x4b6,CorruptImageWarning,\n               "UnexpectedEndOfFile","\'%s\': %s",image->filename,string);\n    DestroyString(string);\n    MVar2 = MagickFalse;\n  }" else (compound_statement "{\n    piVar3 = __errno_location();\n    string = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (exception,"coders/dds.c","SkipDXTMipmaps",0x4b6,CorruptImageWarning,\n               "UnexpectedEndOfFile","\'%s\': %s",image->filename,string);\n    DestroyString(string);\n    MVar2 = MagickFalse;\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "string = GetExceptionMessage(*piVar3);" (assignment_expression "string = GetExceptionMessage(*piVar3)" identifier = (call_expression "GetExceptionMessage(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (expression_statement "ThrowMagickException\n              (exception,"coders/dds.c","SkipDXTMipmaps",0x4b6,CorruptImageWarning,\n               "UnexpectedEndOfFile","\'%s\': %s",image->filename,string);" (call_expression "ThrowMagickException\n              (exception,"coders/dds.c","SkipDXTMipmaps",0x4b6,CorruptImageWarning,\n               "UnexpectedEndOfFile","\'%s\': %s",image->filename,string)" identifier (argument_list "(exception,"coders/dds.c","SkipDXTMipmaps",0x4b6,CorruptImageWarning,\n               "UnexpectedEndOfFile","\'%s\': %s",image->filename,string)" ( identifier , (string_literal ""coders/dds.c"" " string_content ") , (string_literal ""SkipDXTMipmaps"" " string_content ") , number_literal , identifier , (string_literal ""UnexpectedEndOfFile"" " string_content ") , (string_literal ""\'%s\': %s"" " escape_sequence string_content escape_sequence string_content ") , (field_expression "image->filename" identifier -> field_identifier) , identifier ))) ;) (expression_statement "DestroyString(string);" (call_expression "DestroyString(string)" identifier (argument_list "(string)" ( identifier ))) ;) (expression_statement "MVar2 = MagickFalse;" (assignment_expression "MVar2 = MagickFalse" identifier = identifier) ;) }))) (return_statement "return MVar2;" return identifier ;) })))
(translation_unit "undefined8 FUN_0034389e(long param_1,long param_2,int param_3,undefined8 param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  ulong uVar6;\n  long lVar7;\n  \n  iVar1 = EOFBlob();\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined8 FUN_0034389e(long param_1,long param_2,int param_3,undefined8 param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  ulong uVar6;\n  long lVar7;\n  \n  iVar1 = EOFBlob();\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0034389e(long param_1,long param_2,int param_3,undefined8 param_4)" identifier (parameter_list "(long param_1,long param_2,int param_3,undefined8 param_4)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  ulong uVar6;\n  long lVar7;\n  \n  iVar1 = EOFBlob();\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }\n  return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined8 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "ulong uVar6;" type_identifier identifier ;) (declaration "long lVar7;" (sized_type_specifier "long" long) identifier ;) (expression_statement "iVar1 = EOFBlob();" (assignment_expression "iVar1 = EOFBlob()" identifier = (call_expression "EOFBlob()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }" if (parenthesized_expression "(((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0))))" ( (binary_expression "((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))" (parenthesized_expression "((*(ulong *)(param_2 + 0x30) & 0x400000) != 0)" ( (binary_expression "(*(ulong *)(param_2 + 0x30) & 0x400000) != 0" (parenthesized_expression "(*(ulong *)(param_2 + 0x30) & 0x400000)" ( (binary_expression "*(ulong *)(param_2 + 0x30) & 0x400000" (pointer_expression "*(ulong *)(param_2 + 0x30)" * (cast_expression "(ulong *)(param_2 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))" ( (parenthesized_expression "((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0))" ( (binary_expression "(*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)" (binary_expression "(*(ulong *)(param_2 + 0x30) & 0x1000) != 0" (parenthesized_expression "(*(ulong *)(param_2 + 0x30) & 0x1000)" ( (binary_expression "*(ulong *)(param_2 + 0x30) & 0x1000" (pointer_expression "*(ulong *)(param_2 + 0x30)" * (cast_expression "(ulong *)(param_2 + 0x30)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) )))) & number_literal) )) != number_literal) || (parenthesized_expression "((*(byte *)(param_2 + 0x39) & 2) != 0)" ( (binary_expression "(*(byte *)(param_2 + 0x39) & 2) != 0" (parenthesized_expression "(*(byte *)(param_2 + 0x39) & 2)" ( (binary_expression "*(byte *)(param_2 + 0x39) & 2" (pointer_expression "*(byte *)(param_2 + 0x39)" * (cast_expression "(byte *)(param_2 + 0x39)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x39)" ( (binary_expression "param_2 + 0x39" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) ))) )) (compound_statement "{\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }" { (expression_statement "uVar5 = *(ulong *)(param_2 + 0x10) >> 1;" (assignment_expression "uVar5 = *(ulong *)(param_2 + 0x10) >> 1" identifier = (binary_expression "*(ulong *)(param_2 + 0x10) >> 1" (pointer_expression "*(ulong *)(param_2 + 0x10)" * (cast_expression "(ulong *)(param_2 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) >> number_literal)) ;) (if_statement "if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }" if (parenthesized_expression "(*(ulong *)(param_2 + 0x10) < 2)" ( (binary_expression "*(ulong *)(param_2 + 0x10) < 2" (pointer_expression "*(ulong *)(param_2 + 0x10)" * (cast_expression "(ulong *)(param_2 + 0x10)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n        uVar5 = 1;\n      }" { (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) })) (expression_statement "uVar6 = *(ulong *)(param_2 + 8) >> 1;" (assignment_expression "uVar6 = *(ulong *)(param_2 + 8) >> 1" identifier = (binary_expression "*(ulong *)(param_2 + 8) >> 1" (pointer_expression "*(ulong *)(param_2 + 8)" * (cast_expression "(ulong *)(param_2 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) >> number_literal)) ;) (if_statement "if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }" if (parenthesized_expression "(*(ulong *)(param_2 + 8) < 2)" ( (binary_expression "*(ulong *)(param_2 + 8) < 2" (pointer_expression "*(ulong *)(param_2 + 8)" * (cast_expression "(ulong *)(param_2 + 8)" ( (type_descriptor "ulong *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n        uVar6 = 1;\n      }" { (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) })) (if_statement "if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" if (parenthesized_expression "(*(long *)(param_2 + 0x28) < 2)" ( (binary_expression "*(long *)(param_2 + 0x28) < 2" (pointer_expression "*(long *)(param_2 + 0x28)" * (cast_expression "(long *)(param_2 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n        uVar2 = 1;\n      }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" else (if_statement "if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" if (parenthesized_expression "((uVar5 == 0) || (uVar6 == 0))" ( (binary_expression "(uVar5 == 0) || (uVar6 == 0)" (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) || (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) ))) )) (compound_statement "{\n        uVar2 = 1;\n      }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" else (compound_statement "{\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" { (expression_statement "lVar7 = 1;" (assignment_expression "lVar7 = 1" identifier = number_literal) ;) (do_statement "do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);" do (compound_statement "{\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        }" { (expression_statement "lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);" (assignment_expression "lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1)" identifier = (call_expression "SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1)" identifier (argument_list "(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1)" ( identifier , (binary_expression "(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3" (binary_expression "(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2)" (parenthesized_expression "(uVar5 + 3 >> 2)" ( (binary_expression "uVar5 + 3 >> 2" (binary_expression "uVar5 + 3" identifier + number_literal) >> number_literal) )) * (parenthesized_expression "(uVar6 + 3 >> 2)" ( (binary_expression "uVar6 + 3 >> 2" (binary_expression "uVar6 + 3" identifier + number_literal) >> number_literal) ))) * (cast_expression "(long)param_3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) , number_literal )))) ;) (if_statement "if (lVar4 < 0) {\n            return 1;\n          }" if (parenthesized_expression "(lVar4 < 0)" ( (binary_expression "lVar4 < 0" identifier < number_literal) )) (compound_statement "{\n            return 1;\n          }" { (return_statement "return 1;" return number_literal ;) })) (if_statement "if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }" if (parenthesized_expression "(uVar5 < 2)" ( (binary_expression "uVar5 < 2" identifier < number_literal) )) (compound_statement "{\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }" { (if_statement "if (uVar6 < 2) {\n              return 1;\n            }" if (parenthesized_expression "(uVar6 < 2)" ( (binary_expression "uVar6 < 2" identifier < number_literal) )) (compound_statement "{\n              return 1;\n            }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" identifier = number_literal) ;) (labeled_statement "LAB_003439e6:\n            uVar6 = uVar6 >> 1;" statement_identifier : (expression_statement "uVar6 = uVar6 >> 1;" (assignment_expression "uVar6 = uVar6 >> 1" identifier = (binary_expression "uVar6 >> 1" identifier >> number_literal)) ;)) }) (else_clause "else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }" else (compound_statement "{\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }" { (expression_statement "uVar5 = uVar5 >> 1;" (assignment_expression "uVar5 = uVar5 >> 1" identifier = (binary_expression "uVar5 >> 1" identifier >> number_literal)) ;) (if_statement "if (1 < uVar6) goto LAB_003439e6;" if (parenthesized_expression "(1 < uVar6)" ( (binary_expression "1 < uVar6" number_literal < identifier) )) (goto_statement "goto LAB_003439e6;" goto statement_identifier ;)) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" identifier = number_literal) ;) }))) (if_statement "if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }" if (parenthesized_expression "((uVar5 == 1) && (uVar6 == 1))" ( (binary_expression "(uVar5 == 1) && (uVar6 == 1)" (parenthesized_expression "(uVar5 == 1)" ( (binary_expression "uVar5 == 1" identifier == number_literal) )) && (parenthesized_expression "(uVar6 == 1)" ( (binary_expression "uVar6 == 1" identifier == number_literal) ))) )) (compound_statement "{\n            return 1;\n          }" { (return_statement "return 1;" return number_literal ;) })) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" identifier = (binary_expression "lVar7 + 1" identifier + number_literal)) ;) (if_statement "if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }" if (parenthesized_expression "(*(long *)(param_2 + 0x28) <= lVar7)" ( (binary_expression "*(long *)(param_2 + 0x28) <= lVar7" (pointer_expression "*(long *)(param_2 + 0x28)" * (cast_expression "(long *)(param_2 + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n            return 1;\n          }" { (return_statement "return 1;" return number_literal ;) })) }) while (parenthesized_expression "(uVar5 != 0 && uVar6 != 0)" ( (binary_expression "uVar5 != 0 && uVar6 != 0" (binary_expression "uVar5 != 0" identifier != number_literal) && (binary_expression "uVar6 != 0" identifier != number_literal)) )) ;) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }))))) })) }) (else_clause "else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }" else (compound_statement "{\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = GetExceptionMessage(*piVar3);" (assignment_expression "uVar2 = GetExceptionMessage(*piVar3)" identifier = (call_expression "GetExceptionMessage(*piVar3)" identifier (argument_list "(*piVar3)" ( (pointer_expression "*piVar3" * identifier) )))) ;) (expression_statement "ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);" (call_expression "ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2)" identifier (argument_list "(param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2)" ( identifier , (string_literal ""coders/dds.c"" " string_content ") , (string_literal ""SkipDXTMipmaps"" " string_content ") , number_literal , number_literal , (string_literal ""UnexpectedEndOfFile"" " string_content ") , (string_literal ""\'%s\': %s"" " escape_sequence string_content escape_sequence string_content ") , (binary_expression "param_1 + 0x3f8" identifier + number_literal) , identifier ))) ;) (expression_statement "DestroyString(uVar2);" (call_expression "DestroyString(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) || (parenthesized_expression ( (binary_expression (parenthesized_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 = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) >> LIT) )) * (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) >> LIT) ))) * (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (compound_statement { (return_statement return LIT ;) })) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (binary_expression IDENT != LIT)) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))))) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , (string_literal " string_content ") , LIT , LIT , (string_literal " string_content ") , (string_literal " escape_sequence string_content escape_sequence string_content ") , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (return_statement return IDENT ;) })))
(function_definition "undefined8 FUN_0034389e(long param_1,long param_2,int param_3,undefined8 param_4)\n\n{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  ulong uVar6;\n  long lVar7;\n  \n  iVar1 = EOFBlob();\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }\n  return uVar2;\n}" (type_identifier "undefined8") (function_declarator "FUN_0034389e(long param_1,long param_2,int param_3,undefined8 param_4)" (identifier "FUN_0034389e") (parameter_list "(long param_1,long param_2,int param_3,undefined8 param_4)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined8 uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  ulong uVar6;\n  long lVar7;\n  \n  iVar1 = EOFBlob();\n  if (iVar1 == 0) {\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }\n  return uVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined8 uVar2;" (type_identifier "undefined8") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "ulong uVar5;" (type_identifier "ulong") (identifier "uVar5") (; ";")) (declaration "ulong uVar6;" (type_identifier "ulong") (identifier "uVar6") (; ";")) (declaration "long lVar7;" (sized_type_specifier "long" (long "long")) (identifier "lVar7") (; ";")) (expression_statement "iVar1 = EOFBlob();" (assignment_expression "iVar1 = EOFBlob()" (identifier "iVar1") (= "=") (call_expression "EOFBlob()" (identifier "EOFBlob") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }\n  else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = 1;\n    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (if_statement "if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }" (if "if") (parenthesized_expression "(((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0))))" (( "(") (binary_expression "((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&\n       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))" (parenthesized_expression "((*(ulong *)(param_2 + 0x30) & 0x400000) != 0)" (( "(") (binary_expression "(*(ulong *)(param_2 + 0x30) & 0x400000) != 0" (parenthesized_expression "(*(ulong *)(param_2 + 0x30) & 0x400000)" (( "(") (binary_expression "*(ulong *)(param_2 + 0x30) & 0x400000" (pointer_expression "*(ulong *)(param_2 + 0x30)" (* "*") (cast_expression "(ulong *)(param_2 + 0x30)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) (& "&") (number_literal "0x400000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))" (( "(") (parenthesized_expression "((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0))" (( "(") (binary_expression "(*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)" (binary_expression "(*(ulong *)(param_2 + 0x30) & 0x1000) != 0" (parenthesized_expression "(*(ulong *)(param_2 + 0x30) & 0x1000)" (( "(") (binary_expression "*(ulong *)(param_2 + 0x30) & 0x1000" (pointer_expression "*(ulong *)(param_2 + 0x30)" (* "*") (cast_expression "(ulong *)(param_2 + 0x30)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")")))) (& "&") (number_literal "0x1000")) () ")")) (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "((*(byte *)(param_2 + 0x39) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 0x39) & 2) != 0" (parenthesized_expression "(*(byte *)(param_2 + 0x39) & 2)" (( "(") (binary_expression "*(byte *)(param_2 + 0x39) & 2" (pointer_expression "*(byte *)(param_2 + 0x39)" (* "*") (cast_expression "(byte *)(param_2 + 0x39)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x39)" (( "(") (binary_expression "param_2 + 0x39" (identifier "param_2") (+ "+") (number_literal "0x39")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;\n      if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }\n      uVar6 = *(ulong *)(param_2 + 8) >> 1;\n      if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }\n      if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }\n    }" ({ "{") (expression_statement "uVar5 = *(ulong *)(param_2 + 0x10) >> 1;" (assignment_expression "uVar5 = *(ulong *)(param_2 + 0x10) >> 1" (identifier "uVar5") (= "=") (binary_expression "*(ulong *)(param_2 + 0x10) >> 1" (pointer_expression "*(ulong *)(param_2 + 0x10)" (* "*") (cast_expression "(ulong *)(param_2 + 0x10)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (>> ">>") (number_literal "1"))) (; ";")) (if_statement "if (*(ulong *)(param_2 + 0x10) < 2) {\n        uVar5 = 1;\n      }" (if "if") (parenthesized_expression "(*(ulong *)(param_2 + 0x10) < 2)" (( "(") (binary_expression "*(ulong *)(param_2 + 0x10) < 2" (pointer_expression "*(ulong *)(param_2 + 0x10)" (* "*") (cast_expression "(ulong *)(param_2 + 0x10)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")")))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        uVar5 = 1;\n      }" ({ "{") (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" (identifier "uVar5") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "uVar6 = *(ulong *)(param_2 + 8) >> 1;" (assignment_expression "uVar6 = *(ulong *)(param_2 + 8) >> 1" (identifier "uVar6") (= "=") (binary_expression "*(ulong *)(param_2 + 8) >> 1" (pointer_expression "*(ulong *)(param_2 + 8)" (* "*") (cast_expression "(ulong *)(param_2 + 8)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (>> ">>") (number_literal "1"))) (; ";")) (if_statement "if (*(ulong *)(param_2 + 8) < 2) {\n        uVar6 = 1;\n      }" (if "if") (parenthesized_expression "(*(ulong *)(param_2 + 8) < 2)" (( "(") (binary_expression "*(ulong *)(param_2 + 8) < 2" (pointer_expression "*(ulong *)(param_2 + 8)" (* "*") (cast_expression "(ulong *)(param_2 + 8)" (( "(") (type_descriptor "ulong *" (type_identifier "ulong") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        uVar6 = 1;\n      }" ({ "{") (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" (identifier "uVar6") (= "=") (number_literal "1")) (; ";")) (} "}"))) (if_statement "if (*(long *)(param_2 + 0x28) < 2) {\n        uVar2 = 1;\n      }\n      else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" (if "if") (parenthesized_expression "(*(long *)(param_2 + 0x28) < 2)" (( "(") (binary_expression "*(long *)(param_2 + 0x28) < 2" (pointer_expression "*(long *)(param_2 + 0x28)" (* "*") (cast_expression "(long *)(param_2 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        uVar2 = 1;\n      }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" (else "else") (if_statement "if ((uVar5 == 0) || (uVar6 == 0)) {\n        uVar2 = 1;\n      }\n      else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" (if "if") (parenthesized_expression "((uVar5 == 0) || (uVar6 == 0))" (( "(") (binary_expression "(uVar5 == 0) || (uVar6 == 0)" (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        uVar2 = 1;\n      }" ({ "{") (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" (else "else") (compound_statement "{\n        lVar7 = 1;\n        do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);\n        uVar2 = 1;\n      }" ({ "{") (expression_statement "lVar7 = 1;" (assignment_expression "lVar7 = 1" (identifier "lVar7") (= "=") (number_literal "1")) (; ";")) (do_statement "do {\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        } while (uVar5 != 0 && uVar6 != 0);" (do "do") (compound_statement "{\n          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);\n          if (lVar4 < 0) {\n            return 1;\n          }\n          if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }\n          if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }\n          lVar7 = lVar7 + 1;\n          if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }\n        }" ({ "{") (expression_statement "lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);" (assignment_expression "lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1)" (identifier "lVar4") (= "=") (call_expression "SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1)" (identifier "SeekBlob") (argument_list "(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1)" (( "(") (identifier "param_1") (, ",") (binary_expression "(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3" (binary_expression "(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2)" (parenthesized_expression "(uVar5 + 3 >> 2)" (( "(") (binary_expression "uVar5 + 3 >> 2" (binary_expression "uVar5 + 3" (identifier "uVar5") (+ "+") (number_literal "3")) (>> ">>") (number_literal "2")) () ")")) (* "*") (parenthesized_expression "(uVar6 + 3 >> 2)" (( "(") (binary_expression "uVar6 + 3 >> 2" (binary_expression "uVar6 + 3" (identifier "uVar6") (+ "+") (number_literal "3")) (>> ">>") (number_literal "2")) () ")"))) (* "*") (cast_expression "(long)param_3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_3"))) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (lVar4 < 0) {\n            return 1;\n          }" (if "if") (parenthesized_expression "(lVar4 < 0)" (( "(") (binary_expression "lVar4 < 0" (identifier "lVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n            return 1;\n          }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (if_statement "if (uVar5 < 2) {\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }\n          else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }" (if "if") (parenthesized_expression "(uVar5 < 2)" (( "(") (binary_expression "uVar5 < 2" (identifier "uVar5") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n            if (uVar6 < 2) {\n              return 1;\n            }\n            uVar5 = 1;\nLAB_003439e6:\n            uVar6 = uVar6 >> 1;\n          }" ({ "{") (if_statement "if (uVar6 < 2) {\n              return 1;\n            }" (if "if") (parenthesized_expression "(uVar6 < 2)" (( "(") (binary_expression "uVar6 < 2" (identifier "uVar6") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n              return 1;\n            }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar5 = 1;" (assignment_expression "uVar5 = 1" (identifier "uVar5") (= "=") (number_literal "1")) (; ";")) (labeled_statement "LAB_003439e6:\n            uVar6 = uVar6 >> 1;" (statement_identifier "LAB_003439e6") (: ":") (expression_statement "uVar6 = uVar6 >> 1;" (assignment_expression "uVar6 = uVar6 >> 1" (identifier "uVar6") (= "=") (binary_expression "uVar6 >> 1" (identifier "uVar6") (>> ">>") (number_literal "1"))) (; ";"))) (} "}")) (else_clause "else {\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }" (else "else") (compound_statement "{\n            uVar5 = uVar5 >> 1;\n            if (1 < uVar6) goto LAB_003439e6;\n            uVar6 = 1;\n          }" ({ "{") (expression_statement "uVar5 = uVar5 >> 1;" (assignment_expression "uVar5 = uVar5 >> 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 >> 1" (identifier "uVar5") (>> ">>") (number_literal "1"))) (; ";")) (if_statement "if (1 < uVar6) goto LAB_003439e6;" (if "if") (parenthesized_expression "(1 < uVar6)" (( "(") (binary_expression "1 < uVar6" (number_literal "1") (< "<") (identifier "uVar6")) () ")")) (goto_statement "goto LAB_003439e6;" (goto "goto") (statement_identifier "LAB_003439e6") (; ";"))) (expression_statement "uVar6 = 1;" (assignment_expression "uVar6 = 1" (identifier "uVar6") (= "=") (number_literal "1")) (; ";")) (} "}")))) (if_statement "if ((uVar5 == 1) && (uVar6 == 1)) {\n            return 1;\n          }" (if "if") (parenthesized_expression "((uVar5 == 1) && (uVar6 == 1))" (( "(") (binary_expression "(uVar5 == 1) && (uVar6 == 1)" (parenthesized_expression "(uVar5 == 1)" (( "(") (binary_expression "uVar5 == 1" (identifier "uVar5") (== "==") (number_literal "1")) () ")")) (&& "&&") (parenthesized_expression "(uVar6 == 1)" (( "(") (binary_expression "uVar6 == 1" (identifier "uVar6") (== "==") (number_literal "1")) () ")"))) () ")")) (compound_statement "{\n            return 1;\n          }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "lVar7 = lVar7 + 1;" (assignment_expression "lVar7 = lVar7 + 1" (identifier "lVar7") (= "=") (binary_expression "lVar7 + 1" (identifier "lVar7") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (*(long *)(param_2 + 0x28) <= lVar7) {\n            return 1;\n          }" (if "if") (parenthesized_expression "(*(long *)(param_2 + 0x28) <= lVar7)" (( "(") (binary_expression "*(long *)(param_2 + 0x28) <= lVar7" (pointer_expression "*(long *)(param_2 + 0x28)" (* "*") (cast_expression "(long *)(param_2 + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (<= "<=") (identifier "lVar7")) () ")")) (compound_statement "{\n            return 1;\n          }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "(uVar5 != 0 && uVar6 != 0)" (( "(") (binary_expression "uVar5 != 0 && uVar6 != 0" (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) (&& "&&") (binary_expression "uVar6 != 0" (identifier "uVar6") (!= "!=") (number_literal "0"))) () ")")) (; ";")) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (} "}")))))) (} "}"))) (} "}")) (else_clause "else {\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }" (else "else") (compound_statement "{\n    piVar3 = __errno_location();\n    uVar2 = GetExceptionMessage(*piVar3);\n    ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);\n    DestroyString(uVar2);\n    uVar2 = 0;\n  }" ({ "{") (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = GetExceptionMessage(*piVar3);" (assignment_expression "uVar2 = GetExceptionMessage(*piVar3)" (identifier "uVar2") (= "=") (call_expression "GetExceptionMessage(*piVar3)" (identifier "GetExceptionMessage") (argument_list "(*piVar3)" (( "(") (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) () ")")))) (; ";")) (expression_statement "ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2);" (call_expression "ThrowMagickException\n              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2)" (identifier "ThrowMagickException") (argument_list "(param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",\n               "\'%s\': %s",param_1 + 0x3f8,uVar2)" (( "(") (identifier "param_4") (, ",") (string_literal ""coders/dds.c"" (" """) (string_content "coders/dds.c") (" """)) (, ",") (string_literal ""SkipDXTMipmaps"" (" """) (string_content "SkipDXTMipmaps") (" """)) (, ",") (number_literal "0x4b6") (, ",") (number_literal "0x145") (, ",") (string_literal ""UnexpectedEndOfFile"" (" """) (string_content "UnexpectedEndOfFile") (" """)) (, ",") (string_literal ""\'%s\': %s"" (" """) (escape_sequence "\'") (string_content "%s") (escape_sequence "\'") (string_content ": %s") (" """)) (, ",") (binary_expression "param_1 + 0x3f8" (identifier "param_1") (+ "+") (number_literal "0x3f8")) (, ",") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "DestroyString(uVar2);" (call_expression "DestroyString(uVar2)" (identifier "DestroyString") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

/* 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 */
/* WARNING: Enum "ExceptionType": Some values do not have unique names */

type_1
function_1(type_2 *image,type_3 *dds_info,int texel_size,type_4 *exception)

{
  int var_2;
  type_1 MVar2;
  int *piVar3;
  char *string;
  type_5 var_6;
  type_6 var_3;
  type_6 var_4;
  long var_7;
  
  var_2 = var_1(image);
  if (var_2 == 0) {
    MVar2 = MagickTrue;
    if (((dds_info->ddscaps1 & 0x400000) != 0) &&
       (((dds_info->ddscaps1 & 0x1000) != 0 || ((dds_info->ddscaps2 & 0x200) != 0)))) {
      var_3 = dds_info->width >> 1;
      if (dds_info->width < 2) {
        var_3 = 1;
      }
      var_4 = dds_info->height >> 1;
      if (dds_info->height < 2) {
        var_4 = 1;
      }
      if ((long)dds_info->mipmapcount < 2) {
        MVar2 = MagickTrue;
      }
      else if ((var_3 == 0) || (var_4 == 0)) {
        MVar2 = MagickTrue;
      }
      else {
        var_7 = 1;
        do {
          var_6 = var_5(image,(var_3 + 3 >> 2) * (var_4 + 3 >> 2) * (long)texel_size,1);
          if (var_6 < 0) {
            return MagickTrue;
          }
          if (var_3 < 2) {
            if (var_4 < 2) {
              return MagickTrue;
            }
            var_3 = 1;
LAB_003439e6:
            var_4 = var_4 >> 1;
          }
          else {
            var_3 = var_3 >> 1;
            if (1 < var_4) goto LAB_003439e6;
            var_4 = 1;
          }
          if ((var_3 == 1) && (var_4 == 1)) {
            return MagickTrue;
          }
          var_7 = var_7 + 1;
          if ((long)dds_info->mipmapcount <= var_7) {
            return MagickTrue;
          }
        } while (var_3 != 0 && var_4 != 0);
        MVar2 = MagickTrue;
      }
    }
  }
  else {
    piVar3 = var_8();
    string = var_9(*piVar3);
    var_10
              (exception,"coders/dds.c","SkipDXTMipmaps",0x4b6,CorruptImageWarning,
               "UnexpectedEndOfFile","\'%s\': %s",image->filename,string);
    var_11(string);
    MVar2 = MagickFalse;
  }
  return MVar2;
}


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

undefined8 MASKED(long param_1,long param_2,int param_3,undefined8 param_4)

{
  int iVar1;
  undefined8 uVar2;
  int *piVar3;
  long lVar4;
  ulong uVar5;
  ulong uVar6;
  long lVar7;
  
  iVar1 = EOFBlob();
  if (iVar1 == 0) {
    uVar2 = 1;
    if (((*(ulong *)(param_2 + 0x30) & 0x400000) != 0) &&
       (((*(ulong *)(param_2 + 0x30) & 0x1000) != 0 || ((*(byte *)(param_2 + 0x39) & 2) != 0)))) {
      uVar5 = *(ulong *)(param_2 + 0x10) >> 1;
      if (*(ulong *)(param_2 + 0x10) < 2) {
        uVar5 = 1;
      }
      uVar6 = *(ulong *)(param_2 + 8) >> 1;
      if (*(ulong *)(param_2 + 8) < 2) {
        uVar6 = 1;
      }
      if (*(long *)(param_2 + 0x28) < 2) {
        uVar2 = 1;
      }
      else if ((uVar5 == 0) || (uVar6 == 0)) {
        uVar2 = 1;
      }
      else {
        lVar7 = 1;
        do {
          lVar4 = SeekBlob(param_1,(uVar5 + 3 >> 2) * (uVar6 + 3 >> 2) * (long)param_3,1);
          if (lVar4 < 0) {
            return 1;
          }
          if (uVar5 < 2) {
            if (uVar6 < 2) {
              return 1;
            }
            uVar5 = 1;
LAB_003439e6:
            uVar6 = uVar6 >> 1;
          }
          else {
            uVar5 = uVar5 >> 1;
            if (1 < uVar6) goto LAB_003439e6;
            uVar6 = 1;
          }
          if ((uVar5 == 1) && (uVar6 == 1)) {
            return 1;
          }
          lVar7 = lVar7 + 1;
          if (*(long *)(param_2 + 0x28) <= lVar7) {
            return 1;
          }
        } while (uVar5 != 0 && uVar6 != 0);
        uVar2 = 1;
      }
    }
  }
  else {
    piVar3 = __errno_location();
    uVar2 = GetExceptionMessage(*piVar3);
    ThrowMagickException
              (param_4,"coders/dds.c","SkipDXTMipmaps",0x4b6,0x145,"UnexpectedEndOfFile",
               "\'%s\': %s",param_1 + 0x3f8,uVar2);
    DestroyString(uVar2);
    uVar2 = 0;
  }
  return uVar2;
}

