
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void png_handle_eXIf(png_structrp png_ptr,png_inforp info_ptr,png_uint_32 length)

{
  int iVar1;
  uint uVar2;
  png_bytep ppVar3;
  int iVar4;
  png_uint_32 pVar5;
  int in_GS_OFFSET;
  png_byte buf [1];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  uVar2 = png_ptr->mode & 1;
  if (uVar2 == 0) {
                    /* WARNING: Subroutine does not return */
    png_chunk_error(png_ptr,"missing IHDR");
  }
  if (length < 2) {
    png_crc_finish(png_ptr,length);
    png_chunk_benign_error(png_ptr,"too short");
  }
  else if ((info_ptr == (png_inforp)0x0) || ((info_ptr->valid & 0x10000) != 0)) {
    png_crc_finish(png_ptr,length);
    png_chunk_benign_error(png_ptr,"duplicate");
  }
  else {
    info_ptr->free_me = info_ptr->free_me | 0x8000;
    ppVar3 = (png_bytep)png_malloc_warn(png_ptr,length);
    info_ptr->eXIf_buf = ppVar3;
    if (ppVar3 == (png_bytep)0x0) {
      png_crc_finish(png_ptr,length);
      png_chunk_benign_error(png_ptr,"out of memory");
    }
    else {
      png_crc_read(png_ptr,buf,1);
      *info_ptr->eXIf_buf = buf[0];
      pVar5 = 0;
      while (pVar5 = pVar5 + 1, length != pVar5) {
        while( true ) {
          png_crc_read(png_ptr,buf,1);
          info_ptr->eXIf_buf[pVar5] = buf[0];
          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;
          if (buf[0] != *info_ptr->eXIf_buf) {
            png_crc_finish(png_ptr,length);
            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");
            goto LAB_0002c72f;
          }
          pVar5 = uVar2 + 1;
          if (length == pVar5) goto LAB_0002c708;
        }
      }
LAB_0002c708:
      iVar4 = png_crc_finish(png_ptr,0);
      if (iVar4 == 0) {
        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);
LAB_0002c72f:
        png_free(png_ptr,info_ptr->eXIf_buf);
        info_ptr->eXIf_buf = (png_bytep)0x0;
      }
    }
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return;
}



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

void FUN_0002c5d0(int param_1,int param_2,uint param_3)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  int in_GS_OFFSET;
  byte local_21;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2c5d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = *(uint *)(param_1 + 0xd0) & 1;
  if (uVar1 == 0) {
                    /* WARNING: Subroutine does not return */
    png_chunk_error(param_1,"missing IHDR",param_2,param_2);
  }
  if (param_3 < 2) {
    FUN_0002a1a0(param_1,param_3);
    png_chunk_benign_error(param_1,"too short");
  }
  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {
    FUN_0002a1a0(param_1,param_3);
    png_chunk_benign_error(param_1,"duplicate");
  }
  else {
    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;
    iVar2 = png_malloc_warn(param_1,param_3);
    *(int *)(param_2 + 0xd4) = iVar2;
    if (iVar2 == 0) {
      FUN_0002a1a0(param_1,param_3);
      png_chunk_benign_error(param_1,"out of memory");
    }
    else {
      FUN_0002a080(param_1,&local_21,1);
      **(byte **)(param_2 + 0xd4) = local_21;
      uVar3 = 0;
      while (uVar3 = uVar3 + 1, param_3 != uVar3) {
        while( true ) {
          FUN_0002a080(param_1,&local_21,1);
          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;
          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;
          if (local_21 != **(byte **)(param_2 + 0xd4)) {
            FUN_0002a1a0(param_1,param_3);
            png_chunk_benign_error(param_1,"incorrect byte-order specifier");
            goto LAB_0002c72f;
          }
          uVar3 = uVar1 + 1;
          if (param_3 == uVar3) goto LAB_0002c708;
        }
      }
LAB_0002c708:
      iVar2 = FUN_0002a1a0(param_1,0);
      if (iVar2 == 0) {
        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));
LAB_0002c72f:
        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));
        *(undefined4 *)(param_2 + 0xd4) = 0;
      }
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0003a600();
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x217a7
SUB ESP,0x2c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x40]
MOV EBP,dword ptr [ESP + 0x44]
MOV EAX,dword ptr [EDI + 0xd0]
AND EAX,0x1
MOV dword ptr [ESP + 0xc],EAX
JZ 0x0002c7b9
CMP dword ptr [ESP + 0x48],0x1
JBE 0x0002c750
TEST EBP,EBP
JZ 0x0002c623
MOV ESI,dword ptr [EBP + 0x8]
AND ESI,0x10000
JZ 0x0002c660
SUB ESP,0x8
PUSH dword ptr [ESP + 0x50]
PUSH EDI
CALL 0x0002a1a0
POP EAX
LEA EAX,[EBX + 0xfffedbbb]
POP EDX
PUSH EAX
PUSH EDI
CALL 0x00014230
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x1c]
XOR EAX,dword ptr GS:[0x14]
JNZ 0x0002c7c8
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
OR dword ptr [EBP + 0xf4],0x8000
SUB ESP,0x8
PUSH dword ptr [ESP + 0x50]
PUSH EDI
CALL 0x00014120
ADD ESP,0x10
MOV dword ptr [EBP + 0xd4],EAX
TEST EAX,EAX
JZ 0x0002c774
SUB ESP,0x4
PUSH 0x1
LEA EAX,[ESP + 0x23]
MOV dword ptr [ESP + 0x10],EAX
PUSH EAX
PUSH EDI
CALL 0x0002a080
MOVZX ECX,byte ptr [ESP + 0x2b]
MOV EAX,dword ptr [EBP + 0xd4]
ADD ESP,0x10
MOV byte ptr [EAX],CL
LEA ESI,[ESI]
ADD ESI,0x1
CMP dword ptr [ESP + 0x48],ESI
JZ 0x0002c708
SUB ESP,0x4
PUSH 0x1
PUSH dword ptr [ESP + 0x10]
PUSH EDI
CALL 0x0002a080
MOVZX EAX,byte ptr [ESP + 0x2b]
MOV EDX,dword ptr [EBP + 0xd4]
ADD ESP,0x10
MOV byte ptr [EDX + ESI*0x1],AL
MOV EDX,EAX
AND EDX,0xfffffffb
CMP DL,0x49
JZ 0x0002c6b0
CMP ESI,0x1
JNZ 0x0002c6b0
MOV EDX,dword ptr [EBP + 0xd4]
CMP AL,byte ptr [EDX]
JNZ 0x0002c798
MOV ESI,dword ptr [ESP + 0xc]
ADD ESI,0x1
CMP dword ptr [ESP + 0x48],ESI
JNZ 0x0002c6b9
LEA ESI,[ESI]
NOP
SUB ESP,0x8
PUSH 0x0
PUSH EDI
CALL 0x0002a1a0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0002c642
PUSH dword ptr [EBP + 0xd4]
PUSH dword ptr [ESP + 0x4c]
PUSH EBP
PUSH EDI
CALL 0x00014410
POP EAX
POP EDX
PUSH dword ptr [EBP + 0xd4]
PUSH EDI
CALL 0x000147f0
ADD ESP,0x10
MOV dword ptr [EBP + 0xd4],0x0
JMP 0x0002c642
SUB ESP,0x8
PUSH dword ptr [ESP + 0x50]
PUSH EDI
CALL 0x0002a1a0
LEA EAX,[EBX + 0xffff151f]
POP ECX
POP ESI
PUSH EAX
PUSH EDI
CALL 0x00014230
ADD ESP,0x10
JMP 0x0002c642
SUB ESP,0x8
PUSH dword ptr [ESP + 0x50]
PUSH EDI
CALL 0x0002a1a0
POP EBP
POP EAX
LEA EAX,[EBX + 0xfffeed7d]
PUSH EAX
PUSH EDI
CALL 0x00014230
ADD ESP,0x10
JMP 0x0002c642
SUB ESP,0x8
PUSH dword ptr [ESP + 0x50]
PUSH EDI
CALL 0x0002a1a0
LEA EAX,[EBX + 0xfffefe28]
POP ECX
POP ESI
PUSH EAX
PUSH EDI
CALL 0x00014230
JMP 0x0002c72f
LEA EAX,[EBX + 0xfffefa2a]
PUSH EBP
PUSH EBP
PUSH EAX
PUSH EDI
CALL 0x00014070
CALL 0x0003a600
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_0002c5d0(int param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(uint *)(param_1 + 0xd0) & 1;\n  if (uVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }\n  if (param_3 < 2) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }\n  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0003a600();\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0002c5d0(int param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(uint *)(param_1 + 0xd0) & 1;\n  if (uVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }\n  if (param_3 < 2) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }\n  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0003a600();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002c5d0(int param_1,int param_2,uint param_3)" identifier (parameter_list "(int param_1,int param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(uint *)(param_1 + 0xd0) & 1;\n  if (uVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }\n  if (param_3 < 2) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }\n  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0003a600();\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte local_21;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2c5d9;" (assignment_expression "uStack_14 = 0x2c5d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xd0) & 1;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xd0) & 1" identifier = (binary_expression "*(uint *)(param_1 + 0xd0) & 1" (pointer_expression "*(uint *)(param_1 + 0xd0)" * (cast_expression "(uint *)(param_1 + 0xd0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if (uVar1 == 0) {\n                    /* WARNING: Subroutine does not return */\n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }" { comment (expression_statement "png_chunk_error(param_1,"missing IHDR",param_2,param_2);" (call_expression "png_chunk_error(param_1,"missing IHDR",param_2,param_2)" identifier (argument_list "(param_1,"missing IHDR",param_2,param_2)" ( identifier , (string_literal ""missing IHDR"" " string_content ") , identifier , identifier ))) ;) })) (if_statement "if (param_3 < 2) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }\n  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" if (parenthesized_expression "(param_3 < 2)" ( (binary_expression "param_3 < 2" identifier < number_literal) )) (compound_statement "{\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }" { (expression_statement "FUN_0002a1a0(param_1,param_3);" (call_expression "FUN_0002a1a0(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "png_chunk_benign_error(param_1,"too short");" (call_expression "png_chunk_benign_error(param_1,"too short")" identifier (argument_list "(param_1,"too short")" ( identifier , (string_literal ""too short"" " string_content ") ))) ;) }) (else_clause "else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" else (if_statement "if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" if (parenthesized_expression "((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0))" ( (binary_expression "(param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "((*(uint *)(param_2 + 8) & 0x10000) != 0)" ( (binary_expression "(*(uint *)(param_2 + 8) & 0x10000) != 0" (parenthesized_expression "(*(uint *)(param_2 + 8) & 0x10000)" ( (binary_expression "*(uint *)(param_2 + 8) & 0x10000" (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }" { (expression_statement "FUN_0002a1a0(param_1,param_3);" (call_expression "FUN_0002a1a0(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "png_chunk_benign_error(param_1,"duplicate");" (call_expression "png_chunk_benign_error(param_1,"duplicate")" identifier (argument_list "(param_1,"duplicate")" ( identifier , (string_literal ""duplicate"" " string_content ") ))) ;) }) (else_clause "else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" else (compound_statement "{\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" { (expression_statement "*(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;" (assignment_expression "*(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000" (pointer_expression "*(uint *)(param_2 + 0xf4)" * (cast_expression "(uint *)(param_2 + 0xf4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xf4)" ( (binary_expression "param_2 + 0xf4" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_2 + 0xf4) | 0x8000" (pointer_expression "*(uint *)(param_2 + 0xf4)" * (cast_expression "(uint *)(param_2 + 0xf4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xf4)" ( (binary_expression "param_2 + 0xf4" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar2 = png_malloc_warn(param_1,param_3);" (assignment_expression "iVar2 = png_malloc_warn(param_1,param_3)" identifier = (call_expression "png_malloc_warn(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(int *)(param_2 + 0xd4) = iVar2;" (assignment_expression "*(int *)(param_2 + 0xd4) = iVar2" (pointer_expression "*(int *)(param_2 + 0xd4)" * (cast_expression "(int *)(param_2 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }" { (expression_statement "FUN_0002a1a0(param_1,param_3);" (call_expression "FUN_0002a1a0(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "png_chunk_benign_error(param_1,"out of memory");" (call_expression "png_chunk_benign_error(param_1,"out of memory")" identifier (argument_list "(param_1,"out of memory")" ( identifier , (string_literal ""out of memory"" " string_content ") ))) ;) }) (else_clause "else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }" else (compound_statement "{\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }" { (expression_statement "FUN_0002a080(param_1,&local_21,1);" (call_expression "FUN_0002a080(param_1,&local_21,1)" identifier (argument_list "(param_1,&local_21,1)" ( identifier , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "**(byte **)(param_2 + 0xd4) = local_21;" (assignment_expression "**(byte **)(param_2 + 0xd4) = local_21" (pointer_expression "**(byte **)(param_2 + 0xd4)" * (pointer_expression "*(byte **)(param_2 + 0xd4)" * (cast_expression "(byte **)(param_2 + 0xd4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) ))))) = identifier) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (while_statement "while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }" while (parenthesized_expression "(uVar3 = uVar3 + 1, param_3 != uVar3)" ( (comma_expression "uVar3 = uVar3 + 1, param_3 != uVar3" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) , (binary_expression "param_3 != uVar3" identifier != identifier)) )) (compound_statement "{\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }" { (while_statement "while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }" { (expression_statement "FUN_0002a080(param_1,&local_21,1);" (call_expression "FUN_0002a080(param_1,&local_21,1)" identifier (argument_list "(param_1,&local_21,1)" ( identifier , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "*(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;" (assignment_expression "*(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21" (pointer_expression "*(byte *)(*(int *)(param_2 + 0xd4) + uVar3)" * (cast_expression "(byte *)(*(int *)(param_2 + 0xd4) + uVar3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0xd4) + uVar3)" ( (binary_expression "*(int *)(param_2 + 0xd4) + uVar3" (pointer_expression "*(int *)(param_2 + 0xd4)" * (cast_expression "(int *)(param_2 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))) + identifier) )))) = identifier) ;) (if_statement "if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;" if (parenthesized_expression "(((local_21 & 0xfb) == 0x49) || (uVar3 != 1))" ( (binary_expression "((local_21 & 0xfb) == 0x49) || (uVar3 != 1)" (parenthesized_expression "((local_21 & 0xfb) == 0x49)" ( (binary_expression "(local_21 & 0xfb) == 0x49" (parenthesized_expression "(local_21 & 0xfb)" ( (binary_expression "local_21 & 0xfb" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(uVar3 != 1)" ( (binary_expression "uVar3 != 1" identifier != number_literal) ))) )) (break_statement "break;" break ;)) (if_statement "if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }" if (parenthesized_expression "(local_21 != **(byte **)(param_2 + 0xd4))" ( (binary_expression "local_21 != **(byte **)(param_2 + 0xd4)" identifier != (pointer_expression "**(byte **)(param_2 + 0xd4)" * (pointer_expression "*(byte **)(param_2 + 0xd4)" * (cast_expression "(byte **)(param_2 + 0xd4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))))) )) (compound_statement "{\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }" { (expression_statement "FUN_0002a1a0(param_1,param_3);" (call_expression "FUN_0002a1a0(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "png_chunk_benign_error(param_1,"incorrect byte-order specifier");" (call_expression "png_chunk_benign_error(param_1,"incorrect byte-order specifier")" identifier (argument_list "(param_1,"incorrect byte-order specifier")" ( identifier , (string_literal ""incorrect byte-order specifier"" " string_content ") ))) ;) (goto_statement "goto LAB_0002c72f;" goto statement_identifier ;) })) (expression_statement "uVar3 = uVar1 + 1;" (assignment_expression "uVar3 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (if_statement "if (param_3 == uVar3) goto LAB_0002c708;" if (parenthesized_expression "(param_3 == uVar3)" ( (binary_expression "param_3 == uVar3" identifier == identifier) )) (goto_statement "goto LAB_0002c708;" goto statement_identifier ;)) })) })) (labeled_statement "LAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);" statement_identifier : (expression_statement "iVar2 = FUN_0002a1a0(param_1,0);" (assignment_expression "iVar2 = FUN_0002a1a0(param_1,0)" identifier = (call_expression "FUN_0002a1a0(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;)) (if_statement "if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }" { (expression_statement "png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));" (call_expression "png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4))" identifier (argument_list "(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4))" ( identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(param_2 + 0xd4)" * (cast_expression "(undefined4 *)(param_2 + 0xd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))) ))) ;) (labeled_statement "LAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));" statement_identifier : (expression_statement "png_free(param_1,*(undefined4 *)(param_2 + 0xd4));" (call_expression "png_free(param_1,*(undefined4 *)(param_2 + 0xd4))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0xd4))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0xd4)" * (cast_expression "(undefined4 *)(param_2 + 0xd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))) ))) ;)) (expression_statement "*(undefined4 *)(param_2 + 0xd4) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0xd4) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0xd4)" * (cast_expression "(undefined4 *)(param_2 + 0xd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))) = number_literal) ;) })) }))) }))))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0003a600();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0003a600();\n  }" { comment (expression_statement "FUN_0003a600();" (call_expression "FUN_0003a600()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid png_handle_eXIf(png_structrp png_ptr,png_inforp info_ptr,png_uint_32 length)\n\n{\n  int iVar1;\n  uint uVar2;\n  png_bytep ppVar3;\n  int iVar4;\n  png_uint_32 pVar5;\n  int in_GS_OFFSET;\n  png_byte buf [1];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = png_ptr->mode & 1;\n  if (uVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    png_chunk_error(png_ptr,"missing IHDR");\n  }\n  if (length < 2) {\n    png_crc_finish(png_ptr,length);\n    png_chunk_benign_error(png_ptr,"too short");\n  }\n  else if ((info_ptr == (png_inforp)0x0) || ((info_ptr->valid & 0x10000) != 0)) {\n    png_crc_finish(png_ptr,length);\n    png_chunk_benign_error(png_ptr,"duplicate");\n  }\n  else {\n    info_ptr->free_me = info_ptr->free_me | 0x8000;\n    ppVar3 = (png_bytep)png_malloc_warn(png_ptr,length);\n    info_ptr->eXIf_buf = ppVar3;\n    if (ppVar3 == (png_bytep)0x0) {\n      png_crc_finish(png_ptr,length);\n      png_chunk_benign_error(png_ptr,"out of memory");\n    }\n    else {\n      png_crc_read(png_ptr,buf,1);\n      *info_ptr->eXIf_buf = buf[0];\n      pVar5 = 0;\n      while (pVar5 = pVar5 + 1, length != pVar5) {\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar4 = png_crc_finish(png_ptr,0);\n      if (iVar4 == 0) {\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}\n\n" comment comment (function_definition "void png_handle_eXIf(png_structrp png_ptr,png_inforp info_ptr,png_uint_32 length)\n\n{\n  int iVar1;\n  uint uVar2;\n  png_bytep ppVar3;\n  int iVar4;\n  png_uint_32 pVar5;\n  int in_GS_OFFSET;\n  png_byte buf [1];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = png_ptr->mode & 1;\n  if (uVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    png_chunk_error(png_ptr,"missing IHDR");\n  }\n  if (length < 2) {\n    png_crc_finish(png_ptr,length);\n    png_chunk_benign_error(png_ptr,"too short");\n  }\n  else if ((info_ptr == (png_inforp)0x0) || ((info_ptr->valid & 0x10000) != 0)) {\n    png_crc_finish(png_ptr,length);\n    png_chunk_benign_error(png_ptr,"duplicate");\n  }\n  else {\n    info_ptr->free_me = info_ptr->free_me | 0x8000;\n    ppVar3 = (png_bytep)png_malloc_warn(png_ptr,length);\n    info_ptr->eXIf_buf = ppVar3;\n    if (ppVar3 == (png_bytep)0x0) {\n      png_crc_finish(png_ptr,length);\n      png_chunk_benign_error(png_ptr,"out of memory");\n    }\n    else {\n      png_crc_read(png_ptr,buf,1);\n      *info_ptr->eXIf_buf = buf[0];\n      pVar5 = 0;\n      while (pVar5 = pVar5 + 1, length != pVar5) {\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar4 = png_crc_finish(png_ptr,0);\n      if (iVar4 == 0) {\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" primitive_type (function_declarator "png_handle_eXIf(png_structrp png_ptr,png_inforp info_ptr,png_uint_32 length)" identifier (parameter_list "(png_structrp png_ptr,png_inforp info_ptr,png_uint_32 length)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_inforp info_ptr" type_identifier identifier) , (parameter_declaration "png_uint_32 length" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  png_bytep ppVar3;\n  int iVar4;\n  png_uint_32 pVar5;\n  int in_GS_OFFSET;\n  png_byte buf [1];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar2 = png_ptr->mode & 1;\n  if (uVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    png_chunk_error(png_ptr,"missing IHDR");\n  }\n  if (length < 2) {\n    png_crc_finish(png_ptr,length);\n    png_chunk_benign_error(png_ptr,"too short");\n  }\n  else if ((info_ptr == (png_inforp)0x0) || ((info_ptr->valid & 0x10000) != 0)) {\n    png_crc_finish(png_ptr,length);\n    png_chunk_benign_error(png_ptr,"duplicate");\n  }\n  else {\n    info_ptr->free_me = info_ptr->free_me | 0x8000;\n    ppVar3 = (png_bytep)png_malloc_warn(png_ptr,length);\n    info_ptr->eXIf_buf = ppVar3;\n    if (ppVar3 == (png_bytep)0x0) {\n      png_crc_finish(png_ptr,length);\n      png_chunk_benign_error(png_ptr,"out of memory");\n    }\n    else {\n      png_crc_read(png_ptr,buf,1);\n      *info_ptr->eXIf_buf = buf[0];\n      pVar5 = 0;\n      while (pVar5 = pVar5 + 1, length != pVar5) {\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar4 = png_crc_finish(png_ptr,0);\n      if (iVar4 == 0) {\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }\n    }\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "png_bytep ppVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "png_uint_32 pVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "png_byte buf [1];" type_identifier (array_declarator "buf [1]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar2 = png_ptr->mode & 1;" (assignment_expression "uVar2 = png_ptr->mode & 1" identifier = (binary_expression "png_ptr->mode & 1" (field_expression "png_ptr->mode" identifier -> field_identifier) & number_literal)) ;) (if_statement "if (uVar2 == 0) {\n                    /* WARNING: Subroutine does not return */\n    png_chunk_error(png_ptr,"missing IHDR");\n  }" if (parenthesized_expression "(uVar2 == 0)" ( (binary_expression "uVar2 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    png_chunk_error(png_ptr,"missing IHDR");\n  }" { comment (expression_statement "png_chunk_error(png_ptr,"missing IHDR");" (call_expression "png_chunk_error(png_ptr,"missing IHDR")" identifier (argument_list "(png_ptr,"missing IHDR")" ( identifier , (string_literal ""missing IHDR"" " string_content ") ))) ;) })) (if_statement "if (length < 2) {\n    png_crc_finish(png_ptr,length);\n    png_chunk_benign_error(png_ptr,"too short");\n  }\n  else if ((info_ptr == (png_inforp)0x0) || ((info_ptr->valid & 0x10000) != 0)) {\n    png_crc_finish(png_ptr,length);\n    png_chunk_benign_error(png_ptr,"duplicate");\n  }\n  else {\n    info_ptr->free_me = info_ptr->free_me | 0x8000;\n    ppVar3 = (png_bytep)png_malloc_warn(png_ptr,length);\n    info_ptr->eXIf_buf = ppVar3;\n    if (ppVar3 == (png_bytep)0x0) {\n      png_crc_finish(png_ptr,length);\n      png_chunk_benign_error(png_ptr,"out of memory");\n    }\n    else {\n      png_crc_read(png_ptr,buf,1);\n      *info_ptr->eXIf_buf = buf[0];\n      pVar5 = 0;\n      while (pVar5 = pVar5 + 1, length != pVar5) {\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar4 = png_crc_finish(png_ptr,0);\n      if (iVar4 == 0) {\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }\n    }\n  }" if (parenthesized_expression "(length < 2)" ( (binary_expression "length < 2" identifier < number_literal) )) (compound_statement "{\n    png_crc_finish(png_ptr,length);\n    png_chunk_benign_error(png_ptr,"too short");\n  }" { (expression_statement "png_crc_finish(png_ptr,length);" (call_expression "png_crc_finish(png_ptr,length)" identifier (argument_list "(png_ptr,length)" ( identifier , identifier ))) ;) (expression_statement "png_chunk_benign_error(png_ptr,"too short");" (call_expression "png_chunk_benign_error(png_ptr,"too short")" identifier (argument_list "(png_ptr,"too short")" ( identifier , (string_literal ""too short"" " string_content ") ))) ;) }) (else_clause "else if ((info_ptr == (png_inforp)0x0) || ((info_ptr->valid & 0x10000) != 0)) {\n    png_crc_finish(png_ptr,length);\n    png_chunk_benign_error(png_ptr,"duplicate");\n  }\n  else {\n    info_ptr->free_me = info_ptr->free_me | 0x8000;\n    ppVar3 = (png_bytep)png_malloc_warn(png_ptr,length);\n    info_ptr->eXIf_buf = ppVar3;\n    if (ppVar3 == (png_bytep)0x0) {\n      png_crc_finish(png_ptr,length);\n      png_chunk_benign_error(png_ptr,"out of memory");\n    }\n    else {\n      png_crc_read(png_ptr,buf,1);\n      *info_ptr->eXIf_buf = buf[0];\n      pVar5 = 0;\n      while (pVar5 = pVar5 + 1, length != pVar5) {\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar4 = png_crc_finish(png_ptr,0);\n      if (iVar4 == 0) {\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }\n    }\n  }" else (if_statement "if ((info_ptr == (png_inforp)0x0) || ((info_ptr->valid & 0x10000) != 0)) {\n    png_crc_finish(png_ptr,length);\n    png_chunk_benign_error(png_ptr,"duplicate");\n  }\n  else {\n    info_ptr->free_me = info_ptr->free_me | 0x8000;\n    ppVar3 = (png_bytep)png_malloc_warn(png_ptr,length);\n    info_ptr->eXIf_buf = ppVar3;\n    if (ppVar3 == (png_bytep)0x0) {\n      png_crc_finish(png_ptr,length);\n      png_chunk_benign_error(png_ptr,"out of memory");\n    }\n    else {\n      png_crc_read(png_ptr,buf,1);\n      *info_ptr->eXIf_buf = buf[0];\n      pVar5 = 0;\n      while (pVar5 = pVar5 + 1, length != pVar5) {\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar4 = png_crc_finish(png_ptr,0);\n      if (iVar4 == 0) {\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }\n    }\n  }" if (parenthesized_expression "((info_ptr == (png_inforp)0x0) || ((info_ptr->valid & 0x10000) != 0))" ( (binary_expression "(info_ptr == (png_inforp)0x0) || ((info_ptr->valid & 0x10000) != 0)" (parenthesized_expression "(info_ptr == (png_inforp)0x0)" ( (binary_expression "info_ptr == (png_inforp)0x0" identifier == (cast_expression "(png_inforp)0x0" ( (type_descriptor "png_inforp" type_identifier) ) number_literal)) )) || (parenthesized_expression "((info_ptr->valid & 0x10000) != 0)" ( (binary_expression "(info_ptr->valid & 0x10000) != 0" (parenthesized_expression "(info_ptr->valid & 0x10000)" ( (binary_expression "info_ptr->valid & 0x10000" (field_expression "info_ptr->valid" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    png_crc_finish(png_ptr,length);\n    png_chunk_benign_error(png_ptr,"duplicate");\n  }" { (expression_statement "png_crc_finish(png_ptr,length);" (call_expression "png_crc_finish(png_ptr,length)" identifier (argument_list "(png_ptr,length)" ( identifier , identifier ))) ;) (expression_statement "png_chunk_benign_error(png_ptr,"duplicate");" (call_expression "png_chunk_benign_error(png_ptr,"duplicate")" identifier (argument_list "(png_ptr,"duplicate")" ( identifier , (string_literal ""duplicate"" " string_content ") ))) ;) }) (else_clause "else {\n    info_ptr->free_me = info_ptr->free_me | 0x8000;\n    ppVar3 = (png_bytep)png_malloc_warn(png_ptr,length);\n    info_ptr->eXIf_buf = ppVar3;\n    if (ppVar3 == (png_bytep)0x0) {\n      png_crc_finish(png_ptr,length);\n      png_chunk_benign_error(png_ptr,"out of memory");\n    }\n    else {\n      png_crc_read(png_ptr,buf,1);\n      *info_ptr->eXIf_buf = buf[0];\n      pVar5 = 0;\n      while (pVar5 = pVar5 + 1, length != pVar5) {\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar4 = png_crc_finish(png_ptr,0);\n      if (iVar4 == 0) {\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }\n    }\n  }" else (compound_statement "{\n    info_ptr->free_me = info_ptr->free_me | 0x8000;\n    ppVar3 = (png_bytep)png_malloc_warn(png_ptr,length);\n    info_ptr->eXIf_buf = ppVar3;\n    if (ppVar3 == (png_bytep)0x0) {\n      png_crc_finish(png_ptr,length);\n      png_chunk_benign_error(png_ptr,"out of memory");\n    }\n    else {\n      png_crc_read(png_ptr,buf,1);\n      *info_ptr->eXIf_buf = buf[0];\n      pVar5 = 0;\n      while (pVar5 = pVar5 + 1, length != pVar5) {\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar4 = png_crc_finish(png_ptr,0);\n      if (iVar4 == 0) {\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }\n    }\n  }" { (expression_statement "info_ptr->free_me = info_ptr->free_me | 0x8000;" (assignment_expression "info_ptr->free_me = info_ptr->free_me | 0x8000" (field_expression "info_ptr->free_me" identifier -> field_identifier) = (binary_expression "info_ptr->free_me | 0x8000" (field_expression "info_ptr->free_me" identifier -> field_identifier) | number_literal)) ;) (expression_statement "ppVar3 = (png_bytep)png_malloc_warn(png_ptr,length);" (assignment_expression "ppVar3 = (png_bytep)png_malloc_warn(png_ptr,length)" identifier = (cast_expression "(png_bytep)png_malloc_warn(png_ptr,length)" ( (type_descriptor "png_bytep" type_identifier) ) (call_expression "png_malloc_warn(png_ptr,length)" identifier (argument_list "(png_ptr,length)" ( identifier , identifier ))))) ;) (expression_statement "info_ptr->eXIf_buf = ppVar3;" (assignment_expression "info_ptr->eXIf_buf = ppVar3" (field_expression "info_ptr->eXIf_buf" identifier -> field_identifier) = identifier) ;) (if_statement "if (ppVar3 == (png_bytep)0x0) {\n      png_crc_finish(png_ptr,length);\n      png_chunk_benign_error(png_ptr,"out of memory");\n    }\n    else {\n      png_crc_read(png_ptr,buf,1);\n      *info_ptr->eXIf_buf = buf[0];\n      pVar5 = 0;\n      while (pVar5 = pVar5 + 1, length != pVar5) {\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar4 = png_crc_finish(png_ptr,0);\n      if (iVar4 == 0) {\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }\n    }" if (parenthesized_expression "(ppVar3 == (png_bytep)0x0)" ( (binary_expression "ppVar3 == (png_bytep)0x0" identifier == (cast_expression "(png_bytep)0x0" ( (type_descriptor "png_bytep" type_identifier) ) number_literal)) )) (compound_statement "{\n      png_crc_finish(png_ptr,length);\n      png_chunk_benign_error(png_ptr,"out of memory");\n    }" { (expression_statement "png_crc_finish(png_ptr,length);" (call_expression "png_crc_finish(png_ptr,length)" identifier (argument_list "(png_ptr,length)" ( identifier , identifier ))) ;) (expression_statement "png_chunk_benign_error(png_ptr,"out of memory");" (call_expression "png_chunk_benign_error(png_ptr,"out of memory")" identifier (argument_list "(png_ptr,"out of memory")" ( identifier , (string_literal ""out of memory"" " string_content ") ))) ;) }) (else_clause "else {\n      png_crc_read(png_ptr,buf,1);\n      *info_ptr->eXIf_buf = buf[0];\n      pVar5 = 0;\n      while (pVar5 = pVar5 + 1, length != pVar5) {\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar4 = png_crc_finish(png_ptr,0);\n      if (iVar4 == 0) {\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }\n    }" else (compound_statement "{\n      png_crc_read(png_ptr,buf,1);\n      *info_ptr->eXIf_buf = buf[0];\n      pVar5 = 0;\n      while (pVar5 = pVar5 + 1, length != pVar5) {\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar4 = png_crc_finish(png_ptr,0);\n      if (iVar4 == 0) {\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }\n    }" { (expression_statement "png_crc_read(png_ptr,buf,1);" (call_expression "png_crc_read(png_ptr,buf,1)" identifier (argument_list "(png_ptr,buf,1)" ( identifier , identifier , number_literal ))) ;) (expression_statement "*info_ptr->eXIf_buf = buf[0];" (assignment_expression "*info_ptr->eXIf_buf = buf[0]" (pointer_expression "*info_ptr->eXIf_buf" * (field_expression "info_ptr->eXIf_buf" identifier -> field_identifier)) = (subscript_expression "buf[0]" identifier [ number_literal ])) ;) (expression_statement "pVar5 = 0;" (assignment_expression "pVar5 = 0" identifier = number_literal) ;) (while_statement "while (pVar5 = pVar5 + 1, length != pVar5) {\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }" while (parenthesized_expression "(pVar5 = pVar5 + 1, length != pVar5)" ( (comma_expression "pVar5 = pVar5 + 1, length != pVar5" (assignment_expression "pVar5 = pVar5 + 1" identifier = (binary_expression "pVar5 + 1" identifier + number_literal)) , (binary_expression "length != pVar5" identifier != identifier)) )) (compound_statement "{\n        while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }\n      }" { (while_statement "while( true ) {\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          png_crc_read(png_ptr,buf,1);\n          info_ptr->eXIf_buf[pVar5] = buf[0];\n          if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;\n          if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          pVar5 = uVar2 + 1;\n          if (length == pVar5) goto LAB_0002c708;\n        }" { (expression_statement "png_crc_read(png_ptr,buf,1);" (call_expression "png_crc_read(png_ptr,buf,1)" identifier (argument_list "(png_ptr,buf,1)" ( identifier , identifier , number_literal ))) ;) (expression_statement "info_ptr->eXIf_buf[pVar5] = buf[0];" (assignment_expression "info_ptr->eXIf_buf[pVar5] = buf[0]" (subscript_expression "info_ptr->eXIf_buf[pVar5]" (field_expression "info_ptr->eXIf_buf" identifier -> field_identifier) [ identifier ]) = (subscript_expression "buf[0]" identifier [ number_literal ])) ;) (if_statement "if (((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)) break;" if (parenthesized_expression "(((buf[0] & 0xfb) == 0x49) || (pVar5 != 1))" ( (binary_expression "((buf[0] & 0xfb) == 0x49) || (pVar5 != 1)" (parenthesized_expression "((buf[0] & 0xfb) == 0x49)" ( (binary_expression "(buf[0] & 0xfb) == 0x49" (parenthesized_expression "(buf[0] & 0xfb)" ( (binary_expression "buf[0] & 0xfb" (subscript_expression "buf[0]" identifier [ number_literal ]) & number_literal) )) == number_literal) )) || (parenthesized_expression "(pVar5 != 1)" ( (binary_expression "pVar5 != 1" identifier != number_literal) ))) )) (break_statement "break;" break ;)) (if_statement "if (buf[0] != *info_ptr->eXIf_buf) {\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }" if (parenthesized_expression "(buf[0] != *info_ptr->eXIf_buf)" ( (binary_expression "buf[0] != *info_ptr->eXIf_buf" (subscript_expression "buf[0]" identifier [ number_literal ]) != (pointer_expression "*info_ptr->eXIf_buf" * (field_expression "info_ptr->eXIf_buf" identifier -> field_identifier))) )) (compound_statement "{\n            png_crc_finish(png_ptr,length);\n            png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }" { (expression_statement "png_crc_finish(png_ptr,length);" (call_expression "png_crc_finish(png_ptr,length)" identifier (argument_list "(png_ptr,length)" ( identifier , identifier ))) ;) (expression_statement "png_chunk_benign_error(png_ptr,"incorrect byte-order specifier");" (call_expression "png_chunk_benign_error(png_ptr,"incorrect byte-order specifier")" identifier (argument_list "(png_ptr,"incorrect byte-order specifier")" ( identifier , (string_literal ""incorrect byte-order specifier"" " string_content ") ))) ;) (goto_statement "goto LAB_0002c72f;" goto statement_identifier ;) })) (expression_statement "pVar5 = uVar2 + 1;" (assignment_expression "pVar5 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (if_statement "if (length == pVar5) goto LAB_0002c708;" if (parenthesized_expression "(length == pVar5)" ( (binary_expression "length == pVar5" identifier == identifier) )) (goto_statement "goto LAB_0002c708;" goto statement_identifier ;)) })) })) (labeled_statement "LAB_0002c708:\n      iVar4 = png_crc_finish(png_ptr,0);" statement_identifier : (expression_statement "iVar4 = png_crc_finish(png_ptr,0);" (assignment_expression "iVar4 = png_crc_finish(png_ptr,0)" identifier = (call_expression "png_crc_finish(png_ptr,0)" identifier (argument_list "(png_ptr,0)" ( identifier , number_literal )))) ;)) (if_statement "if (iVar4 == 0) {\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);\nLAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);\n        info_ptr->eXIf_buf = (png_bytep)0x0;\n      }" { (expression_statement "png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf);" (call_expression "png_set_eXIf_1(png_ptr,info_ptr,length,info_ptr->eXIf_buf)" identifier (argument_list "(png_ptr,info_ptr,length,info_ptr->eXIf_buf)" ( identifier , identifier , identifier , (field_expression "info_ptr->eXIf_buf" identifier -> field_identifier) ))) ;) (labeled_statement "LAB_0002c72f:\n        png_free(png_ptr,info_ptr->eXIf_buf);" statement_identifier : (expression_statement "png_free(png_ptr,info_ptr->eXIf_buf);" (call_expression "png_free(png_ptr,info_ptr->eXIf_buf)" identifier (argument_list "(png_ptr,info_ptr->eXIf_buf)" ( identifier , (field_expression "info_ptr->eXIf_buf" identifier -> field_identifier) ))) ;)) (expression_statement "info_ptr->eXIf_buf = (png_bytep)0x0;" (assignment_expression "info_ptr->eXIf_buf = (png_bytep)0x0" (field_expression "info_ptr->eXIf_buf" identifier -> field_identifier) = (cast_expression "(png_bytep)0x0" ( (type_descriptor "png_bytep" type_identifier) ) number_literal)) ;) })) }))) }))))) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0002c5d0(int param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(uint *)(param_1 + 0xd0) & 1;\n  if (uVar1 == 0) {\n                    \n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }\n  if (param_3 < 2) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }\n  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003a600();\n  }\n  return;\n}\n\n" (function_definition "void FUN_0002c5d0(int param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(uint *)(param_1 + 0xd0) & 1;\n  if (uVar1 == 0) {\n                    \n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }\n  if (param_3 < 2) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }\n  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003a600();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0002c5d0(int param_1,int param_2,uint param_3)" identifier (parameter_list "(int param_1,int param_2,uint param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(uint *)(param_1 + 0xd0) & 1;\n  if (uVar1 == 0) {\n                    \n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }\n  if (param_3 < 2) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }\n  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003a600();\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte local_21;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2c5d9;" (assignment_expression "uStack_14 = 0x2c5d9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xd0) & 1;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xd0) & 1" identifier = (binary_expression "*(uint *)(param_1 + 0xd0) & 1" (pointer_expression "*(uint *)(param_1 + 0xd0)" * (cast_expression "(uint *)(param_1 + 0xd0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if (uVar1 == 0) {\n                    \n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }" if (parenthesized_expression "(uVar1 == 0)" ( (binary_expression "uVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }" { (expression_statement "png_chunk_error(param_1,"missing IHDR",param_2,param_2);" (call_expression "png_chunk_error(param_1,"missing IHDR",param_2,param_2)" identifier (argument_list "(param_1,"missing IHDR",param_2,param_2)" ( identifier , (string_literal ""missing IHDR"" " string_content ") , identifier , identifier ))) ;) })) (if_statement "if (param_3 < 2) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }\n  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" if (parenthesized_expression "(param_3 < 2)" ( (binary_expression "param_3 < 2" identifier < number_literal) )) (compound_statement "{\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }" { (expression_statement "FUN_0002a1a0(param_1,param_3);" (call_expression "FUN_0002a1a0(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "png_chunk_benign_error(param_1,"too short");" (call_expression "png_chunk_benign_error(param_1,"too short")" identifier (argument_list "(param_1,"too short")" ( identifier , (string_literal ""too short"" " string_content ") ))) ;) }) (else_clause "else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" else (if_statement "if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" if (parenthesized_expression "((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0))" ( (binary_expression "(param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "((*(uint *)(param_2 + 8) & 0x10000) != 0)" ( (binary_expression "(*(uint *)(param_2 + 8) & 0x10000) != 0" (parenthesized_expression "(*(uint *)(param_2 + 8) & 0x10000)" ( (binary_expression "*(uint *)(param_2 + 8) & 0x10000" (pointer_expression "*(uint *)(param_2 + 8)" * (cast_expression "(uint *)(param_2 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }" { (expression_statement "FUN_0002a1a0(param_1,param_3);" (call_expression "FUN_0002a1a0(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "png_chunk_benign_error(param_1,"duplicate");" (call_expression "png_chunk_benign_error(param_1,"duplicate")" identifier (argument_list "(param_1,"duplicate")" ( identifier , (string_literal ""duplicate"" " string_content ") ))) ;) }) (else_clause "else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" else (compound_statement "{\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" { (expression_statement "*(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;" (assignment_expression "*(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000" (pointer_expression "*(uint *)(param_2 + 0xf4)" * (cast_expression "(uint *)(param_2 + 0xf4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xf4)" ( (binary_expression "param_2 + 0xf4" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_2 + 0xf4) | 0x8000" (pointer_expression "*(uint *)(param_2 + 0xf4)" * (cast_expression "(uint *)(param_2 + 0xf4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xf4)" ( (binary_expression "param_2 + 0xf4" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "iVar2 = png_malloc_warn(param_1,param_3);" (assignment_expression "iVar2 = png_malloc_warn(param_1,param_3)" identifier = (call_expression "png_malloc_warn(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(int *)(param_2 + 0xd4) = iVar2;" (assignment_expression "*(int *)(param_2 + 0xd4) = iVar2" (pointer_expression "*(int *)(param_2 + 0xd4)" * (cast_expression "(int *)(param_2 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }" { (expression_statement "FUN_0002a1a0(param_1,param_3);" (call_expression "FUN_0002a1a0(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "png_chunk_benign_error(param_1,"out of memory");" (call_expression "png_chunk_benign_error(param_1,"out of memory")" identifier (argument_list "(param_1,"out of memory")" ( identifier , (string_literal ""out of memory"" " string_content ") ))) ;) }) (else_clause "else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }" else (compound_statement "{\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }" { (expression_statement "FUN_0002a080(param_1,&local_21,1);" (call_expression "FUN_0002a080(param_1,&local_21,1)" identifier (argument_list "(param_1,&local_21,1)" ( identifier , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "**(byte **)(param_2 + 0xd4) = local_21;" (assignment_expression "**(byte **)(param_2 + 0xd4) = local_21" (pointer_expression "**(byte **)(param_2 + 0xd4)" * (pointer_expression "*(byte **)(param_2 + 0xd4)" * (cast_expression "(byte **)(param_2 + 0xd4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) ))))) = identifier) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (while_statement "while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }" while (parenthesized_expression "(uVar3 = uVar3 + 1, param_3 != uVar3)" ( (comma_expression "uVar3 = uVar3 + 1, param_3 != uVar3" (assignment_expression "uVar3 = uVar3 + 1" identifier = (binary_expression "uVar3 + 1" identifier + number_literal)) , (binary_expression "param_3 != uVar3" identifier != identifier)) )) (compound_statement "{\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }" { (while_statement "while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }" { (expression_statement "FUN_0002a080(param_1,&local_21,1);" (call_expression "FUN_0002a080(param_1,&local_21,1)" identifier (argument_list "(param_1,&local_21,1)" ( identifier , (pointer_expression "&local_21" & identifier) , number_literal ))) ;) (expression_statement "*(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;" (assignment_expression "*(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21" (pointer_expression "*(byte *)(*(int *)(param_2 + 0xd4) + uVar3)" * (cast_expression "(byte *)(*(int *)(param_2 + 0xd4) + uVar3)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0xd4) + uVar3)" ( (binary_expression "*(int *)(param_2 + 0xd4) + uVar3" (pointer_expression "*(int *)(param_2 + 0xd4)" * (cast_expression "(int *)(param_2 + 0xd4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))) + identifier) )))) = identifier) ;) (if_statement "if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;" if (parenthesized_expression "(((local_21 & 0xfb) == 0x49) || (uVar3 != 1))" ( (binary_expression "((local_21 & 0xfb) == 0x49) || (uVar3 != 1)" (parenthesized_expression "((local_21 & 0xfb) == 0x49)" ( (binary_expression "(local_21 & 0xfb) == 0x49" (parenthesized_expression "(local_21 & 0xfb)" ( (binary_expression "local_21 & 0xfb" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "(uVar3 != 1)" ( (binary_expression "uVar3 != 1" identifier != number_literal) ))) )) (break_statement "break;" break ;)) (if_statement "if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }" if (parenthesized_expression "(local_21 != **(byte **)(param_2 + 0xd4))" ( (binary_expression "local_21 != **(byte **)(param_2 + 0xd4)" identifier != (pointer_expression "**(byte **)(param_2 + 0xd4)" * (pointer_expression "*(byte **)(param_2 + 0xd4)" * (cast_expression "(byte **)(param_2 + 0xd4)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))))) )) (compound_statement "{\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }" { (expression_statement "FUN_0002a1a0(param_1,param_3);" (call_expression "FUN_0002a1a0(param_1,param_3)" identifier (argument_list "(param_1,param_3)" ( identifier , identifier ))) ;) (expression_statement "png_chunk_benign_error(param_1,"incorrect byte-order specifier");" (call_expression "png_chunk_benign_error(param_1,"incorrect byte-order specifier")" identifier (argument_list "(param_1,"incorrect byte-order specifier")" ( identifier , (string_literal ""incorrect byte-order specifier"" " string_content ") ))) ;) (goto_statement "goto LAB_0002c72f;" goto statement_identifier ;) })) (expression_statement "uVar3 = uVar1 + 1;" (assignment_expression "uVar3 = uVar1 + 1" identifier = (binary_expression "uVar1 + 1" identifier + number_literal)) ;) (if_statement "if (param_3 == uVar3) goto LAB_0002c708;" if (parenthesized_expression "(param_3 == uVar3)" ( (binary_expression "param_3 == uVar3" identifier == identifier) )) (goto_statement "goto LAB_0002c708;" goto statement_identifier ;)) })) })) (labeled_statement "LAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);" statement_identifier : (expression_statement "iVar2 = FUN_0002a1a0(param_1,0);" (assignment_expression "iVar2 = FUN_0002a1a0(param_1,0)" identifier = (call_expression "FUN_0002a1a0(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;)) (if_statement "if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }" { (expression_statement "png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));" (call_expression "png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4))" identifier (argument_list "(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4))" ( identifier , identifier , identifier , (pointer_expression "*(undefined4 *)(param_2 + 0xd4)" * (cast_expression "(undefined4 *)(param_2 + 0xd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))) ))) ;) (labeled_statement "LAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));" statement_identifier : (expression_statement "png_free(param_1,*(undefined4 *)(param_2 + 0xd4));" (call_expression "png_free(param_1,*(undefined4 *)(param_2 + 0xd4))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0xd4))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0xd4)" * (cast_expression "(undefined4 *)(param_2 + 0xd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))) ))) ;)) (expression_statement "*(undefined4 *)(param_2 + 0xd4) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0xd4) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0xd4)" * (cast_expression "(undefined4 *)(param_2 + 0xd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))) = number_literal) ;) })) }))) }))))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003a600();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0003a600();\n  }" { (expression_statement "FUN_0003a600();" (call_expression "FUN_0003a600()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT != IDENT)) )) (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (break_statement break ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (goto_statement goto statement_identifier ;)) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) }))) }))))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0002c5d0(int param_1,int param_2,uint param_3)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(uint *)(param_1 + 0xd0) & 1;\n  if (uVar1 == 0) {\n                    \n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }\n  if (param_3 < 2) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }\n  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003a600();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0002c5d0(int param_1,int param_2,uint param_3)" (identifier "FUN_0002c5d0") (parameter_list "(int param_1,int param_2,uint param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  int in_GS_OFFSET;\n  byte local_21;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2c5d9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = *(uint *)(param_1 + 0xd0) & 1;\n  if (uVar1 == 0) {\n                    \n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }\n  if (param_3 < 2) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }\n  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003a600();\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte local_21;" (type_identifier "byte") (identifier "local_21") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x2c5d9;" (assignment_expression "uStack_14 = 0x2c5d9" (identifier "uStack_14") (= "=") (number_literal "0x2c5d9")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0xd0) & 1;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xd0) & 1" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(param_1 + 0xd0) & 1" (pointer_expression "*(uint *)(param_1 + 0xd0)" (* "*") (cast_expression "(uint *)(param_1 + 0xd0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd0)" (( "(") (binary_expression "param_1 + 0xd0" (identifier "param_1") (+ "+") (number_literal "0xd0")) () ")")))) (& "&") (number_literal "1"))) (; ";")) (if_statement "if (uVar1 == 0) {\n                    \n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }" (if "if") (parenthesized_expression "(uVar1 == 0)" (( "(") (binary_expression "uVar1 == 0" (identifier "uVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    png_chunk_error(param_1,"missing IHDR",param_2,param_2);\n  }" ({ "{") (expression_statement "png_chunk_error(param_1,"missing IHDR",param_2,param_2);" (call_expression "png_chunk_error(param_1,"missing IHDR",param_2,param_2)" (identifier "png_chunk_error") (argument_list "(param_1,"missing IHDR",param_2,param_2)" (( "(") (identifier "param_1") (, ",") (string_literal ""missing IHDR"" (" """) (string_content "missing IHDR") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_3 < 2) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }\n  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_3 < 2)" (( "(") (binary_expression "param_3 < 2" (identifier "param_3") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"too short");\n  }" ({ "{") (expression_statement "FUN_0002a1a0(param_1,param_3);" (call_expression "FUN_0002a1a0(param_1,param_3)" (identifier "FUN_0002a1a0") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "png_chunk_benign_error(param_1,"too short");" (call_expression "png_chunk_benign_error(param_1,"too short")" (identifier "png_chunk_benign_error") (argument_list "(param_1,"too short")" (( "(") (identifier "param_1") (, ",") (string_literal ""too short"" (" """) (string_content "too short") (" """)) () ")"))) (; ";")) (} "}")) (else_clause "else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" (else "else") (if_statement "if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }\n  else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" (if "if") (parenthesized_expression "((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0))" (( "(") (binary_expression "(param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)" (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((*(uint *)(param_2 + 8) & 0x10000) != 0)" (( "(") (binary_expression "(*(uint *)(param_2 + 8) & 0x10000) != 0" (parenthesized_expression "(*(uint *)(param_2 + 8) & 0x10000)" (( "(") (binary_expression "*(uint *)(param_2 + 8) & 0x10000" (pointer_expression "*(uint *)(param_2 + 8)" (* "*") (cast_expression "(uint *)(param_2 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x10000")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    FUN_0002a1a0(param_1,param_3);\n    png_chunk_benign_error(param_1,"duplicate");\n  }" ({ "{") (expression_statement "FUN_0002a1a0(param_1,param_3);" (call_expression "FUN_0002a1a0(param_1,param_3)" (identifier "FUN_0002a1a0") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "png_chunk_benign_error(param_1,"duplicate");" (call_expression "png_chunk_benign_error(param_1,"duplicate")" (identifier "png_chunk_benign_error") (argument_list "(param_1,"duplicate")" (( "(") (identifier "param_1") (, ",") (string_literal ""duplicate"" (" """) (string_content "duplicate") (" """)) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;\n    iVar2 = png_malloc_warn(param_1,param_3);\n    *(int *)(param_2 + 0xd4) = iVar2;\n    if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }\n  }" ({ "{") (expression_statement "*(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;" (assignment_expression "*(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000" (pointer_expression "*(uint *)(param_2 + 0xf4)" (* "*") (cast_expression "(uint *)(param_2 + 0xf4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xf4)" (( "(") (binary_expression "param_2 + 0xf4" (identifier "param_2") (+ "+") (number_literal "0xf4")) () ")")))) (= "=") (binary_expression "*(uint *)(param_2 + 0xf4) | 0x8000" (pointer_expression "*(uint *)(param_2 + 0xf4)" (* "*") (cast_expression "(uint *)(param_2 + 0xf4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xf4)" (( "(") (binary_expression "param_2 + 0xf4" (identifier "param_2") (+ "+") (number_literal "0xf4")) () ")")))) (| "|") (number_literal "0x8000"))) (; ";")) (expression_statement "iVar2 = png_malloc_warn(param_1,param_3);" (assignment_expression "iVar2 = png_malloc_warn(param_1,param_3)" (identifier "iVar2") (= "=") (call_expression "png_malloc_warn(param_1,param_3)" (identifier "png_malloc_warn") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*(int *)(param_2 + 0xd4) = iVar2;" (assignment_expression "*(int *)(param_2 + 0xd4) = iVar2" (pointer_expression "*(int *)(param_2 + 0xd4)" (* "*") (cast_expression "(int *)(param_2 + 0xd4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd4)" (( "(") (binary_expression "param_2 + 0xd4" (identifier "param_2") (+ "+") (number_literal "0xd4")) () ")")))) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 == 0) {\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }\n    else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_0002a1a0(param_1,param_3);\n      png_chunk_benign_error(param_1,"out of memory");\n    }" ({ "{") (expression_statement "FUN_0002a1a0(param_1,param_3);" (call_expression "FUN_0002a1a0(param_1,param_3)" (identifier "FUN_0002a1a0") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "png_chunk_benign_error(param_1,"out of memory");" (call_expression "png_chunk_benign_error(param_1,"out of memory")" (identifier "png_chunk_benign_error") (argument_list "(param_1,"out of memory")" (( "(") (identifier "param_1") (, ",") (string_literal ""out of memory"" (" """) (string_content "out of memory") (" """)) () ")"))) (; ";")) (} "}")) (else_clause "else {\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }" (else "else") (compound_statement "{\n      FUN_0002a080(param_1,&local_21,1);\n      **(byte **)(param_2 + 0xd4) = local_21;\n      uVar3 = 0;\n      while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }\nLAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);\n      if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }\n    }" ({ "{") (expression_statement "FUN_0002a080(param_1,&local_21,1);" (call_expression "FUN_0002a080(param_1,&local_21,1)" (identifier "FUN_0002a080") (argument_list "(param_1,&local_21,1)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "**(byte **)(param_2 + 0xd4) = local_21;" (assignment_expression "**(byte **)(param_2 + 0xd4) = local_21" (pointer_expression "**(byte **)(param_2 + 0xd4)" (* "*") (pointer_expression "*(byte **)(param_2 + 0xd4)" (* "*") (cast_expression "(byte **)(param_2 + 0xd4)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0xd4)" (( "(") (binary_expression "param_2 + 0xd4" (identifier "param_2") (+ "+") (number_literal "0xd4")) () ")"))))) (= "=") (identifier "local_21")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (while_statement "while (uVar3 = uVar3 + 1, param_3 != uVar3) {\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }" (while "while") (parenthesized_expression "(uVar3 = uVar3 + 1, param_3 != uVar3)" (( "(") (comma_expression "uVar3 = uVar3 + 1, param_3 != uVar3" (assignment_expression "uVar3 = uVar3 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 + 1" (identifier "uVar3") (+ "+") (number_literal "1"))) (, ",") (binary_expression "param_3 != uVar3" (identifier "param_3") (!= "!=") (identifier "uVar3"))) () ")")) (compound_statement "{\n        while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }\n      }" ({ "{") (while_statement "while( true ) {\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          FUN_0002a080(param_1,&local_21,1);\n          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;\n          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;\n          if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }\n          uVar3 = uVar1 + 1;\n          if (param_3 == uVar3) goto LAB_0002c708;\n        }" ({ "{") (expression_statement "FUN_0002a080(param_1,&local_21,1);" (call_expression "FUN_0002a080(param_1,&local_21,1)" (identifier "FUN_0002a080") (argument_list "(param_1,&local_21,1)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_21" (& "&") (identifier "local_21")) (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "*(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;" (assignment_expression "*(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21" (pointer_expression "*(byte *)(*(int *)(param_2 + 0xd4) + uVar3)" (* "*") (cast_expression "(byte *)(*(int *)(param_2 + 0xd4) + uVar3)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0xd4) + uVar3)" (( "(") (binary_expression "*(int *)(param_2 + 0xd4) + uVar3" (pointer_expression "*(int *)(param_2 + 0xd4)" (* "*") (cast_expression "(int *)(param_2 + 0xd4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd4)" (( "(") (binary_expression "param_2 + 0xd4" (identifier "param_2") (+ "+") (number_literal "0xd4")) () ")")))) (+ "+") (identifier "uVar3")) () ")")))) (= "=") (identifier "local_21")) (; ";")) (if_statement "if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;" (if "if") (parenthesized_expression "(((local_21 & 0xfb) == 0x49) || (uVar3 != 1))" (( "(") (binary_expression "((local_21 & 0xfb) == 0x49) || (uVar3 != 1)" (parenthesized_expression "((local_21 & 0xfb) == 0x49)" (( "(") (binary_expression "(local_21 & 0xfb) == 0x49" (parenthesized_expression "(local_21 & 0xfb)" (( "(") (binary_expression "local_21 & 0xfb" (identifier "local_21") (& "&") (number_literal "0xfb")) () ")")) (== "==") (number_literal "0x49")) () ")")) (|| "||") (parenthesized_expression "(uVar3 != 1)" (( "(") (binary_expression "uVar3 != 1" (identifier "uVar3") (!= "!=") (number_literal "1")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (if_statement "if (local_21 != **(byte **)(param_2 + 0xd4)) {\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }" (if "if") (parenthesized_expression "(local_21 != **(byte **)(param_2 + 0xd4))" (( "(") (binary_expression "local_21 != **(byte **)(param_2 + 0xd4)" (identifier "local_21") (!= "!=") (pointer_expression "**(byte **)(param_2 + 0xd4)" (* "*") (pointer_expression "*(byte **)(param_2 + 0xd4)" (* "*") (cast_expression "(byte **)(param_2 + 0xd4)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0xd4)" (( "(") (binary_expression "param_2 + 0xd4" (identifier "param_2") (+ "+") (number_literal "0xd4")) () ")")))))) () ")")) (compound_statement "{\n            FUN_0002a1a0(param_1,param_3);\n            png_chunk_benign_error(param_1,"incorrect byte-order specifier");\n            goto LAB_0002c72f;\n          }" ({ "{") (expression_statement "FUN_0002a1a0(param_1,param_3);" (call_expression "FUN_0002a1a0(param_1,param_3)" (identifier "FUN_0002a1a0") (argument_list "(param_1,param_3)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "png_chunk_benign_error(param_1,"incorrect byte-order specifier");" (call_expression "png_chunk_benign_error(param_1,"incorrect byte-order specifier")" (identifier "png_chunk_benign_error") (argument_list "(param_1,"incorrect byte-order specifier")" (( "(") (identifier "param_1") (, ",") (string_literal ""incorrect byte-order specifier"" (" """) (string_content "incorrect byte-order specifier") (" """)) () ")"))) (; ";")) (goto_statement "goto LAB_0002c72f;" (goto "goto") (statement_identifier "LAB_0002c72f") (; ";")) (} "}"))) (expression_statement "uVar3 = uVar1 + 1;" (assignment_expression "uVar3 = uVar1 + 1" (identifier "uVar3") (= "=") (binary_expression "uVar1 + 1" (identifier "uVar1") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_3 == uVar3) goto LAB_0002c708;" (if "if") (parenthesized_expression "(param_3 == uVar3)" (( "(") (binary_expression "param_3 == uVar3" (identifier "param_3") (== "==") (identifier "uVar3")) () ")")) (goto_statement "goto LAB_0002c708;" (goto "goto") (statement_identifier "LAB_0002c708") (; ";"))) (} "}"))) (} "}"))) (labeled_statement "LAB_0002c708:\n      iVar2 = FUN_0002a1a0(param_1,0);" (statement_identifier "LAB_0002c708") (: ":") (expression_statement "iVar2 = FUN_0002a1a0(param_1,0);" (assignment_expression "iVar2 = FUN_0002a1a0(param_1,0)" (identifier "iVar2") (= "=") (call_expression "FUN_0002a1a0(param_1,0)" (identifier "FUN_0002a1a0") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";"))) (if_statement "if (iVar2 == 0) {\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));\nLAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));\n        *(undefined4 *)(param_2 + 0xd4) = 0;\n      }" ({ "{") (expression_statement "png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));" (call_expression "png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4))" (identifier "png_set_eXIf_1") (argument_list "(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4))" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0xd4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xd4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd4)" (( "(") (binary_expression "param_2 + 0xd4" (identifier "param_2") (+ "+") (number_literal "0xd4")) () ")")))) () ")"))) (; ";")) (labeled_statement "LAB_0002c72f:\n        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));" (statement_identifier "LAB_0002c72f") (: ":") (expression_statement "png_free(param_1,*(undefined4 *)(param_2 + 0xd4));" (call_expression "png_free(param_1,*(undefined4 *)(param_2 + 0xd4))" (identifier "png_free") (argument_list "(param_1,*(undefined4 *)(param_2 + 0xd4))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0xd4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xd4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd4)" (( "(") (binary_expression "param_2 + 0xd4" (identifier "param_2") (+ "+") (number_literal "0xd4")) () ")")))) () ")"))) (; ";"))) (expression_statement "*(undefined4 *)(param_2 + 0xd4) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0xd4) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0xd4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xd4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd4)" (( "(") (binary_expression "param_2 + 0xd4" (identifier "param_2") (+ "+") (number_literal "0xd4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")))) (} "}")))))) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0003a600();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0003a600();\n  }" ({ "{") (expression_statement "FUN_0003a600();" (call_expression "FUN_0003a600()" (identifier "FUN_0003a600") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(type_1 png_ptr,type_2 var_7,type_3 var_4)

{
  int var_15;
  type_4 var_2;
  type_5 var_9;
  int var_12;
  type_3 var_11;
  int var_1;
  type_6 buf [1];
  
  var_15 = *(int *)(var_1 + 0x14);
  var_2 = png_ptr->mode & 1;
  if (var_2 == 0) {
                    /* WARNING: Subroutine does not return */
    var_3(png_ptr,"missing IHDR");
  }
  if (var_4 < 2) {
    var_5(png_ptr,var_4);
    var_6(png_ptr,"too short");
  }
  else if ((var_7 == (type_2)0x0) || ((var_7->valid & 0x10000) != 0)) {
    var_5(png_ptr,var_4);
    var_6(png_ptr,"duplicate");
  }
  else {
    var_7->free_me = var_7->free_me | 0x8000;
    var_9 = (type_5)var_8(png_ptr,var_4);
    var_7->eXIf_buf = var_9;
    if (var_9 == (type_5)0x0) {
      var_5(png_ptr,var_4);
      var_6(png_ptr,"out of memory");
    }
    else {
      var_10(png_ptr,buf,1);
      *var_7->eXIf_buf = buf[0];
      var_11 = 0;
      while (var_11 = var_11 + 1, var_4 != var_11) {
        while( true ) {
          var_10(png_ptr,buf,1);
          var_7->eXIf_buf[var_11] = buf[0];
          if (((buf[0] & 0xfb) == 0x49) || (var_11 != 1)) break;
          if (buf[0] != *var_7->eXIf_buf) {
            var_5(png_ptr,var_4);
            var_6(png_ptr,"incorrect byte-order specifier");
            goto LAB_0002c72f;
          }
          var_11 = var_2 + 1;
          if (var_4 == var_11) goto LAB_0002c708;
        }
      }
LAB_0002c708:
      var_12 = var_5(png_ptr,0);
      if (var_12 == 0) {
        var_13(png_ptr,var_7,var_4,var_7->eXIf_buf);
LAB_0002c72f:
        var_14(png_ptr,var_7->eXIf_buf);
        var_7->eXIf_buf = (type_5)0x0;
      }
    }
  }
  if (var_15 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_16();
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (while_statement condition: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (identifier)))) body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (break_statement)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (goto_statement label: (statement_identifier))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement))))

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

void MASKED(int param_1,int param_2,uint param_3)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  int in_GS_OFFSET;
  byte local_21;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2c5d9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = *(uint *)(param_1 + 0xd0) & 1;
  if (uVar1 == 0) {
                    /* WARNING: Subroutine does not return */
    png_chunk_error(param_1,"missing IHDR",param_2,param_2);
  }
  if (param_3 < 2) {
    FUN_0002a1a0(param_1,param_3);
    png_chunk_benign_error(param_1,"too short");
  }
  else if ((param_2 == 0) || ((*(uint *)(param_2 + 8) & 0x10000) != 0)) {
    FUN_0002a1a0(param_1,param_3);
    png_chunk_benign_error(param_1,"duplicate");
  }
  else {
    *(uint *)(param_2 + 0xf4) = *(uint *)(param_2 + 0xf4) | 0x8000;
    iVar2 = png_malloc_warn(param_1,param_3);
    *(int *)(param_2 + 0xd4) = iVar2;
    if (iVar2 == 0) {
      FUN_0002a1a0(param_1,param_3);
      png_chunk_benign_error(param_1,"out of memory");
    }
    else {
      FUN_0002a080(param_1,&local_21,1);
      **(byte **)(param_2 + 0xd4) = local_21;
      uVar3 = 0;
      while (uVar3 = uVar3 + 1, param_3 != uVar3) {
        while( true ) {
          FUN_0002a080(param_1,&local_21,1);
          *(byte *)(*(int *)(param_2 + 0xd4) + uVar3) = local_21;
          if (((local_21 & 0xfb) == 0x49) || (uVar3 != 1)) break;
          if (local_21 != **(byte **)(param_2 + 0xd4)) {
            FUN_0002a1a0(param_1,param_3);
            png_chunk_benign_error(param_1,"incorrect byte-order specifier");
            goto LAB_0002c72f;
          }
          uVar3 = uVar1 + 1;
          if (param_3 == uVar3) goto LAB_0002c708;
        }
      }
LAB_0002c708:
      iVar2 = FUN_0002a1a0(param_1,0);
      if (iVar2 == 0) {
        png_set_eXIf_1(param_1,param_2,param_3,*(undefined4 *)(param_2 + 0xd4));
LAB_0002c72f:
        png_free(param_1,*(undefined4 *)(param_2 + 0xd4));
        *(undefined4 *)(param_2 + 0xd4) = 0;
      }
    }
  }
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0003a600();
  }
  return;
}

