
void png_write_info(png_structrp png_ptr,png_const_inforp info_ptr)

{
  int compression;
  uint uVar1;
  int *piVar2;
  long lVar3;
  int iVar4;
  
  if ((png_ptr != (png_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) {
    png_write_info_before_PLTE(png_ptr,info_ptr);
    if ((info_ptr->valid & 8) == 0) {
      if (info_ptr->color_type == '\x03') {
                    /* WARNING: Subroutine does not return */
        png_error(png_ptr,"Valid palette required for paletted images");
      }
    }
    else {
      png_write_PLTE(png_ptr,info_ptr->palette,(uint)info_ptr->num_palette);
    }
    if ((info_ptr->valid & 0x10) != 0) {
      if (((png_ptr->transformations & 0x80000) != 0) && (info_ptr->color_type == '\x03')) {
        uVar1 = (uint)info_ptr->num_trans;
        if (0x100 < uVar1) {
          uVar1 = 0x100;
        }
        if (info_ptr->num_trans != 0) {
          lVar3 = 0;
          do {
            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];
            lVar3 = lVar3 + 1;
          } while ((int)lVar3 < (int)uVar1);
        }
      }
      png_write_tRNS(png_ptr,info_ptr->trans_alpha,&info_ptr->trans_color,(uint)info_ptr->num_trans,
                     (uint)info_ptr->color_type);
    }
    if ((info_ptr->valid & 0x20) != 0) {
      png_write_bKGD(png_ptr,&info_ptr->background,(uint)info_ptr->color_type);
    }
    if ((info_ptr->valid & 0x10000) != 0) {
      png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);
    }
    if ((info_ptr->valid & 0x40) != 0) {
      png_write_hIST(png_ptr,info_ptr->hist,(uint)info_ptr->num_palette);
    }
    if ((info_ptr->valid & 0x100) != 0) {
      png_write_oFFs(png_ptr,info_ptr->x_offset,info_ptr->y_offset,(uint)info_ptr->offset_unit_type)
      ;
    }
    if ((info_ptr->valid & 0x400) != 0) {
      png_write_pCAL(png_ptr,info_ptr->pcal_purpose,info_ptr->pcal_X0,info_ptr->pcal_X1,
                     (uint)info_ptr->pcal_type,(uint)info_ptr->pcal_nparams,info_ptr->pcal_units,
                     info_ptr->pcal_params);
    }
    if ((info_ptr->valid & 0x4000) != 0) {
      png_write_sCAL_s(png_ptr,(uint)info_ptr->scal_unit,info_ptr->scal_s_width,
                       info_ptr->scal_s_height);
    }
    if ((info_ptr->valid & 0x80) != 0) {
      png_write_pHYs(png_ptr,info_ptr->x_pixels_per_unit,info_ptr->y_pixels_per_unit,
                     (uint)info_ptr->phys_unit_type);
    }
    if ((info_ptr->valid & 0x200) != 0) {
      png_write_tIME(png_ptr,&info_ptr->mod_time);
      png_ptr->mode = png_ptr->mode | 0x200;
    }
    if (((info_ptr->valid & 0x2000) != 0) && (0 < info_ptr->splt_palettes_num)) {
      lVar3 = 0;
      do {
        png_write_sPLT(png_ptr,info_ptr->splt_palettes + lVar3);
        lVar3 = lVar3 + 1;
      } while ((int)lVar3 < info_ptr->splt_palettes_num);
    }
    lVar3 = 0;
    iVar4 = 0;
    if (0 < info_ptr->num_text) {
      do {
        piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);
        compression = *piVar2;
        if (compression < 1) {
          if (compression == 0) {
            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)
                           ,0);
            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;
          }
          else if (compression == -1) {
            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)
                           ,0);
            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;
          }
        }
        else {
          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),
                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),
                         *(png_const_charp *)(piVar2 + 4));
          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);
          *piVar2 = (*piVar2 != -1) - 3;
        }
        iVar4 = iVar4 + 1;
        lVar3 = lVar3 + 0x38;
      } while (iVar4 < info_ptr->num_text);
    }
    write_unknown_chunks(png_ptr,info_ptr,2);
    return;
  }
  return;
}



void png_write_info(long param_1,long param_2)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  byte *pbVar4;
  long lVar5;
  int iVar6;
  
  if ((param_1 != 0) && (param_2 != 0)) {
    png_write_info_before_PLTE();
    if ((*(byte *)(param_2 + 8) & 8) == 0) {
      if (*(char *)(param_2 + 0x25) == '\x03') {
                    /* WARNING: Subroutine does not return */
        png_error(param_1,"Valid palette required for paletted images");
      }
    }
    else {
      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));
    }
    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {
      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {
        uVar3 = (uint)*(ushort *)(param_2 + 0x22);
        if (0x100 < uVar3) {
          uVar3 = 0x100;
        }
        if (*(ushort *)(param_2 + 0x22) != 0) {
          lVar5 = 0;
          do {
            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));
            *pbVar4 = ~*pbVar4;
            lVar5 = lVar5 + 1;
          } while ((int)lVar5 < (int)uVar3);
        }
      }
      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,
                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));
    }
    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {
      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));
    }
    if ((*(byte *)(param_2 + 10) & 1) != 0) {
      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));
    }
    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {
      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));
    }
    if ((*(byte *)(param_2 + 9) & 1) != 0) {
      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),
                   *(undefined1 *)(param_2 + 0xdc));
    }
    if ((*(byte *)(param_2 + 9) & 4) != 0) {
      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),
                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),
                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),
                   *(undefined8 *)(param_2 + 0x120));
    }
    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {
      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),
                   *(undefined8 *)(param_2 + 0x158));
    }
    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {
      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),
                   *(undefined1 *)(param_2 + 0xe8));
    }
    if ((*(byte *)(param_2 + 9) & 2) != 0) {
      FUN_00126128(param_1,param_2 + 0xa8);
      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;
    }
    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {
      lVar5 = 0;
      do {
        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));
        lVar5 = lVar5 + 1;
      } while ((int)lVar5 < *(int *)(param_2 + 0x148));
    }
    lVar5 = 0;
    iVar6 = 0;
    if (0 < *(int *)(param_2 + 0x94)) {
      do {
        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));
        iVar1 = *piVar2;
        if (iVar1 < 1) {
          if (iVar1 == 0) {
            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);
            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;
          }
          else if (iVar1 == -1) {
            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);
            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;
          }
        }
        else {
          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),
                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));
          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));
          *piVar2 = (*piVar2 != -1) - 3;
        }
        iVar6 = iVar6 + 1;
        lVar5 = lVar5 + 0x38;
      } while (iVar6 < *(int *)(param_2 + 0x94));
    }
    FUN_00120fff(param_1,param_2,2);
    return;
  }
  return;
}


TEST RDI,RDI
JZ 0x00121c63
TEST RSI,RSI
JZ 0x00121c63
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV RBX,RSI
MOV R13,RDI
CALL 0x00106470
TEST byte ptr [RBX + 0x8],0x8
JNZ 0x00121a52
CMP byte ptr [RBX + 0x25],0x3
JZ 0x00121a67
TEST byte ptr [RBX + 0x8],0x10
JZ 0x00121999
TEST byte ptr [R13 + 0x136],0x8
JZ 0x0012197a
CMP byte ptr [RBX + 0x25],0x3
JZ 0x00121a76
MOVZX ECX,word ptr [RBX + 0x22]
LEA RDX,[RBX + 0xc0]
MOV RSI,qword ptr [RBX + 0xb8]
MOVZX R8D,byte ptr [RBX + 0x25]
MOV RDI,R13
CALL 0x0012540d
TEST byte ptr [RBX + 0x8],0x20
JNZ 0x00121ab2
TEST byte ptr [RBX + 0xa],0x1
JNZ 0x00121aca
TEST byte ptr [RBX + 0x8],0x40
JNZ 0x00121ae4
TEST byte ptr [RBX + 0x9],0x1
JNZ 0x00121afc
TEST byte ptr [RBX + 0x9],0x4
JNZ 0x00121b1c
TEST byte ptr [RBX + 0x9],0x40
JNZ 0x00121b5c
TEST byte ptr [RBX + 0x8],0x80
JNZ 0x00121b7e
TEST byte ptr [RBX + 0x9],0x2
JNZ 0x00121b9e
TEST byte ptr [RBX + 0x9],0x20
JZ 0x00121a1f
CMP dword ptr [RBX + 0x148],0x0
JLE 0x00121a1f
MOV EBP,0x0
MOV RSI,RBP
SHL RSI,0x5
ADD RSI,qword ptr [RBX + 0x140]
MOV RDI,R13
CALL 0x001250ea
ADD RBP,0x1
CMP dword ptr [RBX + 0x148],EBP
JG 0x001219fd
MOV EBP,0x0
MOV R12D,0x0
CMP dword ptr [RBX + 0x94],0x0
JG 0x00121c02
MOV EDX,0x2
MOV RSI,RBX
MOV RDI,R13
CALL 0x00120fff
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
RET
MOVZX EDX,word ptr [RBX + 0x20]
MOV RSI,qword ptr [RBX + 0x18]
MOV RDI,R13
CALL 0x00124d6a
JMP 0x00121960
LEA RSI,[0x12bf08]
MOV RDI,R13
CALL 0x00106490
MOVZX EAX,word ptr [RBX + 0x22]
MOVZX ECX,AX
CMP ECX,0x100
MOV EDX,0x100
CMOVG ECX,EDX
TEST AX,AX
JZ 0x0012197a
MOV EAX,0x0
MOV RDX,RAX
ADD RDX,qword ptr [RBX + 0xb8]
NOT byte ptr [RDX]
ADD RAX,0x1
CMP ECX,EAX
JG 0x00121a99
JMP 0x0012197a
MOVZX EDX,byte ptr [RBX + 0x25]
LEA RSI,[RBX + 0xca]
MOV RDI,R13
CALL 0x00125563
JMP 0x001219a3
MOV EDX,dword ptr [RBX + 0xec]
MOV RSI,qword ptr [RBX + 0xf0]
MOV RDI,R13
CALL 0x001256c8
JMP 0x001219ad
MOVZX EDX,word ptr [RBX + 0x20]
MOV RSI,qword ptr [RBX + 0x100]
MOV RDI,R13
CALL 0x00125754
JMP 0x001219b7
MOVZX ECX,byte ptr [RBX + 0xdc]
MOV EDX,dword ptr [RBX + 0xd8]
MOV ESI,dword ptr [RBX + 0xd4]
MOV RDI,R13
CALL 0x00125cd2
JMP 0x001219c1
MOV ECX,dword ptr [RBX + 0x114]
MOV EDX,dword ptr [RBX + 0x110]
MOV RSI,qword ptr [RBX + 0x108]
PUSH qword ptr [RBX + 0x120]
PUSH qword ptr [RBX + 0x118]
MOVZX R9D,byte ptr [RBX + 0x129]
MOVZX R8D,byte ptr [RBX + 0x128]
MOV RDI,R13
CALL 0x00125d64
ADD RSP,0x10
JMP 0x001219cb
MOV RCX,qword ptr [RBX + 0x158]
MOV RDX,qword ptr [RBX + 0x150]
MOVZX ESI,byte ptr [RBX + 0x14c]
MOV RDI,R13
CALL 0x00125fc9
JMP 0x001219d5
MOVZX ECX,byte ptr [RBX + 0xe8]
MOV EDX,dword ptr [RBX + 0xe4]
MOV ESI,dword ptr [RBX + 0xe0]
MOV RDI,R13
CALL 0x00126096
JMP 0x001219df
LEA RSI,[RBX + 0xa8]
MOV RDI,R13
CALL 0x00126128
OR dword ptr [R13 + 0x12c],0x200
JMP 0x001219e9
MOV RCX,qword ptr [RAX + 0x28]
MOV RDX,qword ptr [RAX + 0x8]
MOV R9,qword ptr [RAX + 0x10]
MOV R8,qword ptr [RAX + 0x30]
MOV RDI,R13
CALL 0x00125a28
MOV RDX,RBP
ADD RDX,qword ptr [RBX + 0xa0]
CMP dword ptr [RDX],-0x1
SETNZ AL
MOVZX EAX,AL
SUB EAX,0x3
MOV dword ptr [RDX],EAX
ADD R12D,0x1
ADD RBP,0x38
CMP dword ptr [RBX + 0x94],R12D
JLE 0x00121a37
MOV RAX,RBP
ADD RAX,qword ptr [RBX + 0xa0]
MOV ESI,dword ptr [RAX]
TEST ESI,ESI
JG 0x00121bbd
JZ 0x00121c3e
CMP ESI,-0x1
JNZ 0x00121bed
MOV RDX,qword ptr [RAX + 0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV ECX,0x0
MOV RDI,R13
CALL 0x001257fc
MOV RAX,qword ptr [RBX + 0xa0]
MOV dword ptr [RAX + RBP*0x1],0xfffffffd
JMP 0x00121bed
MOV RDX,qword ptr [RAX + 0x10]
MOV RSI,qword ptr [RAX + 0x8]
MOV ECX,0x0
MOV RDI,R13
CALL 0x001258f5
MOV RAX,qword ptr [RBX + 0xa0]
MOV dword ptr [RAX + RBP*0x1],0xfffffffe
JMP 0x00121bed
RET
(translation_unit "void png_write_info(long param_1,long param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  int iVar6;\n  \n  if ((param_1 != 0) && (param_2 != 0)) {\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void png_write_info(long param_1,long param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  int iVar6;\n  \n  if ((param_1 != 0) && (param_2 != 0)) {\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "png_write_info(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  int iVar6;\n  \n  if ((param_1 != 0) && (param_2 != 0)) {\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (if_statement "if ((param_1 != 0) && (param_2 != 0)) {\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 != 0))" ( (binary_expression "(param_1 != 0) && (param_2 != 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }" { (expression_statement "png_write_info_before_PLTE();" (call_expression "png_write_info_before_PLTE()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 8) & 8) == 0)" ( (binary_expression "(*(byte *)(param_2 + 8) & 8) == 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 8)" ( (binary_expression "*(byte *)(param_2 + 8) & 8" (pointer_expression "*(byte *)(param_2 + 8)" * (cast_expression "(byte *)(param_2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }" { (if_statement "if (*(char *)(param_2 + 0x25) == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(param_1,"Valid palette required for paletted images");\n      }" if (parenthesized_expression "(*(char *)(param_2 + 0x25) == '\x03')" ( (binary_expression "*(char *)(param_2 + 0x25) == '\x03'" (pointer_expression "*(char *)(param_2 + 0x25)" * (cast_expression "(char *)(param_2 + 0x25)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x25)" ( (binary_expression "param_2 + 0x25" identifier + number_literal) )))) == (char_literal "'\x03'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        png_error(param_1,"Valid palette required for paletted images");\n      }" { comment (expression_statement "png_error(param_1,"Valid palette required for paletted images");" (call_expression "png_error(param_1,"Valid palette required for paletted images")" identifier (argument_list "(param_1,"Valid palette required for paletted images")" ( identifier , (string_literal ""Valid palette required for paletted images"" " string_content ") ))) ;) })) }) (else_clause "else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }" else (compound_statement "{\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }" { (expression_statement "FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));" (call_expression "FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , (pointer_expression "*(undefined2 *)(param_2 + 0x20)" * (cast_expression "(undefined2 *)(param_2 + 0x20)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) ))) ;) }))) (if_statement "if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 8) & 0x10) != 0)" ( (binary_expression "(*(byte *)(param_2 + 8) & 0x10) != 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 0x10)" ( (binary_expression "*(byte *)(param_2 + 8) & 0x10" (pointer_expression "*(byte *)(param_2 + 8)" * (cast_expression "(byte *)(param_2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }" { (if_statement "if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03'))" ( (binary_expression "((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')" (parenthesized_expression "((*(byte *)(param_1 + 0x136) & 8) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x136) & 8) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x136) & 8)" ( (binary_expression "*(byte *)(param_1 + 0x136) & 8" (pointer_expression "*(byte *)(param_1 + 0x136)" * (cast_expression "(byte *)(param_1 + 0x136)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x136)" ( (binary_expression "param_1 + 0x136" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(*(char *)(param_2 + 0x25) == '\x03')" ( (binary_expression "*(char *)(param_2 + 0x25) == '\x03'" (pointer_expression "*(char *)(param_2 + 0x25)" * (cast_expression "(char *)(param_2 + 0x25)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x25)" ( (binary_expression "param_2 + 0x25" identifier + number_literal) )))) == (char_literal "'\x03'" ' escape_sequence ')) ))) )) (compound_statement "{\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }" { (expression_statement "uVar3 = (uint)*(ushort *)(param_2 + 0x22);" (assignment_expression "uVar3 = (uint)*(ushort *)(param_2 + 0x22)" identifier = (binary_expression "(uint)*(ushort *)(param_2 + 0x22)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_2 + 0x22)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x22)" ( (binary_expression "param_2 + 0x22" identifier + number_literal) ))))) ;) (if_statement "if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }" if (parenthesized_expression "(0x100 < uVar3)" ( (binary_expression "0x100 < uVar3" number_literal < identifier) )) (compound_statement "{\n          uVar3 = 0x100;\n        }" { (expression_statement "uVar3 = 0x100;" (assignment_expression "uVar3 = 0x100" identifier = number_literal) ;) })) (if_statement "if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }" if (parenthesized_expression "(*(ushort *)(param_2 + 0x22) != 0)" ( (binary_expression "*(ushort *)(param_2 + 0x22) != 0" (pointer_expression "*(ushort *)(param_2 + 0x22)" * (cast_expression "(ushort *)(param_2 + 0x22)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x22)" ( (binary_expression "param_2 + 0x22" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }" { (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);" do (compound_statement "{\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          }" { (expression_statement "pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));" (assignment_expression "pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8))" identifier = (cast_expression "(byte *)(lVar5 + *(long *)(param_2 + 0xb8))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + *(long *)(param_2 + 0xb8))" ( (binary_expression "lVar5 + *(long *)(param_2 + 0xb8)" identifier + (pointer_expression "*(long *)(param_2 + 0xb8)" * (cast_expression "(long *)(param_2 + 0xb8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb8)" ( (binary_expression "param_2 + 0xb8" identifier + number_literal) ))))) )))) ;) (expression_statement "*pbVar4 = ~*pbVar4;" (assignment_expression "*pbVar4 = ~*pbVar4" (pointer_expression "*pbVar4" * identifier) = (unary_expression "~*pbVar4" ~ (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "lVar5 = lVar5 + 1;" (assignment_expression "lVar5 = lVar5 + 1" identifier = (binary_expression "lVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar5 < (int)uVar3)" ( (binary_expression "(int)lVar5 < (int)uVar3" (cast_expression "(int)lVar5" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) })) (expression_statement "FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));" (call_expression "FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0xb8)" * (cast_expression "(undefined8 *)(param_2 + 0xb8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb8)" ( (binary_expression "param_2 + 0xb8" identifier + number_literal) )))) , (binary_expression "param_2 + 0xc0" identifier + number_literal) , (pointer_expression "*(undefined2 *)(param_2 + 0x22)" * (cast_expression "(undefined2 *)(param_2 + 0x22)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x22)" ( (binary_expression "param_2 + 0x22" identifier + number_literal) )))) , (pointer_expression "*(undefined1 *)(param_2 + 0x25)" * (cast_expression "(undefined1 *)(param_2 + 0x25)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x25)" ( (binary_expression "param_2 + 0x25" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 8) & 0x20) != 0)" ( (binary_expression "(*(byte *)(param_2 + 8) & 0x20) != 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 0x20)" ( (binary_expression "*(byte *)(param_2 + 8) & 0x20" (pointer_expression "*(byte *)(param_2 + 8)" * (cast_expression "(byte *)(param_2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }" { (expression_statement "FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));" (call_expression "FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25))" identifier (argument_list "(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25))" ( identifier , (binary_expression "param_2 + 0xca" identifier + number_literal) , (pointer_expression "*(undefined1 *)(param_2 + 0x25)" * (cast_expression "(undefined1 *)(param_2 + 0x25)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x25)" ( (binary_expression "param_2 + 0x25" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\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      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }" { (expression_statement "FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));" (call_expression "FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0xf0)" * (cast_expression "(undefined8 *)(param_2 + 0xf0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xf0)" ( (binary_expression "param_2 + 0xf0" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0xec)" * (cast_expression "(undefined4 *)(param_2 + 0xec)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xec)" ( (binary_expression "param_2 + 0xec" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 8) & 0x40) != 0)" ( (binary_expression "(*(byte *)(param_2 + 8) & 0x40) != 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 0x40)" ( (binary_expression "*(byte *)(param_2 + 8) & 0x40" (pointer_expression "*(byte *)(param_2 + 8)" * (cast_expression "(byte *)(param_2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }" { (expression_statement "FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));" (call_expression "FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0x100)" * (cast_expression "(undefined8 *)(param_2 + 0x100)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x100)" ( (binary_expression "param_2 + 0x100" identifier + number_literal) )))) , (pointer_expression "*(undefined2 *)(param_2 + 0x20)" * (cast_expression "(undefined2 *)(param_2 + 0x20)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 9) & 1) != 0)" ( (binary_expression "(*(byte *)(param_2 + 9) & 1) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 1)" ( (binary_expression "*(byte *)(param_2 + 9) & 1" (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) )) (compound_statement "{\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }" { (expression_statement "FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));" (call_expression "FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0xd4)" * (cast_expression "(undefined4 *)(param_2 + 0xd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0xd8)" * (cast_expression "(undefined4 *)(param_2 + 0xd8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd8)" ( (binary_expression "param_2 + 0xd8" identifier + number_literal) )))) , (pointer_expression "*(undefined1 *)(param_2 + 0xdc)" * (cast_expression "(undefined1 *)(param_2 + 0xdc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xdc)" ( (binary_expression "param_2 + 0xdc" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 9) & 4) != 0)" ( (binary_expression "(*(byte *)(param_2 + 9) & 4) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 4)" ( (binary_expression "*(byte *)(param_2 + 9) & 4" (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) )) (compound_statement "{\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }" { (expression_statement "FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));" (call_expression "FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0x108)" * (cast_expression "(undefined8 *)(param_2 + 0x108)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x108)" ( (binary_expression "param_2 + 0x108" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x110)" * (cast_expression "(undefined4 *)(param_2 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x110)" ( (binary_expression "param_2 + 0x110" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x114)" * (cast_expression "(undefined4 *)(param_2 + 0x114)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x114)" ( (binary_expression "param_2 + 0x114" identifier + number_literal) )))) , (pointer_expression "*(undefined1 *)(param_2 + 0x128)" * (cast_expression "(undefined1 *)(param_2 + 0x128)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x128)" ( (binary_expression "param_2 + 0x128" identifier + number_literal) )))) , (pointer_expression "*(undefined1 *)(param_2 + 0x129)" * (cast_expression "(undefined1 *)(param_2 + 0x129)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x129)" ( (binary_expression "param_2 + 0x129" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_2 + 0x118)" * (cast_expression "(undefined8 *)(param_2 + 0x118)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x118)" ( (binary_expression "param_2 + 0x118" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_2 + 0x120)" * (cast_expression "(undefined8 *)(param_2 + 0x120)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x120)" ( (binary_expression "param_2 + 0x120" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 9) & 0x40) != 0)" ( (binary_expression "(*(byte *)(param_2 + 9) & 0x40) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 0x40)" ( (binary_expression "*(byte *)(param_2 + 9) & 0x40" (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) )) (compound_statement "{\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }" { (expression_statement "FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));" (call_expression "FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158))" identifier (argument_list "(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158))" ( identifier , (pointer_expression "*(undefined1 *)(param_2 + 0x14c)" * (cast_expression "(undefined1 *)(param_2 + 0x14c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14c)" ( (binary_expression "param_2 + 0x14c" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_2 + 0x150)" * (cast_expression "(undefined8 *)(param_2 + 0x150)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x150)" ( (binary_expression "param_2 + 0x150" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_2 + 0x158)" * (cast_expression "(undefined8 *)(param_2 + 0x158)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x158)" ( (binary_expression "param_2 + 0x158" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 8) & 0x80) != 0)" ( (binary_expression "(*(byte *)(param_2 + 8) & 0x80) != 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 0x80)" ( (binary_expression "*(byte *)(param_2 + 8) & 0x80" (pointer_expression "*(byte *)(param_2 + 8)" * (cast_expression "(byte *)(param_2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }" { (expression_statement "FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));" (call_expression "FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0xe0)" * (cast_expression "(undefined4 *)(param_2 + 0xe0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xe0)" ( (binary_expression "param_2 + 0xe0" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0xe4)" * (cast_expression "(undefined4 *)(param_2 + 0xe4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xe4)" ( (binary_expression "param_2 + 0xe4" identifier + number_literal) )))) , (pointer_expression "*(undefined1 *)(param_2 + 0xe8)" * (cast_expression "(undefined1 *)(param_2 + 0xe8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xe8)" ( (binary_expression "param_2 + 0xe8" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }" if (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) )) (compound_statement "{\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }" { (expression_statement "FUN_00126128(param_1,param_2 + 0xa8);" (call_expression "FUN_00126128(param_1,param_2 + 0xa8)" identifier (argument_list "(param_1,param_2 + 0xa8)" ( identifier , (binary_expression "param_2 + 0xa8" identifier + number_literal) ))) ;) (expression_statement "*(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;" (assignment_expression "*(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200" (pointer_expression "*(uint *)(param_1 + 300)" * (cast_expression "(uint *)(param_1 + 300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 300) | 0x200" (pointer_expression "*(uint *)(param_1 + 300)" * (cast_expression "(uint *)(param_1 + 300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) | number_literal)) ;) })) (if_statement "if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }" if (parenthesized_expression "(((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148)))" ( (binary_expression "((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))" (parenthesized_expression "((*(byte *)(param_2 + 9) & 0x20) != 0)" ( (binary_expression "(*(byte *)(param_2 + 9) & 0x20) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 0x20)" ( (binary_expression "*(byte *)(param_2 + 9) & 0x20" (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 "(0 < *(int *)(param_2 + 0x148))" ( (binary_expression "0 < *(int *)(param_2 + 0x148)" number_literal < (pointer_expression "*(int *)(param_2 + 0x148)" * (cast_expression "(int *)(param_2 + 0x148)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x148)" ( (binary_expression "param_2 + 0x148" identifier + number_literal) ))))) ))) )) (compound_statement "{\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }" { (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));" do (compound_statement "{\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      }" { (expression_statement "FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));" (call_expression "FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140))" identifier (argument_list "(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140))" ( identifier , (binary_expression "lVar5 * 0x20 + *(long *)(param_2 + 0x140)" (binary_expression "lVar5 * 0x20" identifier * number_literal) + (pointer_expression "*(long *)(param_2 + 0x140)" * (cast_expression "(long *)(param_2 + 0x140)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x140)" ( (binary_expression "param_2 + 0x140" identifier + number_literal) ))))) ))) ;) (expression_statement "lVar5 = lVar5 + 1;" (assignment_expression "lVar5 = lVar5 + 1" identifier = (binary_expression "lVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar5 < *(int *)(param_2 + 0x148))" ( (binary_expression "(int)lVar5 < *(int *)(param_2 + 0x148)" (cast_expression "(int)lVar5" ( (type_descriptor "int" primitive_type) ) identifier) < (pointer_expression "*(int *)(param_2 + 0x148)" * (cast_expression "(int *)(param_2 + 0x148)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x148)" ( (binary_expression "param_2 + 0x148" identifier + number_literal) ))))) )) ;) })) (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }" if (parenthesized_expression "(0 < *(int *)(param_2 + 0x94))" ( (binary_expression "0 < *(int *)(param_2 + 0x94)" number_literal < (pointer_expression "*(int *)(param_2 + 0x94)" * (cast_expression "(int *)(param_2 + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x94)" ( (binary_expression "param_2 + 0x94" identifier + number_literal) ))))) )) (compound_statement "{\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }" { (do_statement "do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));" do (compound_statement "{\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      }" { (expression_statement "piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));" (assignment_expression "piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0))" identifier = (cast_expression "(int *)(lVar5 + *(long *)(param_2 + 0xa0))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + *(long *)(param_2 + 0xa0))" ( (binary_expression "lVar5 + *(long *)(param_2 + 0xa0)" identifier + (pointer_expression "*(long *)(param_2 + 0xa0)" * (cast_expression "(long *)(param_2 + 0xa0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa0)" ( (binary_expression "param_2 + 0xa0" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }" { (if_statement "if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }" { (expression_statement "FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);" (call_expression "FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0)" identifier (argument_list "(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0)" ( identifier , (pointer_expression "*(undefined8 *)(piVar2 + 2)" * (cast_expression "(undefined8 *)(piVar2 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;" (assignment_expression "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe" (pointer_expression "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5)" * (cast_expression "(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 0xa0) + lVar5)" ( (binary_expression "*(long *)(param_2 + 0xa0) + lVar5" (pointer_expression "*(long *)(param_2 + 0xa0)" * (cast_expression "(long *)(param_2 + 0xa0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa0)" ( (binary_expression "param_2 + 0xa0" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) }) (else_clause "else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }" else (if_statement "if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }" { (expression_statement "FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);" (call_expression "FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0)" identifier (argument_list "(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0)" ( identifier , (pointer_expression "*(undefined8 *)(piVar2 + 2)" * (cast_expression "(undefined8 *)(piVar2 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;" (assignment_expression "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd" (pointer_expression "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5)" * (cast_expression "(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 0xa0) + lVar5)" ( (binary_expression "*(long *)(param_2 + 0xa0) + lVar5" (pointer_expression "*(long *)(param_2 + 0xa0)" * (cast_expression "(long *)(param_2 + 0xa0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa0)" ( (binary_expression "param_2 + 0xa0" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) })))) }) (else_clause "else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }" else (compound_statement "{\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }" { (expression_statement "FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));" (call_expression "FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4))" identifier (argument_list "(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4))" ( identifier , identifier , (pointer_expression "*(undefined8 *)(piVar2 + 2)" * (cast_expression "(undefined8 *)(piVar2 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(piVar2 + 10)" * (cast_expression "(undefined8 *)(piVar2 + 10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 10)" ( (binary_expression "piVar2 + 10" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(piVar2 + 0xc)" * (cast_expression "(undefined8 *)(piVar2 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0xc)" ( (binary_expression "piVar2 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));" (assignment_expression "piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0))" identifier = (cast_expression "(int *)(lVar5 + *(long *)(param_2 + 0xa0))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + *(long *)(param_2 + 0xa0))" ( (binary_expression "lVar5 + *(long *)(param_2 + 0xa0)" identifier + (pointer_expression "*(long *)(param_2 + 0xa0)" * (cast_expression "(long *)(param_2 + 0xa0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa0)" ( (binary_expression "param_2 + 0xa0" identifier + number_literal) ))))) )))) ;) (expression_statement "*piVar2 = (*piVar2 != -1) - 3;" (assignment_expression "*piVar2 = (*piVar2 != -1) - 3" (pointer_expression "*piVar2" * identifier) = (binary_expression "(*piVar2 != -1) - 3" (parenthesized_expression "(*piVar2 != -1)" ( (binary_expression "*piVar2 != -1" (pointer_expression "*piVar2" * identifier) != number_literal) )) - number_literal)) ;) }))) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "lVar5 = lVar5 + 0x38;" (assignment_expression "lVar5 = lVar5 + 0x38" identifier = (binary_expression "lVar5 + 0x38" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < *(int *)(param_2 + 0x94))" ( (binary_expression "iVar6 < *(int *)(param_2 + 0x94)" identifier < (pointer_expression "*(int *)(param_2 + 0x94)" * (cast_expression "(int *)(param_2 + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x94)" ( (binary_expression "param_2 + 0x94" identifier + number_literal) ))))) )) ;) })) (expression_statement "FUN_00120fff(param_1,param_2,2);" (call_expression "FUN_00120fff(param_1,param_2,2)" identifier (argument_list "(param_1,param_2,2)" ( identifier , identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_write_info(png_structrp png_ptr,png_const_inforp info_ptr)\n\n{\n  int compression;\n  uint uVar1;\n  int *piVar2;\n  long lVar3;\n  int iVar4;\n  \n  if ((png_ptr != (png_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) {\n    png_write_info_before_PLTE(png_ptr,info_ptr);\n    if ((info_ptr->valid & 8) == 0) {\n      if (info_ptr->color_type == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(png_ptr,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      png_write_PLTE(png_ptr,info_ptr->palette,(uint)info_ptr->num_palette);\n    }\n    if ((info_ptr->valid & 0x10) != 0) {\n      if (((png_ptr->transformations & 0x80000) != 0) && (info_ptr->color_type == '\x03')) {\n        uVar1 = (uint)info_ptr->num_trans;\n        if (0x100 < uVar1) {\n          uVar1 = 0x100;\n        }\n        if (info_ptr->num_trans != 0) {\n          lVar3 = 0;\n          do {\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          } while ((int)lVar3 < (int)uVar1);\n        }\n      }\n      png_write_tRNS(png_ptr,info_ptr->trans_alpha,&info_ptr->trans_color,(uint)info_ptr->num_trans,\n                     (uint)info_ptr->color_type);\n    }\n    if ((info_ptr->valid & 0x20) != 0) {\n      png_write_bKGD(png_ptr,&info_ptr->background,(uint)info_ptr->color_type);\n    }\n    if ((info_ptr->valid & 0x10000) != 0) {\n      png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n    }\n    if ((info_ptr->valid & 0x40) != 0) {\n      png_write_hIST(png_ptr,info_ptr->hist,(uint)info_ptr->num_palette);\n    }\n    if ((info_ptr->valid & 0x100) != 0) {\n      png_write_oFFs(png_ptr,info_ptr->x_offset,info_ptr->y_offset,(uint)info_ptr->offset_unit_type)\n      ;\n    }\n    if ((info_ptr->valid & 0x400) != 0) {\n      png_write_pCAL(png_ptr,info_ptr->pcal_purpose,info_ptr->pcal_X0,info_ptr->pcal_X1,\n                     (uint)info_ptr->pcal_type,(uint)info_ptr->pcal_nparams,info_ptr->pcal_units,\n                     info_ptr->pcal_params);\n    }\n    if ((info_ptr->valid & 0x4000) != 0) {\n      png_write_sCAL_s(png_ptr,(uint)info_ptr->scal_unit,info_ptr->scal_s_width,\n                       info_ptr->scal_s_height);\n    }\n    if ((info_ptr->valid & 0x80) != 0) {\n      png_write_pHYs(png_ptr,info_ptr->x_pixels_per_unit,info_ptr->y_pixels_per_unit,\n                     (uint)info_ptr->phys_unit_type);\n    }\n    if ((info_ptr->valid & 0x200) != 0) {\n      png_write_tIME(png_ptr,&info_ptr->mod_time);\n      png_ptr->mode = png_ptr->mode | 0x200;\n    }\n    if (((info_ptr->valid & 0x2000) != 0) && (0 < info_ptr->splt_palettes_num)) {\n      lVar3 = 0;\n      do {\n        png_write_sPLT(png_ptr,info_ptr->splt_palettes + lVar3);\n        lVar3 = lVar3 + 1;\n      } while ((int)lVar3 < info_ptr->splt_palettes_num);\n    }\n    lVar3 = 0;\n    iVar4 = 0;\n    if (0 < info_ptr->num_text) {\n      do {\n        piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n        compression = *piVar2;\n        if (compression < 1) {\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }\n        }\n        else {\n          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));\n          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar4 = iVar4 + 1;\n        lVar3 = lVar3 + 0x38;\n      } while (iVar4 < info_ptr->num_text);\n    }\n    write_unknown_chunks(png_ptr,info_ptr,2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void png_write_info(png_structrp png_ptr,png_const_inforp info_ptr)\n\n{\n  int compression;\n  uint uVar1;\n  int *piVar2;\n  long lVar3;\n  int iVar4;\n  \n  if ((png_ptr != (png_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) {\n    png_write_info_before_PLTE(png_ptr,info_ptr);\n    if ((info_ptr->valid & 8) == 0) {\n      if (info_ptr->color_type == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(png_ptr,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      png_write_PLTE(png_ptr,info_ptr->palette,(uint)info_ptr->num_palette);\n    }\n    if ((info_ptr->valid & 0x10) != 0) {\n      if (((png_ptr->transformations & 0x80000) != 0) && (info_ptr->color_type == '\x03')) {\n        uVar1 = (uint)info_ptr->num_trans;\n        if (0x100 < uVar1) {\n          uVar1 = 0x100;\n        }\n        if (info_ptr->num_trans != 0) {\n          lVar3 = 0;\n          do {\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          } while ((int)lVar3 < (int)uVar1);\n        }\n      }\n      png_write_tRNS(png_ptr,info_ptr->trans_alpha,&info_ptr->trans_color,(uint)info_ptr->num_trans,\n                     (uint)info_ptr->color_type);\n    }\n    if ((info_ptr->valid & 0x20) != 0) {\n      png_write_bKGD(png_ptr,&info_ptr->background,(uint)info_ptr->color_type);\n    }\n    if ((info_ptr->valid & 0x10000) != 0) {\n      png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n    }\n    if ((info_ptr->valid & 0x40) != 0) {\n      png_write_hIST(png_ptr,info_ptr->hist,(uint)info_ptr->num_palette);\n    }\n    if ((info_ptr->valid & 0x100) != 0) {\n      png_write_oFFs(png_ptr,info_ptr->x_offset,info_ptr->y_offset,(uint)info_ptr->offset_unit_type)\n      ;\n    }\n    if ((info_ptr->valid & 0x400) != 0) {\n      png_write_pCAL(png_ptr,info_ptr->pcal_purpose,info_ptr->pcal_X0,info_ptr->pcal_X1,\n                     (uint)info_ptr->pcal_type,(uint)info_ptr->pcal_nparams,info_ptr->pcal_units,\n                     info_ptr->pcal_params);\n    }\n    if ((info_ptr->valid & 0x4000) != 0) {\n      png_write_sCAL_s(png_ptr,(uint)info_ptr->scal_unit,info_ptr->scal_s_width,\n                       info_ptr->scal_s_height);\n    }\n    if ((info_ptr->valid & 0x80) != 0) {\n      png_write_pHYs(png_ptr,info_ptr->x_pixels_per_unit,info_ptr->y_pixels_per_unit,\n                     (uint)info_ptr->phys_unit_type);\n    }\n    if ((info_ptr->valid & 0x200) != 0) {\n      png_write_tIME(png_ptr,&info_ptr->mod_time);\n      png_ptr->mode = png_ptr->mode | 0x200;\n    }\n    if (((info_ptr->valid & 0x2000) != 0) && (0 < info_ptr->splt_palettes_num)) {\n      lVar3 = 0;\n      do {\n        png_write_sPLT(png_ptr,info_ptr->splt_palettes + lVar3);\n        lVar3 = lVar3 + 1;\n      } while ((int)lVar3 < info_ptr->splt_palettes_num);\n    }\n    lVar3 = 0;\n    iVar4 = 0;\n    if (0 < info_ptr->num_text) {\n      do {\n        piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n        compression = *piVar2;\n        if (compression < 1) {\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }\n        }\n        else {\n          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));\n          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar4 = iVar4 + 1;\n        lVar3 = lVar3 + 0x38;\n      } while (iVar4 < info_ptr->num_text);\n    }\n    write_unknown_chunks(png_ptr,info_ptr,2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "png_write_info(png_structrp png_ptr,png_const_inforp info_ptr)" identifier (parameter_list "(png_structrp png_ptr,png_const_inforp info_ptr)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_const_inforp info_ptr" type_identifier identifier) ))) (compound_statement "{\n  int compression;\n  uint uVar1;\n  int *piVar2;\n  long lVar3;\n  int iVar4;\n  \n  if ((png_ptr != (png_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) {\n    png_write_info_before_PLTE(png_ptr,info_ptr);\n    if ((info_ptr->valid & 8) == 0) {\n      if (info_ptr->color_type == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(png_ptr,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      png_write_PLTE(png_ptr,info_ptr->palette,(uint)info_ptr->num_palette);\n    }\n    if ((info_ptr->valid & 0x10) != 0) {\n      if (((png_ptr->transformations & 0x80000) != 0) && (info_ptr->color_type == '\x03')) {\n        uVar1 = (uint)info_ptr->num_trans;\n        if (0x100 < uVar1) {\n          uVar1 = 0x100;\n        }\n        if (info_ptr->num_trans != 0) {\n          lVar3 = 0;\n          do {\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          } while ((int)lVar3 < (int)uVar1);\n        }\n      }\n      png_write_tRNS(png_ptr,info_ptr->trans_alpha,&info_ptr->trans_color,(uint)info_ptr->num_trans,\n                     (uint)info_ptr->color_type);\n    }\n    if ((info_ptr->valid & 0x20) != 0) {\n      png_write_bKGD(png_ptr,&info_ptr->background,(uint)info_ptr->color_type);\n    }\n    if ((info_ptr->valid & 0x10000) != 0) {\n      png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n    }\n    if ((info_ptr->valid & 0x40) != 0) {\n      png_write_hIST(png_ptr,info_ptr->hist,(uint)info_ptr->num_palette);\n    }\n    if ((info_ptr->valid & 0x100) != 0) {\n      png_write_oFFs(png_ptr,info_ptr->x_offset,info_ptr->y_offset,(uint)info_ptr->offset_unit_type)\n      ;\n    }\n    if ((info_ptr->valid & 0x400) != 0) {\n      png_write_pCAL(png_ptr,info_ptr->pcal_purpose,info_ptr->pcal_X0,info_ptr->pcal_X1,\n                     (uint)info_ptr->pcal_type,(uint)info_ptr->pcal_nparams,info_ptr->pcal_units,\n                     info_ptr->pcal_params);\n    }\n    if ((info_ptr->valid & 0x4000) != 0) {\n      png_write_sCAL_s(png_ptr,(uint)info_ptr->scal_unit,info_ptr->scal_s_width,\n                       info_ptr->scal_s_height);\n    }\n    if ((info_ptr->valid & 0x80) != 0) {\n      png_write_pHYs(png_ptr,info_ptr->x_pixels_per_unit,info_ptr->y_pixels_per_unit,\n                     (uint)info_ptr->phys_unit_type);\n    }\n    if ((info_ptr->valid & 0x200) != 0) {\n      png_write_tIME(png_ptr,&info_ptr->mod_time);\n      png_ptr->mode = png_ptr->mode | 0x200;\n    }\n    if (((info_ptr->valid & 0x2000) != 0) && (0 < info_ptr->splt_palettes_num)) {\n      lVar3 = 0;\n      do {\n        png_write_sPLT(png_ptr,info_ptr->splt_palettes + lVar3);\n        lVar3 = lVar3 + 1;\n      } while ((int)lVar3 < info_ptr->splt_palettes_num);\n    }\n    lVar3 = 0;\n    iVar4 = 0;\n    if (0 < info_ptr->num_text) {\n      do {\n        piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n        compression = *piVar2;\n        if (compression < 1) {\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }\n        }\n        else {\n          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));\n          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar4 = iVar4 + 1;\n        lVar3 = lVar3 + 0x38;\n      } while (iVar4 < info_ptr->num_text);\n    }\n    write_unknown_chunks(png_ptr,info_ptr,2);\n    return;\n  }\n  return;\n}" { (declaration "int compression;" primitive_type identifier ;) (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((png_ptr != (png_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) {\n    png_write_info_before_PLTE(png_ptr,info_ptr);\n    if ((info_ptr->valid & 8) == 0) {\n      if (info_ptr->color_type == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(png_ptr,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      png_write_PLTE(png_ptr,info_ptr->palette,(uint)info_ptr->num_palette);\n    }\n    if ((info_ptr->valid & 0x10) != 0) {\n      if (((png_ptr->transformations & 0x80000) != 0) && (info_ptr->color_type == '\x03')) {\n        uVar1 = (uint)info_ptr->num_trans;\n        if (0x100 < uVar1) {\n          uVar1 = 0x100;\n        }\n        if (info_ptr->num_trans != 0) {\n          lVar3 = 0;\n          do {\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          } while ((int)lVar3 < (int)uVar1);\n        }\n      }\n      png_write_tRNS(png_ptr,info_ptr->trans_alpha,&info_ptr->trans_color,(uint)info_ptr->num_trans,\n                     (uint)info_ptr->color_type);\n    }\n    if ((info_ptr->valid & 0x20) != 0) {\n      png_write_bKGD(png_ptr,&info_ptr->background,(uint)info_ptr->color_type);\n    }\n    if ((info_ptr->valid & 0x10000) != 0) {\n      png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n    }\n    if ((info_ptr->valid & 0x40) != 0) {\n      png_write_hIST(png_ptr,info_ptr->hist,(uint)info_ptr->num_palette);\n    }\n    if ((info_ptr->valid & 0x100) != 0) {\n      png_write_oFFs(png_ptr,info_ptr->x_offset,info_ptr->y_offset,(uint)info_ptr->offset_unit_type)\n      ;\n    }\n    if ((info_ptr->valid & 0x400) != 0) {\n      png_write_pCAL(png_ptr,info_ptr->pcal_purpose,info_ptr->pcal_X0,info_ptr->pcal_X1,\n                     (uint)info_ptr->pcal_type,(uint)info_ptr->pcal_nparams,info_ptr->pcal_units,\n                     info_ptr->pcal_params);\n    }\n    if ((info_ptr->valid & 0x4000) != 0) {\n      png_write_sCAL_s(png_ptr,(uint)info_ptr->scal_unit,info_ptr->scal_s_width,\n                       info_ptr->scal_s_height);\n    }\n    if ((info_ptr->valid & 0x80) != 0) {\n      png_write_pHYs(png_ptr,info_ptr->x_pixels_per_unit,info_ptr->y_pixels_per_unit,\n                     (uint)info_ptr->phys_unit_type);\n    }\n    if ((info_ptr->valid & 0x200) != 0) {\n      png_write_tIME(png_ptr,&info_ptr->mod_time);\n      png_ptr->mode = png_ptr->mode | 0x200;\n    }\n    if (((info_ptr->valid & 0x2000) != 0) && (0 < info_ptr->splt_palettes_num)) {\n      lVar3 = 0;\n      do {\n        png_write_sPLT(png_ptr,info_ptr->splt_palettes + lVar3);\n        lVar3 = lVar3 + 1;\n      } while ((int)lVar3 < info_ptr->splt_palettes_num);\n    }\n    lVar3 = 0;\n    iVar4 = 0;\n    if (0 < info_ptr->num_text) {\n      do {\n        piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n        compression = *piVar2;\n        if (compression < 1) {\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }\n        }\n        else {\n          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));\n          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar4 = iVar4 + 1;\n        lVar3 = lVar3 + 0x38;\n      } while (iVar4 < info_ptr->num_text);\n    }\n    write_unknown_chunks(png_ptr,info_ptr,2);\n    return;\n  }" if (parenthesized_expression "((png_ptr != (png_structrp)0x0) && (info_ptr != (png_const_inforp)0x0))" ( (binary_expression "(png_ptr != (png_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)" (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)) )) && (parenthesized_expression "(info_ptr != (png_const_inforp)0x0)" ( (binary_expression "info_ptr != (png_const_inforp)0x0" identifier != (cast_expression "(png_const_inforp)0x0" ( (type_descriptor "png_const_inforp" type_identifier) ) number_literal)) ))) )) (compound_statement "{\n    png_write_info_before_PLTE(png_ptr,info_ptr);\n    if ((info_ptr->valid & 8) == 0) {\n      if (info_ptr->color_type == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(png_ptr,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      png_write_PLTE(png_ptr,info_ptr->palette,(uint)info_ptr->num_palette);\n    }\n    if ((info_ptr->valid & 0x10) != 0) {\n      if (((png_ptr->transformations & 0x80000) != 0) && (info_ptr->color_type == '\x03')) {\n        uVar1 = (uint)info_ptr->num_trans;\n        if (0x100 < uVar1) {\n          uVar1 = 0x100;\n        }\n        if (info_ptr->num_trans != 0) {\n          lVar3 = 0;\n          do {\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          } while ((int)lVar3 < (int)uVar1);\n        }\n      }\n      png_write_tRNS(png_ptr,info_ptr->trans_alpha,&info_ptr->trans_color,(uint)info_ptr->num_trans,\n                     (uint)info_ptr->color_type);\n    }\n    if ((info_ptr->valid & 0x20) != 0) {\n      png_write_bKGD(png_ptr,&info_ptr->background,(uint)info_ptr->color_type);\n    }\n    if ((info_ptr->valid & 0x10000) != 0) {\n      png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\n    }\n    if ((info_ptr->valid & 0x40) != 0) {\n      png_write_hIST(png_ptr,info_ptr->hist,(uint)info_ptr->num_palette);\n    }\n    if ((info_ptr->valid & 0x100) != 0) {\n      png_write_oFFs(png_ptr,info_ptr->x_offset,info_ptr->y_offset,(uint)info_ptr->offset_unit_type)\n      ;\n    }\n    if ((info_ptr->valid & 0x400) != 0) {\n      png_write_pCAL(png_ptr,info_ptr->pcal_purpose,info_ptr->pcal_X0,info_ptr->pcal_X1,\n                     (uint)info_ptr->pcal_type,(uint)info_ptr->pcal_nparams,info_ptr->pcal_units,\n                     info_ptr->pcal_params);\n    }\n    if ((info_ptr->valid & 0x4000) != 0) {\n      png_write_sCAL_s(png_ptr,(uint)info_ptr->scal_unit,info_ptr->scal_s_width,\n                       info_ptr->scal_s_height);\n    }\n    if ((info_ptr->valid & 0x80) != 0) {\n      png_write_pHYs(png_ptr,info_ptr->x_pixels_per_unit,info_ptr->y_pixels_per_unit,\n                     (uint)info_ptr->phys_unit_type);\n    }\n    if ((info_ptr->valid & 0x200) != 0) {\n      png_write_tIME(png_ptr,&info_ptr->mod_time);\n      png_ptr->mode = png_ptr->mode | 0x200;\n    }\n    if (((info_ptr->valid & 0x2000) != 0) && (0 < info_ptr->splt_palettes_num)) {\n      lVar3 = 0;\n      do {\n        png_write_sPLT(png_ptr,info_ptr->splt_palettes + lVar3);\n        lVar3 = lVar3 + 1;\n      } while ((int)lVar3 < info_ptr->splt_palettes_num);\n    }\n    lVar3 = 0;\n    iVar4 = 0;\n    if (0 < info_ptr->num_text) {\n      do {\n        piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n        compression = *piVar2;\n        if (compression < 1) {\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }\n        }\n        else {\n          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));\n          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar4 = iVar4 + 1;\n        lVar3 = lVar3 + 0x38;\n      } while (iVar4 < info_ptr->num_text);\n    }\n    write_unknown_chunks(png_ptr,info_ptr,2);\n    return;\n  }" { (expression_statement "png_write_info_before_PLTE(png_ptr,info_ptr);" (call_expression "png_write_info_before_PLTE(png_ptr,info_ptr)" identifier (argument_list "(png_ptr,info_ptr)" ( identifier , identifier ))) ;) (if_statement "if ((info_ptr->valid & 8) == 0) {\n      if (info_ptr->color_type == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(png_ptr,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      png_write_PLTE(png_ptr,info_ptr->palette,(uint)info_ptr->num_palette);\n    }" if (parenthesized_expression "((info_ptr->valid & 8) == 0)" ( (binary_expression "(info_ptr->valid & 8) == 0" (parenthesized_expression "(info_ptr->valid & 8)" ( (binary_expression "info_ptr->valid & 8" (field_expression "info_ptr->valid" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (info_ptr->color_type == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(png_ptr,"Valid palette required for paletted images");\n      }\n    }" { (if_statement "if (info_ptr->color_type == '\x03') {\n                    /* WARNING: Subroutine does not return */\n        png_error(png_ptr,"Valid palette required for paletted images");\n      }" if (parenthesized_expression "(info_ptr->color_type == '\x03')" ( (binary_expression "info_ptr->color_type == '\x03'" (field_expression "info_ptr->color_type" identifier -> field_identifier) == (char_literal "'\x03'" ' escape_sequence ')) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        png_error(png_ptr,"Valid palette required for paletted images");\n      }" { comment (expression_statement "png_error(png_ptr,"Valid palette required for paletted images");" (call_expression "png_error(png_ptr,"Valid palette required for paletted images")" identifier (argument_list "(png_ptr,"Valid palette required for paletted images")" ( identifier , (string_literal ""Valid palette required for paletted images"" " string_content ") ))) ;) })) }) (else_clause "else {\n      png_write_PLTE(png_ptr,info_ptr->palette,(uint)info_ptr->num_palette);\n    }" else (compound_statement "{\n      png_write_PLTE(png_ptr,info_ptr->palette,(uint)info_ptr->num_palette);\n    }" { (expression_statement "png_write_PLTE(png_ptr,info_ptr->palette,(uint)info_ptr->num_palette);" (call_expression "png_write_PLTE(png_ptr,info_ptr->palette,(uint)info_ptr->num_palette)" identifier (argument_list "(png_ptr,info_ptr->palette,(uint)info_ptr->num_palette)" ( identifier , (field_expression "info_ptr->palette" identifier -> field_identifier) , (cast_expression "(uint)info_ptr->num_palette" ( (type_descriptor "uint" type_identifier) ) (field_expression "info_ptr->num_palette" identifier -> field_identifier)) ))) ;) }))) (if_statement "if ((info_ptr->valid & 0x10) != 0) {\n      if (((png_ptr->transformations & 0x80000) != 0) && (info_ptr->color_type == '\x03')) {\n        uVar1 = (uint)info_ptr->num_trans;\n        if (0x100 < uVar1) {\n          uVar1 = 0x100;\n        }\n        if (info_ptr->num_trans != 0) {\n          lVar3 = 0;\n          do {\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          } while ((int)lVar3 < (int)uVar1);\n        }\n      }\n      png_write_tRNS(png_ptr,info_ptr->trans_alpha,&info_ptr->trans_color,(uint)info_ptr->num_trans,\n                     (uint)info_ptr->color_type);\n    }" if (parenthesized_expression "((info_ptr->valid & 0x10) != 0)" ( (binary_expression "(info_ptr->valid & 0x10) != 0" (parenthesized_expression "(info_ptr->valid & 0x10)" ( (binary_expression "info_ptr->valid & 0x10" (field_expression "info_ptr->valid" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      if (((png_ptr->transformations & 0x80000) != 0) && (info_ptr->color_type == '\x03')) {\n        uVar1 = (uint)info_ptr->num_trans;\n        if (0x100 < uVar1) {\n          uVar1 = 0x100;\n        }\n        if (info_ptr->num_trans != 0) {\n          lVar3 = 0;\n          do {\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          } while ((int)lVar3 < (int)uVar1);\n        }\n      }\n      png_write_tRNS(png_ptr,info_ptr->trans_alpha,&info_ptr->trans_color,(uint)info_ptr->num_trans,\n                     (uint)info_ptr->color_type);\n    }" { (if_statement "if (((png_ptr->transformations & 0x80000) != 0) && (info_ptr->color_type == '\x03')) {\n        uVar1 = (uint)info_ptr->num_trans;\n        if (0x100 < uVar1) {\n          uVar1 = 0x100;\n        }\n        if (info_ptr->num_trans != 0) {\n          lVar3 = 0;\n          do {\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          } while ((int)lVar3 < (int)uVar1);\n        }\n      }" if (parenthesized_expression "(((png_ptr->transformations & 0x80000) != 0) && (info_ptr->color_type == '\x03'))" ( (binary_expression "((png_ptr->transformations & 0x80000) != 0) && (info_ptr->color_type == '\x03')" (parenthesized_expression "((png_ptr->transformations & 0x80000) != 0)" ( (binary_expression "(png_ptr->transformations & 0x80000) != 0" (parenthesized_expression "(png_ptr->transformations & 0x80000)" ( (binary_expression "png_ptr->transformations & 0x80000" (field_expression "png_ptr->transformations" identifier -> field_identifier) & number_literal) )) != number_literal) )) && (parenthesized_expression "(info_ptr->color_type == '\x03')" ( (binary_expression "info_ptr->color_type == '\x03'" (field_expression "info_ptr->color_type" identifier -> field_identifier) == (char_literal "'\x03'" ' escape_sequence ')) ))) )) (compound_statement "{\n        uVar1 = (uint)info_ptr->num_trans;\n        if (0x100 < uVar1) {\n          uVar1 = 0x100;\n        }\n        if (info_ptr->num_trans != 0) {\n          lVar3 = 0;\n          do {\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          } while ((int)lVar3 < (int)uVar1);\n        }\n      }" { (expression_statement "uVar1 = (uint)info_ptr->num_trans;" (assignment_expression "uVar1 = (uint)info_ptr->num_trans" identifier = (cast_expression "(uint)info_ptr->num_trans" ( (type_descriptor "uint" type_identifier) ) (field_expression "info_ptr->num_trans" identifier -> field_identifier))) ;) (if_statement "if (0x100 < uVar1) {\n          uVar1 = 0x100;\n        }" if (parenthesized_expression "(0x100 < uVar1)" ( (binary_expression "0x100 < uVar1" number_literal < identifier) )) (compound_statement "{\n          uVar1 = 0x100;\n        }" { (expression_statement "uVar1 = 0x100;" (assignment_expression "uVar1 = 0x100" identifier = number_literal) ;) })) (if_statement "if (info_ptr->num_trans != 0) {\n          lVar3 = 0;\n          do {\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          } while ((int)lVar3 < (int)uVar1);\n        }" if (parenthesized_expression "(info_ptr->num_trans != 0)" ( (binary_expression "info_ptr->num_trans != 0" (field_expression "info_ptr->num_trans" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n          lVar3 = 0;\n          do {\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          } while ((int)lVar3 < (int)uVar1);\n        }" { (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          } while ((int)lVar3 < (int)uVar1);" do (compound_statement "{\n            info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];\n            lVar3 = lVar3 + 1;\n          }" { (expression_statement "info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3];" (assignment_expression "info_ptr->trans_alpha[lVar3] = ~info_ptr->trans_alpha[lVar3]" (subscript_expression "info_ptr->trans_alpha[lVar3]" (field_expression "info_ptr->trans_alpha" identifier -> field_identifier) [ identifier ]) = (unary_expression "~info_ptr->trans_alpha[lVar3]" ~ (subscript_expression "info_ptr->trans_alpha[lVar3]" (field_expression "info_ptr->trans_alpha" identifier -> field_identifier) [ identifier ]))) ;) (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar3 < (int)uVar1)" ( (binary_expression "(int)lVar3 < (int)uVar1" (cast_expression "(int)lVar3" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) })) (expression_statement "png_write_tRNS(png_ptr,info_ptr->trans_alpha,&info_ptr->trans_color,(uint)info_ptr->num_trans,\n                     (uint)info_ptr->color_type);" (call_expression "png_write_tRNS(png_ptr,info_ptr->trans_alpha,&info_ptr->trans_color,(uint)info_ptr->num_trans,\n                     (uint)info_ptr->color_type)" identifier (argument_list "(png_ptr,info_ptr->trans_alpha,&info_ptr->trans_color,(uint)info_ptr->num_trans,\n                     (uint)info_ptr->color_type)" ( identifier , (field_expression "info_ptr->trans_alpha" identifier -> field_identifier) , (pointer_expression "&info_ptr->trans_color" & (field_expression "info_ptr->trans_color" identifier -> field_identifier)) , (cast_expression "(uint)info_ptr->num_trans" ( (type_descriptor "uint" type_identifier) ) (field_expression "info_ptr->num_trans" identifier -> field_identifier)) , (cast_expression "(uint)info_ptr->color_type" ( (type_descriptor "uint" type_identifier) ) (field_expression "info_ptr->color_type" identifier -> field_identifier)) ))) ;) })) (if_statement "if ((info_ptr->valid & 0x20) != 0) {\n      png_write_bKGD(png_ptr,&info_ptr->background,(uint)info_ptr->color_type);\n    }" if (parenthesized_expression "((info_ptr->valid & 0x20) != 0)" ( (binary_expression "(info_ptr->valid & 0x20) != 0" (parenthesized_expression "(info_ptr->valid & 0x20)" ( (binary_expression "info_ptr->valid & 0x20" (field_expression "info_ptr->valid" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      png_write_bKGD(png_ptr,&info_ptr->background,(uint)info_ptr->color_type);\n    }" { (expression_statement "png_write_bKGD(png_ptr,&info_ptr->background,(uint)info_ptr->color_type);" (call_expression "png_write_bKGD(png_ptr,&info_ptr->background,(uint)info_ptr->color_type)" identifier (argument_list "(png_ptr,&info_ptr->background,(uint)info_ptr->color_type)" ( identifier , (pointer_expression "&info_ptr->background" & (field_expression "info_ptr->background" identifier -> field_identifier)) , (cast_expression "(uint)info_ptr->color_type" ( (type_descriptor "uint" type_identifier) ) (field_expression "info_ptr->color_type" identifier -> field_identifier)) ))) ;) })) (if_statement "if ((info_ptr->valid & 0x10000) != 0) {\n      png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\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      png_write_eXIf(png_ptr,info_ptr->exif,info_ptr->num_exif);\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) ))) ;) })) (if_statement "if ((info_ptr->valid & 0x40) != 0) {\n      png_write_hIST(png_ptr,info_ptr->hist,(uint)info_ptr->num_palette);\n    }" if (parenthesized_expression "((info_ptr->valid & 0x40) != 0)" ( (binary_expression "(info_ptr->valid & 0x40) != 0" (parenthesized_expression "(info_ptr->valid & 0x40)" ( (binary_expression "info_ptr->valid & 0x40" (field_expression "info_ptr->valid" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      png_write_hIST(png_ptr,info_ptr->hist,(uint)info_ptr->num_palette);\n    }" { (expression_statement "png_write_hIST(png_ptr,info_ptr->hist,(uint)info_ptr->num_palette);" (call_expression "png_write_hIST(png_ptr,info_ptr->hist,(uint)info_ptr->num_palette)" identifier (argument_list "(png_ptr,info_ptr->hist,(uint)info_ptr->num_palette)" ( identifier , (field_expression "info_ptr->hist" identifier -> field_identifier) , (cast_expression "(uint)info_ptr->num_palette" ( (type_descriptor "uint" type_identifier) ) (field_expression "info_ptr->num_palette" identifier -> field_identifier)) ))) ;) })) (if_statement "if ((info_ptr->valid & 0x100) != 0) {\n      png_write_oFFs(png_ptr,info_ptr->x_offset,info_ptr->y_offset,(uint)info_ptr->offset_unit_type)\n      ;\n    }" if (parenthesized_expression "((info_ptr->valid & 0x100) != 0)" ( (binary_expression "(info_ptr->valid & 0x100) != 0" (parenthesized_expression "(info_ptr->valid & 0x100)" ( (binary_expression "info_ptr->valid & 0x100" (field_expression "info_ptr->valid" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      png_write_oFFs(png_ptr,info_ptr->x_offset,info_ptr->y_offset,(uint)info_ptr->offset_unit_type)\n      ;\n    }" { (expression_statement "png_write_oFFs(png_ptr,info_ptr->x_offset,info_ptr->y_offset,(uint)info_ptr->offset_unit_type)\n      ;" (call_expression "png_write_oFFs(png_ptr,info_ptr->x_offset,info_ptr->y_offset,(uint)info_ptr->offset_unit_type)" identifier (argument_list "(png_ptr,info_ptr->x_offset,info_ptr->y_offset,(uint)info_ptr->offset_unit_type)" ( identifier , (field_expression "info_ptr->x_offset" identifier -> field_identifier) , (field_expression "info_ptr->y_offset" identifier -> field_identifier) , (cast_expression "(uint)info_ptr->offset_unit_type" ( (type_descriptor "uint" type_identifier) ) (field_expression "info_ptr->offset_unit_type" identifier -> field_identifier)) ))) ;) })) (if_statement "if ((info_ptr->valid & 0x400) != 0) {\n      png_write_pCAL(png_ptr,info_ptr->pcal_purpose,info_ptr->pcal_X0,info_ptr->pcal_X1,\n                     (uint)info_ptr->pcal_type,(uint)info_ptr->pcal_nparams,info_ptr->pcal_units,\n                     info_ptr->pcal_params);\n    }" if (parenthesized_expression "((info_ptr->valid & 0x400) != 0)" ( (binary_expression "(info_ptr->valid & 0x400) != 0" (parenthesized_expression "(info_ptr->valid & 0x400)" ( (binary_expression "info_ptr->valid & 0x400" (field_expression "info_ptr->valid" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      png_write_pCAL(png_ptr,info_ptr->pcal_purpose,info_ptr->pcal_X0,info_ptr->pcal_X1,\n                     (uint)info_ptr->pcal_type,(uint)info_ptr->pcal_nparams,info_ptr->pcal_units,\n                     info_ptr->pcal_params);\n    }" { (expression_statement "png_write_pCAL(png_ptr,info_ptr->pcal_purpose,info_ptr->pcal_X0,info_ptr->pcal_X1,\n                     (uint)info_ptr->pcal_type,(uint)info_ptr->pcal_nparams,info_ptr->pcal_units,\n                     info_ptr->pcal_params);" (call_expression "png_write_pCAL(png_ptr,info_ptr->pcal_purpose,info_ptr->pcal_X0,info_ptr->pcal_X1,\n                     (uint)info_ptr->pcal_type,(uint)info_ptr->pcal_nparams,info_ptr->pcal_units,\n                     info_ptr->pcal_params)" identifier (argument_list "(png_ptr,info_ptr->pcal_purpose,info_ptr->pcal_X0,info_ptr->pcal_X1,\n                     (uint)info_ptr->pcal_type,(uint)info_ptr->pcal_nparams,info_ptr->pcal_units,\n                     info_ptr->pcal_params)" ( identifier , (field_expression "info_ptr->pcal_purpose" identifier -> field_identifier) , (field_expression "info_ptr->pcal_X0" identifier -> field_identifier) , (field_expression "info_ptr->pcal_X1" identifier -> field_identifier) , (cast_expression "(uint)info_ptr->pcal_type" ( (type_descriptor "uint" type_identifier) ) (field_expression "info_ptr->pcal_type" identifier -> field_identifier)) , (cast_expression "(uint)info_ptr->pcal_nparams" ( (type_descriptor "uint" type_identifier) ) (field_expression "info_ptr->pcal_nparams" identifier -> field_identifier)) , (field_expression "info_ptr->pcal_units" identifier -> field_identifier) , (field_expression "info_ptr->pcal_params" identifier -> field_identifier) ))) ;) })) (if_statement "if ((info_ptr->valid & 0x4000) != 0) {\n      png_write_sCAL_s(png_ptr,(uint)info_ptr->scal_unit,info_ptr->scal_s_width,\n                       info_ptr->scal_s_height);\n    }" if (parenthesized_expression "((info_ptr->valid & 0x4000) != 0)" ( (binary_expression "(info_ptr->valid & 0x4000) != 0" (parenthesized_expression "(info_ptr->valid & 0x4000)" ( (binary_expression "info_ptr->valid & 0x4000" (field_expression "info_ptr->valid" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      png_write_sCAL_s(png_ptr,(uint)info_ptr->scal_unit,info_ptr->scal_s_width,\n                       info_ptr->scal_s_height);\n    }" { (expression_statement "png_write_sCAL_s(png_ptr,(uint)info_ptr->scal_unit,info_ptr->scal_s_width,\n                       info_ptr->scal_s_height);" (call_expression "png_write_sCAL_s(png_ptr,(uint)info_ptr->scal_unit,info_ptr->scal_s_width,\n                       info_ptr->scal_s_height)" identifier (argument_list "(png_ptr,(uint)info_ptr->scal_unit,info_ptr->scal_s_width,\n                       info_ptr->scal_s_height)" ( identifier , (cast_expression "(uint)info_ptr->scal_unit" ( (type_descriptor "uint" type_identifier) ) (field_expression "info_ptr->scal_unit" identifier -> field_identifier)) , (field_expression "info_ptr->scal_s_width" identifier -> field_identifier) , (field_expression "info_ptr->scal_s_height" identifier -> field_identifier) ))) ;) })) (if_statement "if ((info_ptr->valid & 0x80) != 0) {\n      png_write_pHYs(png_ptr,info_ptr->x_pixels_per_unit,info_ptr->y_pixels_per_unit,\n                     (uint)info_ptr->phys_unit_type);\n    }" if (parenthesized_expression "((info_ptr->valid & 0x80) != 0)" ( (binary_expression "(info_ptr->valid & 0x80) != 0" (parenthesized_expression "(info_ptr->valid & 0x80)" ( (binary_expression "info_ptr->valid & 0x80" (field_expression "info_ptr->valid" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n      png_write_pHYs(png_ptr,info_ptr->x_pixels_per_unit,info_ptr->y_pixels_per_unit,\n                     (uint)info_ptr->phys_unit_type);\n    }" { (expression_statement "png_write_pHYs(png_ptr,info_ptr->x_pixels_per_unit,info_ptr->y_pixels_per_unit,\n                     (uint)info_ptr->phys_unit_type);" (call_expression "png_write_pHYs(png_ptr,info_ptr->x_pixels_per_unit,info_ptr->y_pixels_per_unit,\n                     (uint)info_ptr->phys_unit_type)" identifier (argument_list "(png_ptr,info_ptr->x_pixels_per_unit,info_ptr->y_pixels_per_unit,\n                     (uint)info_ptr->phys_unit_type)" ( identifier , (field_expression "info_ptr->x_pixels_per_unit" identifier -> field_identifier) , (field_expression "info_ptr->y_pixels_per_unit" identifier -> field_identifier) , (cast_expression "(uint)info_ptr->phys_unit_type" ( (type_descriptor "uint" type_identifier) ) (field_expression "info_ptr->phys_unit_type" identifier -> field_identifier)) ))) ;) })) (if_statement "if ((info_ptr->valid & 0x200) != 0) {\n      png_write_tIME(png_ptr,&info_ptr->mod_time);\n      png_ptr->mode = png_ptr->mode | 0x200;\n    }" if (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) )) (compound_statement "{\n      png_write_tIME(png_ptr,&info_ptr->mod_time);\n      png_ptr->mode = png_ptr->mode | 0x200;\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)) ))) ;) (expression_statement "png_ptr->mode = png_ptr->mode | 0x200;" (assignment_expression "png_ptr->mode = png_ptr->mode | 0x200" (field_expression "png_ptr->mode" identifier -> field_identifier) = (binary_expression "png_ptr->mode | 0x200" (field_expression "png_ptr->mode" identifier -> field_identifier) | number_literal)) ;) })) (if_statement "if (((info_ptr->valid & 0x2000) != 0) && (0 < info_ptr->splt_palettes_num)) {\n      lVar3 = 0;\n      do {\n        png_write_sPLT(png_ptr,info_ptr->splt_palettes + lVar3);\n        lVar3 = lVar3 + 1;\n      } while ((int)lVar3 < info_ptr->splt_palettes_num);\n    }" if (parenthesized_expression "(((info_ptr->valid & 0x2000) != 0) && (0 < info_ptr->splt_palettes_num))" ( (binary_expression "((info_ptr->valid & 0x2000) != 0) && (0 < info_ptr->splt_palettes_num)" (parenthesized_expression "((info_ptr->valid & 0x2000) != 0)" ( (binary_expression "(info_ptr->valid & 0x2000) != 0" (parenthesized_expression "(info_ptr->valid & 0x2000)" ( (binary_expression "info_ptr->valid & 0x2000" (field_expression "info_ptr->valid" identifier -> field_identifier) & number_literal) )) != number_literal) )) && (parenthesized_expression "(0 < info_ptr->splt_palettes_num)" ( (binary_expression "0 < info_ptr->splt_palettes_num" number_literal < (field_expression "info_ptr->splt_palettes_num" identifier -> field_identifier)) ))) )) (compound_statement "{\n      lVar3 = 0;\n      do {\n        png_write_sPLT(png_ptr,info_ptr->splt_palettes + lVar3);\n        lVar3 = lVar3 + 1;\n      } while ((int)lVar3 < info_ptr->splt_palettes_num);\n    }" { (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n        png_write_sPLT(png_ptr,info_ptr->splt_palettes + lVar3);\n        lVar3 = lVar3 + 1;\n      } while ((int)lVar3 < info_ptr->splt_palettes_num);" do (compound_statement "{\n        png_write_sPLT(png_ptr,info_ptr->splt_palettes + lVar3);\n        lVar3 = lVar3 + 1;\n      }" { (expression_statement "png_write_sPLT(png_ptr,info_ptr->splt_palettes + lVar3);" (call_expression "png_write_sPLT(png_ptr,info_ptr->splt_palettes + lVar3)" identifier (argument_list "(png_ptr,info_ptr->splt_palettes + lVar3)" ( identifier , (binary_expression "info_ptr->splt_palettes + lVar3" (field_expression "info_ptr->splt_palettes" identifier -> field_identifier) + identifier) ))) ;) (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar3 < info_ptr->splt_palettes_num)" ( (binary_expression "(int)lVar3 < info_ptr->splt_palettes_num" (cast_expression "(int)lVar3" ( (type_descriptor "int" primitive_type) ) identifier) < (field_expression "info_ptr->splt_palettes_num" identifier -> field_identifier)) )) ;) })) (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (if_statement "if (0 < info_ptr->num_text) {\n      do {\n        piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n        compression = *piVar2;\n        if (compression < 1) {\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }\n        }\n        else {\n          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));\n          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar4 = iVar4 + 1;\n        lVar3 = lVar3 + 0x38;\n      } while (iVar4 < 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      do {\n        piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n        compression = *piVar2;\n        if (compression < 1) {\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }\n        }\n        else {\n          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));\n          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar4 = iVar4 + 1;\n        lVar3 = lVar3 + 0x38;\n      } while (iVar4 < info_ptr->num_text);\n    }" { (do_statement "do {\n        piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n        compression = *piVar2;\n        if (compression < 1) {\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }\n        }\n        else {\n          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));\n          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar4 = iVar4 + 1;\n        lVar3 = lVar3 + 0x38;\n      } while (iVar4 < info_ptr->num_text);" do (compound_statement "{\n        piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n        compression = *piVar2;\n        if (compression < 1) {\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }\n        }\n        else {\n          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));\n          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar4 = iVar4 + 1;\n        lVar3 = lVar3 + 0x38;\n      }" { (expression_statement "piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);" (assignment_expression "piVar2 = (int *)((long)&info_ptr->text->compression + lVar3)" identifier = (cast_expression "(int *)((long)&info_ptr->text->compression + lVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&info_ptr->text->compression + lVar3)" ( (binary_expression "(long)&info_ptr->text->compression + lVar3" (cast_expression "(long)&info_ptr->text->compression" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&info_ptr->text->compression" & (field_expression "info_ptr->text->compression" (field_expression "info_ptr->text" identifier -> field_identifier) -> field_identifier))) + identifier) )))) ;) (expression_statement "compression = *piVar2;" (assignment_expression "compression = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (compression < 1) {\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }\n        }\n        else {\n          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));\n          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n          *piVar2 = (*piVar2 != -1) - 3;\n        }" if (parenthesized_expression "(compression < 1)" ( (binary_expression "compression < 1" identifier < number_literal) )) (compound_statement "{\n          if (compression == 0) {\n            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }\n        }" { (if_statement "if (compression == 0) {\n            png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }\n          else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 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 *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;\n          }" { (expression_statement "png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);" (call_expression "png_write_zTXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0)" identifier (argument_list "(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0)" ( identifier , (pointer_expression "*(png_const_charp *)(piVar2 + 2)" * (cast_expression "(png_const_charp *)(piVar2 + 2)" ( (type_descriptor "png_const_charp *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) , (pointer_expression "*(png_const_charp *)(piVar2 + 4)" * (cast_expression "(png_const_charp *)(piVar2 + 4)" ( (type_descriptor "png_const_charp *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "*(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe;" (assignment_expression "*(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffe" (pointer_expression "*(undefined4 *)((long)&info_ptr->text->compression + lVar3)" * (cast_expression "(undefined4 *)((long)&info_ptr->text->compression + lVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&info_ptr->text->compression + lVar3)" ( (binary_expression "(long)&info_ptr->text->compression + lVar3" (cast_expression "(long)&info_ptr->text->compression" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&info_ptr->text->compression" & (field_expression "info_ptr->text->compression" (field_expression "info_ptr->text" identifier -> field_identifier) -> field_identifier))) + identifier) )))) = number_literal) ;) }) (else_clause "else if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }" else (if_statement "if (compression == -1) {\n            png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 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 *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);\n            *(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;\n          }" { (expression_statement "png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0);" (call_expression "png_write_tEXt(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0)" identifier (argument_list "(png_ptr,*(png_const_charp *)(piVar2 + 2),*(png_const_charp *)(piVar2 + 4)\n                           ,0)" ( identifier , (pointer_expression "*(png_const_charp *)(piVar2 + 2)" * (cast_expression "(png_const_charp *)(piVar2 + 2)" ( (type_descriptor "png_const_charp *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) , (pointer_expression "*(png_const_charp *)(piVar2 + 4)" * (cast_expression "(png_const_charp *)(piVar2 + 4)" ( (type_descriptor "png_const_charp *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "*(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd;" (assignment_expression "*(undefined4 *)((long)&info_ptr->text->compression + lVar3) = 0xfffffffd" (pointer_expression "*(undefined4 *)((long)&info_ptr->text->compression + lVar3)" * (cast_expression "(undefined4 *)((long)&info_ptr->text->compression + lVar3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&info_ptr->text->compression + lVar3)" ( (binary_expression "(long)&info_ptr->text->compression + lVar3" (cast_expression "(long)&info_ptr->text->compression" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&info_ptr->text->compression" & (field_expression "info_ptr->text->compression" (field_expression "info_ptr->text" identifier -> field_identifier) -> field_identifier))) + identifier) )))) = number_literal) ;) })))) }) (else_clause "else {\n          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));\n          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n          *piVar2 = (*piVar2 != -1) - 3;\n        }" else (compound_statement "{\n          png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));\n          piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);\n          *piVar2 = (*piVar2 != -1) - 3;\n        }" { (expression_statement "png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4));" (call_expression "png_write_iTXt(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4))" identifier (argument_list "(png_ptr,compression,*(png_const_charp *)(piVar2 + 2),\n                         *(png_const_charp *)(piVar2 + 10),*(png_const_charp *)(piVar2 + 0xc),\n                         *(png_const_charp *)(piVar2 + 4))" ( identifier , identifier , (pointer_expression "*(png_const_charp *)(piVar2 + 2)" * (cast_expression "(png_const_charp *)(piVar2 + 2)" ( (type_descriptor "png_const_charp *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) , (pointer_expression "*(png_const_charp *)(piVar2 + 10)" * (cast_expression "(png_const_charp *)(piVar2 + 10)" ( (type_descriptor "png_const_charp *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 10)" ( (binary_expression "piVar2 + 10" identifier + number_literal) )))) , (pointer_expression "*(png_const_charp *)(piVar2 + 0xc)" * (cast_expression "(png_const_charp *)(piVar2 + 0xc)" ( (type_descriptor "png_const_charp *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0xc)" ( (binary_expression "piVar2 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(png_const_charp *)(piVar2 + 4)" * (cast_expression "(png_const_charp *)(piVar2 + 4)" ( (type_descriptor "png_const_charp *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "piVar2 = (int *)((long)&info_ptr->text->compression + lVar3);" (assignment_expression "piVar2 = (int *)((long)&info_ptr->text->compression + lVar3)" identifier = (cast_expression "(int *)((long)&info_ptr->text->compression + lVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&info_ptr->text->compression + lVar3)" ( (binary_expression "(long)&info_ptr->text->compression + lVar3" (cast_expression "(long)&info_ptr->text->compression" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&info_ptr->text->compression" & (field_expression "info_ptr->text->compression" (field_expression "info_ptr->text" identifier -> field_identifier) -> field_identifier))) + identifier) )))) ;) (expression_statement "*piVar2 = (*piVar2 != -1) - 3;" (assignment_expression "*piVar2 = (*piVar2 != -1) - 3" (pointer_expression "*piVar2" * identifier) = (binary_expression "(*piVar2 != -1) - 3" (parenthesized_expression "(*piVar2 != -1)" ( (binary_expression "*piVar2 != -1" (pointer_expression "*piVar2" * identifier) != number_literal) )) - number_literal)) ;) }))) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "lVar3 = lVar3 + 0x38;" (assignment_expression "lVar3 = lVar3 + 0x38" identifier = (binary_expression "lVar3 + 0x38" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 < info_ptr->num_text)" ( (binary_expression "iVar4 < info_ptr->num_text" identifier < (field_expression "info_ptr->num_text" identifier -> field_identifier)) )) ;) })) (expression_statement "write_unknown_chunks(png_ptr,info_ptr,2);" (call_expression "write_unknown_chunks(png_ptr,info_ptr,2)" identifier (argument_list "(png_ptr,info_ptr,2)" ( identifier , identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_write_info(long param_1,long param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  int iVar6;\n  \n  if ((param_1 != 0) && (param_2 != 0)) {\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }\n  return;\n}\n\n" (function_definition "void png_write_info(long param_1,long param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  int iVar6;\n  \n  if ((param_1 != 0) && (param_2 != 0)) {\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }\n  return;\n}" primitive_type (function_declarator "png_write_info(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  int iVar6;\n  \n  if ((param_1 != 0) && (param_2 != 0)) {\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "byte *pbVar4;" type_identifier (pointer_declarator "*pbVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (if_statement "if ((param_1 != 0) && (param_2 != 0)) {\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 != 0))" ( (binary_expression "(param_1 != 0) && (param_2 != 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }" { (expression_statement "png_write_info_before_PLTE();" (call_expression "png_write_info_before_PLTE()" identifier (argument_list "()" ( ))) ;) (if_statement "if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 8) & 8) == 0)" ( (binary_expression "(*(byte *)(param_2 + 8) & 8) == 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 8)" ( (binary_expression "*(byte *)(param_2 + 8) & 8" (pointer_expression "*(byte *)(param_2 + 8)" * (cast_expression "(byte *)(param_2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }" { (if_statement "if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }" if (parenthesized_expression "(*(char *)(param_2 + 0x25) == '\x03')" ( (binary_expression "*(char *)(param_2 + 0x25) == '\x03'" (pointer_expression "*(char *)(param_2 + 0x25)" * (cast_expression "(char *)(param_2 + 0x25)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x25)" ( (binary_expression "param_2 + 0x25" identifier + number_literal) )))) == (char_literal "'\x03'" ' escape_sequence ')) )) (compound_statement "{\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }" { (expression_statement "png_error(param_1,"Valid palette required for paletted images");" (call_expression "png_error(param_1,"Valid palette required for paletted images")" identifier (argument_list "(param_1,"Valid palette required for paletted images")" ( identifier , (string_literal ""Valid palette required for paletted images"" " string_content ") ))) ;) })) }) (else_clause "else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }" else (compound_statement "{\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }" { (expression_statement "FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));" (call_expression "FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0x18)" * (cast_expression "(undefined8 *)(param_2 + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) , (pointer_expression "*(undefined2 *)(param_2 + 0x20)" * (cast_expression "(undefined2 *)(param_2 + 0x20)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) ))) ;) }))) (if_statement "if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 8) & 0x10) != 0)" ( (binary_expression "(*(byte *)(param_2 + 8) & 0x10) != 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 0x10)" ( (binary_expression "*(byte *)(param_2 + 8) & 0x10" (pointer_expression "*(byte *)(param_2 + 8)" * (cast_expression "(byte *)(param_2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }" { (if_statement "if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }" if (parenthesized_expression "(((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03'))" ( (binary_expression "((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')" (parenthesized_expression "((*(byte *)(param_1 + 0x136) & 8) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x136) & 8) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x136) & 8)" ( (binary_expression "*(byte *)(param_1 + 0x136) & 8" (pointer_expression "*(byte *)(param_1 + 0x136)" * (cast_expression "(byte *)(param_1 + 0x136)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x136)" ( (binary_expression "param_1 + 0x136" identifier + number_literal) )))) & number_literal) )) != number_literal) )) && (parenthesized_expression "(*(char *)(param_2 + 0x25) == '\x03')" ( (binary_expression "*(char *)(param_2 + 0x25) == '\x03'" (pointer_expression "*(char *)(param_2 + 0x25)" * (cast_expression "(char *)(param_2 + 0x25)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x25)" ( (binary_expression "param_2 + 0x25" identifier + number_literal) )))) == (char_literal "'\x03'" ' escape_sequence ')) ))) )) (compound_statement "{\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }" { (expression_statement "uVar3 = (uint)*(ushort *)(param_2 + 0x22);" (assignment_expression "uVar3 = (uint)*(ushort *)(param_2 + 0x22)" identifier = (binary_expression "(uint)*(ushort *)(param_2 + 0x22)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_2 + 0x22)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x22)" ( (binary_expression "param_2 + 0x22" identifier + number_literal) ))))) ;) (if_statement "if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }" if (parenthesized_expression "(0x100 < uVar3)" ( (binary_expression "0x100 < uVar3" number_literal < identifier) )) (compound_statement "{\n          uVar3 = 0x100;\n        }" { (expression_statement "uVar3 = 0x100;" (assignment_expression "uVar3 = 0x100" identifier = number_literal) ;) })) (if_statement "if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }" if (parenthesized_expression "(*(ushort *)(param_2 + 0x22) != 0)" ( (binary_expression "*(ushort *)(param_2 + 0x22) != 0" (pointer_expression "*(ushort *)(param_2 + 0x22)" * (cast_expression "(ushort *)(param_2 + 0x22)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x22)" ( (binary_expression "param_2 + 0x22" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }" { (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);" do (compound_statement "{\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          }" { (expression_statement "pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));" (assignment_expression "pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8))" identifier = (cast_expression "(byte *)(lVar5 + *(long *)(param_2 + 0xb8))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + *(long *)(param_2 + 0xb8))" ( (binary_expression "lVar5 + *(long *)(param_2 + 0xb8)" identifier + (pointer_expression "*(long *)(param_2 + 0xb8)" * (cast_expression "(long *)(param_2 + 0xb8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb8)" ( (binary_expression "param_2 + 0xb8" identifier + number_literal) ))))) )))) ;) (expression_statement "*pbVar4 = ~*pbVar4;" (assignment_expression "*pbVar4 = ~*pbVar4" (pointer_expression "*pbVar4" * identifier) = (unary_expression "~*pbVar4" ~ (pointer_expression "*pbVar4" * identifier))) ;) (expression_statement "lVar5 = lVar5 + 1;" (assignment_expression "lVar5 = lVar5 + 1" identifier = (binary_expression "lVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar5 < (int)uVar3)" ( (binary_expression "(int)lVar5 < (int)uVar3" (cast_expression "(int)lVar5" ( (type_descriptor "int" primitive_type) ) identifier) < (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) })) })) (expression_statement "FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));" (call_expression "FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0xb8)" * (cast_expression "(undefined8 *)(param_2 + 0xb8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xb8)" ( (binary_expression "param_2 + 0xb8" identifier + number_literal) )))) , (binary_expression "param_2 + 0xc0" identifier + number_literal) , (pointer_expression "*(undefined2 *)(param_2 + 0x22)" * (cast_expression "(undefined2 *)(param_2 + 0x22)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x22)" ( (binary_expression "param_2 + 0x22" identifier + number_literal) )))) , (pointer_expression "*(undefined1 *)(param_2 + 0x25)" * (cast_expression "(undefined1 *)(param_2 + 0x25)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x25)" ( (binary_expression "param_2 + 0x25" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 8) & 0x20) != 0)" ( (binary_expression "(*(byte *)(param_2 + 8) & 0x20) != 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 0x20)" ( (binary_expression "*(byte *)(param_2 + 8) & 0x20" (pointer_expression "*(byte *)(param_2 + 8)" * (cast_expression "(byte *)(param_2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }" { (expression_statement "FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));" (call_expression "FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25))" identifier (argument_list "(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25))" ( identifier , (binary_expression "param_2 + 0xca" identifier + number_literal) , (pointer_expression "*(undefined1 *)(param_2 + 0x25)" * (cast_expression "(undefined1 *)(param_2 + 0x25)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x25)" ( (binary_expression "param_2 + 0x25" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\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      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }" { (expression_statement "FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));" (call_expression "FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0xf0)" * (cast_expression "(undefined8 *)(param_2 + 0xf0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xf0)" ( (binary_expression "param_2 + 0xf0" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0xec)" * (cast_expression "(undefined4 *)(param_2 + 0xec)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xec)" ( (binary_expression "param_2 + 0xec" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 8) & 0x40) != 0)" ( (binary_expression "(*(byte *)(param_2 + 8) & 0x40) != 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 0x40)" ( (binary_expression "*(byte *)(param_2 + 8) & 0x40" (pointer_expression "*(byte *)(param_2 + 8)" * (cast_expression "(byte *)(param_2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }" { (expression_statement "FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));" (call_expression "FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0x100)" * (cast_expression "(undefined8 *)(param_2 + 0x100)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x100)" ( (binary_expression "param_2 + 0x100" identifier + number_literal) )))) , (pointer_expression "*(undefined2 *)(param_2 + 0x20)" * (cast_expression "(undefined2 *)(param_2 + 0x20)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 9) & 1) != 0)" ( (binary_expression "(*(byte *)(param_2 + 9) & 1) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 1)" ( (binary_expression "*(byte *)(param_2 + 9) & 1" (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) )) (compound_statement "{\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }" { (expression_statement "FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));" (call_expression "FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0xd4)" * (cast_expression "(undefined4 *)(param_2 + 0xd4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd4)" ( (binary_expression "param_2 + 0xd4" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0xd8)" * (cast_expression "(undefined4 *)(param_2 + 0xd8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd8)" ( (binary_expression "param_2 + 0xd8" identifier + number_literal) )))) , (pointer_expression "*(undefined1 *)(param_2 + 0xdc)" * (cast_expression "(undefined1 *)(param_2 + 0xdc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xdc)" ( (binary_expression "param_2 + 0xdc" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 9) & 4) != 0)" ( (binary_expression "(*(byte *)(param_2 + 9) & 4) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 4)" ( (binary_expression "*(byte *)(param_2 + 9) & 4" (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) )) (compound_statement "{\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }" { (expression_statement "FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));" (call_expression "FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120))" identifier (argument_list "(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + 0x108)" * (cast_expression "(undefined8 *)(param_2 + 0x108)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x108)" ( (binary_expression "param_2 + 0x108" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x110)" * (cast_expression "(undefined4 *)(param_2 + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x110)" ( (binary_expression "param_2 + 0x110" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0x114)" * (cast_expression "(undefined4 *)(param_2 + 0x114)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x114)" ( (binary_expression "param_2 + 0x114" identifier + number_literal) )))) , (pointer_expression "*(undefined1 *)(param_2 + 0x128)" * (cast_expression "(undefined1 *)(param_2 + 0x128)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x128)" ( (binary_expression "param_2 + 0x128" identifier + number_literal) )))) , (pointer_expression "*(undefined1 *)(param_2 + 0x129)" * (cast_expression "(undefined1 *)(param_2 + 0x129)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x129)" ( (binary_expression "param_2 + 0x129" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_2 + 0x118)" * (cast_expression "(undefined8 *)(param_2 + 0x118)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x118)" ( (binary_expression "param_2 + 0x118" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_2 + 0x120)" * (cast_expression "(undefined8 *)(param_2 + 0x120)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x120)" ( (binary_expression "param_2 + 0x120" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 9) & 0x40) != 0)" ( (binary_expression "(*(byte *)(param_2 + 9) & 0x40) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 0x40)" ( (binary_expression "*(byte *)(param_2 + 9) & 0x40" (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) )) (compound_statement "{\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }" { (expression_statement "FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));" (call_expression "FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158))" identifier (argument_list "(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158))" ( identifier , (pointer_expression "*(undefined1 *)(param_2 + 0x14c)" * (cast_expression "(undefined1 *)(param_2 + 0x14c)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14c)" ( (binary_expression "param_2 + 0x14c" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_2 + 0x150)" * (cast_expression "(undefined8 *)(param_2 + 0x150)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x150)" ( (binary_expression "param_2 + 0x150" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_2 + 0x158)" * (cast_expression "(undefined8 *)(param_2 + 0x158)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x158)" ( (binary_expression "param_2 + 0x158" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }" if (parenthesized_expression "((*(byte *)(param_2 + 8) & 0x80) != 0)" ( (binary_expression "(*(byte *)(param_2 + 8) & 0x80) != 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 0x80)" ( (binary_expression "*(byte *)(param_2 + 8) & 0x80" (pointer_expression "*(byte *)(param_2 + 8)" * (cast_expression "(byte *)(param_2 + 8)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }" { (expression_statement "FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));" (call_expression "FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8))" identifier (argument_list "(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8))" ( identifier , (pointer_expression "*(undefined4 *)(param_2 + 0xe0)" * (cast_expression "(undefined4 *)(param_2 + 0xe0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xe0)" ( (binary_expression "param_2 + 0xe0" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_2 + 0xe4)" * (cast_expression "(undefined4 *)(param_2 + 0xe4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xe4)" ( (binary_expression "param_2 + 0xe4" identifier + number_literal) )))) , (pointer_expression "*(undefined1 *)(param_2 + 0xe8)" * (cast_expression "(undefined1 *)(param_2 + 0xe8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xe8)" ( (binary_expression "param_2 + 0xe8" identifier + number_literal) )))) ))) ;) })) (if_statement "if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }" if (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) )) (compound_statement "{\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }" { (expression_statement "FUN_00126128(param_1,param_2 + 0xa8);" (call_expression "FUN_00126128(param_1,param_2 + 0xa8)" identifier (argument_list "(param_1,param_2 + 0xa8)" ( identifier , (binary_expression "param_2 + 0xa8" identifier + number_literal) ))) ;) (expression_statement "*(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;" (assignment_expression "*(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200" (pointer_expression "*(uint *)(param_1 + 300)" * (cast_expression "(uint *)(param_1 + 300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 300) | 0x200" (pointer_expression "*(uint *)(param_1 + 300)" * (cast_expression "(uint *)(param_1 + 300)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 300)" ( (binary_expression "param_1 + 300" identifier + number_literal) )))) | number_literal)) ;) })) (if_statement "if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }" if (parenthesized_expression "(((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148)))" ( (binary_expression "((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))" (parenthesized_expression "((*(byte *)(param_2 + 9) & 0x20) != 0)" ( (binary_expression "(*(byte *)(param_2 + 9) & 0x20) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 0x20)" ( (binary_expression "*(byte *)(param_2 + 9) & 0x20" (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 "(0 < *(int *)(param_2 + 0x148))" ( (binary_expression "0 < *(int *)(param_2 + 0x148)" number_literal < (pointer_expression "*(int *)(param_2 + 0x148)" * (cast_expression "(int *)(param_2 + 0x148)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x148)" ( (binary_expression "param_2 + 0x148" identifier + number_literal) ))))) ))) )) (compound_statement "{\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }" { (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));" do (compound_statement "{\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      }" { (expression_statement "FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));" (call_expression "FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140))" identifier (argument_list "(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140))" ( identifier , (binary_expression "lVar5 * 0x20 + *(long *)(param_2 + 0x140)" (binary_expression "lVar5 * 0x20" identifier * number_literal) + (pointer_expression "*(long *)(param_2 + 0x140)" * (cast_expression "(long *)(param_2 + 0x140)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x140)" ( (binary_expression "param_2 + 0x140" identifier + number_literal) ))))) ))) ;) (expression_statement "lVar5 = lVar5 + 1;" (assignment_expression "lVar5 = lVar5 + 1" identifier = (binary_expression "lVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar5 < *(int *)(param_2 + 0x148))" ( (binary_expression "(int)lVar5 < *(int *)(param_2 + 0x148)" (cast_expression "(int)lVar5" ( (type_descriptor "int" primitive_type) ) identifier) < (pointer_expression "*(int *)(param_2 + 0x148)" * (cast_expression "(int *)(param_2 + 0x148)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x148)" ( (binary_expression "param_2 + 0x148" identifier + number_literal) ))))) )) ;) })) (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }" if (parenthesized_expression "(0 < *(int *)(param_2 + 0x94))" ( (binary_expression "0 < *(int *)(param_2 + 0x94)" number_literal < (pointer_expression "*(int *)(param_2 + 0x94)" * (cast_expression "(int *)(param_2 + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x94)" ( (binary_expression "param_2 + 0x94" identifier + number_literal) ))))) )) (compound_statement "{\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }" { (do_statement "do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));" do (compound_statement "{\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      }" { (expression_statement "piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));" (assignment_expression "piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0))" identifier = (cast_expression "(int *)(lVar5 + *(long *)(param_2 + 0xa0))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + *(long *)(param_2 + 0xa0))" ( (binary_expression "lVar5 + *(long *)(param_2 + 0xa0)" identifier + (pointer_expression "*(long *)(param_2 + 0xa0)" * (cast_expression "(long *)(param_2 + 0xa0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa0)" ( (binary_expression "param_2 + 0xa0" identifier + number_literal) ))))) )))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }" if (parenthesized_expression "(iVar1 < 1)" ( (binary_expression "iVar1 < 1" identifier < number_literal) )) (compound_statement "{\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }" { (if_statement "if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }" { (expression_statement "FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);" (call_expression "FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0)" identifier (argument_list "(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0)" ( identifier , (pointer_expression "*(undefined8 *)(piVar2 + 2)" * (cast_expression "(undefined8 *)(piVar2 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;" (assignment_expression "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe" (pointer_expression "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5)" * (cast_expression "(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 0xa0) + lVar5)" ( (binary_expression "*(long *)(param_2 + 0xa0) + lVar5" (pointer_expression "*(long *)(param_2 + 0xa0)" * (cast_expression "(long *)(param_2 + 0xa0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa0)" ( (binary_expression "param_2 + 0xa0" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) }) (else_clause "else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }" else (if_statement "if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }" { (expression_statement "FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);" (call_expression "FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0)" identifier (argument_list "(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0)" ( identifier , (pointer_expression "*(undefined8 *)(piVar2 + 2)" * (cast_expression "(undefined8 *)(piVar2 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) , number_literal ))) ;) (expression_statement "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;" (assignment_expression "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd" (pointer_expression "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5)" * (cast_expression "(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_2 + 0xa0) + lVar5)" ( (binary_expression "*(long *)(param_2 + 0xa0) + lVar5" (pointer_expression "*(long *)(param_2 + 0xa0)" * (cast_expression "(long *)(param_2 + 0xa0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa0)" ( (binary_expression "param_2 + 0xa0" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) })))) }) (else_clause "else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }" else (compound_statement "{\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }" { (expression_statement "FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));" (call_expression "FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4))" identifier (argument_list "(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4))" ( identifier , identifier , (pointer_expression "*(undefined8 *)(piVar2 + 2)" * (cast_expression "(undefined8 *)(piVar2 + 2)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 2)" ( (binary_expression "piVar2 + 2" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(piVar2 + 10)" * (cast_expression "(undefined8 *)(piVar2 + 10)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 10)" ( (binary_expression "piVar2 + 10" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(piVar2 + 0xc)" * (cast_expression "(undefined8 *)(piVar2 + 0xc)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 0xc)" ( (binary_expression "piVar2 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(piVar2 + 4)" * (cast_expression "(undefined8 *)(piVar2 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar2 + 4)" ( (binary_expression "piVar2 + 4" identifier + number_literal) )))) ))) ;) (expression_statement "piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));" (assignment_expression "piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0))" identifier = (cast_expression "(int *)(lVar5 + *(long *)(param_2 + 0xa0))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar5 + *(long *)(param_2 + 0xa0))" ( (binary_expression "lVar5 + *(long *)(param_2 + 0xa0)" identifier + (pointer_expression "*(long *)(param_2 + 0xa0)" * (cast_expression "(long *)(param_2 + 0xa0)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xa0)" ( (binary_expression "param_2 + 0xa0" identifier + number_literal) ))))) )))) ;) (expression_statement "*piVar2 = (*piVar2 != -1) - 3;" (assignment_expression "*piVar2 = (*piVar2 != -1) - 3" (pointer_expression "*piVar2" * identifier) = (binary_expression "(*piVar2 != -1) - 3" (parenthesized_expression "(*piVar2 != -1)" ( (binary_expression "*piVar2 != -1" (pointer_expression "*piVar2" * identifier) != number_literal) )) - number_literal)) ;) }))) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "lVar5 = lVar5 + 0x38;" (assignment_expression "lVar5 = lVar5 + 0x38" identifier = (binary_expression "lVar5 + 0x38" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar6 < *(int *)(param_2 + 0x94))" ( (binary_expression "iVar6 < *(int *)(param_2 + 0x94)" identifier < (pointer_expression "*(int *)(param_2 + 0x94)" * (cast_expression "(int *)(param_2 + 0x94)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x94)" ( (binary_expression "param_2 + 0x94" identifier + number_literal) ))))) )) ;) })) (expression_statement "FUN_00120fff(param_1,param_2,2);" (call_expression "FUN_00120fff(param_1,param_2,2)" identifier (argument_list "(param_1,param_2,2)" ( identifier , identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (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) )))) ))) ;) }))) (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 { (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (unary_expression ~ (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) })) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + LIT) , (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) )))) ))) ;) })) (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 , (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (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 , (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) )))) ))) ;) })) (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 , (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) )))) ))) ;) })) (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 , (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) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (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 , (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) )))) , (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) )))) , (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) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (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 , (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) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (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 , (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) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) })) (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 , (binary_expression IDENT + 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)) ;) })) (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 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) ;) (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression IDENT * LIT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_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 { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (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 IDENT == LIT) )) (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) )))) , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (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) )))) , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) = LIT) ;) })))) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , 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) )))) , (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) - 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) ))))) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (return_statement return ;) })) (return_statement return ;) })))
(function_definition "void png_write_info(long param_1,long param_2)\n\n{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  int iVar6;\n  \n  if ((param_1 != 0) && (param_2 != 0)) {\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "png_write_info(long param_1,long param_2)" (identifier "png_write_info") (parameter_list "(long param_1,long param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  uint uVar3;\n  byte *pbVar4;\n  long lVar5;\n  int iVar6;\n  \n  if ((param_1 != 0) && (param_2 != 0)) {\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "byte *pbVar4;" (type_identifier "byte") (pointer_declarator "*pbVar4" (* "*") (identifier "pbVar4")) (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (if_statement "if ((param_1 != 0) && (param_2 != 0)) {\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }" (if "if") (parenthesized_expression "((param_1 != 0) && (param_2 != 0))" (( "(") (binary_expression "(param_1 != 0) && (param_2 != 0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    png_write_info_before_PLTE();\n    if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }\n    if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }\n    if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }\n    if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }\n    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }\n    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }\n    if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }\n    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }\n    lVar5 = 0;\n    iVar6 = 0;\n    if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }\n    FUN_00120fff(param_1,param_2,2);\n    return;\n  }" ({ "{") (expression_statement "png_write_info_before_PLTE();" (call_expression "png_write_info_before_PLTE()" (identifier "png_write_info_before_PLTE") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if ((*(byte *)(param_2 + 8) & 8) == 0) {\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }\n    else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 8) & 8) == 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 8) & 8) == 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 8)" (( "(") (binary_expression "*(byte *)(param_2 + 8) & 8" (pointer_expression "*(byte *)(param_2 + 8)" (* "*") (cast_expression "(byte *)(param_2 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "8")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }\n    }" ({ "{") (if_statement "if (*(char *)(param_2 + 0x25) == '\x03') {\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }" (if "if") (parenthesized_expression "(*(char *)(param_2 + 0x25) == '\x03')" (( "(") (binary_expression "*(char *)(param_2 + 0x25) == '\x03'" (pointer_expression "*(char *)(param_2 + 0x25)" (* "*") (cast_expression "(char *)(param_2 + 0x25)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x25)" (( "(") (binary_expression "param_2 + 0x25" (identifier "param_2") (+ "+") (number_literal "0x25")) () ")")))) (== "==") (char_literal "'\x03'" (' "'") (escape_sequence "\x03") (' "'"))) () ")")) (compound_statement "{\n                    \n        png_error(param_1,"Valid palette required for paletted images");\n      }" ({ "{") (expression_statement "png_error(param_1,"Valid palette required for paletted images");" (call_expression "png_error(param_1,"Valid palette required for paletted images")" (identifier "png_error") (argument_list "(param_1,"Valid palette required for paletted images")" (( "(") (identifier "param_1") (, ",") (string_literal ""Valid palette required for paletted images"" (" """) (string_content "Valid palette required for paletted images") (" """)) () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }" (else "else") (compound_statement "{\n      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));\n    }" ({ "{") (expression_statement "FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));" (call_expression "FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20))" (identifier "FUN_00124d6a") (argument_list "(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)(param_2 + 0x18)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (pointer_expression "*(undefined2 *)(param_2 + 0x20)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0x20)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) () ")"))) (; ";")) (} "}")))) (if_statement "if ((*(byte *)(param_2 + 8) & 0x10) != 0) {\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 8) & 0x10) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 8) & 0x10) != 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 0x10)" (( "(") (binary_expression "*(byte *)(param_2 + 8) & 0x10" (pointer_expression "*(byte *)(param_2 + 8)" (* "*") (cast_expression "(byte *)(param_2 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }\n      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));\n    }" ({ "{") (if_statement "if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }" (if "if") (parenthesized_expression "(((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03'))" (( "(") (binary_expression "((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')" (parenthesized_expression "((*(byte *)(param_1 + 0x136) & 8) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x136) & 8) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x136) & 8)" (( "(") (binary_expression "*(byte *)(param_1 + 0x136) & 8" (pointer_expression "*(byte *)(param_1 + 0x136)" (* "*") (cast_expression "(byte *)(param_1 + 0x136)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x136)" (( "(") (binary_expression "param_1 + 0x136" (identifier "param_1") (+ "+") (number_literal "0x136")) () ")")))) (& "&") (number_literal "8")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(char *)(param_2 + 0x25) == '\x03')" (( "(") (binary_expression "*(char *)(param_2 + 0x25) == '\x03'" (pointer_expression "*(char *)(param_2 + 0x25)" (* "*") (cast_expression "(char *)(param_2 + 0x25)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x25)" (( "(") (binary_expression "param_2 + 0x25" (identifier "param_2") (+ "+") (number_literal "0x25")) () ")")))) (== "==") (char_literal "'\x03'" (' "'") (escape_sequence "\x03") (' "'"))) () ")"))) () ")")) (compound_statement "{\n        uVar3 = (uint)*(ushort *)(param_2 + 0x22);\n        if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }\n        if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }\n      }" ({ "{") (expression_statement "uVar3 = (uint)*(ushort *)(param_2 + 0x22);" (assignment_expression "uVar3 = (uint)*(ushort *)(param_2 + 0x22)" (identifier "uVar3") (= "=") (binary_expression "(uint)*(ushort *)(param_2 + 0x22)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_2 + 0x22)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x22)" (( "(") (binary_expression "param_2 + 0x22" (identifier "param_2") (+ "+") (number_literal "0x22")) () ")"))))) (; ";")) (if_statement "if (0x100 < uVar3) {\n          uVar3 = 0x100;\n        }" (if "if") (parenthesized_expression "(0x100 < uVar3)" (( "(") (binary_expression "0x100 < uVar3" (number_literal "0x100") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n          uVar3 = 0x100;\n        }" ({ "{") (expression_statement "uVar3 = 0x100;" (assignment_expression "uVar3 = 0x100" (identifier "uVar3") (= "=") (number_literal "0x100")) (; ";")) (} "}"))) (if_statement "if (*(ushort *)(param_2 + 0x22) != 0) {\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }" (if "if") (parenthesized_expression "(*(ushort *)(param_2 + 0x22) != 0)" (( "(") (binary_expression "*(ushort *)(param_2 + 0x22) != 0" (pointer_expression "*(ushort *)(param_2 + 0x22)" (* "*") (cast_expression "(ushort *)(param_2 + 0x22)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x22)" (( "(") (binary_expression "param_2 + 0x22" (identifier "param_2") (+ "+") (number_literal "0x22")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          lVar5 = 0;\n          do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);\n        }" ({ "{") (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" (identifier "lVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          } while ((int)lVar5 < (int)uVar3);" (do "do") (compound_statement "{\n            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));\n            *pbVar4 = ~*pbVar4;\n            lVar5 = lVar5 + 1;\n          }" ({ "{") (expression_statement "pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));" (assignment_expression "pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8))" (identifier "pbVar4") (= "=") (cast_expression "(byte *)(lVar5 + *(long *)(param_2 + 0xb8))" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + *(long *)(param_2 + 0xb8))" (( "(") (binary_expression "lVar5 + *(long *)(param_2 + 0xb8)" (identifier "lVar5") (+ "+") (pointer_expression "*(long *)(param_2 + 0xb8)" (* "*") (cast_expression "(long *)(param_2 + 0xb8)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xb8)" (( "(") (binary_expression "param_2 + 0xb8" (identifier "param_2") (+ "+") (number_literal "0xb8")) () ")"))))) () ")")))) (; ";")) (expression_statement "*pbVar4 = ~*pbVar4;" (assignment_expression "*pbVar4 = ~*pbVar4" (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")) (= "=") (unary_expression "~*pbVar4" (~ "~") (pointer_expression "*pbVar4" (* "*") (identifier "pbVar4")))) (; ";")) (expression_statement "lVar5 = lVar5 + 1;" (assignment_expression "lVar5 = lVar5 + 1" (identifier "lVar5") (= "=") (binary_expression "lVar5 + 1" (identifier "lVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)lVar5 < (int)uVar3)" (( "(") (binary_expression "(int)lVar5 < (int)uVar3" (cast_expression "(int)lVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar5")) (< "<") (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3"))) () ")")) (; ";")) (} "}"))) (} "}"))) (expression_statement "FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));" (call_expression "FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25))" (identifier "FUN_0012540d") (argument_list "(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,\n                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)(param_2 + 0xb8)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0xb8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xb8)" (( "(") (binary_expression "param_2 + 0xb8" (identifier "param_2") (+ "+") (number_literal "0xb8")) () ")")))) (, ",") (binary_expression "param_2 + 0xc0" (identifier "param_2") (+ "+") (number_literal "0xc0")) (, ",") (pointer_expression "*(undefined2 *)(param_2 + 0x22)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0x22)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x22)" (( "(") (binary_expression "param_2 + 0x22" (identifier "param_2") (+ "+") (number_literal "0x22")) () ")")))) (, ",") (pointer_expression "*(undefined1 *)(param_2 + 0x25)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0x25)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x25)" (( "(") (binary_expression "param_2 + 0x25" (identifier "param_2") (+ "+") (number_literal "0x25")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_2 + 8) & 0x20) != 0) {\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 8) & 0x20) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 8) & 0x20) != 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 0x20)" (( "(") (binary_expression "*(byte *)(param_2 + 8) & 0x20" (pointer_expression "*(byte *)(param_2 + 8)" (* "*") (cast_expression "(byte *)(param_2 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));\n    }" ({ "{") (expression_statement "FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));" (call_expression "FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25))" (identifier "FUN_00125563") (argument_list "(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25))" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 + 0xca" (identifier "param_2") (+ "+") (number_literal "0xca")) (, ",") (pointer_expression "*(undefined1 *)(param_2 + 0x25)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0x25)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x25)" (( "(") (binary_expression "param_2 + 0x25" (identifier "param_2") (+ "+") (number_literal "0x25")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_2 + 10) & 1) != 0) {\n      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\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      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));\n    }" ({ "{") (expression_statement "FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));" (call_expression "FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec))" (identifier "FUN_001256c8") (argument_list "(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)(param_2 + 0xf0)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0xf0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xf0)" (( "(") (binary_expression "param_2 + 0xf0" (identifier "param_2") (+ "+") (number_literal "0xf0")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0xec)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xec)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xec)" (( "(") (binary_expression "param_2 + 0xec" (identifier "param_2") (+ "+") (number_literal "0xec")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_2 + 8) & 0x40) != 0) {\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 8) & 0x40) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 8) & 0x40) != 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 0x40)" (( "(") (binary_expression "*(byte *)(param_2 + 8) & 0x40" (pointer_expression "*(byte *)(param_2 + 8)" (* "*") (cast_expression "(byte *)(param_2 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));\n    }" ({ "{") (expression_statement "FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));" (call_expression "FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20))" (identifier "FUN_00125754") (argument_list "(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)(param_2 + 0x100)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x100)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x100)" (( "(") (binary_expression "param_2 + 0x100" (identifier "param_2") (+ "+") (number_literal "0x100")) () ")")))) (, ",") (pointer_expression "*(undefined2 *)(param_2 + 0x20)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0x20)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_2 + 9) & 1) != 0) {\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 9) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 9) & 1) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 1)" (( "(") (binary_expression "*(byte *)(param_2 + 9) & 1" (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 "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));\n    }" ({ "{") (expression_statement "FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc));" (call_expression "FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc))" (identifier "FUN_00125cd2") (argument_list "(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),\n                   *(undefined1 *)(param_2 + 0xdc))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0xd4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xd4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd4)" (( "(") (binary_expression "param_2 + 0xd4" (identifier "param_2") (+ "+") (number_literal "0xd4")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0xd8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xd8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd8)" (( "(") (binary_expression "param_2 + 0xd8" (identifier "param_2") (+ "+") (number_literal "0xd8")) () ")")))) (, ",") (pointer_expression "*(undefined1 *)(param_2 + 0xdc)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0xdc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xdc)" (( "(") (binary_expression "param_2 + 0xdc" (identifier "param_2") (+ "+") (number_literal "0xdc")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_2 + 9) & 4) != 0) {\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 9) & 4) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 9) & 4) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 4)" (( "(") (binary_expression "*(byte *)(param_2 + 9) & 4" (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 "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));\n    }" ({ "{") (expression_statement "FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120));" (call_expression "FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120))" (identifier "FUN_00125d64") (argument_list "(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),\n                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),\n                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),\n                   *(undefined8 *)(param_2 + 0x120))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)(param_2 + 0x108)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x108)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x108)" (( "(") (binary_expression "param_2 + 0x108" (identifier "param_2") (+ "+") (number_literal "0x108")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x110)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x110)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x110)" (( "(") (binary_expression "param_2 + 0x110" (identifier "param_2") (+ "+") (number_literal "0x110")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0x114)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x114)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x114)" (( "(") (binary_expression "param_2 + 0x114" (identifier "param_2") (+ "+") (number_literal "0x114")) () ")")))) (, ",") (pointer_expression "*(undefined1 *)(param_2 + 0x128)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0x128)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x128)" (( "(") (binary_expression "param_2 + 0x128" (identifier "param_2") (+ "+") (number_literal "0x128")) () ")")))) (, ",") (pointer_expression "*(undefined1 *)(param_2 + 0x129)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0x129)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x129)" (( "(") (binary_expression "param_2 + 0x129" (identifier "param_2") (+ "+") (number_literal "0x129")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_2 + 0x118)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x118)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x118)" (( "(") (binary_expression "param_2 + 0x118" (identifier "param_2") (+ "+") (number_literal "0x118")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_2 + 0x120)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x120)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x120)" (( "(") (binary_expression "param_2 + 0x120" (identifier "param_2") (+ "+") (number_literal "0x120")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_2 + 9) & 0x40) != 0) {\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 9) & 0x40) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 9) & 0x40) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 0x40)" (( "(") (binary_expression "*(byte *)(param_2 + 9) & 0x40" (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 "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));\n    }" ({ "{") (expression_statement "FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158));" (call_expression "FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158))" (identifier "FUN_00125fc9") (argument_list "(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),\n                   *(undefined8 *)(param_2 + 0x158))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined1 *)(param_2 + 0x14c)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0x14c)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14c)" (( "(") (binary_expression "param_2 + 0x14c" (identifier "param_2") (+ "+") (number_literal "0x14c")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_2 + 0x150)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x150)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x150)" (( "(") (binary_expression "param_2 + 0x150" (identifier "param_2") (+ "+") (number_literal "0x150")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_2 + 0x158)" (* "*") (cast_expression "(undefined8 *)(param_2 + 0x158)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x158)" (( "(") (binary_expression "param_2 + 0x158" (identifier "param_2") (+ "+") (number_literal "0x158")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_2 + 8) & 0x80) != 0) {\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_2 + 8) & 0x80) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 8) & 0x80) != 0" (parenthesized_expression "(*(byte *)(param_2 + 8) & 0x80)" (( "(") (binary_expression "*(byte *)(param_2 + 8) & 0x80" (pointer_expression "*(byte *)(param_2 + 8)" (* "*") (cast_expression "(byte *)(param_2 + 8)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x80")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));\n    }" ({ "{") (expression_statement "FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8));" (call_expression "FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8))" (identifier "FUN_00126096") (argument_list "(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),\n                   *(undefined1 *)(param_2 + 0xe8))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0xe0)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xe0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xe0)" (( "(") (binary_expression "param_2 + 0xe0" (identifier "param_2") (+ "+") (number_literal "0xe0")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_2 + 0xe4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xe4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xe4)" (( "(") (binary_expression "param_2 + 0xe4" (identifier "param_2") (+ "+") (number_literal "0xe4")) () ")")))) (, ",") (pointer_expression "*(undefined1 *)(param_2 + 0xe8)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0xe8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xe8)" (( "(") (binary_expression "param_2 + 0xe8" (identifier "param_2") (+ "+") (number_literal "0xe8")) () ")")))) () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(param_2 + 9) & 2) != 0) {\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }" (if "if") (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")) () ")")) (compound_statement "{\n      FUN_00126128(param_1,param_2 + 0xa8);\n      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;\n    }" ({ "{") (expression_statement "FUN_00126128(param_1,param_2 + 0xa8);" (call_expression "FUN_00126128(param_1,param_2 + 0xa8)" (identifier "FUN_00126128") (argument_list "(param_1,param_2 + 0xa8)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 + 0xa8" (identifier "param_2") (+ "+") (number_literal "0xa8")) () ")"))) (; ";")) (expression_statement "*(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;" (assignment_expression "*(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200" (pointer_expression "*(uint *)(param_1 + 300)" (* "*") (cast_expression "(uint *)(param_1 + 300)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 300) | 0x200" (pointer_expression "*(uint *)(param_1 + 300)" (* "*") (cast_expression "(uint *)(param_1 + 300)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 300)" (( "(") (binary_expression "param_1 + 300" (identifier "param_1") (+ "+") (number_literal "300")) () ")")))) (| "|") (number_literal "0x200"))) (; ";")) (} "}"))) (if_statement "if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }" (if "if") (parenthesized_expression "(((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148)))" (( "(") (binary_expression "((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))" (parenthesized_expression "((*(byte *)(param_2 + 9) & 0x20) != 0)" (( "(") (binary_expression "(*(byte *)(param_2 + 9) & 0x20) != 0" (parenthesized_expression "(*(byte *)(param_2 + 9) & 0x20)" (( "(") (binary_expression "*(byte *)(param_2 + 9) & 0x20" (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 "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(0 < *(int *)(param_2 + 0x148))" (( "(") (binary_expression "0 < *(int *)(param_2 + 0x148)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_2 + 0x148)" (* "*") (cast_expression "(int *)(param_2 + 0x148)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x148)" (( "(") (binary_expression "param_2 + 0x148" (identifier "param_2") (+ "+") (number_literal "0x148")) () ")"))))) () ")"))) () ")")) (compound_statement "{\n      lVar5 = 0;\n      do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));\n    }" ({ "{") (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" (identifier "lVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      } while ((int)lVar5 < *(int *)(param_2 + 0x148));" (do "do") (compound_statement "{\n        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));\n        lVar5 = lVar5 + 1;\n      }" ({ "{") (expression_statement "FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));" (call_expression "FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140))" (identifier "FUN_001250ea") (argument_list "(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140))" (( "(") (identifier "param_1") (, ",") (binary_expression "lVar5 * 0x20 + *(long *)(param_2 + 0x140)" (binary_expression "lVar5 * 0x20" (identifier "lVar5") (* "*") (number_literal "0x20")) (+ "+") (pointer_expression "*(long *)(param_2 + 0x140)" (* "*") (cast_expression "(long *)(param_2 + 0x140)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x140)" (( "(") (binary_expression "param_2 + 0x140" (identifier "param_2") (+ "+") (number_literal "0x140")) () ")"))))) () ")"))) (; ";")) (expression_statement "lVar5 = lVar5 + 1;" (assignment_expression "lVar5 = lVar5 + 1" (identifier "lVar5") (= "=") (binary_expression "lVar5 + 1" (identifier "lVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)lVar5 < *(int *)(param_2 + 0x148))" (( "(") (binary_expression "(int)lVar5 < *(int *)(param_2 + 0x148)" (cast_expression "(int)lVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar5")) (< "<") (pointer_expression "*(int *)(param_2 + 0x148)" (* "*") (cast_expression "(int *)(param_2 + 0x148)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x148)" (( "(") (binary_expression "param_2 + 0x148" (identifier "param_2") (+ "+") (number_literal "0x148")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" (identifier "lVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < *(int *)(param_2 + 0x94)) {\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }" (if "if") (parenthesized_expression "(0 < *(int *)(param_2 + 0x94))" (( "(") (binary_expression "0 < *(int *)(param_2 + 0x94)" (number_literal "0") (< "<") (pointer_expression "*(int *)(param_2 + 0x94)" (* "*") (cast_expression "(int *)(param_2 + 0x94)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x94)" (( "(") (binary_expression "param_2 + 0x94" (identifier "param_2") (+ "+") (number_literal "0x94")) () ")"))))) () ")")) (compound_statement "{\n      do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));\n    }" ({ "{") (do_statement "do {\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      } while (iVar6 < *(int *)(param_2 + 0x94));" (do "do") (compound_statement "{\n        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n        iVar1 = *piVar2;\n        if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }\n        iVar6 = iVar6 + 1;\n        lVar5 = lVar5 + 0x38;\n      }" ({ "{") (expression_statement "piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));" (assignment_expression "piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0))" (identifier "piVar2") (= "=") (cast_expression "(int *)(lVar5 + *(long *)(param_2 + 0xa0))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + *(long *)(param_2 + 0xa0))" (( "(") (binary_expression "lVar5 + *(long *)(param_2 + 0xa0)" (identifier "lVar5") (+ "+") (pointer_expression "*(long *)(param_2 + 0xa0)" (* "*") (cast_expression "(long *)(param_2 + 0xa0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xa0)" (( "(") (binary_expression "param_2 + 0xa0" (identifier "param_2") (+ "+") (number_literal "0xa0")) () ")"))))) () ")")))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (if_statement "if (iVar1 < 1) {\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }\n        else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }" (if "if") (parenthesized_expression "(iVar1 < 1)" (( "(") (binary_expression "iVar1 < 1" (identifier "iVar1") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n          if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }\n        }" ({ "{") (if_statement "if (iVar1 == 0) {\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }\n          else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;\n          }" ({ "{") (expression_statement "FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);" (call_expression "FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0)" (identifier "FUN_001258f5") (argument_list "(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)(piVar2 + 2)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 2)" (( "(") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(piVar2 + 4)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 4)" (( "(") (binary_expression "piVar2 + 4" (identifier "piVar2") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;" (assignment_expression "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe" (pointer_expression "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5)" (* "*") (cast_expression "(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_2 + 0xa0) + lVar5)" (( "(") (binary_expression "*(long *)(param_2 + 0xa0) + lVar5" (pointer_expression "*(long *)(param_2 + 0xa0)" (* "*") (cast_expression "(long *)(param_2 + 0xa0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xa0)" (( "(") (binary_expression "param_2 + 0xa0" (identifier "param_2") (+ "+") (number_literal "0xa0")) () ")")))) (+ "+") (identifier "lVar5")) () ")")))) (= "=") (number_literal "0xfffffffe")) (; ";")) (} "}")) (else_clause "else if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }" (else "else") (if_statement "if (iVar1 == -1) {\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);\n            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;\n          }" ({ "{") (expression_statement "FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);" (call_expression "FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0)" (identifier "FUN_001257fc") (argument_list "(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0)" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined8 *)(piVar2 + 2)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 2)" (( "(") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(piVar2 + 4)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 4)" (( "(") (binary_expression "piVar2 + 4" (identifier "piVar2") (+ "+") (number_literal "4")) () ")")))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;" (assignment_expression "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd" (pointer_expression "*(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5)" (* "*") (cast_expression "(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_2 + 0xa0) + lVar5)" (( "(") (binary_expression "*(long *)(param_2 + 0xa0) + lVar5" (pointer_expression "*(long *)(param_2 + 0xa0)" (* "*") (cast_expression "(long *)(param_2 + 0xa0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xa0)" (( "(") (binary_expression "param_2 + 0xa0" (identifier "param_2") (+ "+") (number_literal "0xa0")) () ")")))) (+ "+") (identifier "lVar5")) () ")")))) (= "=") (number_literal "0xfffffffd")) (; ";")) (} "}"))))) (} "}")) (else_clause "else {\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }" (else "else") (compound_statement "{\n          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));\n          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));\n          *piVar2 = (*piVar2 != -1) - 3;\n        }" ({ "{") (expression_statement "FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));" (call_expression "FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4))" (identifier "FUN_00125a28") (argument_list "(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),\n                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4))" (( "(") (identifier "param_1") (, ",") (identifier "iVar1") (, ",") (pointer_expression "*(undefined8 *)(piVar2 + 2)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 2)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 2)" (( "(") (binary_expression "piVar2 + 2" (identifier "piVar2") (+ "+") (number_literal "2")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(piVar2 + 10)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 10)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 10)" (( "(") (binary_expression "piVar2 + 10" (identifier "piVar2") (+ "+") (number_literal "10")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(piVar2 + 0xc)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 0xc)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 0xc)" (( "(") (binary_expression "piVar2 + 0xc" (identifier "piVar2") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(piVar2 + 4)" (* "*") (cast_expression "(undefined8 *)(piVar2 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar2 + 4)" (( "(") (binary_expression "piVar2 + 4" (identifier "piVar2") (+ "+") (number_literal "4")) () ")")))) () ")"))) (; ";")) (expression_statement "piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));" (assignment_expression "piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0))" (identifier "piVar2") (= "=") (cast_expression "(int *)(lVar5 + *(long *)(param_2 + 0xa0))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar5 + *(long *)(param_2 + 0xa0))" (( "(") (binary_expression "lVar5 + *(long *)(param_2 + 0xa0)" (identifier "lVar5") (+ "+") (pointer_expression "*(long *)(param_2 + 0xa0)" (* "*") (cast_expression "(long *)(param_2 + 0xa0)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xa0)" (( "(") (binary_expression "param_2 + 0xa0" (identifier "param_2") (+ "+") (number_literal "0xa0")) () ")"))))) () ")")))) (; ";")) (expression_statement "*piVar2 = (*piVar2 != -1) - 3;" (assignment_expression "*piVar2 = (*piVar2 != -1) - 3" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (binary_expression "(*piVar2 != -1) - 3" (parenthesized_expression "(*piVar2 != -1)" (( "(") (binary_expression "*piVar2 != -1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "-1")) () ")")) (- "-") (number_literal "3"))) (; ";")) (} "}")))) (expression_statement "iVar6 = iVar6 + 1;" (assignment_expression "iVar6 = iVar6 + 1" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "lVar5 = lVar5 + 0x38;" (assignment_expression "lVar5 = lVar5 + 0x38" (identifier "lVar5") (= "=") (binary_expression "lVar5 + 0x38" (identifier "lVar5") (+ "+") (number_literal "0x38"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar6 < *(int *)(param_2 + 0x94))" (( "(") (binary_expression "iVar6 < *(int *)(param_2 + 0x94)" (identifier "iVar6") (< "<") (pointer_expression "*(int *)(param_2 + 0x94)" (* "*") (cast_expression "(int *)(param_2 + 0x94)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x94)" (( "(") (binary_expression "param_2 + 0x94" (identifier "param_2") (+ "+") (number_literal "0x94")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_00120fff(param_1,param_2,2);" (call_expression "FUN_00120fff(param_1,param_2,2)" (identifier "FUN_00120fff") (argument_list "(param_1,param_2,2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 var_1,type_2 var_2)

{
  int var_18;
  type_3 var_6;
  int *var_20;
  long var_7;
  int var_23;
  
  if ((var_1 != (type_1)0x0) && (var_2 != (type_2)0x0)) {
    var_3(var_1,var_2);
    if ((var_2->valid & 8) == 0) {
      if (var_2->color_type == '\x03') {
                    /* WARNING: Subroutine does not return */
        var_4(var_1,"Valid palette required for paletted images");
      }
    }
    else {
      var_5(var_1,var_2->palette,(type_3)var_2->num_palette);
    }
    if ((var_2->valid & 0x10) != 0) {
      if (((var_1->transformations & 0x80000) != 0) && (var_2->color_type == '\x03')) {
        var_6 = (type_3)var_2->num_trans;
        if (0x100 < var_6) {
          var_6 = 0x100;
        }
        if (var_2->num_trans != 0) {
          var_7 = 0;
          do {
            var_2->trans_alpha[var_7] = ~var_2->trans_alpha[var_7];
            var_7 = var_7 + 1;
          } while ((int)var_7 < (int)var_6);
        }
      }
      var_8(var_1,var_2->trans_alpha,&var_2->trans_color,(type_3)var_2->num_trans,
                     (type_3)var_2->color_type);
    }
    if ((var_2->valid & 0x20) != 0) {
      var_9(var_1,&var_2->background,(type_3)var_2->color_type);
    }
    if ((var_2->valid & 0x10000) != 0) {
      var_10(var_1,var_2->exif,var_2->num_exif);
    }
    if ((var_2->valid & 0x40) != 0) {
      var_11(var_1,var_2->hist,(type_3)var_2->num_palette);
    }
    if ((var_2->valid & 0x100) != 0) {
      var_12(var_1,var_2->x_offset,var_2->y_offset,(type_3)var_2->offset_unit_type)
      ;
    }
    if ((var_2->valid & 0x400) != 0) {
      var_13(var_1,var_2->pcal_purpose,var_2->pcal_X0,var_2->pcal_X1,
                     (type_3)var_2->pcal_type,(type_3)var_2->pcal_nparams,var_2->pcal_units,
                     var_2->pcal_params);
    }
    if ((var_2->valid & 0x4000) != 0) {
      var_14(var_1,(type_3)var_2->scal_unit,var_2->scal_s_width,
                       var_2->scal_s_height);
    }
    if ((var_2->valid & 0x80) != 0) {
      var_15(var_1,var_2->x_pixels_per_unit,var_2->y_pixels_per_unit,
                     (type_3)var_2->phys_unit_type);
    }
    if ((var_2->valid & 0x200) != 0) {
      var_16(var_1,&var_2->mod_time);
      var_1->mode = var_1->mode | 0x200;
    }
    if (((var_2->valid & 0x2000) != 0) && (0 < var_2->splt_palettes_num)) {
      var_7 = 0;
      do {
        var_17(var_1,var_2->splt_palettes + var_7);
        var_7 = var_7 + 1;
      } while ((int)var_7 < var_2->splt_palettes_num);
    }
    var_7 = 0;
    var_23 = 0;
    if (0 < var_2->num_text) {
      do {
        var_20 = (int *)((long)&var_2->text->var_18 + var_7);
        var_18 = *var_20;
        if (var_18 < 1) {
          if (var_18 == 0) {
            var_19(var_1,*(type_4 *)(var_20 + 2),*(type_4 *)(var_20 + 4)
                           ,0);
            *(type_5 *)((long)&var_2->text->var_18 + var_7) = 0xfffffffe;
          }
          else if (var_18 == -1) {
            var_21(var_1,*(type_4 *)(var_20 + 2),*(type_4 *)(var_20 + 4)
                           ,0);
            *(type_5 *)((long)&var_2->text->var_18 + var_7) = 0xfffffffd;
          }
        }
        else {
          var_22(var_1,var_18,*(type_4 *)(var_20 + 2),
                         *(type_4 *)(var_20 + 10),*(type_4 *)(var_20 + 0xc),
                         *(type_4 *)(var_20 + 4));
          var_20 = (int *)((long)&var_2->text->var_18 + var_7);
          *var_20 = (*var_20 != -1) - 3;
        }
        var_23 = var_23 + 1;
        var_7 = var_7 + 0x38;
      } while (var_23 < var_2->num_text);
    }
    var_24(var_1,var_2,2);
    return;
  }
  return;
}


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

void MASKED(long param_1,long param_2)

{
  int iVar1;
  int *piVar2;
  uint uVar3;
  byte *pbVar4;
  long lVar5;
  int iVar6;
  
  if ((param_1 != 0) && (param_2 != 0)) {
    MASKED_before_PLTE();
    if ((*(byte *)(param_2 + 8) & 8) == 0) {
      if (*(char *)(param_2 + 0x25) == '\x03') {
                    /* WARNING: Subroutine does not return */
        png_error(param_1,"Valid palette required for paletted images");
      }
    }
    else {
      FUN_00124d6a(param_1,*(undefined8 *)(param_2 + 0x18),*(undefined2 *)(param_2 + 0x20));
    }
    if ((*(byte *)(param_2 + 8) & 0x10) != 0) {
      if (((*(byte *)(param_1 + 0x136) & 8) != 0) && (*(char *)(param_2 + 0x25) == '\x03')) {
        uVar3 = (uint)*(ushort *)(param_2 + 0x22);
        if (0x100 < uVar3) {
          uVar3 = 0x100;
        }
        if (*(ushort *)(param_2 + 0x22) != 0) {
          lVar5 = 0;
          do {
            pbVar4 = (byte *)(lVar5 + *(long *)(param_2 + 0xb8));
            *pbVar4 = ~*pbVar4;
            lVar5 = lVar5 + 1;
          } while ((int)lVar5 < (int)uVar3);
        }
      }
      FUN_0012540d(param_1,*(undefined8 *)(param_2 + 0xb8),param_2 + 0xc0,
                   *(undefined2 *)(param_2 + 0x22),*(undefined1 *)(param_2 + 0x25));
    }
    if ((*(byte *)(param_2 + 8) & 0x20) != 0) {
      FUN_00125563(param_1,param_2 + 0xca,*(undefined1 *)(param_2 + 0x25));
    }
    if ((*(byte *)(param_2 + 10) & 1) != 0) {
      FUN_001256c8(param_1,*(undefined8 *)(param_2 + 0xf0),*(undefined4 *)(param_2 + 0xec));
    }
    if ((*(byte *)(param_2 + 8) & 0x40) != 0) {
      FUN_00125754(param_1,*(undefined8 *)(param_2 + 0x100),*(undefined2 *)(param_2 + 0x20));
    }
    if ((*(byte *)(param_2 + 9) & 1) != 0) {
      FUN_00125cd2(param_1,*(undefined4 *)(param_2 + 0xd4),*(undefined4 *)(param_2 + 0xd8),
                   *(undefined1 *)(param_2 + 0xdc));
    }
    if ((*(byte *)(param_2 + 9) & 4) != 0) {
      FUN_00125d64(param_1,*(undefined8 *)(param_2 + 0x108),*(undefined4 *)(param_2 + 0x110),
                   *(undefined4 *)(param_2 + 0x114),*(undefined1 *)(param_2 + 0x128),
                   *(undefined1 *)(param_2 + 0x129),*(undefined8 *)(param_2 + 0x118),
                   *(undefined8 *)(param_2 + 0x120));
    }
    if ((*(byte *)(param_2 + 9) & 0x40) != 0) {
      FUN_00125fc9(param_1,*(undefined1 *)(param_2 + 0x14c),*(undefined8 *)(param_2 + 0x150),
                   *(undefined8 *)(param_2 + 0x158));
    }
    if ((*(byte *)(param_2 + 8) & 0x80) != 0) {
      FUN_00126096(param_1,*(undefined4 *)(param_2 + 0xe0),*(undefined4 *)(param_2 + 0xe4),
                   *(undefined1 *)(param_2 + 0xe8));
    }
    if ((*(byte *)(param_2 + 9) & 2) != 0) {
      FUN_00126128(param_1,param_2 + 0xa8);
      *(uint *)(param_1 + 300) = *(uint *)(param_1 + 300) | 0x200;
    }
    if (((*(byte *)(param_2 + 9) & 0x20) != 0) && (0 < *(int *)(param_2 + 0x148))) {
      lVar5 = 0;
      do {
        FUN_001250ea(param_1,lVar5 * 0x20 + *(long *)(param_2 + 0x140));
        lVar5 = lVar5 + 1;
      } while ((int)lVar5 < *(int *)(param_2 + 0x148));
    }
    lVar5 = 0;
    iVar6 = 0;
    if (0 < *(int *)(param_2 + 0x94)) {
      do {
        piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));
        iVar1 = *piVar2;
        if (iVar1 < 1) {
          if (iVar1 == 0) {
            FUN_001258f5(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);
            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffe;
          }
          else if (iVar1 == -1) {
            FUN_001257fc(param_1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 4),0);
            *(undefined4 *)(*(long *)(param_2 + 0xa0) + lVar5) = 0xfffffffd;
          }
        }
        else {
          FUN_00125a28(param_1,iVar1,*(undefined8 *)(piVar2 + 2),*(undefined8 *)(piVar2 + 10),
                       *(undefined8 *)(piVar2 + 0xc),*(undefined8 *)(piVar2 + 4));
          piVar2 = (int *)(lVar5 + *(long *)(param_2 + 0xa0));
          *piVar2 = (*piVar2 != -1) - 3;
        }
        iVar6 = iVar6 + 1;
        lVar5 = lVar5 + 0x38;
      } while (iVar6 < *(int *)(param_2 + 0x94));
    }
    FUN_00120fff(param_1,param_2,2);
    return;
  }
  return;
}

