
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

int png_icc_check_tag_table
              (png_const_structrp png_ptr,png_colorspacerp colorspace,png_const_charp name,
              png_uint_32 profile_length,png_const_bytep profile)

{
  int iVar1;
  uint uVar2;
  png_alloc_size_t value;
  byte *pbVar3;
  int iVar4;
  
  pbVar3 = profile + 0x84;
  iVar1 = (uint)profile[0x81] * 0x10000 + (uint)profile[0x80] * 0x1000000 + (uint)profile[0x83] +
          (uint)profile[0x82] * 0x100;
  if (iVar1 != 0) {
    iVar4 = 0;
    do {
      while( true ) {
        value = (uint)pbVar3[2] * 0x100 +
                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000;
        uVar2 = (uint)pbVar3[6] * 0x100 +
                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000;
        if ((profile_length < uVar2) ||
           (profile_length - uVar2 <
            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +
            (uint)pbVar3[10] * 0x100)) {
          iVar1 = png_icc_profile_error
                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");
          return iVar1;
        }
        if ((uVar2 & 3) == 0) break;
        iVar4 = iVar4 + 1;
        pbVar3 = pbVar3 + 0xc;
        png_icc_profile_error
                  (png_ptr,(png_colorspacerp)0x0,name,value,
                   "ICC profile tag start not a multiple of 4");
        if (iVar1 == iVar4) {
          return 1;
        }
      }
      iVar4 = iVar4 + 1;
      pbVar3 = pbVar3 + 0xc;
    } while (iVar1 != iVar4);
  }
  return 1;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 FUN_000166b0(void)

{
  byte *pbVar1;
  byte *pbVar2;
  byte *pbVar3;
  byte bVar4;
  int iVar5;
  uint uVar6;
  undefined4 uVar7;
  byte *pbVar8;
  int iVar9;
  uint in_stack_00000010;
  int in_stack_00000014;
  
  pbVar8 = (byte *)(in_stack_00000014 + 0x84);
  iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +
          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +
          (uint)*(byte *)(in_stack_00000014 + 0x83) +
          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;
  if (iVar5 != 0) {
    iVar9 = 0;
    do {
      while( true ) {
        bVar4 = *pbVar8;
        pbVar1 = pbVar8 + 3;
        pbVar2 = pbVar8 + 1;
        pbVar3 = pbVar8 + 2;
        uVar6 = (uint)pbVar8[6] * 0x100 +
                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;
        if ((in_stack_00000010 < uVar6) ||
           (in_stack_00000010 - uVar6 <
            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +
            (uint)pbVar8[10] * 0x100)) {
          uVar7 = FUN_00014da0();
          return uVar7;
        }
        if ((uVar6 & 3) == 0) break;
        iVar9 = iVar9 + 1;
        pbVar8 = pbVar8 + 0xc;
        FUN_00014da0((uint)*pbVar3 * 0x100 +
                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,
                     "ICC profile tag start not a multiple of 4");
        if (iVar5 == iVar9) {
          return 1;
        }
      }
      iVar9 = iVar9 + 1;
      pbVar8 = pbVar8 + 0xc;
    } while (iVar5 != iVar9);
  }
  return 1;
}


CALL 0x0001980d
ADD ECX,0x376cb
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x40]
MOV EBX,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x18],ECX
MOV EDI,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [ESP + 0x44]
ADD EBX,0x84
MOV dword ptr [ESP + 0x1c],EAX
MOV EAX,dword ptr [ESP + 0x48]
MOV dword ptr [ESP + 0x10],EAX
MOVZX EAX,byte ptr [EBX + -0x4]
SHL EAX,0x18
MOV EDX,EAX
MOVZX EAX,byte ptr [EBX + -0x3]
SHL EAX,0x10
ADD EAX,EDX
MOVZX EDX,byte ptr [EBX + -0x1]
ADD EAX,EDX
MOVZX EDX,byte ptr [EBX + -0x2]
SHL EDX,0x8
ADD EAX,EDX
MOV dword ptr [ESP + 0x8],EAX
JZ 0x000167d8
LEA EAX,[ECX + 0xfffed54c]
XOR ESI,ESI
MOV dword ptr [ESP + 0x14],EAX
JMP 0x00016738
ADD ESI,0x1
ADD EBX,0xc
CMP dword ptr [ESP + 0x8],ESI
JZ 0x000167d8
MOVZX EDX,byte ptr [EBX]
MOVZX EAX,byte ptr [EBX + 0x3]
SHL EDX,0x18
MOV ECX,EDX
MOVZX EDX,byte ptr [EBX + 0x1]
SHL EDX,0x10
ADD EDX,ECX
MOVZX ECX,byte ptr [EBX + 0x7]
ADD EAX,EDX
MOVZX EDX,byte ptr [EBX + 0x2]
SHL EDX,0x8
ADD EDX,EAX
MOVZX EAX,byte ptr [EBX + 0x4]
SHL EAX,0x18
MOV EBP,EAX
MOVZX EAX,byte ptr [EBX + 0x5]
SHL EAX,0x10
ADD EAX,EBP
ADD ECX,EAX
MOVZX EAX,byte ptr [EBX + 0x6]
SHL EAX,0x8
ADD EAX,ECX
MOVZX ECX,byte ptr [EBX + 0x8]
SHL ECX,0x18
MOV EBP,ECX
MOVZX ECX,byte ptr [EBX + 0x9]
SHL ECX,0x10
ADD ECX,EBP
MOVZX EBP,byte ptr [EBX + 0xb]
ADD ECX,EBP
MOVZX EBP,byte ptr [EBX + 0xa]
SHL EBP,0x8
ADD ECX,EBP
CMP EAX,EDI
JA 0x000167e8
MOV EBP,EDI
SUB EBP,EAX
CMP EBP,ECX
JC 0x000167e8
TEST AL,0x3
JZ 0x00016728
SUB ESP,0x8
ADD ESI,0x1
ADD EBX,0xc
PUSH dword ptr [ESP + 0x1c]
PUSH EDX
XOR EDX,EDX
MOV ECX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [ESP + 0x1c]
CALL 0x00014da0
ADD ESP,0x10
CMP dword ptr [ESP + 0x8],ESI
JNZ 0x00016738
ADD ESP,0x2c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x40],EDX
MOV EDX,dword ptr [ESP + 0x1c]
LEA EAX,[EAX + 0xfffed52c]
MOV dword ptr [ESP + 0x44],EAX
MOV EAX,dword ptr [ESP + 0xc]
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x00014da0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nundefined4 FUN_000166b0(void)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte bVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint in_stack_00000010;\n  int in_stack_00000014;\n  \n  pbVar8 = (byte *)(in_stack_00000014 + 0x84);\n  iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;\n  if (iVar5 != 0) {\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }\n  return 1;\n}\n\n" comment (function_definition "undefined4 FUN_000166b0(void)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte bVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint in_stack_00000010;\n  int in_stack_00000014;\n  \n  pbVar8 = (byte *)(in_stack_00000014 + 0x84);\n  iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;\n  if (iVar5 != 0) {\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_000166b0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte bVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint in_stack_00000010;\n  int in_stack_00000014;\n  \n  pbVar8 = (byte *)(in_stack_00000014 + 0x84);\n  iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;\n  if (iVar5 != 0) {\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }\n  return 1;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint in_stack_00000010;" type_identifier identifier ;) (declaration "int in_stack_00000014;" primitive_type identifier ;) (expression_statement "pbVar8 = (byte *)(in_stack_00000014 + 0x84);" (assignment_expression "pbVar8 = (byte *)(in_stack_00000014 + 0x84)" identifier = (cast_expression "(byte *)(in_stack_00000014 + 0x84)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000014 + 0x84)" ( (binary_expression "in_stack_00000014 + 0x84" identifier + number_literal) )))) ;) (expression_statement "iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;" (assignment_expression "iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100" identifier = (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83)" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(in_stack_00000014 + 0x81)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000014 + 0x81)" ( (binary_expression "in_stack_00000014 + 0x81" identifier + number_literal) )))) * number_literal) + (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x80)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(in_stack_00000014 + 0x80)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000014 + 0x80)" ( (binary_expression "in_stack_00000014 + 0x80" identifier + number_literal) )))) * number_literal)) + (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x83)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(in_stack_00000014 + 0x83)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000014 + 0x83)" ( (binary_expression "in_stack_00000014 + 0x83" identifier + number_literal) ))))) + (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x82)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(in_stack_00000014 + 0x82)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000014 + 0x82)" ( (binary_expression "in_stack_00000014 + 0x82" identifier + number_literal) )))) * number_literal))) ;) (if_statement "if (iVar5 != 0) {\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);" do (compound_statement "{\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    }" { (while_statement "while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }" { (expression_statement "bVar4 = *pbVar8;" (assignment_expression "bVar4 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "pbVar1 = pbVar8 + 3;" (assignment_expression "pbVar1 = pbVar8 + 3" identifier = (binary_expression "pbVar8 + 3" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar8 + 1;" (assignment_expression "pbVar2 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar8 + 2;" (assignment_expression "pbVar3 = pbVar8 + 2" identifier = (binary_expression "pbVar8 + 2" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;" (assignment_expression "uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000" identifier = (binary_expression "(uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000" (binary_expression "(uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000" (binary_expression "(uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7]" (binary_expression "(uint)pbVar8[6] * 0x100" (cast_expression "(uint)pbVar8[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[6]" identifier [ number_literal ])) * number_literal) + (cast_expression "(uint)pbVar8[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[7]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar8[5] * 0x10000" (cast_expression "(uint)pbVar8[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[5]" identifier [ number_literal ])) * number_literal)) + (binary_expression "(uint)pbVar8[4] * 0x1000000" (cast_expression "(uint)pbVar8[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[4]" identifier [ number_literal ])) * number_literal))) ;) (if_statement "if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }" if (parenthesized_expression "((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100))" ( (binary_expression "(in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)" (parenthesized_expression "(in_stack_00000010 < uVar6)" ( (binary_expression "in_stack_00000010 < uVar6" identifier < identifier) )) || (parenthesized_expression "(in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)" ( (binary_expression "in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100" (binary_expression "in_stack_00000010 - uVar6" identifier - identifier) < (binary_expression "(uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100" (binary_expression "(uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb]" (binary_expression "(uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000" (binary_expression "(uint)pbVar8[9] * 0x10000" (cast_expression "(uint)pbVar8[9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[9]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)pbVar8[8] * 0x1000000" (cast_expression "(uint)pbVar8[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[8]" identifier [ number_literal ])) * number_literal)) + (cast_expression "(uint)pbVar8[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[0xb]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar8[10] * 0x100" (cast_expression "(uint)pbVar8[10]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[10]" identifier [ number_literal ])) * number_literal))) ))) )) (compound_statement "{\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }" { (expression_statement "uVar7 = FUN_00014da0();" (assignment_expression "uVar7 = FUN_00014da0()" identifier = (call_expression "FUN_00014da0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar7;" return identifier ;) })) (if_statement "if ((uVar6 & 3) == 0) break;" if (parenthesized_expression "((uVar6 & 3) == 0)" ( (binary_expression "(uVar6 & 3) == 0" (parenthesized_expression "(uVar6 & 3)" ( (binary_expression "uVar6 & 3" identifier & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 0xc;" (assignment_expression "pbVar8 = pbVar8 + 0xc" identifier = (binary_expression "pbVar8 + 0xc" identifier + number_literal)) ;) (expression_statement "FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");" (call_expression "FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4")" identifier (argument_list "((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4")" ( (binary_expression "(uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000" (binary_expression "(uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000" (binary_expression "(uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1" (binary_expression "(uint)*pbVar3 * 0x100" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal) + (binary_expression "(uint)*pbVar1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) + (binary_expression "(uint)*pbVar2 * 0x10000" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) + (binary_expression "(uint)bVar4 * 0x1000000" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) , (string_literal ""ICC profile tag start not a multiple of 4"" " string_content ") ))) ;) (if_statement "if (iVar5 == iVar9) {\n          return 1;\n        }" if (parenthesized_expression "(iVar5 == iVar9)" ( (binary_expression "iVar5 == iVar9" identifier == identifier) )) (compound_statement "{\n          return 1;\n        }" { (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 0xc;" (assignment_expression "pbVar8 = pbVar8 + 0xc" identifier = (binary_expression "pbVar8 + 0xc" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != iVar9)" ( (binary_expression "iVar5 != iVar9" identifier != identifier) )) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nint png_icc_check_tag_table\n              (png_const_structrp png_ptr,png_colorspacerp colorspace,png_const_charp name,\n              png_uint_32 profile_length,png_const_bytep profile)\n\n{\n  int iVar1;\n  uint uVar2;\n  png_alloc_size_t value;\n  byte *pbVar3;\n  int iVar4;\n  \n  pbVar3 = profile + 0x84;\n  iVar1 = (uint)profile[0x81] * 0x10000 + (uint)profile[0x80] * 0x1000000 + (uint)profile[0x83] +\n          (uint)profile[0x82] * 0x100;\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    do {\n      while( true ) {\n        value = (uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000;\n        uVar2 = (uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000;\n        if ((profile_length < uVar2) ||\n           (profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100)) {\n          iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");\n          return iVar1;\n        }\n        if ((uVar2 & 3) == 0) break;\n        iVar4 = iVar4 + 1;\n        pbVar3 = pbVar3 + 0xc;\n        png_icc_profile_error\n                  (png_ptr,(png_colorspacerp)0x0,name,value,\n                   "ICC profile tag start not a multiple of 4");\n        if (iVar1 == iVar4) {\n          return 1;\n        }\n      }\n      iVar4 = iVar4 + 1;\n      pbVar3 = pbVar3 + 0xc;\n    } while (iVar1 != iVar4);\n  }\n  return 1;\n}\n\n" comment (function_definition "int png_icc_check_tag_table\n              (png_const_structrp png_ptr,png_colorspacerp colorspace,png_const_charp name,\n              png_uint_32 profile_length,png_const_bytep profile)\n\n{\n  int iVar1;\n  uint uVar2;\n  png_alloc_size_t value;\n  byte *pbVar3;\n  int iVar4;\n  \n  pbVar3 = profile + 0x84;\n  iVar1 = (uint)profile[0x81] * 0x10000 + (uint)profile[0x80] * 0x1000000 + (uint)profile[0x83] +\n          (uint)profile[0x82] * 0x100;\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    do {\n      while( true ) {\n        value = (uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000;\n        uVar2 = (uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000;\n        if ((profile_length < uVar2) ||\n           (profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100)) {\n          iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");\n          return iVar1;\n        }\n        if ((uVar2 & 3) == 0) break;\n        iVar4 = iVar4 + 1;\n        pbVar3 = pbVar3 + 0xc;\n        png_icc_profile_error\n                  (png_ptr,(png_colorspacerp)0x0,name,value,\n                   "ICC profile tag start not a multiple of 4");\n        if (iVar1 == iVar4) {\n          return 1;\n        }\n      }\n      iVar4 = iVar4 + 1;\n      pbVar3 = pbVar3 + 0xc;\n    } while (iVar1 != iVar4);\n  }\n  return 1;\n}" primitive_type (function_declarator "png_icc_check_tag_table\n              (png_const_structrp png_ptr,png_colorspacerp colorspace,png_const_charp name,\n              png_uint_32 profile_length,png_const_bytep profile)" identifier (parameter_list "(png_const_structrp png_ptr,png_colorspacerp colorspace,png_const_charp name,\n              png_uint_32 profile_length,png_const_bytep profile)" ( (parameter_declaration "png_const_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_colorspacerp colorspace" type_identifier identifier) , (parameter_declaration "png_const_charp name" type_identifier identifier) , (parameter_declaration "png_uint_32 profile_length" type_identifier identifier) , (parameter_declaration "png_const_bytep profile" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  png_alloc_size_t value;\n  byte *pbVar3;\n  int iVar4;\n  \n  pbVar3 = profile + 0x84;\n  iVar1 = (uint)profile[0x81] * 0x10000 + (uint)profile[0x80] * 0x1000000 + (uint)profile[0x83] +\n          (uint)profile[0x82] * 0x100;\n  if (iVar1 != 0) {\n    iVar4 = 0;\n    do {\n      while( true ) {\n        value = (uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000;\n        uVar2 = (uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000;\n        if ((profile_length < uVar2) ||\n           (profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100)) {\n          iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");\n          return iVar1;\n        }\n        if ((uVar2 & 3) == 0) break;\n        iVar4 = iVar4 + 1;\n        pbVar3 = pbVar3 + 0xc;\n        png_icc_profile_error\n                  (png_ptr,(png_colorspacerp)0x0,name,value,\n                   "ICC profile tag start not a multiple of 4");\n        if (iVar1 == iVar4) {\n          return 1;\n        }\n      }\n      iVar4 = iVar4 + 1;\n      pbVar3 = pbVar3 + 0xc;\n    } while (iVar1 != iVar4);\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "png_alloc_size_t value;" type_identifier identifier ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "pbVar3 = profile + 0x84;" (assignment_expression "pbVar3 = profile + 0x84" identifier = (binary_expression "profile + 0x84" identifier + number_literal)) ;) (expression_statement "iVar1 = (uint)profile[0x81] * 0x10000 + (uint)profile[0x80] * 0x1000000 + (uint)profile[0x83] +\n          (uint)profile[0x82] * 0x100;" (assignment_expression "iVar1 = (uint)profile[0x81] * 0x10000 + (uint)profile[0x80] * 0x1000000 + (uint)profile[0x83] +\n          (uint)profile[0x82] * 0x100" identifier = (binary_expression "(uint)profile[0x81] * 0x10000 + (uint)profile[0x80] * 0x1000000 + (uint)profile[0x83] +\n          (uint)profile[0x82] * 0x100" (binary_expression "(uint)profile[0x81] * 0x10000 + (uint)profile[0x80] * 0x1000000 + (uint)profile[0x83]" (binary_expression "(uint)profile[0x81] * 0x10000 + (uint)profile[0x80] * 0x1000000" (binary_expression "(uint)profile[0x81] * 0x10000" (cast_expression "(uint)profile[0x81]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "profile[0x81]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)profile[0x80] * 0x1000000" (cast_expression "(uint)profile[0x80]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "profile[0x80]" identifier [ number_literal ])) * number_literal)) + (cast_expression "(uint)profile[0x83]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "profile[0x83]" identifier [ number_literal ]))) + (binary_expression "(uint)profile[0x82] * 0x100" (cast_expression "(uint)profile[0x82]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "profile[0x82]" identifier [ number_literal ])) * number_literal))) ;) (if_statement "if (iVar1 != 0) {\n    iVar4 = 0;\n    do {\n      while( true ) {\n        value = (uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000;\n        uVar2 = (uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000;\n        if ((profile_length < uVar2) ||\n           (profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100)) {\n          iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");\n          return iVar1;\n        }\n        if ((uVar2 & 3) == 0) break;\n        iVar4 = iVar4 + 1;\n        pbVar3 = pbVar3 + 0xc;\n        png_icc_profile_error\n                  (png_ptr,(png_colorspacerp)0x0,name,value,\n                   "ICC profile tag start not a multiple of 4");\n        if (iVar1 == iVar4) {\n          return 1;\n        }\n      }\n      iVar4 = iVar4 + 1;\n      pbVar3 = pbVar3 + 0xc;\n    } while (iVar1 != iVar4);\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar4 = 0;\n    do {\n      while( true ) {\n        value = (uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000;\n        uVar2 = (uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000;\n        if ((profile_length < uVar2) ||\n           (profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100)) {\n          iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");\n          return iVar1;\n        }\n        if ((uVar2 & 3) == 0) break;\n        iVar4 = iVar4 + 1;\n        pbVar3 = pbVar3 + 0xc;\n        png_icc_profile_error\n                  (png_ptr,(png_colorspacerp)0x0,name,value,\n                   "ICC profile tag start not a multiple of 4");\n        if (iVar1 == iVar4) {\n          return 1;\n        }\n      }\n      iVar4 = iVar4 + 1;\n      pbVar3 = pbVar3 + 0xc;\n    } while (iVar1 != iVar4);\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        value = (uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000;\n        uVar2 = (uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000;\n        if ((profile_length < uVar2) ||\n           (profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100)) {\n          iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");\n          return iVar1;\n        }\n        if ((uVar2 & 3) == 0) break;\n        iVar4 = iVar4 + 1;\n        pbVar3 = pbVar3 + 0xc;\n        png_icc_profile_error\n                  (png_ptr,(png_colorspacerp)0x0,name,value,\n                   "ICC profile tag start not a multiple of 4");\n        if (iVar1 == iVar4) {\n          return 1;\n        }\n      }\n      iVar4 = iVar4 + 1;\n      pbVar3 = pbVar3 + 0xc;\n    } while (iVar1 != iVar4);" do (compound_statement "{\n      while( true ) {\n        value = (uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000;\n        uVar2 = (uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000;\n        if ((profile_length < uVar2) ||\n           (profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100)) {\n          iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");\n          return iVar1;\n        }\n        if ((uVar2 & 3) == 0) break;\n        iVar4 = iVar4 + 1;\n        pbVar3 = pbVar3 + 0xc;\n        png_icc_profile_error\n                  (png_ptr,(png_colorspacerp)0x0,name,value,\n                   "ICC profile tag start not a multiple of 4");\n        if (iVar1 == iVar4) {\n          return 1;\n        }\n      }\n      iVar4 = iVar4 + 1;\n      pbVar3 = pbVar3 + 0xc;\n    }" { (while_statement "while( true ) {\n        value = (uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000;\n        uVar2 = (uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000;\n        if ((profile_length < uVar2) ||\n           (profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100)) {\n          iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");\n          return iVar1;\n        }\n        if ((uVar2 & 3) == 0) break;\n        iVar4 = iVar4 + 1;\n        pbVar3 = pbVar3 + 0xc;\n        png_icc_profile_error\n                  (png_ptr,(png_colorspacerp)0x0,name,value,\n                   "ICC profile tag start not a multiple of 4");\n        if (iVar1 == iVar4) {\n          return 1;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        value = (uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000;\n        uVar2 = (uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000;\n        if ((profile_length < uVar2) ||\n           (profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100)) {\n          iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");\n          return iVar1;\n        }\n        if ((uVar2 & 3) == 0) break;\n        iVar4 = iVar4 + 1;\n        pbVar3 = pbVar3 + 0xc;\n        png_icc_profile_error\n                  (png_ptr,(png_colorspacerp)0x0,name,value,\n                   "ICC profile tag start not a multiple of 4");\n        if (iVar1 == iVar4) {\n          return 1;\n        }\n      }" { (expression_statement "value = (uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000;" (assignment_expression "value = (uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000" identifier = (binary_expression "(uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000 + (uint)*pbVar3 * 0x1000000" (binary_expression "(uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3] + (uint)pbVar3[1] * 0x10000" (binary_expression "(uint)pbVar3[2] * 0x100 +\n                (uint)pbVar3[3]" (binary_expression "(uint)pbVar3[2] * 0x100" (cast_expression "(uint)pbVar3[2]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[2]" identifier [ number_literal ])) * number_literal) + (cast_expression "(uint)pbVar3[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[3]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar3[1] * 0x10000" (cast_expression "(uint)pbVar3[1]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[1]" identifier [ number_literal ])) * number_literal)) + (binary_expression "(uint)*pbVar3 * 0x1000000" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal))) ;) (expression_statement "uVar2 = (uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000;" (assignment_expression "uVar2 = (uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000" identifier = (binary_expression "(uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000 + (uint)pbVar3[4] * 0x1000000" (binary_expression "(uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7] + (uint)pbVar3[5] * 0x10000" (binary_expression "(uint)pbVar3[6] * 0x100 +\n                (uint)pbVar3[7]" (binary_expression "(uint)pbVar3[6] * 0x100" (cast_expression "(uint)pbVar3[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[6]" identifier [ number_literal ])) * number_literal) + (cast_expression "(uint)pbVar3[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[7]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar3[5] * 0x10000" (cast_expression "(uint)pbVar3[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[5]" identifier [ number_literal ])) * number_literal)) + (binary_expression "(uint)pbVar3[4] * 0x1000000" (cast_expression "(uint)pbVar3[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[4]" identifier [ number_literal ])) * number_literal))) ;) (if_statement "if ((profile_length < uVar2) ||\n           (profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100)) {\n          iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");\n          return iVar1;\n        }" if (parenthesized_expression "((profile_length < uVar2) ||\n           (profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100))" ( (binary_expression "(profile_length < uVar2) ||\n           (profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100)" (parenthesized_expression "(profile_length < uVar2)" ( (binary_expression "profile_length < uVar2" identifier < identifier) )) || (parenthesized_expression "(profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100)" ( (binary_expression "profile_length - uVar2 <\n            (uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100" (binary_expression "profile_length - uVar2" identifier - identifier) < (binary_expression "(uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb] +\n            (uint)pbVar3[10] * 0x100" (binary_expression "(uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000 + (uint)pbVar3[0xb]" (binary_expression "(uint)pbVar3[9] * 0x10000 + (uint)pbVar3[8] * 0x1000000" (binary_expression "(uint)pbVar3[9] * 0x10000" (cast_expression "(uint)pbVar3[9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[9]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)pbVar3[8] * 0x1000000" (cast_expression "(uint)pbVar3[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[8]" identifier [ number_literal ])) * number_literal)) + (cast_expression "(uint)pbVar3[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[0xb]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar3[10] * 0x100" (cast_expression "(uint)pbVar3[10]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar3[10]" identifier [ number_literal ])) * number_literal))) ))) )) (compound_statement "{\n          iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");\n          return iVar1;\n        }" { (expression_statement "iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");" (assignment_expression "iVar1 = png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile")" identifier = (call_expression "png_icc_profile_error\n                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile")" identifier (argument_list "(png_ptr,colorspace,name,value,"ICC profile tag outside profile")" ( identifier , identifier , identifier , identifier , (string_literal ""ICC profile tag outside profile"" " string_content ") )))) ;) (return_statement "return iVar1;" return identifier ;) })) (if_statement "if ((uVar2 & 3) == 0) break;" if (parenthesized_expression "((uVar2 & 3) == 0)" ( (binary_expression "(uVar2 & 3) == 0" (parenthesized_expression "(uVar2 & 3)" ( (binary_expression "uVar2 & 3" identifier & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 0xc;" (assignment_expression "pbVar3 = pbVar3 + 0xc" identifier = (binary_expression "pbVar3 + 0xc" identifier + number_literal)) ;) (expression_statement "png_icc_profile_error\n                  (png_ptr,(png_colorspacerp)0x0,name,value,\n                   "ICC profile tag start not a multiple of 4");" (call_expression "png_icc_profile_error\n                  (png_ptr,(png_colorspacerp)0x0,name,value,\n                   "ICC profile tag start not a multiple of 4")" identifier (argument_list "(png_ptr,(png_colorspacerp)0x0,name,value,\n                   "ICC profile tag start not a multiple of 4")" ( identifier , (cast_expression "(png_colorspacerp)0x0" ( (type_descriptor "png_colorspacerp" type_identifier) ) number_literal) , identifier , identifier , (string_literal ""ICC profile tag start not a multiple of 4"" " string_content ") ))) ;) (if_statement "if (iVar1 == iVar4) {\n          return 1;\n        }" if (parenthesized_expression "(iVar1 == iVar4)" ( (binary_expression "iVar1 == iVar4" identifier == identifier) )) (compound_statement "{\n          return 1;\n        }" { (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar3 + 0xc;" (assignment_expression "pbVar3 = pbVar3 + 0xc" identifier = (binary_expression "pbVar3 + 0xc" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar1 != iVar4)" ( (binary_expression "iVar1 != iVar4" identifier != identifier) )) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000166b0(void)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte bVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint in_stack_00000010;\n  int in_stack_00000014;\n  \n  pbVar8 = (byte *)(in_stack_00000014 + 0x84);\n  iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;\n  if (iVar5 != 0) {\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }\n  return 1;\n}\n\n" (function_definition "undefined4 FUN_000166b0(void)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte bVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint in_stack_00000010;\n  int in_stack_00000014;\n  \n  pbVar8 = (byte *)(in_stack_00000014 + 0x84);\n  iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;\n  if (iVar5 != 0) {\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_000166b0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte bVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint in_stack_00000010;\n  int in_stack_00000014;\n  \n  pbVar8 = (byte *)(in_stack_00000014 + 0x84);\n  iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;\n  if (iVar5 != 0) {\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }\n  return 1;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "byte *pbVar3;" type_identifier (pointer_declarator "*pbVar3" * identifier) ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint in_stack_00000010;" type_identifier identifier ;) (declaration "int in_stack_00000014;" primitive_type identifier ;) (expression_statement "pbVar8 = (byte *)(in_stack_00000014 + 0x84);" (assignment_expression "pbVar8 = (byte *)(in_stack_00000014 + 0x84)" identifier = (cast_expression "(byte *)(in_stack_00000014 + 0x84)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000014 + 0x84)" ( (binary_expression "in_stack_00000014 + 0x84" identifier + number_literal) )))) ;) (expression_statement "iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;" (assignment_expression "iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100" identifier = (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83)" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(in_stack_00000014 + 0x81)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000014 + 0x81)" ( (binary_expression "in_stack_00000014 + 0x81" identifier + number_literal) )))) * number_literal) + (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x80)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(in_stack_00000014 + 0x80)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000014 + 0x80)" ( (binary_expression "in_stack_00000014 + 0x80" identifier + number_literal) )))) * number_literal)) + (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x83)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(in_stack_00000014 + 0x83)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000014 + 0x83)" ( (binary_expression "in_stack_00000014 + 0x83" identifier + number_literal) ))))) + (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x82)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(byte *)(in_stack_00000014 + 0x82)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_00000014 + 0x82)" ( (binary_expression "in_stack_00000014 + 0x82" identifier + number_literal) )))) * number_literal))) ;) (if_statement "if (iVar5 != 0) {\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }" if (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }" { (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);" do (compound_statement "{\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    }" { (while_statement "while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }" { (expression_statement "bVar4 = *pbVar8;" (assignment_expression "bVar4 = *pbVar8" identifier = (pointer_expression "*pbVar8" * identifier)) ;) (expression_statement "pbVar1 = pbVar8 + 3;" (assignment_expression "pbVar1 = pbVar8 + 3" identifier = (binary_expression "pbVar8 + 3" identifier + number_literal)) ;) (expression_statement "pbVar2 = pbVar8 + 1;" (assignment_expression "pbVar2 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "pbVar3 = pbVar8 + 2;" (assignment_expression "pbVar3 = pbVar8 + 2" identifier = (binary_expression "pbVar8 + 2" identifier + number_literal)) ;) (expression_statement "uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;" (assignment_expression "uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000" identifier = (binary_expression "(uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000" (binary_expression "(uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000" (binary_expression "(uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7]" (binary_expression "(uint)pbVar8[6] * 0x100" (cast_expression "(uint)pbVar8[6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[6]" identifier [ number_literal ])) * number_literal) + (cast_expression "(uint)pbVar8[7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[7]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar8[5] * 0x10000" (cast_expression "(uint)pbVar8[5]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[5]" identifier [ number_literal ])) * number_literal)) + (binary_expression "(uint)pbVar8[4] * 0x1000000" (cast_expression "(uint)pbVar8[4]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[4]" identifier [ number_literal ])) * number_literal))) ;) (if_statement "if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }" if (parenthesized_expression "((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100))" ( (binary_expression "(in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)" (parenthesized_expression "(in_stack_00000010 < uVar6)" ( (binary_expression "in_stack_00000010 < uVar6" identifier < identifier) )) || (parenthesized_expression "(in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)" ( (binary_expression "in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100" (binary_expression "in_stack_00000010 - uVar6" identifier - identifier) < (binary_expression "(uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100" (binary_expression "(uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb]" (binary_expression "(uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000" (binary_expression "(uint)pbVar8[9] * 0x10000" (cast_expression "(uint)pbVar8[9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[9]" identifier [ number_literal ])) * number_literal) + (binary_expression "(uint)pbVar8[8] * 0x1000000" (cast_expression "(uint)pbVar8[8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[8]" identifier [ number_literal ])) * number_literal)) + (cast_expression "(uint)pbVar8[0xb]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[0xb]" identifier [ number_literal ]))) + (binary_expression "(uint)pbVar8[10] * 0x100" (cast_expression "(uint)pbVar8[10]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "pbVar8[10]" identifier [ number_literal ])) * number_literal))) ))) )) (compound_statement "{\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }" { (expression_statement "uVar7 = FUN_00014da0();" (assignment_expression "uVar7 = FUN_00014da0()" identifier = (call_expression "FUN_00014da0()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar7;" return identifier ;) })) (if_statement "if ((uVar6 & 3) == 0) break;" if (parenthesized_expression "((uVar6 & 3) == 0)" ( (binary_expression "(uVar6 & 3) == 0" (parenthesized_expression "(uVar6 & 3)" ( (binary_expression "uVar6 & 3" identifier & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 0xc;" (assignment_expression "pbVar8 = pbVar8 + 0xc" identifier = (binary_expression "pbVar8 + 0xc" identifier + number_literal)) ;) (expression_statement "FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");" (call_expression "FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4")" identifier (argument_list "((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4")" ( (binary_expression "(uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000" (binary_expression "(uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000" (binary_expression "(uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1" (binary_expression "(uint)*pbVar3 * 0x100" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal) + (binary_expression "(uint)*pbVar1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) + (binary_expression "(uint)*pbVar2 * 0x10000" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) * number_literal)) + (binary_expression "(uint)bVar4 * 0x1000000" (cast_expression "(uint)bVar4" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) , (string_literal ""ICC profile tag start not a multiple of 4"" " string_content ") ))) ;) (if_statement "if (iVar5 == iVar9) {\n          return 1;\n        }" if (parenthesized_expression "(iVar5 == iVar9)" ( (binary_expression "iVar5 == iVar9" identifier == identifier) )) (compound_statement "{\n          return 1;\n        }" { (return_statement "return 1;" return number_literal ;) })) })) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" identifier = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "pbVar8 = pbVar8 + 0xc;" (assignment_expression "pbVar8 = pbVar8 + 0xc" identifier = (binary_expression "pbVar8 + 0xc" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar5 != iVar9)" ( (binary_expression "iVar5 != iVar9" identifier != identifier) )) ;) })) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) + (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT)) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) || (parenthesized_expression ( (binary_expression (binary_expression IDENT - IDENT) < (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT)) + (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) * LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (binary_expression (binary_expression (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT) + (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) + (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) * LIT)) + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) , (string_literal " string_content ") ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000166b0(void)\n\n{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte bVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint in_stack_00000010;\n  int in_stack_00000014;\n  \n  pbVar8 = (byte *)(in_stack_00000014 + 0x84);\n  iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;\n  if (iVar5 != 0) {\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_000166b0(void)" (identifier "FUN_000166b0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  byte *pbVar2;\n  byte *pbVar3;\n  byte bVar4;\n  int iVar5;\n  uint uVar6;\n  undefined4 uVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint in_stack_00000010;\n  int in_stack_00000014;\n  \n  pbVar8 = (byte *)(in_stack_00000014 + 0x84);\n  iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;\n  if (iVar5 != 0) {\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }\n  return 1;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "byte *pbVar3;" (type_identifier "byte") (pointer_declarator "*pbVar3" (* "*") (identifier "pbVar3")) (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "uint in_stack_00000010;" (type_identifier "uint") (identifier "in_stack_00000010") (; ";")) (declaration "int in_stack_00000014;" (primitive_type "int") (identifier "in_stack_00000014") (; ";")) (expression_statement "pbVar8 = (byte *)(in_stack_00000014 + 0x84);" (assignment_expression "pbVar8 = (byte *)(in_stack_00000014 + 0x84)" (identifier "pbVar8") (= "=") (cast_expression "(byte *)(in_stack_00000014 + 0x84)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_stack_00000014 + 0x84)" (( "(") (binary_expression "in_stack_00000014 + 0x84" (identifier "in_stack_00000014") (+ "+") (number_literal "0x84")) () ")")))) (; ";")) (expression_statement "iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;" (assignment_expression "iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100" (identifier "iVar5") (= "=") (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83) +\n          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x83)" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +\n          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x81)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(in_stack_00000014 + 0x81)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_stack_00000014 + 0x81)" (( "(") (binary_expression "in_stack_00000014 + 0x81" (identifier "in_stack_00000014") (+ "+") (number_literal "0x81")) () ")")))) (* "*") (number_literal "0x10000")) (+ "+") (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x80)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(in_stack_00000014 + 0x80)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_stack_00000014 + 0x80)" (( "(") (binary_expression "in_stack_00000014 + 0x80" (identifier "in_stack_00000014") (+ "+") (number_literal "0x80")) () ")")))) (* "*") (number_literal "0x1000000"))) (+ "+") (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x83)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(in_stack_00000014 + 0x83)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_stack_00000014 + 0x83)" (( "(") (binary_expression "in_stack_00000014 + 0x83" (identifier "in_stack_00000014") (+ "+") (number_literal "0x83")) () ")"))))) (+ "+") (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100" (binary_expression "(uint)*(byte *)(in_stack_00000014 + 0x82)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(byte *)(in_stack_00000014 + 0x82)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_stack_00000014 + 0x82)" (( "(") (binary_expression "in_stack_00000014 + 0x82" (identifier "in_stack_00000014") (+ "+") (number_literal "0x82")) () ")")))) (* "*") (number_literal "0x100")))) (; ";")) (if_statement "if (iVar5 != 0) {\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }" (if "if") (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar9 = 0;\n    do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);\n  }" ({ "{") (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" (identifier "iVar9") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    } while (iVar5 != iVar9);" (do "do") (compound_statement "{\n      while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }\n      iVar9 = iVar9 + 1;\n      pbVar8 = pbVar8 + 0xc;\n    }" ({ "{") (while_statement "while( true ) {\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        bVar4 = *pbVar8;\n        pbVar1 = pbVar8 + 3;\n        pbVar2 = pbVar8 + 1;\n        pbVar3 = pbVar8 + 2;\n        uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;\n        if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }\n        if ((uVar6 & 3) == 0) break;\n        iVar9 = iVar9 + 1;\n        pbVar8 = pbVar8 + 0xc;\n        FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");\n        if (iVar5 == iVar9) {\n          return 1;\n        }\n      }" ({ "{") (expression_statement "bVar4 = *pbVar8;" (assignment_expression "bVar4 = *pbVar8" (identifier "bVar4") (= "=") (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8"))) (; ";")) (expression_statement "pbVar1 = pbVar8 + 3;" (assignment_expression "pbVar1 = pbVar8 + 3" (identifier "pbVar1") (= "=") (binary_expression "pbVar8 + 3" (identifier "pbVar8") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "pbVar2 = pbVar8 + 1;" (assignment_expression "pbVar2 = pbVar8 + 1" (identifier "pbVar2") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar3 = pbVar8 + 2;" (assignment_expression "pbVar3 = pbVar8 + 2" (identifier "pbVar3") (= "=") (binary_expression "pbVar8 + 2" (identifier "pbVar8") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;" (assignment_expression "uVar6 = (uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000" (identifier "uVar6") (= "=") (binary_expression "(uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000" (binary_expression "(uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000" (binary_expression "(uint)pbVar8[6] * 0x100 +\n                (uint)pbVar8[7]" (binary_expression "(uint)pbVar8[6] * 0x100" (cast_expression "(uint)pbVar8[6]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar8[6]" (identifier "pbVar8") ([ "[") (number_literal "6") (] "]"))) (* "*") (number_literal "0x100")) (+ "+") (cast_expression "(uint)pbVar8[7]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar8[7]" (identifier "pbVar8") ([ "[") (number_literal "7") (] "]")))) (+ "+") (binary_expression "(uint)pbVar8[5] * 0x10000" (cast_expression "(uint)pbVar8[5]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar8[5]" (identifier "pbVar8") ([ "[") (number_literal "5") (] "]"))) (* "*") (number_literal "0x10000"))) (+ "+") (binary_expression "(uint)pbVar8[4] * 0x1000000" (cast_expression "(uint)pbVar8[4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar8[4]" (identifier "pbVar8") ([ "[") (number_literal "4") (] "]"))) (* "*") (number_literal "0x1000000")))) (; ";")) (if_statement "if ((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)) {\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }" (if "if") (parenthesized_expression "((in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100))" (( "(") (binary_expression "(in_stack_00000010 < uVar6) ||\n           (in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)" (parenthesized_expression "(in_stack_00000010 < uVar6)" (( "(") (binary_expression "in_stack_00000010 < uVar6" (identifier "in_stack_00000010") (< "<") (identifier "uVar6")) () ")")) (|| "||") (parenthesized_expression "(in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100)" (( "(") (binary_expression "in_stack_00000010 - uVar6 <\n            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100" (binary_expression "in_stack_00000010 - uVar6" (identifier "in_stack_00000010") (- "-") (identifier "uVar6")) (< "<") (binary_expression "(uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +\n            (uint)pbVar8[10] * 0x100" (binary_expression "(uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb]" (binary_expression "(uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000" (binary_expression "(uint)pbVar8[9] * 0x10000" (cast_expression "(uint)pbVar8[9]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar8[9]" (identifier "pbVar8") ([ "[") (number_literal "9") (] "]"))) (* "*") (number_literal "0x10000")) (+ "+") (binary_expression "(uint)pbVar8[8] * 0x1000000" (cast_expression "(uint)pbVar8[8]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar8[8]" (identifier "pbVar8") ([ "[") (number_literal "8") (] "]"))) (* "*") (number_literal "0x1000000"))) (+ "+") (cast_expression "(uint)pbVar8[0xb]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar8[0xb]" (identifier "pbVar8") ([ "[") (number_literal "0xb") (] "]")))) (+ "+") (binary_expression "(uint)pbVar8[10] * 0x100" (cast_expression "(uint)pbVar8[10]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "pbVar8[10]" (identifier "pbVar8") ([ "[") (number_literal "10") (] "]"))) (* "*") (number_literal "0x100")))) () ")"))) () ")")) (compound_statement "{\n          uVar7 = FUN_00014da0();\n          return uVar7;\n        }" ({ "{") (expression_statement "uVar7 = FUN_00014da0();" (assignment_expression "uVar7 = FUN_00014da0()" (identifier "uVar7") (= "=") (call_expression "FUN_00014da0()" (identifier "FUN_00014da0") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar7;" (return "return") (identifier "uVar7") (; ";")) (} "}"))) (if_statement "if ((uVar6 & 3) == 0) break;" (if "if") (parenthesized_expression "((uVar6 & 3) == 0)" (( "(") (binary_expression "(uVar6 & 3) == 0" (parenthesized_expression "(uVar6 & 3)" (( "(") (binary_expression "uVar6 & 3" (identifier "uVar6") (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + 0xc;" (assignment_expression "pbVar8 = pbVar8 + 0xc" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 0xc" (identifier "pbVar8") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4");" (call_expression "FUN_00014da0((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4")" (identifier "FUN_00014da0") (argument_list "((uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,\n                     "ICC profile tag start not a multiple of 4")" (( "(") (binary_expression "(uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000" (binary_expression "(uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000" (binary_expression "(uint)*pbVar3 * 0x100 +\n                     (uint)*pbVar1" (binary_expression "(uint)*pbVar3 * 0x100" (binary_expression "(uint)*pbVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar3")) (* "*") (number_literal "0x100")) (+ "+") (binary_expression "(uint)*pbVar1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar1"))) (+ "+") (binary_expression "(uint)*pbVar2 * 0x10000" (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2")) (* "*") (number_literal "0x10000"))) (+ "+") (binary_expression "(uint)bVar4 * 0x1000000" (cast_expression "(uint)bVar4" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar4")) (* "*") (number_literal "0x1000000"))) (, ",") (string_literal ""ICC profile tag start not a multiple of 4"" (" """) (string_content "ICC profile tag start not a multiple of 4") (" """)) () ")"))) (; ";")) (if_statement "if (iVar5 == iVar9) {\n          return 1;\n        }" (if "if") (parenthesized_expression "(iVar5 == iVar9)" (( "(") (binary_expression "iVar5 == iVar9" (identifier "iVar5") (== "==") (identifier "iVar9")) () ")")) (compound_statement "{\n          return 1;\n        }" ({ "{") (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar9 = iVar9 + 1;" (assignment_expression "iVar9 = iVar9 + 1" (identifier "iVar9") (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar8 = pbVar8 + 0xc;" (assignment_expression "pbVar8 = pbVar8 + 0xc" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + 0xc" (identifier "pbVar8") (+ "+") (number_literal "0xc"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar5 != iVar9)" (( "(") (binary_expression "iVar5 != iVar9" (identifier "iVar5") (!= "!=") (identifier "iVar9")) () ")")) (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

int function_1
              (type_1 png_ptr,type_2 colorspace,type_3 name,
              type_4 var_4,type_5 var_1)

{
  int var_2;
  type_6 var_5;
  type_7 value;
  type_8 *var_3;
  int var_7;
  
  var_3 = var_1 + 0x84;
  var_2 = (type_6)var_1[0x81] * 0x10000 + (type_6)var_1[0x80] * 0x1000000 + (type_6)var_1[0x83] +
          (type_6)var_1[0x82] * 0x100;
  if (var_2 != 0) {
    var_7 = 0;
    do {
      while( true ) {
        value = (type_6)var_3[2] * 0x100 +
                (type_6)var_3[3] + (type_6)var_3[1] * 0x10000 + (type_6)*var_3 * 0x1000000;
        var_5 = (type_6)var_3[6] * 0x100 +
                (type_6)var_3[7] + (type_6)var_3[5] * 0x10000 + (type_6)var_3[4] * 0x1000000;
        if ((var_4 < var_5) ||
           (var_4 - var_5 <
            (type_6)var_3[9] * 0x10000 + (type_6)var_3[8] * 0x1000000 + (type_6)var_3[0xb] +
            (type_6)var_3[10] * 0x100)) {
          var_2 = var_6
                            (png_ptr,colorspace,name,value,"ICC profile tag outside profile");
          return var_2;
        }
        if ((var_5 & 3) == 0) break;
        var_7 = var_7 + 1;
        var_3 = var_3 + 0xc;
        var_6
                  (png_ptr,(type_2)0x0,name,value,
                   "ICC profile tag start not a multiple of 4");
        if (var_2 == var_7) {
          return 1;
        }
      }
      var_7 = var_7 + 1;
      var_3 = var_3 + 0xc;
    } while (var_2 != var_7);
  }
  return 1;
}


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

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 MASKED(void)

{
  byte *pbVar1;
  byte *pbVar2;
  byte *pbVar3;
  byte bVar4;
  int iVar5;
  uint uVar6;
  undefined4 uVar7;
  byte *pbVar8;
  int iVar9;
  uint in_stack_00000010;
  int in_stack_00000014;
  
  pbVar8 = (byte *)(in_stack_00000014 + 0x84);
  iVar5 = (uint)*(byte *)(in_stack_00000014 + 0x81) * 0x10000 +
          (uint)*(byte *)(in_stack_00000014 + 0x80) * 0x1000000 +
          (uint)*(byte *)(in_stack_00000014 + 0x83) +
          (uint)*(byte *)(in_stack_00000014 + 0x82) * 0x100;
  if (iVar5 != 0) {
    iVar9 = 0;
    do {
      while( true ) {
        bVar4 = *pbVar8;
        pbVar1 = pbVar8 + 3;
        pbVar2 = pbVar8 + 1;
        pbVar3 = pbVar8 + 2;
        uVar6 = (uint)pbVar8[6] * 0x100 +
                (uint)pbVar8[7] + (uint)pbVar8[5] * 0x10000 + (uint)pbVar8[4] * 0x1000000;
        if ((in_stack_00000010 < uVar6) ||
           (in_stack_00000010 - uVar6 <
            (uint)pbVar8[9] * 0x10000 + (uint)pbVar8[8] * 0x1000000 + (uint)pbVar8[0xb] +
            (uint)pbVar8[10] * 0x100)) {
          uVar7 = FUN_00014da0();
          return uVar7;
        }
        if ((uVar6 & 3) == 0) break;
        iVar9 = iVar9 + 1;
        pbVar8 = pbVar8 + 0xc;
        FUN_00014da0((uint)*pbVar3 * 0x100 +
                     (uint)*pbVar1 + (uint)*pbVar2 * 0x10000 + (uint)bVar4 * 0x1000000,
                     "ICC profile tag start not a multiple of 4");
        if (iVar5 == iVar9) {
          return 1;
        }
      }
      iVar9 = iVar9 + 1;
      pbVar8 = pbVar8 + 0xc;
    } while (iVar5 != iVar9);
  }
  return 1;
}

