
void png_read_finish_row(png_structrp png_ptr)

{
  undefined *puVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  png_byte pVar7;
  
  uVar2 = png_ptr->row_number + 1;
  png_ptr->row_number = uVar2;
  if (png_ptr->num_rows <= uVar2) {
    if (png_ptr->interlaced == '\0') {
LAB_0003356c:
      png_read_finish_IDAT(png_ptr);
    }
    else {
      png_ptr->row_number = 0;
      (*(code *)PTR_memset_00056398)(png_ptr->prev_row,0,png_ptr->rowbytes + 1);
      puVar1 = PTR_LAB_0005601c;
      uVar2 = png_ptr->pass + 1 & 0xff;
      do {
        while( true ) {
          pVar7 = (png_byte)uVar2;
          if (6 < (uVar2 & 0xff)) {
            png_ptr->pass = pVar7;
            goto LAB_0003356c;
          }
          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];
          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];
          if (uVar6 == 0) {
            trap(7);
          }
          png_ptr->iwidth = uVar4 / uVar6;
          if ((png_ptr->transformations & 2) != 0) {
            png_ptr->pass = pVar7;
            return;
          }
          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];
          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];
          if (uVar5 == 0) {
            trap(7);
          }
          png_ptr->num_rows = uVar3 / uVar5;
          if (uVar5 <= uVar3) break;
          uVar2 = uVar2 + 1;
        }
        uVar2 = uVar2 + 1;
      } while (uVar4 < uVar6);
      png_ptr->pass = pVar7;
    }
  }
  return;
}



void FUN_00033434(int param_1)

{
  undefined *puVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  undefined1 uVar7;
  
  uVar2 = *(int *)(param_1 + 0x1c8) + 1;
  *(uint *)(param_1 + 0x1c8) = uVar2;
  if (*(uint *)(param_1 + 0x1b8) <= uVar2) {
    if (*(char *)(param_1 + 0x1fc) == '\0') {
LAB_0003356c:
      FUN_0003337c(param_1);
    }
    else {
      *(undefined4 *)(param_1 + 0x1c8) = 0;
      (*(code *)PTR_memset_00056398)
                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);
      puVar1 = PTR_LAB_0005601c;
      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;
      do {
        while( true ) {
          uVar7 = (undefined1)uVar2;
          if (6 < (uVar2 & 0xff)) {
            *(undefined1 *)(param_1 + 0x1fd) = uVar7;
            goto LAB_0003356c;
          }
          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];
          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];
          if (uVar6 == 0) {
            trap(7);
          }
          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;
          if ((*(uint *)(param_1 + 300) & 2) != 0) {
            *(undefined1 *)(param_1 + 0x1fd) = uVar7;
            return;
          }
          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];
          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];
          if (uVar5 == 0) {
            trap(7);
          }
          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;
          if (uVar5 <= uVar3) break;
          uVar2 = uVar2 + 1;
        }
        uVar2 = uVar2 + 1;
      } while (uVar4 < uVar6);
      *(undefined1 *)(param_1 + 0x1fd) = uVar7;
    }
  }
  return;
}


lui gp,0x3
addiu gp,gp,-0x5444
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
lw v0,0x1c8(a0)
addiu v0,v0,0x1
sw v0,0x1c8(a0)
lw v1,0x1b8(a0)
sltu v0,v0,v1
bne v0,zero,0x00033584
_lw ra,0x1c(sp)
lbu v0,0x1fc(a0)
beq v0,zero,0x0003356c
_or s0,a0,zero
sw zero,0x1c8(a0)
lw a2,0x1c0(a0)
addiu a2,a2,0x1
or a1,zero,zero
lw a0,0x1d0(a0)
lw t9,-0x7c58(gp)
jalr t9
_nop
lw gp,0x10(sp)
lbu a0,0x1fd(s0)
addiu a0,a0,0x1
andi a0,a0,0xff
lw t1,-0x7fd4(gp)
addiu t1,t1,0x3e18
lw t0,-0x7fd4(gp)
addiu t0,t0,0x3e10
lw t3,-0x7fd4(gp)
addiu t3,t3,0x3e08
lw t2,-0x7fd4(gp)
b 0x000334d0
_addiu t2,t2,0x3e00
addiu a0,a0,0x1
andi a3,a0,0xff
sltiu v0,a3,0x7
beq v0,zero,0x00033568
_addu v0,t1,a0
lbu a2,0x0(v0)
lw v1,0x1b0(s0)
addiu v1,v1,-0x1
addu v1,v1,a2
addu v0,t0,a0
lbu v0,0x0(v0)
subu v1,v1,v0
teq a2,zero
divu v1,a2
mflo v0
sw v0,0x1c4(s0)
lw v0,0x12c(s0)
andi v0,v0,0x2
bne v0,zero,0x00033590
_addu v0,t3,a0
lbu a1,0x0(v0)
lw v0,0x1b4(s0)
addiu v0,v0,-0x1
addu v0,v0,a1
addu t4,t2,a0
lbu t4,0x0(t4)
subu v0,v0,t4
teq a1,zero
divu v0,a1
mflo t4
sltu v0,v0,a1
bne v0,zero,0x000334cc
_sw t4,0x1b8(s0)
sltu v1,v1,a2
bne v1,zero,0x000334d0
_addiu a0,a0,0x1
addiu a0,a0,-0x1
b 0x00033580
_sb a3,0x1fd(s0)
sb a3,0x1fd(s0)
or a0,s0,zero
lw t9,-0x7e54(gp)
bal 0x0003337c
_nop
lw gp,0x10(sp)
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
b 0x00033580
_sb a3,0x1fd(s0)
(translation_unit "void FUN_00033434(int param_1)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 uVar7;\n  \n  uVar2 = *(int *)(param_1 + 0x1c8) + 1;\n  *(uint *)(param_1 + 0x1c8) = uVar2;\n  if (*(uint *)(param_1 + 0x1b8) <= uVar2) {\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00033434(int param_1)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 uVar7;\n  \n  uVar2 = *(int *)(param_1 + 0x1c8) + 1;\n  *(uint *)(param_1 + 0x1c8) = uVar2;\n  if (*(uint *)(param_1 + 0x1b8) <= uVar2) {\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00033434(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 uVar7;\n  \n  uVar2 = *(int *)(param_1 + 0x1c8) + 1;\n  *(uint *)(param_1 + 0x1c8) = uVar2;\n  if (*(uint *)(param_1 + 0x1b8) <= uVar2) {\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined1 uVar7;" type_identifier identifier ;) (expression_statement "uVar2 = *(int *)(param_1 + 0x1c8) + 1;" (assignment_expression "uVar2 = *(int *)(param_1 + 0x1c8) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x1c8) + 1" (pointer_expression "*(int *)(param_1 + 0x1c8)" * (cast_expression "(int *)(param_1 + 0x1c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c8)" ( (binary_expression "param_1 + 0x1c8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x1c8) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x1c8) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x1c8)" * (cast_expression "(uint *)(param_1 + 0x1c8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c8)" ( (binary_expression "param_1 + 0x1c8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)(param_1 + 0x1b8) <= uVar2) {\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 0x1b8) <= uVar2)" ( (binary_expression "*(uint *)(param_1 + 0x1b8) <= uVar2" (pointer_expression "*(uint *)(param_1 + 0x1b8)" * (cast_expression "(uint *)(param_1 + 0x1b8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b8)" ( (binary_expression "param_1 + 0x1b8" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }" { (if_statement "if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0x1fc) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x1fc) == '\0'" (pointer_expression "*(char *)(param_1 + 0x1fc)" * (cast_expression "(char *)(param_1 + 0x1fc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1fc)" ( (binary_expression "param_1 + 0x1fc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }" { (labeled_statement "LAB_0003356c:\n      FUN_0003337c(param_1);" statement_identifier : (expression_statement "FUN_0003337c(param_1);" (call_expression "FUN_0003337c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) }) (else_clause "else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }" else (compound_statement "{\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x1c8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1c8)" * (cast_expression "(undefined4 *)(param_1 + 0x1c8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c8)" ( (binary_expression "param_1 + 0x1c8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);" (call_expression "(*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1)" (parenthesized_expression "(*(code *)PTR_memset_00056398)" ( (pointer_expression "*(code *)PTR_memset_00056398" * (cast_expression "(code *)PTR_memset_00056398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1d0)" * (cast_expression "(undefined4 *)(param_1 + 0x1d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1d0)" ( (binary_expression "param_1 + 0x1d0" identifier + number_literal) )))) , number_literal , (binary_expression "*(int *)(param_1 + 0x1c0) + 1" (pointer_expression "*(int *)(param_1 + 0x1c0)" * (cast_expression "(int *)(param_1 + 0x1c0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c0)" ( (binary_expression "param_1 + 0x1c0" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "puVar1 = PTR_LAB_0005601c;" (assignment_expression "puVar1 = PTR_LAB_0005601c" identifier = identifier) ;) (expression_statement "uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;" (assignment_expression "uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff" identifier = (binary_expression "*(byte *)(param_1 + 0x1fd) + 1 & 0xff" (binary_expression "*(byte *)(param_1 + 0x1fd) + 1" (pointer_expression "*(byte *)(param_1 + 0x1fd)" * (cast_expression "(byte *)(param_1 + 0x1fd)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1fd)" ( (binary_expression "param_1 + 0x1fd" identifier + number_literal) )))) + number_literal) & number_literal)) ;) (do_statement "do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);" do (compound_statement "{\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      }" { (while_statement "while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }" { (expression_statement "uVar7 = (undefined1)uVar2;" (assignment_expression "uVar7 = (undefined1)uVar2" identifier = (cast_expression "(undefined1)uVar2" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (if_statement "if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }" if (parenthesized_expression "(6 < (uVar2 & 0xff))" ( (binary_expression "6 < (uVar2 & 0xff)" number_literal < (parenthesized_expression "(uVar2 & 0xff)" ( (binary_expression "uVar2 & 0xff" identifier & number_literal) ))) )) (compound_statement "{\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }" { (expression_statement "*(undefined1 *)(param_1 + 0x1fd) = uVar7;" (assignment_expression "*(undefined1 *)(param_1 + 0x1fd) = uVar7" (pointer_expression "*(undefined1 *)(param_1 + 0x1fd)" * (cast_expression "(undefined1 *)(param_1 + 0x1fd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1fd)" ( (binary_expression "param_1 + 0x1fd" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_0003356c;" goto statement_identifier ;) })) (expression_statement "uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];" (assignment_expression "uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18]" identifier = (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e18]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[uVar2 + 0x3e18]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[uVar2 + 0x3e18]" identifier [ (binary_expression "uVar2 + 0x3e18" identifier + number_literal) ])))) ;) (expression_statement "uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];" (assignment_expression "uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10]" identifier = (binary_expression "(*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10]" (parenthesized_expression "(*(int *)(param_1 + 0x1b0) + -1 + uVar6)" ( (binary_expression "*(int *)(param_1 + 0x1b0) + -1 + uVar6" (binary_expression "*(int *)(param_1 + 0x1b0) + -1" (pointer_expression "*(int *)(param_1 + 0x1b0)" * (cast_expression "(int *)(param_1 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b0)" ( (binary_expression "param_1 + 0x1b0" identifier + number_literal) )))) + number_literal) + identifier) )) - (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e10]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[uVar2 + 0x3e10]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[uVar2 + 0x3e10]" identifier [ (binary_expression "uVar2 + 0x3e10" identifier + number_literal) ]))))) ;) (if_statement "if (uVar6 == 0) {\n            trap(7);\n          }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            trap(7);\n          }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "*(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;" (assignment_expression "*(uint *)(param_1 + 0x1c4) = uVar4 / uVar6" (pointer_expression "*(uint *)(param_1 + 0x1c4)" * (cast_expression "(uint *)(param_1 + 0x1c4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c4)" ( (binary_expression "param_1 + 0x1c4" identifier + number_literal) )))) = (binary_expression "uVar4 / uVar6" identifier / identifier)) ;) (if_statement "if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }" if (parenthesized_expression "((*(uint *)(param_1 + 300) & 2) != 0)" ( (binary_expression "(*(uint *)(param_1 + 300) & 2) != 0" (parenthesized_expression "(*(uint *)(param_1 + 300) & 2)" ( (binary_expression "*(uint *)(param_1 + 300) & 2" (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) )) != number_literal) )) (compound_statement "{\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }" { (expression_statement "*(undefined1 *)(param_1 + 0x1fd) = uVar7;" (assignment_expression "*(undefined1 *)(param_1 + 0x1fd) = uVar7" (pointer_expression "*(undefined1 *)(param_1 + 0x1fd)" * (cast_expression "(undefined1 *)(param_1 + 0x1fd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1fd)" ( (binary_expression "param_1 + 0x1fd" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];" (assignment_expression "uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08]" identifier = (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e08]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[uVar2 + 0x3e08]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[uVar2 + 0x3e08]" identifier [ (binary_expression "uVar2 + 0x3e08" identifier + number_literal) ])))) ;) (expression_statement "uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];" (assignment_expression "uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00]" identifier = (binary_expression "(*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00]" (parenthesized_expression "(*(int *)(param_1 + 0x1b4) + -1 + uVar5)" ( (binary_expression "*(int *)(param_1 + 0x1b4) + -1 + uVar5" (binary_expression "*(int *)(param_1 + 0x1b4) + -1" (pointer_expression "*(int *)(param_1 + 0x1b4)" * (cast_expression "(int *)(param_1 + 0x1b4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b4)" ( (binary_expression "param_1 + 0x1b4" identifier + number_literal) )))) + number_literal) + identifier) )) - (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e00]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[uVar2 + 0x3e00]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[uVar2 + 0x3e00]" identifier [ (binary_expression "uVar2 + 0x3e00" identifier + number_literal) ]))))) ;) (if_statement "if (uVar5 == 0) {\n            trap(7);\n          }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n            trap(7);\n          }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "*(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;" (assignment_expression "*(uint *)(param_1 + 0x1b8) = uVar3 / uVar5" (pointer_expression "*(uint *)(param_1 + 0x1b8)" * (cast_expression "(uint *)(param_1 + 0x1b8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b8)" ( (binary_expression "param_1 + 0x1b8" identifier + number_literal) )))) = (binary_expression "uVar3 / uVar5" identifier / identifier)) ;) (if_statement "if (uVar5 <= uVar3) break;" if (parenthesized_expression "(uVar5 <= uVar3)" ( (binary_expression "uVar5 <= uVar3" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < uVar6)" ( (binary_expression "uVar4 < uVar6" identifier < identifier) )) ;) (expression_statement "*(undefined1 *)(param_1 + 0x1fd) = uVar7;" (assignment_expression "*(undefined1 *)(param_1 + 0x1fd) = uVar7" (pointer_expression "*(undefined1 *)(param_1 + 0x1fd)" * (cast_expression "(undefined1 *)(param_1 + 0x1fd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1fd)" ( (binary_expression "param_1 + 0x1fd" identifier + number_literal) )))) = identifier) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit "void png_read_finish_row(png_structrp png_ptr)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  png_byte pVar7;\n  \n  uVar2 = png_ptr->row_number + 1;\n  png_ptr->row_number = uVar2;\n  if (png_ptr->num_rows <= uVar2) {\n    if (png_ptr->interlaced == '\0') {\nLAB_0003356c:\n      png_read_finish_IDAT(png_ptr);\n    }\n    else {\n      png_ptr->row_number = 0;\n      (*(code *)PTR_memset_00056398)(png_ptr->prev_row,0,png_ptr->rowbytes + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = png_ptr->pass + 1 & 0xff;\n      do {\n        while( true ) {\n          pVar7 = (png_byte)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          png_ptr->iwidth = uVar4 / uVar6;\n          if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          png_ptr->num_rows = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      png_ptr->pass = pVar7;\n    }\n  }\n  return;\n}\n\n" (function_definition "void png_read_finish_row(png_structrp png_ptr)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  png_byte pVar7;\n  \n  uVar2 = png_ptr->row_number + 1;\n  png_ptr->row_number = uVar2;\n  if (png_ptr->num_rows <= uVar2) {\n    if (png_ptr->interlaced == '\0') {\nLAB_0003356c:\n      png_read_finish_IDAT(png_ptr);\n    }\n    else {\n      png_ptr->row_number = 0;\n      (*(code *)PTR_memset_00056398)(png_ptr->prev_row,0,png_ptr->rowbytes + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = png_ptr->pass + 1 & 0xff;\n      do {\n        while( true ) {\n          pVar7 = (png_byte)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          png_ptr->iwidth = uVar4 / uVar6;\n          if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          png_ptr->num_rows = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      png_ptr->pass = pVar7;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "png_read_finish_row(png_structrp png_ptr)" identifier (parameter_list "(png_structrp png_ptr)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  png_byte pVar7;\n  \n  uVar2 = png_ptr->row_number + 1;\n  png_ptr->row_number = uVar2;\n  if (png_ptr->num_rows <= uVar2) {\n    if (png_ptr->interlaced == '\0') {\nLAB_0003356c:\n      png_read_finish_IDAT(png_ptr);\n    }\n    else {\n      png_ptr->row_number = 0;\n      (*(code *)PTR_memset_00056398)(png_ptr->prev_row,0,png_ptr->rowbytes + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = png_ptr->pass + 1 & 0xff;\n      do {\n        while( true ) {\n          pVar7 = (png_byte)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          png_ptr->iwidth = uVar4 / uVar6;\n          if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          png_ptr->num_rows = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      png_ptr->pass = pVar7;\n    }\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "png_byte pVar7;" type_identifier identifier ;) (expression_statement "uVar2 = png_ptr->row_number + 1;" (assignment_expression "uVar2 = png_ptr->row_number + 1" identifier = (binary_expression "png_ptr->row_number + 1" (field_expression "png_ptr->row_number" identifier -> field_identifier) + number_literal)) ;) (expression_statement "png_ptr->row_number = uVar2;" (assignment_expression "png_ptr->row_number = uVar2" (field_expression "png_ptr->row_number" identifier -> field_identifier) = identifier) ;) (if_statement "if (png_ptr->num_rows <= uVar2) {\n    if (png_ptr->interlaced == '\0') {\nLAB_0003356c:\n      png_read_finish_IDAT(png_ptr);\n    }\n    else {\n      png_ptr->row_number = 0;\n      (*(code *)PTR_memset_00056398)(png_ptr->prev_row,0,png_ptr->rowbytes + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = png_ptr->pass + 1 & 0xff;\n      do {\n        while( true ) {\n          pVar7 = (png_byte)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          png_ptr->iwidth = uVar4 / uVar6;\n          if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          png_ptr->num_rows = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      png_ptr->pass = pVar7;\n    }\n  }" if (parenthesized_expression "(png_ptr->num_rows <= uVar2)" ( (binary_expression "png_ptr->num_rows <= uVar2" (field_expression "png_ptr->num_rows" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n    if (png_ptr->interlaced == '\0') {\nLAB_0003356c:\n      png_read_finish_IDAT(png_ptr);\n    }\n    else {\n      png_ptr->row_number = 0;\n      (*(code *)PTR_memset_00056398)(png_ptr->prev_row,0,png_ptr->rowbytes + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = png_ptr->pass + 1 & 0xff;\n      do {\n        while( true ) {\n          pVar7 = (png_byte)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          png_ptr->iwidth = uVar4 / uVar6;\n          if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          png_ptr->num_rows = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      png_ptr->pass = pVar7;\n    }\n  }" { (if_statement "if (png_ptr->interlaced == '\0') {\nLAB_0003356c:\n      png_read_finish_IDAT(png_ptr);\n    }\n    else {\n      png_ptr->row_number = 0;\n      (*(code *)PTR_memset_00056398)(png_ptr->prev_row,0,png_ptr->rowbytes + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = png_ptr->pass + 1 & 0xff;\n      do {\n        while( true ) {\n          pVar7 = (png_byte)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          png_ptr->iwidth = uVar4 / uVar6;\n          if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          png_ptr->num_rows = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      png_ptr->pass = pVar7;\n    }" if (parenthesized_expression "(png_ptr->interlaced == '\0')" ( (binary_expression "png_ptr->interlaced == '\0'" (field_expression "png_ptr->interlaced" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0003356c:\n      png_read_finish_IDAT(png_ptr);\n    }" { (labeled_statement "LAB_0003356c:\n      png_read_finish_IDAT(png_ptr);" statement_identifier : (expression_statement "png_read_finish_IDAT(png_ptr);" (call_expression "png_read_finish_IDAT(png_ptr)" identifier (argument_list "(png_ptr)" ( identifier ))) ;)) }) (else_clause "else {\n      png_ptr->row_number = 0;\n      (*(code *)PTR_memset_00056398)(png_ptr->prev_row,0,png_ptr->rowbytes + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = png_ptr->pass + 1 & 0xff;\n      do {\n        while( true ) {\n          pVar7 = (png_byte)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          png_ptr->iwidth = uVar4 / uVar6;\n          if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          png_ptr->num_rows = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      png_ptr->pass = pVar7;\n    }" else (compound_statement "{\n      png_ptr->row_number = 0;\n      (*(code *)PTR_memset_00056398)(png_ptr->prev_row,0,png_ptr->rowbytes + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = png_ptr->pass + 1 & 0xff;\n      do {\n        while( true ) {\n          pVar7 = (png_byte)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          png_ptr->iwidth = uVar4 / uVar6;\n          if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          png_ptr->num_rows = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      png_ptr->pass = pVar7;\n    }" { (expression_statement "png_ptr->row_number = 0;" (assignment_expression "png_ptr->row_number = 0" (field_expression "png_ptr->row_number" identifier -> field_identifier) = number_literal) ;) (expression_statement "(*(code *)PTR_memset_00056398)(png_ptr->prev_row,0,png_ptr->rowbytes + 1);" (call_expression "(*(code *)PTR_memset_00056398)(png_ptr->prev_row,0,png_ptr->rowbytes + 1)" (parenthesized_expression "(*(code *)PTR_memset_00056398)" ( (pointer_expression "*(code *)PTR_memset_00056398" * (cast_expression "(code *)PTR_memset_00056398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(png_ptr->prev_row,0,png_ptr->rowbytes + 1)" ( (field_expression "png_ptr->prev_row" identifier -> field_identifier) , number_literal , (binary_expression "png_ptr->rowbytes + 1" (field_expression "png_ptr->rowbytes" identifier -> field_identifier) + number_literal) ))) ;) (expression_statement "puVar1 = PTR_LAB_0005601c;" (assignment_expression "puVar1 = PTR_LAB_0005601c" identifier = identifier) ;) (expression_statement "uVar2 = png_ptr->pass + 1 & 0xff;" (assignment_expression "uVar2 = png_ptr->pass + 1 & 0xff" identifier = (binary_expression "png_ptr->pass + 1 & 0xff" (binary_expression "png_ptr->pass + 1" (field_expression "png_ptr->pass" identifier -> field_identifier) + number_literal) & number_literal)) ;) (do_statement "do {\n        while( true ) {\n          pVar7 = (png_byte)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          png_ptr->iwidth = uVar4 / uVar6;\n          if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          png_ptr->num_rows = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);" do (compound_statement "{\n        while( true ) {\n          pVar7 = (png_byte)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          png_ptr->iwidth = uVar4 / uVar6;\n          if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          png_ptr->num_rows = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      }" { (while_statement "while( true ) {\n          pVar7 = (png_byte)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          png_ptr->iwidth = uVar4 / uVar6;\n          if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          png_ptr->num_rows = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          pVar7 = (png_byte)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          png_ptr->iwidth = uVar4 / uVar6;\n          if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          png_ptr->num_rows = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }" { (expression_statement "pVar7 = (png_byte)uVar2;" (assignment_expression "pVar7 = (png_byte)uVar2" identifier = (cast_expression "(png_byte)uVar2" ( (type_descriptor "png_byte" type_identifier) ) identifier)) ;) (if_statement "if (6 < (uVar2 & 0xff)) {\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }" if (parenthesized_expression "(6 < (uVar2 & 0xff))" ( (binary_expression "6 < (uVar2 & 0xff)" number_literal < (parenthesized_expression "(uVar2 & 0xff)" ( (binary_expression "uVar2 & 0xff" identifier & number_literal) ))) )) (compound_statement "{\n            png_ptr->pass = pVar7;\n            goto LAB_0003356c;\n          }" { (expression_statement "png_ptr->pass = pVar7;" (assignment_expression "png_ptr->pass = pVar7" (field_expression "png_ptr->pass" identifier -> field_identifier) = identifier) ;) (goto_statement "goto LAB_0003356c;" goto statement_identifier ;) })) (expression_statement "uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];" (assignment_expression "uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18]" identifier = (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e18]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[uVar2 + 0x3e18]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[uVar2 + 0x3e18]" identifier [ (binary_expression "uVar2 + 0x3e18" identifier + number_literal) ])))) ;) (expression_statement "uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];" (assignment_expression "uVar4 = ((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10]" identifier = (binary_expression "((png_ptr->width - 1) + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10]" (parenthesized_expression "((png_ptr->width - 1) + uVar6)" ( (binary_expression "(png_ptr->width - 1) + uVar6" (parenthesized_expression "(png_ptr->width - 1)" ( (binary_expression "png_ptr->width - 1" (field_expression "png_ptr->width" identifier -> field_identifier) - number_literal) )) + identifier) )) - (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e10]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[uVar2 + 0x3e10]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[uVar2 + 0x3e10]" identifier [ (binary_expression "uVar2 + 0x3e10" identifier + number_literal) ]))))) ;) (if_statement "if (uVar6 == 0) {\n            trap(7);\n          }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            trap(7);\n          }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "png_ptr->iwidth = uVar4 / uVar6;" (assignment_expression "png_ptr->iwidth = uVar4 / uVar6" (field_expression "png_ptr->iwidth" identifier -> field_identifier) = (binary_expression "uVar4 / uVar6" identifier / identifier)) ;) (if_statement "if ((png_ptr->transformations & 2) != 0) {\n            png_ptr->pass = pVar7;\n            return;\n          }" if (parenthesized_expression "((png_ptr->transformations & 2) != 0)" ( (binary_expression "(png_ptr->transformations & 2) != 0" (parenthesized_expression "(png_ptr->transformations & 2)" ( (binary_expression "png_ptr->transformations & 2" (field_expression "png_ptr->transformations" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n            png_ptr->pass = pVar7;\n            return;\n          }" { (expression_statement "png_ptr->pass = pVar7;" (assignment_expression "png_ptr->pass = pVar7" (field_expression "png_ptr->pass" identifier -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];" (assignment_expression "uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08]" identifier = (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e08]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[uVar2 + 0x3e08]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[uVar2 + 0x3e08]" identifier [ (binary_expression "uVar2 + 0x3e08" identifier + number_literal) ])))) ;) (expression_statement "uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];" (assignment_expression "uVar3 = ((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00]" identifier = (binary_expression "((png_ptr->height - 1) + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00]" (parenthesized_expression "((png_ptr->height - 1) + uVar5)" ( (binary_expression "(png_ptr->height - 1) + uVar5" (parenthesized_expression "(png_ptr->height - 1)" ( (binary_expression "png_ptr->height - 1" (field_expression "png_ptr->height" identifier -> field_identifier) - number_literal) )) + identifier) )) - (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e00]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[uVar2 + 0x3e00]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[uVar2 + 0x3e00]" identifier [ (binary_expression "uVar2 + 0x3e00" identifier + number_literal) ]))))) ;) (if_statement "if (uVar5 == 0) {\n            trap(7);\n          }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n            trap(7);\n          }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "png_ptr->num_rows = uVar3 / uVar5;" (assignment_expression "png_ptr->num_rows = uVar3 / uVar5" (field_expression "png_ptr->num_rows" identifier -> field_identifier) = (binary_expression "uVar3 / uVar5" identifier / identifier)) ;) (if_statement "if (uVar5 <= uVar3) break;" if (parenthesized_expression "(uVar5 <= uVar3)" ( (binary_expression "uVar5 <= uVar3" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < uVar6)" ( (binary_expression "uVar4 < uVar6" identifier < identifier) )) ;) (expression_statement "png_ptr->pass = pVar7;" (assignment_expression "png_ptr->pass = pVar7" (field_expression "png_ptr->pass" identifier -> field_identifier) = identifier) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00033434(int param_1)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 uVar7;\n  \n  uVar2 = *(int *)(param_1 + 0x1c8) + 1;\n  *(uint *)(param_1 + 0x1c8) = uVar2;\n  if (*(uint *)(param_1 + 0x1b8) <= uVar2) {\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }\n  return;\n}\n\n" (function_definition "void FUN_00033434(int param_1)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 uVar7;\n  \n  uVar2 = *(int *)(param_1 + 0x1c8) + 1;\n  *(uint *)(param_1 + 0x1c8) = uVar2;\n  if (*(uint *)(param_1 + 0x1b8) <= uVar2) {\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00033434(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 uVar7;\n  \n  uVar2 = *(int *)(param_1 + 0x1c8) + 1;\n  *(uint *)(param_1 + 0x1c8) = uVar2;\n  if (*(uint *)(param_1 + 0x1b8) <= uVar2) {\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "undefined1 uVar7;" type_identifier identifier ;) (expression_statement "uVar2 = *(int *)(param_1 + 0x1c8) + 1;" (assignment_expression "uVar2 = *(int *)(param_1 + 0x1c8) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x1c8) + 1" (pointer_expression "*(int *)(param_1 + 0x1c8)" * (cast_expression "(int *)(param_1 + 0x1c8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c8)" ( (binary_expression "param_1 + 0x1c8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x1c8) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x1c8) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x1c8)" * (cast_expression "(uint *)(param_1 + 0x1c8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c8)" ( (binary_expression "param_1 + 0x1c8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (*(uint *)(param_1 + 0x1b8) <= uVar2) {\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }" if (parenthesized_expression "(*(uint *)(param_1 + 0x1b8) <= uVar2)" ( (binary_expression "*(uint *)(param_1 + 0x1b8) <= uVar2" (pointer_expression "*(uint *)(param_1 + 0x1b8)" * (cast_expression "(uint *)(param_1 + 0x1b8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b8)" ( (binary_expression "param_1 + 0x1b8" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }" { (if_statement "if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }" if (parenthesized_expression "(*(char *)(param_1 + 0x1fc) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x1fc) == '\0'" (pointer_expression "*(char *)(param_1 + 0x1fc)" * (cast_expression "(char *)(param_1 + 0x1fc)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1fc)" ( (binary_expression "param_1 + 0x1fc" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }" { (labeled_statement "LAB_0003356c:\n      FUN_0003337c(param_1);" statement_identifier : (expression_statement "FUN_0003337c(param_1);" (call_expression "FUN_0003337c(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;)) }) (else_clause "else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }" else (compound_statement "{\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x1c8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1c8)" * (cast_expression "(undefined4 *)(param_1 + 0x1c8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c8)" ( (binary_expression "param_1 + 0x1c8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);" (call_expression "(*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1)" (parenthesized_expression "(*(code *)PTR_memset_00056398)" ( (pointer_expression "*(code *)PTR_memset_00056398" * (cast_expression "(code *)PTR_memset_00056398" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x1d0)" * (cast_expression "(undefined4 *)(param_1 + 0x1d0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1d0)" ( (binary_expression "param_1 + 0x1d0" identifier + number_literal) )))) , number_literal , (binary_expression "*(int *)(param_1 + 0x1c0) + 1" (pointer_expression "*(int *)(param_1 + 0x1c0)" * (cast_expression "(int *)(param_1 + 0x1c0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c0)" ( (binary_expression "param_1 + 0x1c0" identifier + number_literal) )))) + number_literal) ))) ;) (expression_statement "puVar1 = PTR_LAB_0005601c;" (assignment_expression "puVar1 = PTR_LAB_0005601c" identifier = identifier) ;) (expression_statement "uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;" (assignment_expression "uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff" identifier = (binary_expression "*(byte *)(param_1 + 0x1fd) + 1 & 0xff" (binary_expression "*(byte *)(param_1 + 0x1fd) + 1" (pointer_expression "*(byte *)(param_1 + 0x1fd)" * (cast_expression "(byte *)(param_1 + 0x1fd)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1fd)" ( (binary_expression "param_1 + 0x1fd" identifier + number_literal) )))) + number_literal) & number_literal)) ;) (do_statement "do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);" do (compound_statement "{\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      }" { (while_statement "while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }" { (expression_statement "uVar7 = (undefined1)uVar2;" (assignment_expression "uVar7 = (undefined1)uVar2" identifier = (cast_expression "(undefined1)uVar2" ( (type_descriptor "undefined1" type_identifier) ) identifier)) ;) (if_statement "if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }" if (parenthesized_expression "(6 < (uVar2 & 0xff))" ( (binary_expression "6 < (uVar2 & 0xff)" number_literal < (parenthesized_expression "(uVar2 & 0xff)" ( (binary_expression "uVar2 & 0xff" identifier & number_literal) ))) )) (compound_statement "{\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }" { (expression_statement "*(undefined1 *)(param_1 + 0x1fd) = uVar7;" (assignment_expression "*(undefined1 *)(param_1 + 0x1fd) = uVar7" (pointer_expression "*(undefined1 *)(param_1 + 0x1fd)" * (cast_expression "(undefined1 *)(param_1 + 0x1fd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1fd)" ( (binary_expression "param_1 + 0x1fd" identifier + number_literal) )))) = identifier) ;) (goto_statement "goto LAB_0003356c;" goto statement_identifier ;) })) (expression_statement "uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];" (assignment_expression "uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18]" identifier = (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e18]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[uVar2 + 0x3e18]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[uVar2 + 0x3e18]" identifier [ (binary_expression "uVar2 + 0x3e18" identifier + number_literal) ])))) ;) (expression_statement "uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];" (assignment_expression "uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10]" identifier = (binary_expression "(*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10]" (parenthesized_expression "(*(int *)(param_1 + 0x1b0) + -1 + uVar6)" ( (binary_expression "*(int *)(param_1 + 0x1b0) + -1 + uVar6" (binary_expression "*(int *)(param_1 + 0x1b0) + -1" (pointer_expression "*(int *)(param_1 + 0x1b0)" * (cast_expression "(int *)(param_1 + 0x1b0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b0)" ( (binary_expression "param_1 + 0x1b0" identifier + number_literal) )))) + number_literal) + identifier) )) - (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e10]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[uVar2 + 0x3e10]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[uVar2 + 0x3e10]" identifier [ (binary_expression "uVar2 + 0x3e10" identifier + number_literal) ]))))) ;) (if_statement "if (uVar6 == 0) {\n            trap(7);\n          }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            trap(7);\n          }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "*(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;" (assignment_expression "*(uint *)(param_1 + 0x1c4) = uVar4 / uVar6" (pointer_expression "*(uint *)(param_1 + 0x1c4)" * (cast_expression "(uint *)(param_1 + 0x1c4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c4)" ( (binary_expression "param_1 + 0x1c4" identifier + number_literal) )))) = (binary_expression "uVar4 / uVar6" identifier / identifier)) ;) (if_statement "if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }" if (parenthesized_expression "((*(uint *)(param_1 + 300) & 2) != 0)" ( (binary_expression "(*(uint *)(param_1 + 300) & 2) != 0" (parenthesized_expression "(*(uint *)(param_1 + 300) & 2)" ( (binary_expression "*(uint *)(param_1 + 300) & 2" (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) )) != number_literal) )) (compound_statement "{\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }" { (expression_statement "*(undefined1 *)(param_1 + 0x1fd) = uVar7;" (assignment_expression "*(undefined1 *)(param_1 + 0x1fd) = uVar7" (pointer_expression "*(undefined1 *)(param_1 + 0x1fd)" * (cast_expression "(undefined1 *)(param_1 + 0x1fd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1fd)" ( (binary_expression "param_1 + 0x1fd" identifier + number_literal) )))) = identifier) ;) (return_statement "return;" return ;) })) (expression_statement "uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];" (assignment_expression "uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08]" identifier = (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e08]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[uVar2 + 0x3e08]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[uVar2 + 0x3e08]" identifier [ (binary_expression "uVar2 + 0x3e08" identifier + number_literal) ])))) ;) (expression_statement "uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];" (assignment_expression "uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00]" identifier = (binary_expression "(*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00]" (parenthesized_expression "(*(int *)(param_1 + 0x1b4) + -1 + uVar5)" ( (binary_expression "*(int *)(param_1 + 0x1b4) + -1 + uVar5" (binary_expression "*(int *)(param_1 + 0x1b4) + -1" (pointer_expression "*(int *)(param_1 + 0x1b4)" * (cast_expression "(int *)(param_1 + 0x1b4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b4)" ( (binary_expression "param_1 + 0x1b4" identifier + number_literal) )))) + number_literal) + identifier) )) - (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e00]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)puVar1[uVar2 + 0x3e00]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "puVar1[uVar2 + 0x3e00]" identifier [ (binary_expression "uVar2 + 0x3e00" identifier + number_literal) ]))))) ;) (if_statement "if (uVar5 == 0) {\n            trap(7);\n          }" if (parenthesized_expression "(uVar5 == 0)" ( (binary_expression "uVar5 == 0" identifier == number_literal) )) (compound_statement "{\n            trap(7);\n          }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "*(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;" (assignment_expression "*(uint *)(param_1 + 0x1b8) = uVar3 / uVar5" (pointer_expression "*(uint *)(param_1 + 0x1b8)" * (cast_expression "(uint *)(param_1 + 0x1b8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b8)" ( (binary_expression "param_1 + 0x1b8" identifier + number_literal) )))) = (binary_expression "uVar3 / uVar5" identifier / identifier)) ;) (if_statement "if (uVar5 <= uVar3) break;" if (parenthesized_expression "(uVar5 <= uVar3)" ( (binary_expression "uVar5 <= uVar3" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) })) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar4 < uVar6)" ( (binary_expression "uVar4 < uVar6" identifier < identifier) )) ;) (expression_statement "*(undefined1 *)(param_1 + 0x1fd) = uVar7;" (assignment_expression "*(undefined1 *)(param_1 + 0x1fd) = uVar7" (pointer_expression "*(undefined1 *)(param_1 + 0x1fd)" * (cast_expression "(undefined1 *)(param_1 + 0x1fd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1fd)" ( (binary_expression "param_1 + 0x1fd" identifier + number_literal) )))) = identifier) ;) }))) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (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 IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= IDENT) )) (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 { (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) & LIT)) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (parenthesized_expression ( (binary_expression IDENT & LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) )) - (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT / IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) )) - (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT / IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }))) })) (return_statement return ;) })))
(function_definition "void FUN_00033434(int param_1)\n\n{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 uVar7;\n  \n  uVar2 = *(int *)(param_1 + 0x1c8) + 1;\n  *(uint *)(param_1 + 0x1c8) = uVar2;\n  if (*(uint *)(param_1 + 0x1b8) <= uVar2) {\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00033434(int param_1)" (identifier "FUN_00033434") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  undefined1 uVar7;\n  \n  uVar2 = *(int *)(param_1 + 0x1c8) + 1;\n  *(uint *)(param_1 + 0x1c8) = uVar2;\n  if (*(uint *)(param_1 + 0x1b8) <= uVar2) {\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "undefined1 uVar7;" (type_identifier "undefined1") (identifier "uVar7") (; ";")) (expression_statement "uVar2 = *(int *)(param_1 + 0x1c8) + 1;" (assignment_expression "uVar2 = *(int *)(param_1 + 0x1c8) + 1" (identifier "uVar2") (= "=") (binary_expression "*(int *)(param_1 + 0x1c8) + 1" (pointer_expression "*(int *)(param_1 + 0x1c8)" (* "*") (cast_expression "(int *)(param_1 + 0x1c8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c8)" (( "(") (binary_expression "param_1 + 0x1c8" (identifier "param_1") (+ "+") (number_literal "0x1c8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x1c8) = uVar2;" (assignment_expression "*(uint *)(param_1 + 0x1c8) = uVar2" (pointer_expression "*(uint *)(param_1 + 0x1c8)" (* "*") (cast_expression "(uint *)(param_1 + 0x1c8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c8)" (( "(") (binary_expression "param_1 + 0x1c8" (identifier "param_1") (+ "+") (number_literal "0x1c8")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (if_statement "if (*(uint *)(param_1 + 0x1b8) <= uVar2) {\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x1b8) <= uVar2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x1b8) <= uVar2" (pointer_expression "*(uint *)(param_1 + 0x1b8)" (* "*") (cast_expression "(uint *)(param_1 + 0x1b8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1b8)" (( "(") (binary_expression "param_1 + 0x1b8" (identifier "param_1") (+ "+") (number_literal "0x1b8")) () ")")))) (<= "<=") (identifier "uVar2")) () ")")) (compound_statement "{\n    if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }\n  }" ({ "{") (if_statement "if (*(char *)(param_1 + 0x1fc) == '\0') {\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }\n    else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x1fc) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x1fc) == '\0'" (pointer_expression "*(char *)(param_1 + 0x1fc)" (* "*") (cast_expression "(char *)(param_1 + 0x1fc)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1fc)" (( "(") (binary_expression "param_1 + 0x1fc" (identifier "param_1") (+ "+") (number_literal "0x1fc")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_0003356c:\n      FUN_0003337c(param_1);\n    }" ({ "{") (labeled_statement "LAB_0003356c:\n      FUN_0003337c(param_1);" (statement_identifier "LAB_0003356c") (: ":") (expression_statement "FUN_0003337c(param_1);" (call_expression "FUN_0003337c(param_1)" (identifier "FUN_0003337c") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";"))) (} "}")) (else_clause "else {\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }" (else "else") (compound_statement "{\n      *(undefined4 *)(param_1 + 0x1c8) = 0;\n      (*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);\n      puVar1 = PTR_LAB_0005601c;\n      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;\n      do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);\n      *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x1c8) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x1c8) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x1c8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1c8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c8)" (( "(") (binary_expression "param_1 + 0x1c8" (identifier "param_1") (+ "+") (number_literal "0x1c8")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);" (call_expression "(*(code *)PTR_memset_00056398)\n                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1)" (parenthesized_expression "(*(code *)PTR_memset_00056398)" (( "(") (pointer_expression "*(code *)PTR_memset_00056398" (* "*") (cast_expression "(code *)PTR_memset_00056398" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_00056398"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x1d0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x1d0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1d0)" (( "(") (binary_expression "param_1 + 0x1d0" (identifier "param_1") (+ "+") (number_literal "0x1d0")) () ")")))) (, ",") (number_literal "0") (, ",") (binary_expression "*(int *)(param_1 + 0x1c0) + 1" (pointer_expression "*(int *)(param_1 + 0x1c0)" (* "*") (cast_expression "(int *)(param_1 + 0x1c0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c0)" (( "(") (binary_expression "param_1 + 0x1c0" (identifier "param_1") (+ "+") (number_literal "0x1c0")) () ")")))) (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "puVar1 = PTR_LAB_0005601c;" (assignment_expression "puVar1 = PTR_LAB_0005601c" (identifier "puVar1") (= "=") (identifier "PTR_LAB_0005601c")) (; ";")) (expression_statement "uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;" (assignment_expression "uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff" (identifier "uVar2") (= "=") (binary_expression "*(byte *)(param_1 + 0x1fd) + 1 & 0xff" (binary_expression "*(byte *)(param_1 + 0x1fd) + 1" (pointer_expression "*(byte *)(param_1 + 0x1fd)" (* "*") (cast_expression "(byte *)(param_1 + 0x1fd)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1fd)" (( "(") (binary_expression "param_1 + 0x1fd" (identifier "param_1") (+ "+") (number_literal "0x1fd")) () ")")))) (+ "+") (number_literal "1")) (& "&") (number_literal "0xff"))) (; ";")) (do_statement "do {\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      } while (uVar4 < uVar6);" (do "do") (compound_statement "{\n        while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }\n        uVar2 = uVar2 + 1;\n      }" ({ "{") (while_statement "while( true ) {\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          uVar7 = (undefined1)uVar2;\n          if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }\n          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];\n          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];\n          if (uVar6 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;\n          if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }\n          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];\n          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];\n          if (uVar5 == 0) {\n            trap(7);\n          }\n          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;\n          if (uVar5 <= uVar3) break;\n          uVar2 = uVar2 + 1;\n        }" ({ "{") (expression_statement "uVar7 = (undefined1)uVar2;" (assignment_expression "uVar7 = (undefined1)uVar2" (identifier "uVar7") (= "=") (cast_expression "(undefined1)uVar2" (( "(") (type_descriptor "undefined1" (type_identifier "undefined1")) () ")") (identifier "uVar2"))) (; ";")) (if_statement "if (6 < (uVar2 & 0xff)) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }" (if "if") (parenthesized_expression "(6 < (uVar2 & 0xff))" (( "(") (binary_expression "6 < (uVar2 & 0xff)" (number_literal "6") (< "<") (parenthesized_expression "(uVar2 & 0xff)" (( "(") (binary_expression "uVar2 & 0xff" (identifier "uVar2") (& "&") (number_literal "0xff")) () ")"))) () ")")) (compound_statement "{\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            goto LAB_0003356c;\n          }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0x1fd) = uVar7;" (assignment_expression "*(undefined1 *)(param_1 + 0x1fd) = uVar7" (pointer_expression "*(undefined1 *)(param_1 + 0x1fd)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x1fd)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1fd)" (( "(") (binary_expression "param_1 + 0x1fd" (identifier "param_1") (+ "+") (number_literal "0x1fd")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (goto_statement "goto LAB_0003356c;" (goto "goto") (statement_identifier "LAB_0003356c") (; ";")) (} "}"))) (expression_statement "uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];" (assignment_expression "uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18]" (identifier "uVar6") (= "=") (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e18]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[uVar2 + 0x3e18]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[uVar2 + 0x3e18]" (identifier "puVar1") ([ "[") (binary_expression "uVar2 + 0x3e18" (identifier "uVar2") (+ "+") (number_literal "0x3e18")) (] "]"))))) (; ";")) (expression_statement "uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];" (assignment_expression "uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10]" (identifier "uVar4") (= "=") (binary_expression "(*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10]" (parenthesized_expression "(*(int *)(param_1 + 0x1b0) + -1 + uVar6)" (( "(") (binary_expression "*(int *)(param_1 + 0x1b0) + -1 + uVar6" (binary_expression "*(int *)(param_1 + 0x1b0) + -1" (pointer_expression "*(int *)(param_1 + 0x1b0)" (* "*") (cast_expression "(int *)(param_1 + 0x1b0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1b0)" (( "(") (binary_expression "param_1 + 0x1b0" (identifier "param_1") (+ "+") (number_literal "0x1b0")) () ")")))) (+ "+") (number_literal "-1")) (+ "+") (identifier "uVar6")) () ")")) (- "-") (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e10]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[uVar2 + 0x3e10]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[uVar2 + 0x3e10]" (identifier "puVar1") ([ "[") (binary_expression "uVar2 + 0x3e10" (identifier "uVar2") (+ "+") (number_literal "0x3e10")) (] "]")))))) (; ";")) (if_statement "if (uVar6 == 0) {\n            trap(7);\n          }" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            trap(7);\n          }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;" (assignment_expression "*(uint *)(param_1 + 0x1c4) = uVar4 / uVar6" (pointer_expression "*(uint *)(param_1 + 0x1c4)" (* "*") (cast_expression "(uint *)(param_1 + 0x1c4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1c4)" (( "(") (binary_expression "param_1 + 0x1c4" (identifier "param_1") (+ "+") (number_literal "0x1c4")) () ")")))) (= "=") (binary_expression "uVar4 / uVar6" (identifier "uVar4") (/ "/") (identifier "uVar6"))) (; ";")) (if_statement "if ((*(uint *)(param_1 + 300) & 2) != 0) {\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 300) & 2) != 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 300) & 2) != 0" (parenthesized_expression "(*(uint *)(param_1 + 300) & 2)" (( "(") (binary_expression "*(uint *)(param_1 + 300) & 2" (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 "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            *(undefined1 *)(param_1 + 0x1fd) = uVar7;\n            return;\n          }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0x1fd) = uVar7;" (assignment_expression "*(undefined1 *)(param_1 + 0x1fd) = uVar7" (pointer_expression "*(undefined1 *)(param_1 + 0x1fd)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x1fd)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1fd)" (( "(") (binary_expression "param_1 + 0x1fd" (identifier "param_1") (+ "+") (number_literal "0x1fd")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];" (assignment_expression "uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08]" (identifier "uVar5") (= "=") (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e08]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[uVar2 + 0x3e08]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[uVar2 + 0x3e08]" (identifier "puVar1") ([ "[") (binary_expression "uVar2 + 0x3e08" (identifier "uVar2") (+ "+") (number_literal "0x3e08")) (] "]"))))) (; ";")) (expression_statement "uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];" (assignment_expression "uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00]" (identifier "uVar3") (= "=") (binary_expression "(*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00]" (parenthesized_expression "(*(int *)(param_1 + 0x1b4) + -1 + uVar5)" (( "(") (binary_expression "*(int *)(param_1 + 0x1b4) + -1 + uVar5" (binary_expression "*(int *)(param_1 + 0x1b4) + -1" (pointer_expression "*(int *)(param_1 + 0x1b4)" (* "*") (cast_expression "(int *)(param_1 + 0x1b4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1b4)" (( "(") (binary_expression "param_1 + 0x1b4" (identifier "param_1") (+ "+") (number_literal "0x1b4")) () ")")))) (+ "+") (number_literal "-1")) (+ "+") (identifier "uVar5")) () ")")) (- "-") (cast_expression "(uint)(byte)puVar1[uVar2 + 0x3e00]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)puVar1[uVar2 + 0x3e00]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "puVar1[uVar2 + 0x3e00]" (identifier "puVar1") ([ "[") (binary_expression "uVar2 + 0x3e00" (identifier "uVar2") (+ "+") (number_literal "0x3e00")) (] "]")))))) (; ";")) (if_statement "if (uVar5 == 0) {\n            trap(7);\n          }" (if "if") (parenthesized_expression "(uVar5 == 0)" (( "(") (binary_expression "uVar5 == 0" (identifier "uVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            trap(7);\n          }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;" (assignment_expression "*(uint *)(param_1 + 0x1b8) = uVar3 / uVar5" (pointer_expression "*(uint *)(param_1 + 0x1b8)" (* "*") (cast_expression "(uint *)(param_1 + 0x1b8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1b8)" (( "(") (binary_expression "param_1 + 0x1b8" (identifier "param_1") (+ "+") (number_literal "0x1b8")) () ")")))) (= "=") (binary_expression "uVar3 / uVar5" (identifier "uVar3") (/ "/") (identifier "uVar5"))) (; ";")) (if_statement "if (uVar5 <= uVar3) break;" (if "if") (parenthesized_expression "(uVar5 <= uVar3)" (( "(") (binary_expression "uVar5 <= uVar3" (identifier "uVar5") (<= "<=") (identifier "uVar3")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "uVar2 = uVar2 + 1;" (assignment_expression "uVar2 = uVar2 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar4 < uVar6)" (( "(") (binary_expression "uVar4 < uVar6" (identifier "uVar4") (< "<") (identifier "uVar6")) () ")")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x1fd) = uVar7;" (assignment_expression "*(undefined1 *)(param_1 + 0x1fd) = uVar7" (pointer_expression "*(undefined1 *)(param_1 + 0x1fd)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x1fd)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1fd)" (( "(") (binary_expression "param_1 + 0x1fd" (identifier "param_1") (+ "+") (number_literal "0x1fd")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (} "}")))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 png_ptr)

{
  type_2 *puVar1;
  type_3 var_1;
  type_3 var_7;
  type_3 var_5;
  type_3 var_6;
  type_3 var_3;
  type_4 pVar7;
  
  var_1 = png_ptr->row_number + 1;
  png_ptr->row_number = var_1;
  if (png_ptr->num_rows <= var_1) {
    if (png_ptr->interlaced == '\0') {
LAB_0003356c:
      var_2(png_ptr);
    }
    else {
      png_ptr->row_number = 0;
      (*(type_5 *)PTR_memset_00056398)(png_ptr->prev_row,0,png_ptr->rowbytes + 1);
      puVar1 = PTR_LAB_0005601c;
      var_1 = png_ptr->pass + 1 & 0xff;
      do {
        while( true ) {
          pVar7 = (type_4)var_1;
          if (6 < (var_1 & 0xff)) {
            png_ptr->pass = pVar7;
            goto LAB_0003356c;
          }
          var_3 = (type_3)(type_6)puVar1[var_1 + 0x3e18];
          var_5 = ((png_ptr->width - 1) + var_3) - (type_3)(type_6)puVar1[var_1 + 0x3e10];
          if (var_3 == 0) {
            var_4(7);
          }
          png_ptr->iwidth = var_5 / var_3;
          if ((png_ptr->transformations & 2) != 0) {
            png_ptr->pass = pVar7;
            return;
          }
          var_6 = (type_3)(type_6)puVar1[var_1 + 0x3e08];
          var_7 = ((png_ptr->height - 1) + var_6) - (type_3)(type_6)puVar1[var_1 + 0x3e00];
          if (var_6 == 0) {
            var_4(7);
          }
          png_ptr->num_rows = var_7 / var_6;
          if (var_6 <= var_7) break;
          var_1 = var_1 + 1;
        }
        var_1 = var_1 + 1;
      } while (var_5 < var_3);
      png_ptr->pass = pVar7;
    }
  }
  return;
}


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

void MASKED(int param_1)

{
  undefined *puVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  undefined1 uVar7;
  
  uVar2 = *(int *)(param_1 + 0x1c8) + 1;
  *(uint *)(param_1 + 0x1c8) = uVar2;
  if (*(uint *)(param_1 + 0x1b8) <= uVar2) {
    if (*(char *)(param_1 + 0x1fc) == '\0') {
LAB_0003356c:
      FUN_0003337c(param_1);
    }
    else {
      *(undefined4 *)(param_1 + 0x1c8) = 0;
      (*(code *)PTR_memset_00056398)
                (*(undefined4 *)(param_1 + 0x1d0),0,*(int *)(param_1 + 0x1c0) + 1);
      puVar1 = PTR_LAB_0005601c;
      uVar2 = *(byte *)(param_1 + 0x1fd) + 1 & 0xff;
      do {
        while( true ) {
          uVar7 = (undefined1)uVar2;
          if (6 < (uVar2 & 0xff)) {
            *(undefined1 *)(param_1 + 0x1fd) = uVar7;
            goto LAB_0003356c;
          }
          uVar6 = (uint)(byte)puVar1[uVar2 + 0x3e18];
          uVar4 = (*(int *)(param_1 + 0x1b0) + -1 + uVar6) - (uint)(byte)puVar1[uVar2 + 0x3e10];
          if (uVar6 == 0) {
            trap(7);
          }
          *(uint *)(param_1 + 0x1c4) = uVar4 / uVar6;
          if ((*(uint *)(param_1 + 300) & 2) != 0) {
            *(undefined1 *)(param_1 + 0x1fd) = uVar7;
            return;
          }
          uVar5 = (uint)(byte)puVar1[uVar2 + 0x3e08];
          uVar3 = (*(int *)(param_1 + 0x1b4) + -1 + uVar5) - (uint)(byte)puVar1[uVar2 + 0x3e00];
          if (uVar5 == 0) {
            trap(7);
          }
          *(uint *)(param_1 + 0x1b8) = uVar3 / uVar5;
          if (uVar5 <= uVar3) break;
          uVar2 = uVar2 + 1;
        }
        uVar2 = uVar2 + 1;
      } while (uVar4 < uVar6);
      *(undefined1 *)(param_1 + 0x1fd) = uVar7;
    }
  }
  return;
}

