
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void png_write_end(png_structrp png_ptr,png_inforp info_ptr)

{
  int *piVar1;
  int compression;
  png_textp ppVar2;
  int iVar3;
  int iVar4;
  
  if (png_ptr != (png_structrp)0x0) {
    if ((png_ptr->mode & 4) == 0) {
                    /* WARNING: Subroutine does not return */
      png_error(png_ptr,"No IDATs written into file");
    }
    if ((int)(uint)png_ptr->num_palette < png_ptr->num_palette_max) {
      png_benign_error(png_ptr,"Wrote palette index exceeding num_palette");
    }
    if (png_ptr->num_frames_written != png_ptr->num_frames_to_write) {
                    /* WARNING: Subroutine does not return */
      png_error(png_ptr,"Not enough frames written");
    }
    if (info_ptr != (png_inforp)0x0) {
      if (((info_ptr->valid & 0x200) != 0) && ((png_ptr->mode & 0x200) == 0)) {
        png_write_tIME(png_ptr,&info_ptr->mod_time);
      }
      if (0 < info_ptr->num_text) {
        iVar4 = 0;
        iVar3 = 0;
        ppVar2 = info_ptr->text;
        do {
          while( true ) {
            piVar1 = (int *)((int)&ppVar2->compression + iVar4);
            compression = *piVar1;
            if (compression < 1) break;
            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]
                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);
            ppVar2 = info_ptr->text;
            piVar1 = (int *)((int)&ppVar2->compression + iVar4);
            iVar3 = iVar3 + 1;
            iVar4 = iVar4 + 0x1c;
            *piVar1 = (*piVar1 != -1) - 3;
            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;
          }
          if (compression == 0) {
            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);
            ppVar2 = info_ptr->text;
            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;
          }
          else if (compression == -1) {
            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);
            ppVar2 = info_ptr->text;
            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;
          }
          iVar3 = iVar3 + 1;
          iVar4 = iVar4 + 0x1c;
        } while (iVar3 < info_ptr->num_text);
      }
LAB_00033e40:
      if ((info_ptr->valid & 0x10000) == 0) {
        iVar3 = info_ptr->unknown_chunks_num;
      }
      else {
        png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);
        iVar3 = info_ptr->unknown_chunks_num;
      }
      if (iVar3 != 0) {
        write_unknown_chunks
                  (png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,
                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008);
      }
    }
    png_ptr->mode = png_ptr->mode | 8;
    png_write_IEND(png_ptr);
  }
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void png_write_end(int param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  undefined **unaff_EBX;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined **local_20;
  
  local_20 = &__DT_PLTGOT;
  if (param_1 != 0) {
    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {
                    /* WARNING: Subroutine does not return */
      png_error(param_1,"No IDATs written into file");
    }
    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {
      png_benign_error(param_1,"Wrote palette index exceeding num_palette");
      unaff_EBX = local_20;
    }
    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {
                    /* WARNING: Subroutine does not return */
      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);
    }
    if (param_2 != 0) {
      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {
        FUN_00038ef0(param_1,param_2 + 0x8c);
      }
      if (0 < *(int *)(param_2 + 0x80)) {
        iVar5 = 0;
        iVar4 = 0;
        iVar3 = *(int *)(param_2 + 0x88);
        do {
          while( true ) {
            piVar1 = (int *)(iVar3 + iVar5);
            iVar2 = *piVar1;
            if (iVar2 < 1) break;
            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);
            iVar3 = *(int *)(param_2 + 0x88);
            piVar1 = (int *)(iVar3 + iVar5);
            iVar4 = iVar4 + 1;
            iVar5 = iVar5 + 0x1c;
            *piVar1 = (*piVar1 != -1) - 3;
            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;
          }
          if (iVar2 == 0) {
            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);
            iVar3 = *(int *)(param_2 + 0x88);
            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;
          }
          else if (iVar2 == -1) {
            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);
            iVar3 = *(int *)(param_2 + 0x88);
            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;
          }
          iVar4 = iVar4 + 1;
          iVar5 = iVar5 + 0x1c;
        } while (iVar4 < *(int *)(param_2 + 0x80));
      }
LAB_00033e40:
      if ((*(byte *)(param_2 + 10) & 1) == 0) {
        iVar3 = *(int *)(param_2 + 0xfc);
      }
      else {
        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));
        iVar3 = *(int *)(param_2 + 0xfc);
      }
      if (iVar3 != 0) {
        FUN_00032fe0(8);
      }
    }
    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;
    FUN_00037760(param_1);
  }
  return;
}


CALL 0x00019809
ADD EAX,0x1a03b
PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0xc],EAX
TEST EDI,EDI
JZ 0x00033e86
TEST byte ptr [EDI + 0xd0],0x4
JZ 0x00033f87
MOVZX EAX,word ptr [EDI + 0x19c]
CMP dword ptr [EDI + 0x1a0],EAX
JG 0x00033f28
MOV EAX,dword ptr [EDI + 0x2d0]
CMP dword ptr [EDI + 0x2d4],EAX
JNZ 0x00033f9a
TEST EDX,EDX
JZ 0x00033e6f
TEST byte ptr [EDX + 0x9],0x2
JNZ 0x00033ec0
MOV ECX,dword ptr [EDX + 0x80]
TEST ECX,ECX
JLE 0x00033e40
MOV dword ptr [ESP + 0x30],EDI
XOR ESI,ESI
XOR EBP,EBP
MOV EBX,dword ptr [EDX + 0x88]
MOV EDI,EDX
JMP 0x00033ded
JZ 0x00033e90
CMP ECX,-0x1
JZ 0x00033ef8
ADD EBP,0x1
ADD ESI,0x1c
CMP dword ptr [EDI + 0x80],EBP
JLE 0x00033e3a
LEA EAX,[EBX + ESI*0x1]
MOV ECX,dword ptr [EAX]
TEST ECX,ECX
JLE 0x00033dd0
SUB ESP,0x8
PUSH dword ptr [EAX + 0x8]
PUSH dword ptr [EAX + 0x18]
PUSH dword ptr [EAX + 0x14]
PUSH dword ptr [EAX + 0x4]
PUSH ECX
PUSH dword ptr [ESP + 0x4c]
MOV EBX,dword ptr [ESP + 0x2c]
CALL 0x00038540
MOV EBX,dword ptr [EDI + 0x88]
XOR EAX,EAX
ADD ESP,0x20
LEA ECX,[EBX + ESI*0x1]
CMP dword ptr [ECX],-0x1
SETNZ AL
ADD EBP,0x1
ADD ESI,0x1c
SUB EAX,0x3
MOV dword ptr [ECX],EAX
CMP dword ptr [EDI + 0x80],EBP
JG 0x00033ded
MOV EDX,EDI
MOV EDI,dword ptr [ESP + 0x30]
TEST byte ptr [EDX + 0xa],0x1
JNZ 0x00033f50
MOV EAX,dword ptr [EDX + 0xfc]
TEST EAX,EAX
JZ 0x00033e6f
SUB ESP,0xc
LEA ECX,[EDX + 0xfc]
MOV EAX,EDI
ADD EDX,0xf8
PUSH 0x8
CALL 0x00032fe0
ADD ESP,0x10
SUB ESP,0xc
OR dword ptr [EDI + 0xd0],0x8
PUSH EDI
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x00037760
ADD ESP,0x10
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
PUSH 0x0
PUSH dword ptr [EAX + 0x8]
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [ESP + 0x3c]
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x000383e0
MOV EBX,dword ptr [EDI + 0x88]
ADD ESP,0x10
MOV dword ptr [EBX + ESI*0x1],0xfffffffe
JMP 0x00033ddf
TEST byte ptr [EDI + 0xd1],0x2
JNZ 0x00033da9
SUB ESP,0x8
LEA EAX,[EDX + 0x8c]
MOV dword ptr [ESP + 0x3c],EDX
PUSH EAX
PUSH EDI
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x00038ef0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x34]
JMP 0x00033da9
PUSH 0x0
PUSH dword ptr [EAX + 0x8]
PUSH dword ptr [EAX + 0x4]
PUSH dword ptr [ESP + 0x3c]
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x000382b0
MOV EBX,dword ptr [EDI + 0x88]
ADD ESP,0x10
MOV dword ptr [EBX + ESI*0x1],0xfffffffd
JMP 0x00033ddf
MOV dword ptr [ESP + 0x34],EDX
SUB ESP,0x8
MOV EBX,dword ptr [ESP + 0x14]
LEA EAX,[EBX + 0xffff0fd0]
PUSH EAX
PUSH EDI
CALL 0x000145a0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x34]
JMP 0x00033d85
SUB ESP,0x4
PUSH dword ptr [EDX + 0xcc]
PUSH dword ptr [EDX + 0xd0]
MOV dword ptr [ESP + 0x40],EDX
PUSH EDI
MOV EBX,dword ptr [ESP + 0x1c]
CALL 0x00038140
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [EDX + 0xfc]
TEST EAX,EAX
JZ 0x00033e6f
JMP 0x00033e54
PUSH ESI
PUSH ESI
MOV EBX,dword ptr [ESP + 0x14]
LEA EAX,[EBX + 0xffff1399]
PUSH EAX
PUSH EDI
CALL 0x00014460
PUSH EBX
PUSH EBX
MOV EBX,dword ptr [ESP + 0x14]
LEA EAX,[EBX + 0xffff13b4]
PUSH EAX
PUSH EDI
CALL 0x00014460
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid png_write_end(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined **unaff_EBX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined **local_20;\n  \n  local_20 = &__DT_PLTGOT;\n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }\n  return;\n}\n\n" comment (function_definition "void png_write_end(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined **unaff_EBX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined **local_20;\n  \n  local_20 = &__DT_PLTGOT;\n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "png_write_end(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined **unaff_EBX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined **local_20;\n  \n  local_20 = &__DT_PLTGOT;\n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined **unaff_EBX;" type_identifier (pointer_declarator "**unaff_EBX" * (pointer_declarator "*unaff_EBX" * identifier)) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined **local_20;" type_identifier (pointer_declarator "**local_20" * (pointer_declarator "*local_20" * identifier)) ;) (expression_statement "local_20 = &__DT_PLTGOT;" (assignment_expression "local_20 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (if_statement "if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }" { (if_statement "if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"No IDATs written into file");\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0xd0) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0xd0) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd0) & 4)" ( (binary_expression "*(byte *)(param_1 + 0xd0) & 4" (pointer_expression "*(byte *)(param_1 + 0xd0)" * (cast_expression "(byte *)(param_1 + 0xd0)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"No IDATs written into file");\n    }" { comment (expression_statement "png_error(param_1,"No IDATs written into file");" (call_expression "png_error(param_1,"No IDATs written into file")" identifier (argument_list "(param_1,"No IDATs written into file")" ( identifier , (string_literal ""No IDATs written into file"" " string_content ") ))) ;) })) (if_statement "if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }" if (parenthesized_expression "((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0))" ( (binary_expression "(int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)" (binary_expression "(int)(uint)*(ushort *)(param_1 + 0x19c)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(ushort *)(param_1 + 0x19c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19c)" ( (binary_expression "param_1 + 0x19c" identifier + number_literal) )))) < (pointer_expression "*(int *)(param_1 + 0x1a0)" * (cast_expression "(int *)(param_1 + 0x1a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a0)" ( (binary_expression "param_1 + 0x1a0" identifier + number_literal) ))))) )) (compound_statement "{\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }" { (expression_statement "png_benign_error(param_1,"Wrote palette index exceeding num_palette");" (call_expression "png_benign_error(param_1,"Wrote palette index exceeding num_palette")" identifier (argument_list "(param_1,"Wrote palette index exceeding num_palette")" ( identifier , (string_literal ""Wrote palette index exceeding num_palette"" " string_content ") ))) ;) (expression_statement "unaff_EBX = local_20;" (assignment_expression "unaff_EBX = local_20" identifier = identifier) ;) })) (if_statement "if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0))" ( (binary_expression "*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)" (pointer_expression "*(int *)(param_1 + 0x2d4)" * (cast_expression "(int *)(param_1 + 0x2d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2d4)" ( (binary_expression "param_1 + 0x2d4" identifier + number_literal) )))) != (pointer_expression "*(int *)(param_1 + 0x2d0)" * (cast_expression "(int *)(param_1 + 0x2d0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2d0)" ( (binary_expression "param_1 + 0x2d0" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }" { comment (expression_statement "png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);" (call_expression "png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX)" identifier (argument_list "(param_1,"Not enough frames written",unaff_EBX,unaff_EBX)" ( identifier , (string_literal ""Not enough frames written"" " string_content ") , identifier , identifier ))) ;) })) (if_statement "if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }" { (if_statement "if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }" if (parenthesized_expression "(((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0))" ( (binary_expression "((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)" (parenthesized_expression "((*(byte *)(param_2 + 9) & 2) != 0)" ( (binary_expression "(*(byte *)(param_2 + 9) & 2) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 2)" ( (binary_expression "*(byte *)(param_2 + 9) & 2" (pointer_expression "*(byte *)(param_2 + 9)" * (cast_expression "(byte *)(param_2 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 9)" ( (binary_expression "param_2 + 9" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "((*(byte *)(param_1 + 0xd1) & 2) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0xd1) & 2) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd1) & 2)" ( (binary_expression "*(byte *)(param_1 + 0xd1) & 2" (pointer_expression "*(byte *)(param_1 + 0xd1)" * (cast_expression "(byte *)(param_1 + 0xd1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd1)" ( (binary_expression "param_1 + 0xd1" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }" { (expression_statement "FUN_00038ef0(param_1,param_2 + 0x8c);" (call_expression "FUN_00038ef0(param_1,param_2 + 0x8c)" identifier (argument_list "(param_1,param_2 + 0x8c)" ( identifier , (binary_expression "param_2 + 0x8c" identifier + number_literal) ))) ;) })) (if_statement "if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }" if (parenthesized_expression "(0 < *(int *)(param_2 + 0x80))" ( (binary_expression "0 < *(int *)(param_2 + 0x80)" number_literal < (pointer_expression "*(int *)(param_2 + 0x80)" * (cast_expression "(int *)(param_2 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x80)" ( (binary_expression "param_2 + 0x80" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0x88);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x88)" identifier = (pointer_expression "*(int *)(param_2 + 0x88)" * (cast_expression "(int *)(param_2 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x88)" ( (binary_expression "param_2 + 0x88" identifier + number_literal) ))))) ;) (do_statement "do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));" do (compound_statement "{\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        }" { (while_statement "while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }" { (expression_statement "piVar1 = (int *)(iVar3 + iVar5);" (assignment_expression "piVar1 = (int *)(iVar3 + iVar5)" identifier = (cast_expression "(int *)(iVar3 + iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar2 < 1) break;" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);" (call_expression "FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2])" identifier (argument_list "(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2])" ( identifier , identifier , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (subscript_expression "piVar1[5]" identifier [ number_literal ]) , (subscript_expression "piVar1[6]" identifier [ number_literal ]) , (subscript_expression "piVar1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0x88);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x88)" identifier = (pointer_expression "*(int *)(param_2 + 0x88)" * (cast_expression "(int *)(param_2 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x88)" ( (binary_expression "param_2 + 0x88" identifier + number_literal) ))))) ;) (expression_statement "piVar1 = (int *)(iVar3 + iVar5);" (assignment_expression "piVar1 = (int *)(iVar3 + iVar5)" identifier = (cast_expression "(int *)(iVar3 + iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + 0x1c;" (assignment_expression "iVar5 = iVar5 + 0x1c" identifier = (binary_expression "iVar5 + 0x1c" identifier + number_literal)) ;) (expression_statement "*piVar1 = (*piVar1 != -1) - 3;" (assignment_expression "*piVar1 = (*piVar1 != -1) - 3" (pointer_expression "*piVar1" * identifier) = (binary_expression "(*piVar1 != -1) - 3" (parenthesized_expression "(*piVar1 != -1)" ( (binary_expression "*piVar1 != -1" (pointer_expression "*piVar1" * identifier) != number_literal) )) - number_literal)) ;) (if_statement "if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;" if (parenthesized_expression "(*(int *)(param_2 + 0x80) <= iVar4)" ( (binary_expression "*(int *)(param_2 + 0x80) <= iVar4" (pointer_expression "*(int *)(param_2 + 0x80)" * (cast_expression "(int *)(param_2 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x80)" ( (binary_expression "param_2 + 0x80" identifier + number_literal) )))) <= identifier) )) (goto_statement "goto LAB_00033e40;" goto statement_identifier ;)) })) (if_statement "if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }" { (expression_statement "FUN_000383e0(param_1,piVar1[1],piVar1[2],0);" (call_expression "FUN_000383e0(param_1,piVar1[1],piVar1[2],0)" identifier (argument_list "(param_1,piVar1[1],piVar1[2],0)" ( identifier , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (subscript_expression "piVar1[2]" identifier [ number_literal ]) , number_literal ))) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0x88);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x88)" identifier = (pointer_expression "*(int *)(param_2 + 0x88)" * (cast_expression "(int *)(param_2 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x88)" ( (binary_expression "param_2 + 0x88" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;" (assignment_expression "*(undefined4 *)(iVar3 + iVar5) = 0xfffffffe" (pointer_expression "*(undefined4 *)(iVar3 + iVar5)" * (cast_expression "(undefined4 *)(iVar3 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) = number_literal) ;) }) (else_clause "else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }" else (if_statement "if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }" { (expression_statement "FUN_000382b0(param_1,piVar1[1],piVar1[2],0);" (call_expression "FUN_000382b0(param_1,piVar1[1],piVar1[2],0)" identifier (argument_list "(param_1,piVar1[1],piVar1[2],0)" ( identifier , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (subscript_expression "piVar1[2]" identifier [ number_literal ]) , number_literal ))) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0x88);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x88)" identifier = (pointer_expression "*(int *)(param_2 + 0x88)" * (cast_expression "(int *)(param_2 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x88)" ( (binary_expression "param_2 + 0x88" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;" (assignment_expression "*(undefined4 *)(iVar3 + iVar5) = 0xfffffffd" (pointer_expression "*(undefined4 *)(iVar3 + iVar5)" * (cast_expression "(undefined4 *)(iVar3 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) = number_literal) ;) })))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + 0x1c;" (assignment_expression "iVar5 = iVar5 + 0x1c" identifier = (binary_expression "iVar5 + 0x1c" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < *(int *)(param_2 + 0x80))" ( (binary_expression "iVar4 < *(int *)(param_2 + 0x80)" identifier < (pointer_expression "*(int *)(param_2 + 0x80)" * (cast_expression "(int *)(param_2 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x80)" ( (binary_expression "param_2 + 0x80" identifier + number_literal) ))))) )) ;) })) (labeled_statement "LAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" statement_identifier : (if_statement "if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" if (parenthesized_expression "((*(byte *)(param_2 + 10) & 1) == 0)" ( (binary_expression "(*(byte *)(param_2 + 10) & 1) == 0" (parenthesized_expression "(*(byte *)(param_2 + 10) & 1)" ( (binary_expression "*(byte *)(param_2 + 10) & 1" (pointer_expression "*(byte *)(param_2 + 10)" * (cast_expression "(byte *)(param_2 + 10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 10)" ( (binary_expression "param_2 + 10" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" { (expression_statement "iVar3 = *(int *)(param_2 + 0xfc);" (assignment_expression "iVar3 = *(int *)(param_2 + 0xfc)" identifier = (pointer_expression "*(int *)(param_2 + 0xfc)" * (cast_expression "(int *)(param_2 + 0xfc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xfc)" ( (binary_expression "param_2 + 0xfc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" else (compound_statement "{\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" { (expression_statement "FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));" (call_expression "FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0xd0)" * (cast_expression "(undefined4 *)(param_2 + 0xd0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd0)" ( (binary_expression "param_2 + 0xd0" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0xcc)" * (cast_expression "(undefined4 *)(param_2 + 0xcc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xcc)" ( (binary_expression "param_2 + 0xcc" identifier + number_literal) )))) ))) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0xfc);" (assignment_expression "iVar3 = *(int *)(param_2 + 0xfc)" identifier = (pointer_expression "*(int *)(param_2 + 0xfc)" * (cast_expression "(int *)(param_2 + 0xfc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xfc)" ( (binary_expression "param_2 + 0xfc" identifier + number_literal) ))))) ;) })))) (if_statement "if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00032fe0(8);\n      }" { (expression_statement "FUN_00032fe0(8);" (call_expression "FUN_00032fe0(8)" identifier (argument_list "(8)" ( number_literal ))) ;) })) })) (expression_statement "*(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;" (assignment_expression "*(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8" (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) )))) = (binary_expression "*(uint *)(param_1 + 0xd0) | 8" (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)) ;) (expression_statement "FUN_00037760(param_1);" (call_expression "FUN_00037760(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid png_write_end(png_structrp png_ptr,png_inforp info_ptr)\n\n{\n  int *piVar1;\n  int compression;\n  png_textp ppVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (png_ptr != (png_structrp)0x0) {\n    if ((png_ptr->mode & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"No IDATs written into file");\n    }\n    if ((int)(uint)png_ptr->num_palette < png_ptr->num_palette_max) {\n      png_benign_error(png_ptr,"Wrote palette index exceeding num_palette");\n    }\n    if (png_ptr->num_frames_written != png_ptr->num_frames_to_write) {\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"Not enough frames written");\n    }\n    if (info_ptr != (png_inforp)0x0) {\n      if (((info_ptr->valid & 0x200) != 0) && ((png_ptr->mode & 0x200) == 0)) {\n        png_write_tIME(png_ptr,&info_ptr->mod_time);\n      }\n      if (0 < info_ptr->num_text) {\n        iVar4 = 0;\n        iVar3 = 0;\n        ppVar2 = info_ptr->text;\n        do {\n          while( true ) {\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }\n          iVar3 = iVar3 + 1;\n          iVar4 = iVar4 + 0x1c;\n        } while (iVar3 < info_ptr->num_text);\n      }\nLAB_00033e40:\n      if ((info_ptr->valid & 0x10000) == 0) {\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      else {\n        png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      if (iVar3 != 0) {\n        write_unknown_chunks\n                  (png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,\n                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008);\n      }\n    }\n    png_ptr->mode = png_ptr->mode | 8;\n    png_write_IEND(png_ptr);\n  }\n  return;\n}\n\n" comment (function_definition "void png_write_end(png_structrp png_ptr,png_inforp info_ptr)\n\n{\n  int *piVar1;\n  int compression;\n  png_textp ppVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (png_ptr != (png_structrp)0x0) {\n    if ((png_ptr->mode & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"No IDATs written into file");\n    }\n    if ((int)(uint)png_ptr->num_palette < png_ptr->num_palette_max) {\n      png_benign_error(png_ptr,"Wrote palette index exceeding num_palette");\n    }\n    if (png_ptr->num_frames_written != png_ptr->num_frames_to_write) {\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"Not enough frames written");\n    }\n    if (info_ptr != (png_inforp)0x0) {\n      if (((info_ptr->valid & 0x200) != 0) && ((png_ptr->mode & 0x200) == 0)) {\n        png_write_tIME(png_ptr,&info_ptr->mod_time);\n      }\n      if (0 < info_ptr->num_text) {\n        iVar4 = 0;\n        iVar3 = 0;\n        ppVar2 = info_ptr->text;\n        do {\n          while( true ) {\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }\n          iVar3 = iVar3 + 1;\n          iVar4 = iVar4 + 0x1c;\n        } while (iVar3 < info_ptr->num_text);\n      }\nLAB_00033e40:\n      if ((info_ptr->valid & 0x10000) == 0) {\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      else {\n        png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      if (iVar3 != 0) {\n        write_unknown_chunks\n                  (png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,\n                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008);\n      }\n    }\n    png_ptr->mode = png_ptr->mode | 8;\n    png_write_IEND(png_ptr);\n  }\n  return;\n}" primitive_type (function_declarator "png_write_end(png_structrp png_ptr,png_inforp info_ptr)" identifier (parameter_list "(png_structrp png_ptr,png_inforp info_ptr)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_inforp info_ptr" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int compression;\n  png_textp ppVar2;\n  int iVar3;\n  int iVar4;\n  \n  if (png_ptr != (png_structrp)0x0) {\n    if ((png_ptr->mode & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"No IDATs written into file");\n    }\n    if ((int)(uint)png_ptr->num_palette < png_ptr->num_palette_max) {\n      png_benign_error(png_ptr,"Wrote palette index exceeding num_palette");\n    }\n    if (png_ptr->num_frames_written != png_ptr->num_frames_to_write) {\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"Not enough frames written");\n    }\n    if (info_ptr != (png_inforp)0x0) {\n      if (((info_ptr->valid & 0x200) != 0) && ((png_ptr->mode & 0x200) == 0)) {\n        png_write_tIME(png_ptr,&info_ptr->mod_time);\n      }\n      if (0 < info_ptr->num_text) {\n        iVar4 = 0;\n        iVar3 = 0;\n        ppVar2 = info_ptr->text;\n        do {\n          while( true ) {\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }\n          iVar3 = iVar3 + 1;\n          iVar4 = iVar4 + 0x1c;\n        } while (iVar3 < info_ptr->num_text);\n      }\nLAB_00033e40:\n      if ((info_ptr->valid & 0x10000) == 0) {\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      else {\n        png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      if (iVar3 != 0) {\n        write_unknown_chunks\n                  (png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,\n                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008);\n      }\n    }\n    png_ptr->mode = png_ptr->mode | 8;\n    png_write_IEND(png_ptr);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int compression;" primitive_type identifier ;) (declaration "png_textp ppVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if (png_ptr != (png_structrp)0x0) {\n    if ((png_ptr->mode & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"No IDATs written into file");\n    }\n    if ((int)(uint)png_ptr->num_palette < png_ptr->num_palette_max) {\n      png_benign_error(png_ptr,"Wrote palette index exceeding num_palette");\n    }\n    if (png_ptr->num_frames_written != png_ptr->num_frames_to_write) {\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"Not enough frames written");\n    }\n    if (info_ptr != (png_inforp)0x0) {\n      if (((info_ptr->valid & 0x200) != 0) && ((png_ptr->mode & 0x200) == 0)) {\n        png_write_tIME(png_ptr,&info_ptr->mod_time);\n      }\n      if (0 < info_ptr->num_text) {\n        iVar4 = 0;\n        iVar3 = 0;\n        ppVar2 = info_ptr->text;\n        do {\n          while( true ) {\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }\n          iVar3 = iVar3 + 1;\n          iVar4 = iVar4 + 0x1c;\n        } while (iVar3 < info_ptr->num_text);\n      }\nLAB_00033e40:\n      if ((info_ptr->valid & 0x10000) == 0) {\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      else {\n        png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      if (iVar3 != 0) {\n        write_unknown_chunks\n                  (png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,\n                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008);\n      }\n    }\n    png_ptr->mode = png_ptr->mode | 8;\n    png_write_IEND(png_ptr);\n  }" if (parenthesized_expression "(png_ptr != (png_structrp)0x0)" ( (binary_expression "png_ptr != (png_structrp)0x0" identifier != (cast_expression "(png_structrp)0x0" ( (type_descriptor "png_structrp" type_identifier) ) number_literal)) )) (compound_statement "{\n    if ((png_ptr->mode & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"No IDATs written into file");\n    }\n    if ((int)(uint)png_ptr->num_palette < png_ptr->num_palette_max) {\n      png_benign_error(png_ptr,"Wrote palette index exceeding num_palette");\n    }\n    if (png_ptr->num_frames_written != png_ptr->num_frames_to_write) {\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"Not enough frames written");\n    }\n    if (info_ptr != (png_inforp)0x0) {\n      if (((info_ptr->valid & 0x200) != 0) && ((png_ptr->mode & 0x200) == 0)) {\n        png_write_tIME(png_ptr,&info_ptr->mod_time);\n      }\n      if (0 < info_ptr->num_text) {\n        iVar4 = 0;\n        iVar3 = 0;\n        ppVar2 = info_ptr->text;\n        do {\n          while( true ) {\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }\n          iVar3 = iVar3 + 1;\n          iVar4 = iVar4 + 0x1c;\n        } while (iVar3 < info_ptr->num_text);\n      }\nLAB_00033e40:\n      if ((info_ptr->valid & 0x10000) == 0) {\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      else {\n        png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      if (iVar3 != 0) {\n        write_unknown_chunks\n                  (png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,\n                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008);\n      }\n    }\n    png_ptr->mode = png_ptr->mode | 8;\n    png_write_IEND(png_ptr);\n  }" { (if_statement "if ((png_ptr->mode & 4) == 0) {\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"No IDATs written into file");\n    }" if (parenthesized_expression "((png_ptr->mode & 4) == 0)" ( (binary_expression "(png_ptr->mode & 4) == 0" (parenthesized_expression "(png_ptr->mode & 4)" ( (binary_expression "png_ptr->mode & 4" (field_expression "png_ptr->mode" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"No IDATs written into file");\n    }" { comment (expression_statement "png_error(png_ptr,"No IDATs written into file");" (call_expression "png_error(png_ptr,"No IDATs written into file")" identifier (argument_list "(png_ptr,"No IDATs written into file")" ( identifier , (string_literal ""No IDATs written into file"" " string_content ") ))) ;) })) (if_statement "if ((int)(uint)png_ptr->num_palette < png_ptr->num_palette_max) {\n      png_benign_error(png_ptr,"Wrote palette index exceeding num_palette");\n    }" if (parenthesized_expression "((int)(uint)png_ptr->num_palette < png_ptr->num_palette_max)" ( (binary_expression "(int)(uint)png_ptr->num_palette < png_ptr->num_palette_max" (cast_expression "(int)(uint)png_ptr->num_palette" ( (type_descriptor "int" primitive_type) ) (cast_expression "(uint)png_ptr->num_palette" ( (type_descriptor "uint" type_identifier) ) (field_expression "png_ptr->num_palette" identifier -> field_identifier))) < (field_expression "png_ptr->num_palette_max" identifier -> field_identifier)) )) (compound_statement "{\n      png_benign_error(png_ptr,"Wrote palette index exceeding num_palette");\n    }" { (expression_statement "png_benign_error(png_ptr,"Wrote palette index exceeding num_palette");" (call_expression "png_benign_error(png_ptr,"Wrote palette index exceeding num_palette")" identifier (argument_list "(png_ptr,"Wrote palette index exceeding num_palette")" ( identifier , (string_literal ""Wrote palette index exceeding num_palette"" " string_content ") ))) ;) })) (if_statement "if (png_ptr->num_frames_written != png_ptr->num_frames_to_write) {\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"Not enough frames written");\n    }" if (parenthesized_expression "(png_ptr->num_frames_written != png_ptr->num_frames_to_write)" ( (binary_expression "png_ptr->num_frames_written != png_ptr->num_frames_to_write" (field_expression "png_ptr->num_frames_written" identifier -> field_identifier) != (field_expression "png_ptr->num_frames_to_write" identifier -> field_identifier)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      png_error(png_ptr,"Not enough frames written");\n    }" { comment (expression_statement "png_error(png_ptr,"Not enough frames written");" (call_expression "png_error(png_ptr,"Not enough frames written")" identifier (argument_list "(png_ptr,"Not enough frames written")" ( identifier , (string_literal ""Not enough frames written"" " string_content ") ))) ;) })) (if_statement "if (info_ptr != (png_inforp)0x0) {\n      if (((info_ptr->valid & 0x200) != 0) && ((png_ptr->mode & 0x200) == 0)) {\n        png_write_tIME(png_ptr,&info_ptr->mod_time);\n      }\n      if (0 < info_ptr->num_text) {\n        iVar4 = 0;\n        iVar3 = 0;\n        ppVar2 = info_ptr->text;\n        do {\n          while( true ) {\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }\n          iVar3 = iVar3 + 1;\n          iVar4 = iVar4 + 0x1c;\n        } while (iVar3 < info_ptr->num_text);\n      }\nLAB_00033e40:\n      if ((info_ptr->valid & 0x10000) == 0) {\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      else {\n        png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      if (iVar3 != 0) {\n        write_unknown_chunks\n                  (png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,\n                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008);\n      }\n    }" if (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)) )) (compound_statement "{\n      if (((info_ptr->valid & 0x200) != 0) && ((png_ptr->mode & 0x200) == 0)) {\n        png_write_tIME(png_ptr,&info_ptr->mod_time);\n      }\n      if (0 < info_ptr->num_text) {\n        iVar4 = 0;\n        iVar3 = 0;\n        ppVar2 = info_ptr->text;\n        do {\n          while( true ) {\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }\n          iVar3 = iVar3 + 1;\n          iVar4 = iVar4 + 0x1c;\n        } while (iVar3 < info_ptr->num_text);\n      }\nLAB_00033e40:\n      if ((info_ptr->valid & 0x10000) == 0) {\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      else {\n        png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      if (iVar3 != 0) {\n        write_unknown_chunks\n                  (png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,\n                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008);\n      }\n    }" { (if_statement "if (((info_ptr->valid & 0x200) != 0) && ((png_ptr->mode & 0x200) == 0)) {\n        png_write_tIME(png_ptr,&info_ptr->mod_time);\n      }" if (parenthesized_expression "(((info_ptr->valid & 0x200) != 0) && ((png_ptr->mode & 0x200) == 0))" ( (binary_expression "((info_ptr->valid & 0x200) != 0) && ((png_ptr->mode & 0x200) == 0)" (parenthesized_expression "((info_ptr->valid & 0x200) != 0)" ( (binary_expression "(info_ptr->valid & 0x200) != 0" (parenthesized_expression "(info_ptr->valid & 0x200)" ( (binary_expression "info_ptr->valid & 0x200" (field_expression "info_ptr->valid" identifier -> field_identifier) & number_literal) )) != number_literal) )) && (parenthesized_expression "((png_ptr->mode & 0x200) == 0)" ( (binary_expression "(png_ptr->mode & 0x200) == 0" (parenthesized_expression "(png_ptr->mode & 0x200)" ( (binary_expression "png_ptr->mode & 0x200" (field_expression "png_ptr->mode" identifier -> field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        png_write_tIME(png_ptr,&info_ptr->mod_time);\n      }" { (expression_statement "png_write_tIME(png_ptr,&info_ptr->mod_time);" (call_expression "png_write_tIME(png_ptr,&info_ptr->mod_time)" identifier (argument_list "(png_ptr,&info_ptr->mod_time)" ( identifier , (pointer_expression "&info_ptr->mod_time" & (field_expression "info_ptr->mod_time" identifier -> field_identifier)) ))) ;) })) (if_statement "if (0 < info_ptr->num_text) {\n        iVar4 = 0;\n        iVar3 = 0;\n        ppVar2 = info_ptr->text;\n        do {\n          while( true ) {\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }\n          iVar3 = iVar3 + 1;\n          iVar4 = iVar4 + 0x1c;\n        } while (iVar3 < info_ptr->num_text);\n      }" if (parenthesized_expression "(0 < info_ptr->num_text)" ( (binary_expression "0 < info_ptr->num_text" number_literal < (field_expression "info_ptr->num_text" identifier -> field_identifier)) )) (compound_statement "{\n        iVar4 = 0;\n        iVar3 = 0;\n        ppVar2 = info_ptr->text;\n        do {\n          while( true ) {\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }\n          iVar3 = iVar3 + 1;\n          iVar4 = iVar4 + 0x1c;\n        } while (iVar3 < info_ptr->num_text);\n      }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (expression_statement "ppVar2 = info_ptr->text;" (assignment_expression "ppVar2 = info_ptr->text" identifier = (field_expression "info_ptr->text" identifier -> field_identifier)) ;) (do_statement "do {\n          while( true ) {\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }\n          iVar3 = iVar3 + 1;\n          iVar4 = iVar4 + 0x1c;\n        } while (iVar3 < info_ptr->num_text);" do (compound_statement "{\n          while( true ) {\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }\n          iVar3 = iVar3 + 1;\n          iVar4 = iVar4 + 0x1c;\n        }" { (while_statement "while( true ) {\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            compression = *piVar1;\n            if (compression < 1) break;\n            png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);\n            ppVar2 = info_ptr->text;\n            piVar1 = (int *)((int)&ppVar2->compression + iVar4);\n            iVar3 = iVar3 + 1;\n            iVar4 = iVar4 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (info_ptr->num_text <= iVar3) goto LAB_00033e40;\n          }" { (expression_statement "piVar1 = (int *)((int)&ppVar2->compression + iVar4);" (assignment_expression "piVar1 = (int *)((int)&ppVar2->compression + iVar4)" identifier = (cast_expression "(int *)((int)&ppVar2->compression + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ppVar2->compression + iVar4)" ( (binary_expression "(int)&ppVar2->compression + iVar4" (cast_expression "(int)&ppVar2->compression" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ppVar2->compression" & (field_expression "ppVar2->compression" identifier -> field_identifier))) + identifier) )))) ;) (expression_statement "compression = *piVar1;" (assignment_expression "compression = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (compression < 1) break;" if (parenthesized_expression "(compression < 1)" ( (binary_expression "compression < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2]);" (call_expression "png_write_iTXt(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2])" identifier (argument_list "(png_ptr,compression,(png_const_charp)piVar1[1],(png_const_charp)piVar1[5]\n                           ,(png_const_charp)piVar1[6],(png_const_charp)piVar1[2])" ( identifier , identifier , (cast_expression "(png_const_charp)piVar1[1]" ( (type_descriptor "png_const_charp" type_identifier) ) (subscript_expression "piVar1[1]" identifier [ number_literal ])) , (cast_expression "(png_const_charp)piVar1[5]" ( (type_descriptor "png_const_charp" type_identifier) ) (subscript_expression "piVar1[5]" identifier [ number_literal ])) , (cast_expression "(png_const_charp)piVar1[6]" ( (type_descriptor "png_const_charp" type_identifier) ) (subscript_expression "piVar1[6]" identifier [ number_literal ])) , (cast_expression "(png_const_charp)piVar1[2]" ( (type_descriptor "png_const_charp" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) ))) ;) (expression_statement "ppVar2 = info_ptr->text;" (assignment_expression "ppVar2 = info_ptr->text" identifier = (field_expression "info_ptr->text" identifier -> field_identifier)) ;) (expression_statement "piVar1 = (int *)((int)&ppVar2->compression + iVar4);" (assignment_expression "piVar1 = (int *)((int)&ppVar2->compression + iVar4)" identifier = (cast_expression "(int *)((int)&ppVar2->compression + iVar4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ppVar2->compression + iVar4)" ( (binary_expression "(int)&ppVar2->compression + iVar4" (cast_expression "(int)&ppVar2->compression" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ppVar2->compression" & (field_expression "ppVar2->compression" identifier -> field_identifier))) + identifier) )))) ;) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar4 + 0x1c;" (assignment_expression "iVar4 = iVar4 + 0x1c" identifier = (binary_expression "iVar4 + 0x1c" identifier + number_literal)) ;) (expression_statement "*piVar1 = (*piVar1 != -1) - 3;" (assignment_expression "*piVar1 = (*piVar1 != -1) - 3" (pointer_expression "*piVar1" * identifier) = (binary_expression "(*piVar1 != -1) - 3" (parenthesized_expression "(*piVar1 != -1)" ( (binary_expression "*piVar1 != -1" (pointer_expression "*piVar1" * identifier) != number_literal) )) - number_literal)) ;) (if_statement "if (info_ptr->num_text <= iVar3) goto LAB_00033e40;" if (parenthesized_expression "(info_ptr->num_text <= iVar3)" ( (binary_expression "info_ptr->num_text <= iVar3" (field_expression "info_ptr->num_text" identifier -> field_identifier) <= identifier) )) (goto_statement "goto LAB_00033e40;" goto statement_identifier ;)) })) (if_statement "if (compression == 0) {\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }" if (parenthesized_expression "(compression == 0)" ( (binary_expression "compression == 0" identifier == number_literal) )) (compound_statement "{\n            png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;\n          }" { (expression_statement "png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);" (call_expression "png_write_zTXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0)" identifier (argument_list "(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0)" ( identifier , (cast_expression "(png_const_charp)piVar1[1]" ( (type_descriptor "png_const_charp" type_identifier) ) (subscript_expression "piVar1[1]" identifier [ number_literal ])) , (cast_expression "(png_const_charp)piVar1[2]" ( (type_descriptor "png_const_charp" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) , number_literal ))) ;) (expression_statement "ppVar2 = info_ptr->text;" (assignment_expression "ppVar2 = info_ptr->text" identifier = (field_expression "info_ptr->text" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe;" (assignment_expression "*(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffe" (pointer_expression "*(undefined4 *)((int)&ppVar2->compression + iVar4)" * (cast_expression "(undefined4 *)((int)&ppVar2->compression + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ppVar2->compression + iVar4)" ( (binary_expression "(int)&ppVar2->compression + iVar4" (cast_expression "(int)&ppVar2->compression" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ppVar2->compression" & (field_expression "ppVar2->compression" identifier -> field_identifier))) + identifier) )))) = number_literal) ;) }) (else_clause "else if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }" else (if_statement "if (compression == -1) {\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }" if (parenthesized_expression "(compression == -1)" ( (binary_expression "compression == -1" identifier == number_literal) )) (compound_statement "{\n            png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);\n            ppVar2 = info_ptr->text;\n            *(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;\n          }" { (expression_statement "png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0);" (call_expression "png_write_tEXt(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0)" identifier (argument_list "(png_ptr,(png_const_charp)piVar1[1],(png_const_charp)piVar1[2],0)" ( identifier , (cast_expression "(png_const_charp)piVar1[1]" ( (type_descriptor "png_const_charp" type_identifier) ) (subscript_expression "piVar1[1]" identifier [ number_literal ])) , (cast_expression "(png_const_charp)piVar1[2]" ( (type_descriptor "png_const_charp" type_identifier) ) (subscript_expression "piVar1[2]" identifier [ number_literal ])) , number_literal ))) ;) (expression_statement "ppVar2 = info_ptr->text;" (assignment_expression "ppVar2 = info_ptr->text" identifier = (field_expression "info_ptr->text" identifier -> field_identifier)) ;) (expression_statement "*(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd;" (assignment_expression "*(undefined4 *)((int)&ppVar2->compression + iVar4) = 0xfffffffd" (pointer_expression "*(undefined4 *)((int)&ppVar2->compression + iVar4)" * (cast_expression "(undefined4 *)((int)&ppVar2->compression + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&ppVar2->compression + iVar4)" ( (binary_expression "(int)&ppVar2->compression + iVar4" (cast_expression "(int)&ppVar2->compression" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&ppVar2->compression" & (field_expression "ppVar2->compression" identifier -> field_identifier))) + identifier) )))) = number_literal) ;) })))) (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar4 = iVar4 + 0x1c;" (assignment_expression "iVar4 = iVar4 + 0x1c" identifier = (binary_expression "iVar4 + 0x1c" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 < info_ptr->num_text)" ( (binary_expression "iVar3 < info_ptr->num_text" identifier < (field_expression "info_ptr->num_text" identifier -> field_identifier)) )) ;) })) (labeled_statement "LAB_00033e40:\n      if ((info_ptr->valid & 0x10000) == 0) {\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      else {\n        png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n        iVar3 = info_ptr->unknown_chunks_num;\n      }" statement_identifier : (if_statement "if ((info_ptr->valid & 0x10000) == 0) {\n        iVar3 = info_ptr->unknown_chunks_num;\n      }\n      else {\n        png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n        iVar3 = info_ptr->unknown_chunks_num;\n      }" if (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        iVar3 = info_ptr->unknown_chunks_num;\n      }" { (expression_statement "iVar3 = info_ptr->unknown_chunks_num;" (assignment_expression "iVar3 = info_ptr->unknown_chunks_num" identifier = (field_expression "info_ptr->unknown_chunks_num" identifier -> field_identifier)) ;) }) (else_clause "else {\n        png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n        iVar3 = info_ptr->unknown_chunks_num;\n      }" else (compound_statement "{\n        png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n        iVar3 = info_ptr->unknown_chunks_num;\n      }" { (expression_statement "png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);" (call_expression "png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif)" identifier (argument_list "(png_ptr,info_ptr->exif,info_ptr->num_exif)" ( identifier , (field_expression "info_ptr->exif" identifier -> field_identifier) , (field_expression "info_ptr->num_exif" identifier -> field_identifier) ))) ;) (expression_statement "iVar3 = info_ptr->unknown_chunks_num;" (assignment_expression "iVar3 = info_ptr->unknown_chunks_num" identifier = (field_expression "info_ptr->unknown_chunks_num" identifier -> field_identifier)) ;) })))) (if_statement "if (iVar3 != 0) {\n        write_unknown_chunks\n                  (png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,\n                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008);\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        write_unknown_chunks\n                  (png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,\n                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008);\n      }" { (expression_statement "write_unknown_chunks\n                  (png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,\n                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008);" (call_expression "write_unknown_chunks\n                  (png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,\n                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008)" identifier (argument_list "(png_ptr,(png_const_inforp)&info_ptr->unknown_chunks,\n                   (uint)&info_ptr->unknown_chunks_num,(png_const_inforp)&DAT_00000008)" ( identifier , (binary_expression "(png_const_inforp)&info_ptr->unknown_chunks" (parenthesized_expression "(png_const_inforp)" ( identifier )) & (field_expression "info_ptr->unknown_chunks" identifier -> field_identifier)) , (binary_expression "(uint)&info_ptr->unknown_chunks_num" (parenthesized_expression "(uint)" ( identifier )) & (field_expression "info_ptr->unknown_chunks_num" identifier -> field_identifier)) , (binary_expression "(png_const_inforp)&DAT_00000008" (parenthesized_expression "(png_const_inforp)" ( identifier )) & identifier) ))) ;) })) })) (expression_statement "png_ptr->mode = png_ptr->mode | 8;" (assignment_expression "png_ptr->mode = png_ptr->mode | 8" (field_expression "png_ptr->mode" identifier -> field_identifier) = (binary_expression "png_ptr->mode | 8" (field_expression "png_ptr->mode" identifier -> field_identifier) | number_literal)) ;) (expression_statement "png_write_IEND(png_ptr);" (call_expression "png_write_IEND(png_ptr)" identifier (argument_list "(png_ptr)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_write_end(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined **unaff_EBX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined **local_20;\n  \n  local_20 = &__DT_PLTGOT;\n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    \n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }\n  return;\n}\n\n" (function_definition "void png_write_end(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined **unaff_EBX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined **local_20;\n  \n  local_20 = &__DT_PLTGOT;\n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    \n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }\n  return;\n}" primitive_type (function_declarator "png_write_end(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined **unaff_EBX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined **local_20;\n  \n  local_20 = &__DT_PLTGOT;\n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    \n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined **unaff_EBX;" type_identifier (pointer_declarator "**unaff_EBX" * (pointer_declarator "*unaff_EBX" * identifier)) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined **local_20;" type_identifier (pointer_declarator "**local_20" * (pointer_declarator "*local_20" * identifier)) ;) (expression_statement "local_20 = &__DT_PLTGOT;" (assignment_expression "local_20 = &__DT_PLTGOT" identifier = (pointer_expression "&__DT_PLTGOT" & identifier)) ;) (if_statement "if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    \n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    \n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }" { (if_statement "if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    \n      png_error(param_1,"No IDATs written into file");\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0xd0) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0xd0) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd0) & 4)" ( (binary_expression "*(byte *)(param_1 + 0xd0) & 4" (pointer_expression "*(byte *)(param_1 + 0xd0)" * (cast_expression "(byte *)(param_1 + 0xd0)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n                    \n      png_error(param_1,"No IDATs written into file");\n    }" { (expression_statement "png_error(param_1,"No IDATs written into file");" (call_expression "png_error(param_1,"No IDATs written into file")" identifier (argument_list "(param_1,"No IDATs written into file")" ( identifier , (string_literal ""No IDATs written into file"" " string_content ") ))) ;) })) (if_statement "if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }" if (parenthesized_expression "((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0))" ( (binary_expression "(int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)" (binary_expression "(int)(uint)*(ushort *)(param_1 + 0x19c)" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(ushort *)(param_1 + 0x19c)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x19c)" ( (binary_expression "param_1 + 0x19c" identifier + number_literal) )))) < (pointer_expression "*(int *)(param_1 + 0x1a0)" * (cast_expression "(int *)(param_1 + 0x1a0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1a0)" ( (binary_expression "param_1 + 0x1a0" identifier + number_literal) ))))) )) (compound_statement "{\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }" { (expression_statement "png_benign_error(param_1,"Wrote palette index exceeding num_palette");" (call_expression "png_benign_error(param_1,"Wrote palette index exceeding num_palette")" identifier (argument_list "(param_1,"Wrote palette index exceeding num_palette")" ( identifier , (string_literal ""Wrote palette index exceeding num_palette"" " string_content ") ))) ;) (expression_statement "unaff_EBX = local_20;" (assignment_expression "unaff_EBX = local_20" identifier = identifier) ;) })) (if_statement "if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }" if (parenthesized_expression "(*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0))" ( (binary_expression "*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)" (pointer_expression "*(int *)(param_1 + 0x2d4)" * (cast_expression "(int *)(param_1 + 0x2d4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2d4)" ( (binary_expression "param_1 + 0x2d4" identifier + number_literal) )))) != (pointer_expression "*(int *)(param_1 + 0x2d0)" * (cast_expression "(int *)(param_1 + 0x2d0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2d0)" ( (binary_expression "param_1 + 0x2d0" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }" { (expression_statement "png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);" (call_expression "png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX)" identifier (argument_list "(param_1,"Not enough frames written",unaff_EBX,unaff_EBX)" ( identifier , (string_literal ""Not enough frames written"" " string_content ") , identifier , identifier ))) ;) })) (if_statement "if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }" { (if_statement "if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }" if (parenthesized_expression "(((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0))" ( (binary_expression "((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)" (parenthesized_expression "((*(byte *)(param_2 + 9) & 2) != 0)" ( (binary_expression "(*(byte *)(param_2 + 9) & 2) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 2)" ( (binary_expression "*(byte *)(param_2 + 9) & 2" (pointer_expression "*(byte *)(param_2 + 9)" * (cast_expression "(byte *)(param_2 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 9)" ( (binary_expression "param_2 + 9" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "((*(byte *)(param_1 + 0xd1) & 2) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0xd1) & 2) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd1) & 2)" ( (binary_expression "*(byte *)(param_1 + 0xd1) & 2" (pointer_expression "*(byte *)(param_1 + 0xd1)" * (cast_expression "(byte *)(param_1 + 0xd1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd1)" ( (binary_expression "param_1 + 0xd1" identifier + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }" { (expression_statement "FUN_00038ef0(param_1,param_2 + 0x8c);" (call_expression "FUN_00038ef0(param_1,param_2 + 0x8c)" identifier (argument_list "(param_1,param_2 + 0x8c)" ( identifier , (binary_expression "param_2 + 0x8c" identifier + number_literal) ))) ;) })) (if_statement "if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }" if (parenthesized_expression "(0 < *(int *)(param_2 + 0x80))" ( (binary_expression "0 < *(int *)(param_2 + 0x80)" number_literal < (pointer_expression "*(int *)(param_2 + 0x80)" * (cast_expression "(int *)(param_2 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x80)" ( (binary_expression "param_2 + 0x80" identifier + number_literal) ))))) )) (compound_statement "{\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0x88);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x88)" identifier = (pointer_expression "*(int *)(param_2 + 0x88)" * (cast_expression "(int *)(param_2 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x88)" ( (binary_expression "param_2 + 0x88" identifier + number_literal) ))))) ;) (do_statement "do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));" do (compound_statement "{\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        }" { (while_statement "while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }" { (expression_statement "piVar1 = (int *)(iVar3 + iVar5);" (assignment_expression "piVar1 = (int *)(iVar3 + iVar5)" identifier = (cast_expression "(int *)(iVar3 + iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) ;) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (if_statement "if (iVar2 < 1) break;" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);" (call_expression "FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2])" identifier (argument_list "(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2])" ( identifier , identifier , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (subscript_expression "piVar1[5]" identifier [ number_literal ]) , (subscript_expression "piVar1[6]" identifier [ number_literal ]) , (subscript_expression "piVar1[2]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0x88);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x88)" identifier = (pointer_expression "*(int *)(param_2 + 0x88)" * (cast_expression "(int *)(param_2 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x88)" ( (binary_expression "param_2 + 0x88" identifier + number_literal) ))))) ;) (expression_statement "piVar1 = (int *)(iVar3 + iVar5);" (assignment_expression "piVar1 = (int *)(iVar3 + iVar5)" identifier = (cast_expression "(int *)(iVar3 + iVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + 0x1c;" (assignment_expression "iVar5 = iVar5 + 0x1c" identifier = (binary_expression "iVar5 + 0x1c" identifier + number_literal)) ;) (expression_statement "*piVar1 = (*piVar1 != -1) - 3;" (assignment_expression "*piVar1 = (*piVar1 != -1) - 3" (pointer_expression "*piVar1" * identifier) = (binary_expression "(*piVar1 != -1) - 3" (parenthesized_expression "(*piVar1 != -1)" ( (binary_expression "*piVar1 != -1" (pointer_expression "*piVar1" * identifier) != number_literal) )) - number_literal)) ;) (if_statement "if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;" if (parenthesized_expression "(*(int *)(param_2 + 0x80) <= iVar4)" ( (binary_expression "*(int *)(param_2 + 0x80) <= iVar4" (pointer_expression "*(int *)(param_2 + 0x80)" * (cast_expression "(int *)(param_2 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x80)" ( (binary_expression "param_2 + 0x80" identifier + number_literal) )))) <= identifier) )) (goto_statement "goto LAB_00033e40;" goto statement_identifier ;)) })) (if_statement "if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }" { (expression_statement "FUN_000383e0(param_1,piVar1[1],piVar1[2],0);" (call_expression "FUN_000383e0(param_1,piVar1[1],piVar1[2],0)" identifier (argument_list "(param_1,piVar1[1],piVar1[2],0)" ( identifier , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (subscript_expression "piVar1[2]" identifier [ number_literal ]) , number_literal ))) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0x88);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x88)" identifier = (pointer_expression "*(int *)(param_2 + 0x88)" * (cast_expression "(int *)(param_2 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x88)" ( (binary_expression "param_2 + 0x88" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;" (assignment_expression "*(undefined4 *)(iVar3 + iVar5) = 0xfffffffe" (pointer_expression "*(undefined4 *)(iVar3 + iVar5)" * (cast_expression "(undefined4 *)(iVar3 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) = number_literal) ;) }) (else_clause "else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }" else (if_statement "if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }" if (parenthesized_expression "(iVar2 == -1)" ( (binary_expression "iVar2 == -1" identifier == number_literal) )) (compound_statement "{\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }" { (expression_statement "FUN_000382b0(param_1,piVar1[1],piVar1[2],0);" (call_expression "FUN_000382b0(param_1,piVar1[1],piVar1[2],0)" identifier (argument_list "(param_1,piVar1[1],piVar1[2],0)" ( identifier , (subscript_expression "piVar1[1]" identifier [ number_literal ]) , (subscript_expression "piVar1[2]" identifier [ number_literal ]) , number_literal ))) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0x88);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x88)" identifier = (pointer_expression "*(int *)(param_2 + 0x88)" * (cast_expression "(int *)(param_2 + 0x88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x88)" ( (binary_expression "param_2 + 0x88" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;" (assignment_expression "*(undefined4 *)(iVar3 + iVar5) = 0xfffffffd" (pointer_expression "*(undefined4 *)(iVar3 + iVar5)" * (cast_expression "(undefined4 *)(iVar3 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + iVar5)" ( (binary_expression "iVar3 + iVar5" identifier + identifier) )))) = number_literal) ;) })))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + 0x1c;" (assignment_expression "iVar5 = iVar5 + 0x1c" identifier = (binary_expression "iVar5 + 0x1c" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < *(int *)(param_2 + 0x80))" ( (binary_expression "iVar4 < *(int *)(param_2 + 0x80)" identifier < (pointer_expression "*(int *)(param_2 + 0x80)" * (cast_expression "(int *)(param_2 + 0x80)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x80)" ( (binary_expression "param_2 + 0x80" identifier + number_literal) ))))) )) ;) })) (labeled_statement "LAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" statement_identifier : (if_statement "if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" if (parenthesized_expression "((*(byte *)(param_2 + 10) & 1) == 0)" ( (binary_expression "(*(byte *)(param_2 + 10) & 1) == 0" (parenthesized_expression "(*(byte *)(param_2 + 10) & 1)" ( (binary_expression "*(byte *)(param_2 + 10) & 1" (pointer_expression "*(byte *)(param_2 + 10)" * (cast_expression "(byte *)(param_2 + 10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 10)" ( (binary_expression "param_2 + 10" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" { (expression_statement "iVar3 = *(int *)(param_2 + 0xfc);" (assignment_expression "iVar3 = *(int *)(param_2 + 0xfc)" identifier = (pointer_expression "*(int *)(param_2 + 0xfc)" * (cast_expression "(int *)(param_2 + 0xfc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xfc)" ( (binary_expression "param_2 + 0xfc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" else (compound_statement "{\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" { (expression_statement "FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));" (call_expression "FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0xd0)" * (cast_expression "(undefined4 *)(param_2 + 0xd0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd0)" ( (binary_expression "param_2 + 0xd0" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0xcc)" * (cast_expression "(undefined4 *)(param_2 + 0xcc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xcc)" ( (binary_expression "param_2 + 0xcc" identifier + number_literal) )))) ))) ;) (expression_statement "iVar3 = *(int *)(param_2 + 0xfc);" (assignment_expression "iVar3 = *(int *)(param_2 + 0xfc)" identifier = (pointer_expression "*(int *)(param_2 + 0xfc)" * (cast_expression "(int *)(param_2 + 0xfc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xfc)" ( (binary_expression "param_2 + 0xfc" identifier + number_literal) ))))) ;) })))) (if_statement "if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00032fe0(8);\n      }" { (expression_statement "FUN_00032fe0(8);" (call_expression "FUN_00032fe0(8)" identifier (argument_list "(8)" ( number_literal ))) ;) })) })) (expression_statement "*(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;" (assignment_expression "*(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8" (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) )))) = (binary_expression "*(uint *)(param_1 + 0xd0) | 8" (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)) ;) (expression_statement "FUN_00037760(param_1);" (call_expression "FUN_00037760(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * (pointer_declarator * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (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 , (string_literal " string_content ") ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (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 ( IDENT , (string_literal " string_content ") ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (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 ( IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) && (parenthesized_expression ( (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 , (binary_expression IDENT + LIT) ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (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) ))))) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (break_statement break ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , (subscript_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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (goto_statement goto statement_identifier ;)) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) , 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) })))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) })) (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 (call_expression IDENT (argument_list ( IDENT ))) ;) })) (return_statement return ;) })))
(function_definition "void png_write_end(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined **unaff_EBX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined **local_20;\n  \n  local_20 = &__DT_PLTGOT;\n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    \n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "png_write_end(int param_1,int param_2)" (identifier "png_write_end") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined **unaff_EBX;\n  int iVar3;\n  int iVar4;\n  int iVar5;\n  undefined **local_20;\n  \n  local_20 = &__DT_PLTGOT;\n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    \n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined **unaff_EBX;" (type_identifier "undefined") (pointer_declarator "**unaff_EBX" (* "*") (pointer_declarator "*unaff_EBX" (* "*") (identifier "unaff_EBX"))) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined **local_20;" (type_identifier "undefined") (pointer_declarator "**local_20" (* "*") (pointer_declarator "*local_20" (* "*") (identifier "local_20"))) (; ";")) (expression_statement "local_20 = &__DT_PLTGOT;" (assignment_expression "local_20 = &__DT_PLTGOT" (identifier "local_20") (= "=") (pointer_expression "&__DT_PLTGOT" (& "&") (identifier "__DT_PLTGOT"))) (; ";")) (if_statement "if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    \n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    \n      png_error(param_1,"No IDATs written into file");\n    }\n    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }\n    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }\n    if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }\n    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;\n    FUN_00037760(param_1);\n  }" ({ "{") (if_statement "if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {\n                    \n      png_error(param_1,"No IDATs written into file");\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0xd0) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0xd0) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd0) & 4)" (( "(") (binary_expression "*(byte *)(param_1 + 0xd0) & 4" (pointer_expression "*(byte *)(param_1 + 0xd0)" (* "*") (cast_expression "(byte *)(param_1 + 0xd0)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd0)" (( "(") (binary_expression "param_1 + 0xd0" (identifier "param_1") (+ "+") (number_literal "0xd0")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n      png_error(param_1,"No IDATs written into file");\n    }" ({ "{") (expression_statement "png_error(param_1,"No IDATs written into file");" (call_expression "png_error(param_1,"No IDATs written into file")" (identifier "png_error") (argument_list "(param_1,"No IDATs written into file")" (( "(") (identifier "param_1") (, ",") (string_literal ""No IDATs written into file"" (" """) (string_content "No IDATs written into file") (" """)) () ")"))) (; ";")) (} "}"))) (if_statement "if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }" (if "if") (parenthesized_expression "((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0))" (( "(") (binary_expression "(int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)" (binary_expression "(int)(uint)*(ushort *)(param_1 + 0x19c)" (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (cast_expression "(ushort *)(param_1 + 0x19c)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x19c)" (( "(") (binary_expression "param_1 + 0x19c" (identifier "param_1") (+ "+") (number_literal "0x19c")) () ")")))) (< "<") (pointer_expression "*(int *)(param_1 + 0x1a0)" (* "*") (cast_expression "(int *)(param_1 + 0x1a0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1a0)" (( "(") (binary_expression "param_1 + 0x1a0" (identifier "param_1") (+ "+") (number_literal "0x1a0")) () ")"))))) () ")")) (compound_statement "{\n      png_benign_error(param_1,"Wrote palette index exceeding num_palette");\n      unaff_EBX = local_20;\n    }" ({ "{") (expression_statement "png_benign_error(param_1,"Wrote palette index exceeding num_palette");" (call_expression "png_benign_error(param_1,"Wrote palette index exceeding num_palette")" (identifier "png_benign_error") (argument_list "(param_1,"Wrote palette index exceeding num_palette")" (( "(") (identifier "param_1") (, ",") (string_literal ""Wrote palette index exceeding num_palette"" (" """) (string_content "Wrote palette index exceeding num_palette") (" """)) () ")"))) (; ";")) (expression_statement "unaff_EBX = local_20;" (assignment_expression "unaff_EBX = local_20" (identifier "unaff_EBX") (= "=") (identifier "local_20")) (; ";")) (} "}"))) (if_statement "if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0))" (( "(") (binary_expression "*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)" (pointer_expression "*(int *)(param_1 + 0x2d4)" (* "*") (cast_expression "(int *)(param_1 + 0x2d4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2d4)" (( "(") (binary_expression "param_1 + 0x2d4" (identifier "param_1") (+ "+") (number_literal "0x2d4")) () ")")))) (!= "!=") (pointer_expression "*(int *)(param_1 + 0x2d0)" (* "*") (cast_expression "(int *)(param_1 + 0x2d0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2d0)" (( "(") (binary_expression "param_1 + 0x2d0" (identifier "param_1") (+ "+") (number_literal "0x2d0")) () ")"))))) () ")")) (compound_statement "{\n                    \n      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);\n    }" ({ "{") (expression_statement "png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);" (call_expression "png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX)" (identifier "png_error") (argument_list "(param_1,"Not enough frames written",unaff_EBX,unaff_EBX)" (( "(") (identifier "param_1") (, ",") (string_literal ""Not enough frames written"" (" """) (string_content "Not enough frames written") (" """)) (, ",") (identifier "unaff_EBX") (, ",") (identifier "unaff_EBX") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_2 != 0) {\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }\n      if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }\nLAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }\n    }" ({ "{") (if_statement "if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }" (if "if") (parenthesized_expression "(((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0))" (( "(") (binary_expression "((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)" (parenthesized_expression "((*(byte *)(param_2 + 9) & 2) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 9) & 2) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 2)" (( "(") (binary_expression "*(byte *)(param_2 + 9) & 2" (pointer_expression "*(byte *)(param_2 + 9)" (* "*") (cast_expression "(byte *)(param_2 + 9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 9)" (( "(") (binary_expression "param_2 + 9" (identifier "param_2") (+ "+") (number_literal "9")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((*(byte *)(param_1 + 0xd1) & 2) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0xd1) & 2) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd1) & 2)" (( "(") (binary_expression "*(byte *)(param_1 + 0xd1) & 2" (pointer_expression "*(byte *)(param_1 + 0xd1)" (* "*") (cast_expression "(byte *)(param_1 + 0xd1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd1)" (( "(") (binary_expression "param_1 + 0xd1" (identifier "param_1") (+ "+") (number_literal "0xd1")) () ")")))) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        FUN_00038ef0(param_1,param_2 + 0x8c);\n      }" ({ "{") (expression_statement "FUN_00038ef0(param_1,param_2 + 0x8c);" (call_expression "FUN_00038ef0(param_1,param_2 + 0x8c)" (identifier "FUN_00038ef0") (argument_list "(param_1,param_2 + 0x8c)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 + 0x8c" (identifier "param_2") (+ "+") (number_literal "0x8c")) () ")"))) (; ";")) (} "}"))) (if_statement "if (0 < *(int *)(param_2 + 0x80)) {\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }" (if "if") (parenthesized_expression "(0 < *(int *)(param_2 + 0x80))" (( "(") (binary_expression "0 < *(int *)(param_2 + 0x80)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_2 + 0x80)" (* "*") (cast_expression "(int *)(param_2 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x80)" (( "(") (binary_expression "param_2 + 0x80" (identifier "param_2") (+ "+") (number_literal "0x80")) () ")"))))) () ")")) (compound_statement "{\n        iVar5 = 0;\n        iVar4 = 0;\n        iVar3 = *(int *)(param_2 + 0x88);\n        do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));\n      }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar3 = *(int *)(param_2 + 0x88);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x88)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_2 + 0x88)" (* "*") (cast_expression "(int *)(param_2 + 0x88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x88)" (( "(") (binary_expression "param_2 + 0x88" (identifier "param_2") (+ "+") (number_literal "0x88")) () ")"))))) (; ";")) (do_statement "do {\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        } while (iVar4 < *(int *)(param_2 + 0x80));" (do "do") (compound_statement "{\n          while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }\n          if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }\n          iVar4 = iVar4 + 1;\n          iVar5 = iVar5 + 0x1c;\n        }" ({ "{") (while_statement "while( true ) {\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar2 = *piVar1;\n            if (iVar2 < 1) break;\n            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);\n            iVar3 = *(int *)(param_2 + 0x88);\n            piVar1 = (int *)(iVar3 + iVar5);\n            iVar4 = iVar4 + 1;\n            iVar5 = iVar5 + 0x1c;\n            *piVar1 = (*piVar1 != -1) - 3;\n            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;\n          }" ({ "{") (expression_statement "piVar1 = (int *)(iVar3 + iVar5);" (assignment_expression "piVar1 = (int *)(iVar3 + iVar5)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar3 + iVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5)" (( "(") (binary_expression "iVar3 + iVar5" (identifier "iVar3") (+ "+") (identifier "iVar5")) () ")")))) (; ";")) (expression_statement "iVar2 = *piVar1;" (assignment_expression "iVar2 = *piVar1" (identifier "iVar2") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (if_statement "if (iVar2 < 1) break;" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);" (call_expression "FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2])" (identifier "FUN_00038540") (argument_list "(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2])" (( "(") (identifier "param_1") (, ",") (identifier "iVar2") (, ",") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]")) (, ",") (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]")) (, ",") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(param_2 + 0x88);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x88)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_2 + 0x88)" (* "*") (cast_expression "(int *)(param_2 + 0x88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x88)" (( "(") (binary_expression "param_2 + 0x88" (identifier "param_2") (+ "+") (number_literal "0x88")) () ")"))))) (; ";")) (expression_statement "piVar1 = (int *)(iVar3 + iVar5);" (assignment_expression "piVar1 = (int *)(iVar3 + iVar5)" (identifier "piVar1") (= "=") (cast_expression "(int *)(iVar3 + iVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5)" (( "(") (binary_expression "iVar3 + iVar5" (identifier "iVar3") (+ "+") (identifier "iVar5")) () ")")))) (; ";")) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = iVar5 + 0x1c;" (assignment_expression "iVar5 = iVar5 + 0x1c" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 0x1c" (identifier "iVar5") (+ "+") (number_literal "0x1c"))) (; ";")) (expression_statement "*piVar1 = (*piVar1 != -1) - 3;" (assignment_expression "*piVar1 = (*piVar1 != -1) - 3" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "(*piVar1 != -1) - 3" (parenthesized_expression "(*piVar1 != -1)" (( "(") (binary_expression "*piVar1 != -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "-1")) () ")")) (- "-") (number_literal "3"))) (; ";")) (if_statement "if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x80) <= iVar4)" (( "(") (binary_expression "*(int *)(param_2 + 0x80) <= iVar4" (pointer_expression "*(int *)(param_2 + 0x80)" (* "*") (cast_expression "(int *)(param_2 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x80)" (( "(") (binary_expression "param_2 + 0x80" (identifier "param_2") (+ "+") (number_literal "0x80")) () ")")))) (<= "<=") (identifier "iVar4")) () ")")) (goto_statement "goto LAB_00033e40;" (goto "goto") (statement_identifier "LAB_00033e40") (; ";"))) (} "}"))) (if_statement "if (iVar2 == 0) {\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }\n          else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;\n          }" ({ "{") (expression_statement "FUN_000383e0(param_1,piVar1[1],piVar1[2],0);" (call_expression "FUN_000383e0(param_1,piVar1[1],piVar1[2],0)" (identifier "FUN_000383e0") (argument_list "(param_1,piVar1[1],piVar1[2],0)" (( "(") (identifier "param_1") (, ",") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(param_2 + 0x88);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x88)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_2 + 0x88)" (* "*") (cast_expression "(int *)(param_2 + 0x88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x88)" (( "(") (binary_expression "param_2 + 0x88" (identifier "param_2") (+ "+") (number_literal "0x88")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;" (assignment_expression "*(undefined4 *)(iVar3 + iVar5) = 0xfffffffe" (pointer_expression "*(undefined4 *)(iVar3 + iVar5)" (* "*") (cast_expression "(undefined4 *)(iVar3 + iVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5)" (( "(") (binary_expression "iVar3 + iVar5" (identifier "iVar3") (+ "+") (identifier "iVar5")) () ")")))) (= "=") (number_literal "0xfffffffe")) (; ";")) (} "}")) (else_clause "else if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }" (else "else") (if_statement "if (iVar2 == -1) {\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }" (if "if") (parenthesized_expression "(iVar2 == -1)" (( "(") (binary_expression "iVar2 == -1" (identifier "iVar2") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);\n            iVar3 = *(int *)(param_2 + 0x88);\n            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;\n          }" ({ "{") (expression_statement "FUN_000382b0(param_1,piVar1[1],piVar1[2],0);" (call_expression "FUN_000382b0(param_1,piVar1[1],piVar1[2],0)" (identifier "FUN_000382b0") (argument_list "(param_1,piVar1[1],piVar1[2],0)" (( "(") (identifier "param_1") (, ",") (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (, ",") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(param_2 + 0x88);" (assignment_expression "iVar3 = *(int *)(param_2 + 0x88)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_2 + 0x88)" (* "*") (cast_expression "(int *)(param_2 + 0x88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x88)" (( "(") (binary_expression "param_2 + 0x88" (identifier "param_2") (+ "+") (number_literal "0x88")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;" (assignment_expression "*(undefined4 *)(iVar3 + iVar5) = 0xfffffffd" (pointer_expression "*(undefined4 *)(iVar3 + iVar5)" (* "*") (cast_expression "(undefined4 *)(iVar3 + iVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + iVar5)" (( "(") (binary_expression "iVar3 + iVar5" (identifier "iVar3") (+ "+") (identifier "iVar5")) () ")")))) (= "=") (number_literal "0xfffffffd")) (; ";")) (} "}"))))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = iVar5 + 0x1c;" (assignment_expression "iVar5 = iVar5 + 0x1c" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 0x1c" (identifier "iVar5") (+ "+") (number_literal "0x1c"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 < *(int *)(param_2 + 0x80))" (( "(") (binary_expression "iVar4 < *(int *)(param_2 + 0x80)" (identifier "iVar4") (< "<") (pointer_expression "*(int *)(param_2 + 0x80)" (* "*") (cast_expression "(int *)(param_2 + 0x80)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x80)" (( "(") (binary_expression "param_2 + 0x80" (identifier "param_2") (+ "+") (number_literal "0x80")) () ")"))))) () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_00033e40:\n      if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" (statement_identifier "LAB_00033e40") (: ":") (if_statement "if ((*(byte *)(param_2 + 10) & 1) == 0) {\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }\n      else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 10) & 1) == 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 10) & 1) == 0" (parenthesized_expression "(*(byte *)(param_2 + 10) & 1)" (( "(") (binary_expression "*(byte *)(param_2 + 10) & 1" (pointer_expression "*(byte *)(param_2 + 10)" (* "*") (cast_expression "(byte *)(param_2 + 10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 10)" (( "(") (binary_expression "param_2 + 10" (identifier "param_2") (+ "+") (number_literal "10")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" ({ "{") (expression_statement "iVar3 = *(int *)(param_2 + 0xfc);" (assignment_expression "iVar3 = *(int *)(param_2 + 0xfc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_2 + 0xfc)" (* "*") (cast_expression "(int *)(param_2 + 0xfc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xfc)" (( "(") (binary_expression "param_2 + 0xfc" (identifier "param_2") (+ "+") (number_literal "0xfc")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" (else "else") (compound_statement "{\n        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));\n        iVar3 = *(int *)(param_2 + 0xfc);\n      }" ({ "{") (expression_statement "FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));" (call_expression "FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc))" (identifier "FUN_00038140") (argument_list "(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0xd0)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xd0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd0)" (( "(") (binary_expression "param_2 + 0xd0" (identifier "param_2") (+ "+") (number_literal "0xd0")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0xcc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xcc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xcc)" (( "(") (binary_expression "param_2 + 0xcc" (identifier "param_2") (+ "+") (number_literal "0xcc")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(param_2 + 0xfc);" (assignment_expression "iVar3 = *(int *)(param_2 + 0xfc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_2 + 0xfc)" (* "*") (cast_expression "(int *)(param_2 + 0xfc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xfc)" (( "(") (binary_expression "param_2 + 0xfc" (identifier "param_2") (+ "+") (number_literal "0xfc")) () ")"))))) (; ";")) (} "}"))))) (if_statement "if (iVar3 != 0) {\n        FUN_00032fe0(8);\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00032fe0(8);\n      }" ({ "{") (expression_statement "FUN_00032fe0(8);" (call_expression "FUN_00032fe0(8)" (identifier "FUN_00032fe0") (argument_list "(8)" (( "(") (number_literal "8") () ")"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "*(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;" (assignment_expression "*(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8" (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")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0xd0) | 8" (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 "8"))) (; ";")) (expression_statement "FUN_00037760(param_1);" (call_expression "FUN_00037760(param_1)" (identifier "FUN_00037760") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void function_1(type_1 var_1,type_2 var_4)

{
  int *piVar1;
  int var_7;
  type_3 ppVar2;
  int var_9;
  int var_6;
  
  if (var_1 != (type_1)0x0) {
    if ((var_1->mode & 4) == 0) {
                    /* WARNING: Subroutine does not return */
      var_2(var_1,"No IDATs written into file");
    }
    if ((int)(type_4)var_1->num_palette < var_1->num_palette_max) {
      var_3(var_1,"Wrote palette index exceeding num_palette");
    }
    if (var_1->num_frames_written != var_1->num_frames_to_write) {
                    /* WARNING: Subroutine does not return */
      var_2(var_1,"Not enough frames written");
    }
    if (var_4 != (type_2)0x0) {
      if (((var_4->valid & 0x200) != 0) && ((var_1->mode & 0x200) == 0)) {
        var_5(var_1,&var_4->mod_time);
      }
      if (0 < var_4->num_text) {
        var_6 = 0;
        var_9 = 0;
        ppVar2 = var_4->text;
        do {
          while( true ) {
            piVar1 = (int *)((int)&ppVar2->var_7 + var_6);
            var_7 = *piVar1;
            if (var_7 < 1) break;
            var_8(var_1,var_7,(type_5)piVar1[1],(type_5)piVar1[5]
                           ,(type_5)piVar1[6],(type_5)piVar1[2]);
            ppVar2 = var_4->text;
            piVar1 = (int *)((int)&ppVar2->var_7 + var_6);
            var_9 = var_9 + 1;
            var_6 = var_6 + 0x1c;
            *piVar1 = (*piVar1 != -1) - 3;
            if (var_4->num_text <= var_9) goto LAB_00033e40;
          }
          if (var_7 == 0) {
            var_10(var_1,(type_5)piVar1[1],(type_5)piVar1[2],0);
            ppVar2 = var_4->text;
            *(type_6 *)((int)&ppVar2->var_7 + var_6) = 0xfffffffe;
          }
          else if (var_7 == -1) {
            var_11(var_1,(type_5)piVar1[1],(type_5)piVar1[2],0);
            ppVar2 = var_4->text;
            *(type_6 *)((int)&ppVar2->var_7 + var_6) = 0xfffffffd;
          }
          var_9 = var_9 + 1;
          var_6 = var_6 + 0x1c;
        } while (var_9 < var_4->num_text);
      }
LAB_00033e40:
      if ((var_4->valid & 0x10000) == 0) {
        var_9 = var_4->unknown_chunks_num;
      }
      else {
        var_12(var_1,var_4->exif,var_4->num_exif);
        var_9 = var_4->unknown_chunks_num;
      }
      if (var_9 != 0) {
        var_13
                  (var_1,(png_const_inforp)&var_4->unknown_chunks,
                   (type_4)&var_4->unknown_chunks_num,(png_const_inforp)&var_14);
      }
    }
    var_1->mode = var_1->mode | 8;
    var_15(var_1);
  }
  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)))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (pointer_declarator declarator: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (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) (string_literal (string_content))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (identifier))) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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 (identifier) (string_literal (string_content))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (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 (identifier) (string_literal (string_content)) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (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) (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) 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 (assignment_expression left: (identifier) right: (number_literal))) (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))))))) (do_statement body: (compound_statement (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) consequence: (goto_statement label: (statement_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) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal)))) alternative: (else_clause (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) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) 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)))))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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)))))))) alternative: (else_clause (compound_statement (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))))) (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: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (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: (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 (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(int param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  undefined **unaff_EBX;
  int iVar3;
  int iVar4;
  int iVar5;
  undefined **local_20;
  
  local_20 = &__DT_PLTGOT;
  if (param_1 != 0) {
    if ((*(byte *)(param_1 + 0xd0) & 4) == 0) {
                    /* WARNING: Subroutine does not return */
      png_error(param_1,"No IDATs written into file");
    }
    if ((int)(uint)*(ushort *)(param_1 + 0x19c) < *(int *)(param_1 + 0x1a0)) {
      png_benign_error(param_1,"Wrote palette index exceeding num_palette");
      unaff_EBX = local_20;
    }
    if (*(int *)(param_1 + 0x2d4) != *(int *)(param_1 + 0x2d0)) {
                    /* WARNING: Subroutine does not return */
      png_error(param_1,"Not enough frames written",unaff_EBX,unaff_EBX);
    }
    if (param_2 != 0) {
      if (((*(byte *)(param_2 + 9) & 2) != 0) && ((*(byte *)(param_1 + 0xd1) & 2) == 0)) {
        FUN_00038ef0(param_1,param_2 + 0x8c);
      }
      if (0 < *(int *)(param_2 + 0x80)) {
        iVar5 = 0;
        iVar4 = 0;
        iVar3 = *(int *)(param_2 + 0x88);
        do {
          while( true ) {
            piVar1 = (int *)(iVar3 + iVar5);
            iVar2 = *piVar1;
            if (iVar2 < 1) break;
            FUN_00038540(param_1,iVar2,piVar1[1],piVar1[5],piVar1[6],piVar1[2]);
            iVar3 = *(int *)(param_2 + 0x88);
            piVar1 = (int *)(iVar3 + iVar5);
            iVar4 = iVar4 + 1;
            iVar5 = iVar5 + 0x1c;
            *piVar1 = (*piVar1 != -1) - 3;
            if (*(int *)(param_2 + 0x80) <= iVar4) goto LAB_00033e40;
          }
          if (iVar2 == 0) {
            FUN_000383e0(param_1,piVar1[1],piVar1[2],0);
            iVar3 = *(int *)(param_2 + 0x88);
            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffe;
          }
          else if (iVar2 == -1) {
            FUN_000382b0(param_1,piVar1[1],piVar1[2],0);
            iVar3 = *(int *)(param_2 + 0x88);
            *(undefined4 *)(iVar3 + iVar5) = 0xfffffffd;
          }
          iVar4 = iVar4 + 1;
          iVar5 = iVar5 + 0x1c;
        } while (iVar4 < *(int *)(param_2 + 0x80));
      }
LAB_00033e40:
      if ((*(byte *)(param_2 + 10) & 1) == 0) {
        iVar3 = *(int *)(param_2 + 0xfc);
      }
      else {
        FUN_00038140(param_1,*(undefined4 *)(param_2 + 0xd0),*(undefined4 *)(param_2 + 0xcc));
        iVar3 = *(int *)(param_2 + 0xfc);
      }
      if (iVar3 != 0) {
        FUN_00032fe0(8);
      }
    }
    *(uint *)(param_1 + 0xd0) = *(uint *)(param_1 + 0xd0) | 8;
    FUN_00037760(param_1);
  }
  return;
}

