
void png_set_gamma_fixed(png_structrp png_ptr,png_fixed_point scrn_gamma,png_fixed_point file_gamma)

{
  int iVar1;
  
  iVar1 = png_rtran_ok(png_ptr,0);
  if (iVar1 != 0) {
    if ((scrn_gamma == -1) || (scrn_gamma == -100000)) {
      png_ptr->flags = png_ptr->flags | 0x1000;
      scrn_gamma = 220000;
    }
    else if (scrn_gamma == -2) {
      scrn_gamma = 0x250ac;
    }
    else if (scrn_gamma == -50000) {
      FUN_00027dbc();
      return;
    }
    if ((file_gamma == -1) || (file_gamma == -100000)) {
      png_ptr->flags = png_ptr->flags | 0x1000;
      file_gamma = 0xb18f;
    }
    else if (file_gamma == -2) {
      file_gamma = 0x10175;
    }
    else if (file_gamma == -50000) {
      file_gamma = 0x10175;
    }
    else if (file_gamma < 1) {
      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);
      return;
    }
    if (scrn_gamma < 1) {
      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3424);
      return;
    }
    (png_ptr->colorspace).gamma = file_gamma;
    (png_ptr->colorspace).flags = (png_ptr->colorspace).flags | 1;
    png_ptr->screen_gamma = scrn_gamma;
  }
  return;
}



void png_set_gamma_fixed(int param_1,int param_2,int param_3)

{
  int iVar1;
  
  iVar1 = FUN_00026a64(param_1,0);
  if (iVar1 != 0) {
    if ((param_2 == -1) || (param_2 == -100000)) {
      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;
      param_2 = 220000;
    }
    else {
      if (param_2 == -2) goto LAB_00027e00;
      if (param_2 == -50000) {
        param_2 = 0x250ac;
      }
    }
    while ((param_3 != -1 && (param_3 != -100000))) {
      if (param_3 == -2) goto LAB_00027e50;
      if (param_3 == -50000) {
        param_3 = 0x10175;
        goto LAB_00027e1c;
      }
      if (0 < param_3) goto LAB_00027e1c;
      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);
LAB_00027e00:
      param_2 = 0x250ac;
    }
    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;
    param_3 = 0xb18f;
LAB_00027e1c:
    while (param_2 < 1) {
      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);
LAB_00027e50:
      param_3 = 0x10175;
    }
    *(int *)(param_1 + 0x398) = param_3;
    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;
    *(int *)(param_1 + 0x238) = param_2;
  }
  return;
}


lui gp,0x3
addiu gp,gp,0x62e8
addu gp,gp,t9
addiu sp,sp,-0x28
sw ra,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s1,a0,zero
or s0,a1,zero
or s2,a2,zero
or a1,zero,zero
lw t9,-0x7f9c(gp)
addiu t9,t9,0x6a64
bal 0x00026a64
_nop
lw gp,0x10(sp)
bne v0,zero,0x00027d70
_li v0,-0x1
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
beq s0,v0,0x00027da4
_lui v0,0xfffe
addiu v0,v0,0x7960
beq s0,v0,0x00027da4
_li v0,-0x2
beq s0,v0,0x00027e00
_lui v0,0xffff
addiu v0,v0,0x3cb0
bne s0,v0,0x00027dbc
_li v0,-0x1
lui s0,0x2
b 0x00027dbc
_addiu s0,s0,0x50ac
lw v0,0x128(s1)
ori v0,v0,0x1000
sw v0,0x128(s1)
lui s0,0x3
addiu s0,s0,0x5b60
li v0,-0x1
beq s2,v0,0x00027e0c
_lui v0,0xfffe
addiu v0,v0,0x7960
beq s2,v0,0x00027e0c
_li v0,-0x2
beq s2,v0,0x00027e50
_lui v0,0xffff
addiu v0,v0,0x3cb0
beq s2,v0,0x00027e5c
_nop
bgtz s2,0x00027e1c
_lw a1,-0x7fd4(gp)
addiu a1,a1,0x3400
or a0,s1,zero
lw t9,-0x7be0(gp)
jalr t9
_nop
lui s0,0x2
b 0x00027db8
_addiu s0,s0,0x50ac
lw v0,0x128(s1)
ori v0,v0,0x1000
sw v0,0x128(s1)
ori s2,zero,0xb18f
blez s0,0x00027e3c
_lw a1,-0x7fd4(gp)
sw s2,0x398(s1)
lhu v0,0x3e2(s1)
ori v0,v0,0x1
sh v0,0x3e2(s1)
b 0x00027d58
_sw s0,0x238(s1)
addiu a1,a1,0x3424
or a0,s1,zero
lw t9,-0x7be0(gp)
jalr t9
_nop
lui s2,0x1
b 0x00027e1c
_addiu s2,s2,0x175
lui s2,0x1
b 0x00027e1c
_addiu s2,s2,0x175
(translation_unit "void png_set_gamma_fixed(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00026a64(param_1,0);\n  if (iVar1 != 0) {\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }\n  return;\n}\n\n" (function_definition "void png_set_gamma_fixed(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00026a64(param_1,0);\n  if (iVar1 != 0) {\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_gamma_fixed(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00026a64(param_1,0);\n  if (iVar1 != 0) {\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00026a64(param_1,0);" (assignment_expression "iVar1 = FUN_00026a64(param_1,0)" identifier = (call_expression "FUN_00026a64(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }" { (if_statement "if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }" if (parenthesized_expression "((param_2 == -1) || (param_2 == -100000))" ( (binary_expression "(param_2 == -1) || (param_2 == -100000)" (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) || (parenthesized_expression "(param_2 == -100000)" ( (binary_expression "param_2 == -100000" identifier == number_literal) ))) )) (compound_statement "{\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }" { (expression_statement "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;" (assignment_expression "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x128) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "param_2 = 220000;" (assignment_expression "param_2 = 220000" identifier = number_literal) ;) }) (else_clause "else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }" else (compound_statement "{\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }" { (if_statement "if (param_2 == -2) goto LAB_00027e00;" if (parenthesized_expression "(param_2 == -2)" ( (binary_expression "param_2 == -2" identifier == number_literal) )) (goto_statement "goto LAB_00027e00;" goto statement_identifier ;)) (if_statement "if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }" if (parenthesized_expression "(param_2 == -50000)" ( (binary_expression "param_2 == -50000" identifier == number_literal) )) (compound_statement "{\n        param_2 = 0x250ac;\n      }" { (expression_statement "param_2 = 0x250ac;" (assignment_expression "param_2 = 0x250ac" identifier = number_literal) ;) })) }))) (while_statement "while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }" while (parenthesized_expression "((param_3 != -1 && (param_3 != -100000)))" ( (parenthesized_expression "(param_3 != -1 && (param_3 != -100000))" ( (binary_expression "param_3 != -1 && (param_3 != -100000)" (binary_expression "param_3 != -1" identifier != number_literal) && (parenthesized_expression "(param_3 != -100000)" ( (binary_expression "param_3 != -100000" identifier != number_literal) ))) )) )) (compound_statement "{\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }" { (if_statement "if (param_3 == -2) goto LAB_00027e50;" if (parenthesized_expression "(param_3 == -2)" ( (binary_expression "param_3 == -2" identifier == number_literal) )) (goto_statement "goto LAB_00027e50;" goto statement_identifier ;)) (if_statement "if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }" if (parenthesized_expression "(param_3 == -50000)" ( (binary_expression "param_3 == -50000" identifier == number_literal) )) (compound_statement "{\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }" { (expression_statement "param_3 = 0x10175;" (assignment_expression "param_3 = 0x10175" identifier = number_literal) ;) (goto_statement "goto LAB_00027e1c;" goto statement_identifier ;) })) (if_statement "if (0 < param_3) goto LAB_00027e1c;" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (goto_statement "goto LAB_00027e1c;" goto statement_identifier ;)) (expression_statement "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);" (call_expression "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400)" (parenthesized_expression "(*(code *)PTR_png_error_00056410)" ( (pointer_expression "*(code *)PTR_png_error_00056410" * (cast_expression "(code *)PTR_png_error_00056410" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_LAB_0005601c + 0x3400)" ( identifier , (binary_expression "PTR_LAB_0005601c + 0x3400" identifier + number_literal) ))) ;) (labeled_statement "LAB_00027e00:\n      param_2 = 0x250ac;" statement_identifier : (expression_statement "param_2 = 0x250ac;" (assignment_expression "param_2 = 0x250ac" identifier = number_literal) ;)) })) (expression_statement "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;" (assignment_expression "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x128) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "param_3 = 0xb18f;" (assignment_expression "param_3 = 0xb18f" identifier = number_literal) ;) (labeled_statement "LAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }" statement_identifier : (while_statement "while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }" while (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }" { (expression_statement "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);" (call_expression "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424)" (parenthesized_expression "(*(code *)PTR_png_error_00056410)" ( (pointer_expression "*(code *)PTR_png_error_00056410" * (cast_expression "(code *)PTR_png_error_00056410" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_LAB_0005601c + 0x3424)" ( identifier , (binary_expression "PTR_LAB_0005601c + 0x3424" identifier + number_literal) ))) ;) (labeled_statement "LAB_00027e50:\n      param_3 = 0x10175;" statement_identifier : (expression_statement "param_3 = 0x10175;" (assignment_expression "param_3 = 0x10175" identifier = number_literal) ;)) }))) (expression_statement "*(int *)(param_1 + 0x398) = param_3;" (assignment_expression "*(int *)(param_1 + 0x398) = param_3" (pointer_expression "*(int *)(param_1 + 0x398)" * (cast_expression "(int *)(param_1 + 0x398)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x398)" ( (binary_expression "param_1 + 0x398" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;" (assignment_expression "*(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1" (pointer_expression "*(ushort *)(param_1 + 0x3e2)" * (cast_expression "(ushort *)(param_1 + 0x3e2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e2)" ( (binary_expression "param_1 + 0x3e2" identifier + number_literal) )))) = (binary_expression "*(ushort *)(param_1 + 0x3e2) | 1" (pointer_expression "*(ushort *)(param_1 + 0x3e2)" * (cast_expression "(ushort *)(param_1 + 0x3e2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e2)" ( (binary_expression "param_1 + 0x3e2" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x238) = param_2;" (assignment_expression "*(int *)(param_1 + 0x238) = param_2" (pointer_expression "*(int *)(param_1 + 0x238)" * (cast_expression "(int *)(param_1 + 0x238)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x238)" ( (binary_expression "param_1 + 0x238" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_gamma_fixed(png_structrp png_ptr,png_fixed_point scrn_gamma,png_fixed_point file_gamma)\n\n{\n  int iVar1;\n  \n  iVar1 = png_rtran_ok(png_ptr,0);\n  if (iVar1 != 0) {\n    if ((scrn_gamma == -1) || (scrn_gamma == -100000)) {\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      scrn_gamma = 220000;\n    }\n    else if (scrn_gamma == -2) {\n      scrn_gamma = 0x250ac;\n    }\n    else if (scrn_gamma == -50000) {\n      FUN_00027dbc();\n      return;\n    }\n    if ((file_gamma == -1) || (file_gamma == -100000)) {\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      file_gamma = 0xb18f;\n    }\n    else if (file_gamma == -2) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma == -50000) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }\n    if (scrn_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3424);\n      return;\n    }\n    (png_ptr->colorspace).gamma = file_gamma;\n    (png_ptr->colorspace).flags = (png_ptr->colorspace).flags | 1;\n    png_ptr->screen_gamma = scrn_gamma;\n  }\n  return;\n}\n\n" (function_definition "void png_set_gamma_fixed(png_structrp png_ptr,png_fixed_point scrn_gamma,png_fixed_point file_gamma)\n\n{\n  int iVar1;\n  \n  iVar1 = png_rtran_ok(png_ptr,0);\n  if (iVar1 != 0) {\n    if ((scrn_gamma == -1) || (scrn_gamma == -100000)) {\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      scrn_gamma = 220000;\n    }\n    else if (scrn_gamma == -2) {\n      scrn_gamma = 0x250ac;\n    }\n    else if (scrn_gamma == -50000) {\n      FUN_00027dbc();\n      return;\n    }\n    if ((file_gamma == -1) || (file_gamma == -100000)) {\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      file_gamma = 0xb18f;\n    }\n    else if (file_gamma == -2) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma == -50000) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }\n    if (scrn_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3424);\n      return;\n    }\n    (png_ptr->colorspace).gamma = file_gamma;\n    (png_ptr->colorspace).flags = (png_ptr->colorspace).flags | 1;\n    png_ptr->screen_gamma = scrn_gamma;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_gamma_fixed(png_structrp png_ptr,png_fixed_point scrn_gamma,png_fixed_point file_gamma)" identifier (parameter_list "(png_structrp png_ptr,png_fixed_point scrn_gamma,png_fixed_point file_gamma)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_fixed_point scrn_gamma" type_identifier identifier) , (parameter_declaration "png_fixed_point file_gamma" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = png_rtran_ok(png_ptr,0);\n  if (iVar1 != 0) {\n    if ((scrn_gamma == -1) || (scrn_gamma == -100000)) {\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      scrn_gamma = 220000;\n    }\n    else if (scrn_gamma == -2) {\n      scrn_gamma = 0x250ac;\n    }\n    else if (scrn_gamma == -50000) {\n      FUN_00027dbc();\n      return;\n    }\n    if ((file_gamma == -1) || (file_gamma == -100000)) {\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      file_gamma = 0xb18f;\n    }\n    else if (file_gamma == -2) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma == -50000) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }\n    if (scrn_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3424);\n      return;\n    }\n    (png_ptr->colorspace).gamma = file_gamma;\n    (png_ptr->colorspace).flags = (png_ptr->colorspace).flags | 1;\n    png_ptr->screen_gamma = scrn_gamma;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = png_rtran_ok(png_ptr,0);" (assignment_expression "iVar1 = png_rtran_ok(png_ptr,0)" identifier = (call_expression "png_rtran_ok(png_ptr,0)" identifier (argument_list "(png_ptr,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    if ((scrn_gamma == -1) || (scrn_gamma == -100000)) {\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      scrn_gamma = 220000;\n    }\n    else if (scrn_gamma == -2) {\n      scrn_gamma = 0x250ac;\n    }\n    else if (scrn_gamma == -50000) {\n      FUN_00027dbc();\n      return;\n    }\n    if ((file_gamma == -1) || (file_gamma == -100000)) {\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      file_gamma = 0xb18f;\n    }\n    else if (file_gamma == -2) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma == -50000) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }\n    if (scrn_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3424);\n      return;\n    }\n    (png_ptr->colorspace).gamma = file_gamma;\n    (png_ptr->colorspace).flags = (png_ptr->colorspace).flags | 1;\n    png_ptr->screen_gamma = scrn_gamma;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((scrn_gamma == -1) || (scrn_gamma == -100000)) {\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      scrn_gamma = 220000;\n    }\n    else if (scrn_gamma == -2) {\n      scrn_gamma = 0x250ac;\n    }\n    else if (scrn_gamma == -50000) {\n      FUN_00027dbc();\n      return;\n    }\n    if ((file_gamma == -1) || (file_gamma == -100000)) {\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      file_gamma = 0xb18f;\n    }\n    else if (file_gamma == -2) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma == -50000) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }\n    if (scrn_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3424);\n      return;\n    }\n    (png_ptr->colorspace).gamma = file_gamma;\n    (png_ptr->colorspace).flags = (png_ptr->colorspace).flags | 1;\n    png_ptr->screen_gamma = scrn_gamma;\n  }" { (if_statement "if ((scrn_gamma == -1) || (scrn_gamma == -100000)) {\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      scrn_gamma = 220000;\n    }\n    else if (scrn_gamma == -2) {\n      scrn_gamma = 0x250ac;\n    }\n    else if (scrn_gamma == -50000) {\n      FUN_00027dbc();\n      return;\n    }" if (parenthesized_expression "((scrn_gamma == -1) || (scrn_gamma == -100000))" ( (binary_expression "(scrn_gamma == -1) || (scrn_gamma == -100000)" (parenthesized_expression "(scrn_gamma == -1)" ( (binary_expression "scrn_gamma == -1" identifier == number_literal) )) || (parenthesized_expression "(scrn_gamma == -100000)" ( (binary_expression "scrn_gamma == -100000" identifier == number_literal) ))) )) (compound_statement "{\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      scrn_gamma = 220000;\n    }" { (expression_statement "png_ptr->flags = png_ptr->flags | 0x1000;" (assignment_expression "png_ptr->flags = png_ptr->flags | 0x1000" (field_expression "png_ptr->flags" identifier -> field_identifier) = (binary_expression "png_ptr->flags | 0x1000" (field_expression "png_ptr->flags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "scrn_gamma = 220000;" (assignment_expression "scrn_gamma = 220000" identifier = number_literal) ;) }) (else_clause "else if (scrn_gamma == -2) {\n      scrn_gamma = 0x250ac;\n    }\n    else if (scrn_gamma == -50000) {\n      FUN_00027dbc();\n      return;\n    }" else (if_statement "if (scrn_gamma == -2) {\n      scrn_gamma = 0x250ac;\n    }\n    else if (scrn_gamma == -50000) {\n      FUN_00027dbc();\n      return;\n    }" if (parenthesized_expression "(scrn_gamma == -2)" ( (binary_expression "scrn_gamma == -2" identifier == number_literal) )) (compound_statement "{\n      scrn_gamma = 0x250ac;\n    }" { (expression_statement "scrn_gamma = 0x250ac;" (assignment_expression "scrn_gamma = 0x250ac" identifier = number_literal) ;) }) (else_clause "else if (scrn_gamma == -50000) {\n      FUN_00027dbc();\n      return;\n    }" else (if_statement "if (scrn_gamma == -50000) {\n      FUN_00027dbc();\n      return;\n    }" if (parenthesized_expression "(scrn_gamma == -50000)" ( (binary_expression "scrn_gamma == -50000" identifier == number_literal) )) (compound_statement "{\n      FUN_00027dbc();\n      return;\n    }" { (expression_statement "FUN_00027dbc();" (call_expression "FUN_00027dbc()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))))) (if_statement "if ((file_gamma == -1) || (file_gamma == -100000)) {\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      file_gamma = 0xb18f;\n    }\n    else if (file_gamma == -2) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma == -50000) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }" if (parenthesized_expression "((file_gamma == -1) || (file_gamma == -100000))" ( (binary_expression "(file_gamma == -1) || (file_gamma == -100000)" (parenthesized_expression "(file_gamma == -1)" ( (binary_expression "file_gamma == -1" identifier == number_literal) )) || (parenthesized_expression "(file_gamma == -100000)" ( (binary_expression "file_gamma == -100000" identifier == number_literal) ))) )) (compound_statement "{\n      png_ptr->flags = png_ptr->flags | 0x1000;\n      file_gamma = 0xb18f;\n    }" { (expression_statement "png_ptr->flags = png_ptr->flags | 0x1000;" (assignment_expression "png_ptr->flags = png_ptr->flags | 0x1000" (field_expression "png_ptr->flags" identifier -> field_identifier) = (binary_expression "png_ptr->flags | 0x1000" (field_expression "png_ptr->flags" identifier -> field_identifier) | number_literal)) ;) (expression_statement "file_gamma = 0xb18f;" (assignment_expression "file_gamma = 0xb18f" identifier = number_literal) ;) }) (else_clause "else if (file_gamma == -2) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma == -50000) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }" else (if_statement "if (file_gamma == -2) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma == -50000) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }" if (parenthesized_expression "(file_gamma == -2)" ( (binary_expression "file_gamma == -2" identifier == number_literal) )) (compound_statement "{\n      file_gamma = 0x10175;\n    }" { (expression_statement "file_gamma = 0x10175;" (assignment_expression "file_gamma = 0x10175" identifier = number_literal) ;) }) (else_clause "else if (file_gamma == -50000) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }" else (if_statement "if (file_gamma == -50000) {\n      file_gamma = 0x10175;\n    }\n    else if (file_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }" if (parenthesized_expression "(file_gamma == -50000)" ( (binary_expression "file_gamma == -50000" identifier == number_literal) )) (compound_statement "{\n      file_gamma = 0x10175;\n    }" { (expression_statement "file_gamma = 0x10175;" (assignment_expression "file_gamma = 0x10175" identifier = number_literal) ;) }) (else_clause "else if (file_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }" else (if_statement "if (file_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }" if (parenthesized_expression "(file_gamma < 1)" ( (binary_expression "file_gamma < 1" identifier < number_literal) )) (compound_statement "{\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);\n      return;\n    }" { (expression_statement "(*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400);" (call_expression "(*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3400)" (parenthesized_expression "(*(code *)PTR_png_error_00056410)" ( (pointer_expression "*(code *)PTR_png_error_00056410" * (cast_expression "(code *)PTR_png_error_00056410" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(png_ptr,PTR_LAB_0005601c + 0x3400)" ( identifier , (binary_expression "PTR_LAB_0005601c + 0x3400" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))))))) (if_statement "if (scrn_gamma < 1) {\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3424);\n      return;\n    }" if (parenthesized_expression "(scrn_gamma < 1)" ( (binary_expression "scrn_gamma < 1" identifier < number_literal) )) (compound_statement "{\n      (*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3424);\n      return;\n    }" { (expression_statement "(*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3424);" (call_expression "(*(code *)PTR_png_error_00056410)(png_ptr,PTR_LAB_0005601c + 0x3424)" (parenthesized_expression "(*(code *)PTR_png_error_00056410)" ( (pointer_expression "*(code *)PTR_png_error_00056410" * (cast_expression "(code *)PTR_png_error_00056410" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(png_ptr,PTR_LAB_0005601c + 0x3424)" ( identifier , (binary_expression "PTR_LAB_0005601c + 0x3424" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "(png_ptr->colorspace).gamma = file_gamma;" (assignment_expression "(png_ptr->colorspace).gamma = file_gamma" (field_expression "(png_ptr->colorspace).gamma" (parenthesized_expression "(png_ptr->colorspace)" ( (field_expression "png_ptr->colorspace" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(png_ptr->colorspace).flags = (png_ptr->colorspace).flags | 1;" (assignment_expression "(png_ptr->colorspace).flags = (png_ptr->colorspace).flags | 1" (field_expression "(png_ptr->colorspace).flags" (parenthesized_expression "(png_ptr->colorspace)" ( (field_expression "png_ptr->colorspace" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(png_ptr->colorspace).flags | 1" (field_expression "(png_ptr->colorspace).flags" (parenthesized_expression "(png_ptr->colorspace)" ( (field_expression "png_ptr->colorspace" identifier -> field_identifier) )) . field_identifier) | number_literal)) ;) (expression_statement "png_ptr->screen_gamma = scrn_gamma;" (assignment_expression "png_ptr->screen_gamma = scrn_gamma" (field_expression "png_ptr->screen_gamma" identifier -> field_identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_gamma_fixed(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00026a64(param_1,0);\n  if (iVar1 != 0) {\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }\n  return;\n}\n\n" (function_definition "void png_set_gamma_fixed(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00026a64(param_1,0);\n  if (iVar1 != 0) {\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_gamma_fixed(int param_1,int param_2,int param_3)" identifier (parameter_list "(int param_1,int param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00026a64(param_1,0);\n  if (iVar1 != 0) {\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = FUN_00026a64(param_1,0);" (assignment_expression "iVar1 = FUN_00026a64(param_1,0)" identifier = (call_expression "FUN_00026a64(param_1,0)" identifier (argument_list "(param_1,0)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }" { (if_statement "if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }" if (parenthesized_expression "((param_2 == -1) || (param_2 == -100000))" ( (binary_expression "(param_2 == -1) || (param_2 == -100000)" (parenthesized_expression "(param_2 == -1)" ( (binary_expression "param_2 == -1" identifier == number_literal) )) || (parenthesized_expression "(param_2 == -100000)" ( (binary_expression "param_2 == -100000" identifier == number_literal) ))) )) (compound_statement "{\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }" { (expression_statement "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;" (assignment_expression "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x128) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "param_2 = 220000;" (assignment_expression "param_2 = 220000" identifier = number_literal) ;) }) (else_clause "else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }" else (compound_statement "{\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }" { (if_statement "if (param_2 == -2) goto LAB_00027e00;" if (parenthesized_expression "(param_2 == -2)" ( (binary_expression "param_2 == -2" identifier == number_literal) )) (goto_statement "goto LAB_00027e00;" goto statement_identifier ;)) (if_statement "if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }" if (parenthesized_expression "(param_2 == -50000)" ( (binary_expression "param_2 == -50000" identifier == number_literal) )) (compound_statement "{\n        param_2 = 0x250ac;\n      }" { (expression_statement "param_2 = 0x250ac;" (assignment_expression "param_2 = 0x250ac" identifier = number_literal) ;) })) }))) (while_statement "while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }" while (parenthesized_expression "((param_3 != -1 && (param_3 != -100000)))" ( (parenthesized_expression "(param_3 != -1 && (param_3 != -100000))" ( (binary_expression "param_3 != -1 && (param_3 != -100000)" (binary_expression "param_3 != -1" identifier != number_literal) && (parenthesized_expression "(param_3 != -100000)" ( (binary_expression "param_3 != -100000" identifier != number_literal) ))) )) )) (compound_statement "{\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }" { (if_statement "if (param_3 == -2) goto LAB_00027e50;" if (parenthesized_expression "(param_3 == -2)" ( (binary_expression "param_3 == -2" identifier == number_literal) )) (goto_statement "goto LAB_00027e50;" goto statement_identifier ;)) (if_statement "if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }" if (parenthesized_expression "(param_3 == -50000)" ( (binary_expression "param_3 == -50000" identifier == number_literal) )) (compound_statement "{\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }" { (expression_statement "param_3 = 0x10175;" (assignment_expression "param_3 = 0x10175" identifier = number_literal) ;) (goto_statement "goto LAB_00027e1c;" goto statement_identifier ;) })) (if_statement "if (0 < param_3) goto LAB_00027e1c;" if (parenthesized_expression "(0 < param_3)" ( (binary_expression "0 < param_3" number_literal < identifier) )) (goto_statement "goto LAB_00027e1c;" goto statement_identifier ;)) (expression_statement "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);" (call_expression "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400)" (parenthesized_expression "(*(code *)PTR_png_error_00056410)" ( (pointer_expression "*(code *)PTR_png_error_00056410" * (cast_expression "(code *)PTR_png_error_00056410" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_LAB_0005601c + 0x3400)" ( identifier , (binary_expression "PTR_LAB_0005601c + 0x3400" identifier + number_literal) ))) ;) (labeled_statement "LAB_00027e00:\n      param_2 = 0x250ac;" statement_identifier : (expression_statement "param_2 = 0x250ac;" (assignment_expression "param_2 = 0x250ac" identifier = number_literal) ;)) })) (expression_statement "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;" (assignment_expression "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x128) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x128)" * (cast_expression "(uint *)(param_1 + 0x128)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x128)" ( (binary_expression "param_1 + 0x128" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "param_3 = 0xb18f;" (assignment_expression "param_3 = 0xb18f" identifier = number_literal) ;) (labeled_statement "LAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }" statement_identifier : (while_statement "while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }" while (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }" { (expression_statement "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);" (call_expression "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424)" (parenthesized_expression "(*(code *)PTR_png_error_00056410)" ( (pointer_expression "*(code *)PTR_png_error_00056410" * (cast_expression "(code *)PTR_png_error_00056410" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,PTR_LAB_0005601c + 0x3424)" ( identifier , (binary_expression "PTR_LAB_0005601c + 0x3424" identifier + number_literal) ))) ;) (labeled_statement "LAB_00027e50:\n      param_3 = 0x10175;" statement_identifier : (expression_statement "param_3 = 0x10175;" (assignment_expression "param_3 = 0x10175" identifier = number_literal) ;)) }))) (expression_statement "*(int *)(param_1 + 0x398) = param_3;" (assignment_expression "*(int *)(param_1 + 0x398) = param_3" (pointer_expression "*(int *)(param_1 + 0x398)" * (cast_expression "(int *)(param_1 + 0x398)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x398)" ( (binary_expression "param_1 + 0x398" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;" (assignment_expression "*(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1" (pointer_expression "*(ushort *)(param_1 + 0x3e2)" * (cast_expression "(ushort *)(param_1 + 0x3e2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e2)" ( (binary_expression "param_1 + 0x3e2" identifier + number_literal) )))) = (binary_expression "*(ushort *)(param_1 + 0x3e2) | 1" (pointer_expression "*(ushort *)(param_1 + 0x3e2)" * (cast_expression "(ushort *)(param_1 + 0x3e2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3e2)" ( (binary_expression "param_1 + 0x3e2" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "*(int *)(param_1 + 0x238) = param_2;" (assignment_expression "*(int *)(param_1 + 0x238) = param_2" (pointer_expression "*(int *)(param_1 + 0x238)" * (cast_expression "(int *)(param_1 + 0x238)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x238)" ( (binary_expression "param_1 + 0x238" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == 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) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) }))) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (while_statement while (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void png_set_gamma_fixed(int param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  \n  iVar1 = FUN_00026a64(param_1,0);\n  if (iVar1 != 0) {\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "png_set_gamma_fixed(int param_1,int param_2,int param_3)" (identifier "png_set_gamma_fixed") (parameter_list "(int param_1,int param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = FUN_00026a64(param_1,0);\n  if (iVar1 != 0) {\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (expression_statement "iVar1 = FUN_00026a64(param_1,0);" (assignment_expression "iVar1 = FUN_00026a64(param_1,0)" (identifier "iVar1") (= "=") (call_expression "FUN_00026a64(param_1,0)" (identifier "FUN_00026a64") (argument_list "(param_1,0)" (( "(") (identifier "param_1") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }\n    while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }\n    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n    param_3 = 0xb18f;\nLAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }\n    *(int *)(param_1 + 0x398) = param_3;\n    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;\n    *(int *)(param_1 + 0x238) = param_2;\n  }" ({ "{") (if_statement "if ((param_2 == -1) || (param_2 == -100000)) {\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }\n    else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }" (if "if") (parenthesized_expression "((param_2 == -1) || (param_2 == -100000))" (( "(") (binary_expression "(param_2 == -1) || (param_2 == -100000)" (parenthesized_expression "(param_2 == -1)" (( "(") (binary_expression "param_2 == -1" (identifier "param_2") (== "==") (number_literal "-1")) () ")")) (|| "||") (parenthesized_expression "(param_2 == -100000)" (( "(") (binary_expression "param_2 == -100000" (identifier "param_2") (== "==") (number_literal "-100000")) () ")"))) () ")")) (compound_statement "{\n      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;\n      param_2 = 220000;\n    }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;" (assignment_expression "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x128)" (* "*") (cast_expression "(uint *)(param_1 + 0x128)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x128) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x128)" (* "*") (cast_expression "(uint *)(param_1 + 0x128)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (| "|") (number_literal "0x1000"))) (; ";")) (expression_statement "param_2 = 220000;" (assignment_expression "param_2 = 220000" (identifier "param_2") (= "=") (number_literal "220000")) (; ";")) (} "}")) (else_clause "else {\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }" (else "else") (compound_statement "{\n      if (param_2 == -2) goto LAB_00027e00;\n      if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }\n    }" ({ "{") (if_statement "if (param_2 == -2) goto LAB_00027e00;" (if "if") (parenthesized_expression "(param_2 == -2)" (( "(") (binary_expression "param_2 == -2" (identifier "param_2") (== "==") (number_literal "-2")) () ")")) (goto_statement "goto LAB_00027e00;" (goto "goto") (statement_identifier "LAB_00027e00") (; ";"))) (if_statement "if (param_2 == -50000) {\n        param_2 = 0x250ac;\n      }" (if "if") (parenthesized_expression "(param_2 == -50000)" (( "(") (binary_expression "param_2 == -50000" (identifier "param_2") (== "==") (number_literal "-50000")) () ")")) (compound_statement "{\n        param_2 = 0x250ac;\n      }" ({ "{") (expression_statement "param_2 = 0x250ac;" (assignment_expression "param_2 = 0x250ac" (identifier "param_2") (= "=") (number_literal "0x250ac")) (; ";")) (} "}"))) (} "}")))) (while_statement "while ((param_3 != -1 && (param_3 != -100000))) {\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }" (while "while") (parenthesized_expression "((param_3 != -1 && (param_3 != -100000)))" (( "(") (parenthesized_expression "(param_3 != -1 && (param_3 != -100000))" (( "(") (binary_expression "param_3 != -1 && (param_3 != -100000)" (binary_expression "param_3 != -1" (identifier "param_3") (!= "!=") (number_literal "-1")) (&& "&&") (parenthesized_expression "(param_3 != -100000)" (( "(") (binary_expression "param_3 != -100000" (identifier "param_3") (!= "!=") (number_literal "-100000")) () ")"))) () ")")) () ")")) (compound_statement "{\n      if (param_3 == -2) goto LAB_00027e50;\n      if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }\n      if (0 < param_3) goto LAB_00027e1c;\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);\nLAB_00027e00:\n      param_2 = 0x250ac;\n    }" ({ "{") (if_statement "if (param_3 == -2) goto LAB_00027e50;" (if "if") (parenthesized_expression "(param_3 == -2)" (( "(") (binary_expression "param_3 == -2" (identifier "param_3") (== "==") (number_literal "-2")) () ")")) (goto_statement "goto LAB_00027e50;" (goto "goto") (statement_identifier "LAB_00027e50") (; ";"))) (if_statement "if (param_3 == -50000) {\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }" (if "if") (parenthesized_expression "(param_3 == -50000)" (( "(") (binary_expression "param_3 == -50000" (identifier "param_3") (== "==") (number_literal "-50000")) () ")")) (compound_statement "{\n        param_3 = 0x10175;\n        goto LAB_00027e1c;\n      }" ({ "{") (expression_statement "param_3 = 0x10175;" (assignment_expression "param_3 = 0x10175" (identifier "param_3") (= "=") (number_literal "0x10175")) (; ";")) (goto_statement "goto LAB_00027e1c;" (goto "goto") (statement_identifier "LAB_00027e1c") (; ";")) (} "}"))) (if_statement "if (0 < param_3) goto LAB_00027e1c;" (if "if") (parenthesized_expression "(0 < param_3)" (( "(") (binary_expression "0 < param_3" (number_literal "0") (< "<") (identifier "param_3")) () ")")) (goto_statement "goto LAB_00027e1c;" (goto "goto") (statement_identifier "LAB_00027e1c") (; ";"))) (expression_statement "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);" (call_expression "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400)" (parenthesized_expression "(*(code *)PTR_png_error_00056410)" (( "(") (pointer_expression "*(code *)PTR_png_error_00056410" (* "*") (cast_expression "(code *)PTR_png_error_00056410" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_png_error_00056410"))) () ")")) (argument_list "(param_1,PTR_LAB_0005601c + 0x3400)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_LAB_0005601c + 0x3400" (identifier "PTR_LAB_0005601c") (+ "+") (number_literal "0x3400")) () ")"))) (; ";")) (labeled_statement "LAB_00027e00:\n      param_2 = 0x250ac;" (statement_identifier "LAB_00027e00") (: ":") (expression_statement "param_2 = 0x250ac;" (assignment_expression "param_2 = 0x250ac" (identifier "param_2") (= "=") (number_literal "0x250ac")) (; ";"))) (} "}"))) (expression_statement "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;" (assignment_expression "*(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x128)" (* "*") (cast_expression "(uint *)(param_1 + 0x128)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x128) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x128)" (* "*") (cast_expression "(uint *)(param_1 + 0x128)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x128)" (( "(") (binary_expression "param_1 + 0x128" (identifier "param_1") (+ "+") (number_literal "0x128")) () ")")))) (| "|") (number_literal "0x1000"))) (; ";")) (expression_statement "param_3 = 0xb18f;" (assignment_expression "param_3 = 0xb18f" (identifier "param_3") (= "=") (number_literal "0xb18f")) (; ";")) (labeled_statement "LAB_00027e1c:\n    while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }" (statement_identifier "LAB_00027e1c") (: ":") (while_statement "while (param_2 < 1) {\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }" (while "while") (parenthesized_expression "(param_2 < 1)" (( "(") (binary_expression "param_2 < 1" (identifier "param_2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);\nLAB_00027e50:\n      param_3 = 0x10175;\n    }" ({ "{") (expression_statement "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);" (call_expression "(*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424)" (parenthesized_expression "(*(code *)PTR_png_error_00056410)" (( "(") (pointer_expression "*(code *)PTR_png_error_00056410" (* "*") (cast_expression "(code *)PTR_png_error_00056410" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_png_error_00056410"))) () ")")) (argument_list "(param_1,PTR_LAB_0005601c + 0x3424)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_LAB_0005601c + 0x3424" (identifier "PTR_LAB_0005601c") (+ "+") (number_literal "0x3424")) () ")"))) (; ";")) (labeled_statement "LAB_00027e50:\n      param_3 = 0x10175;" (statement_identifier "LAB_00027e50") (: ":") (expression_statement "param_3 = 0x10175;" (assignment_expression "param_3 = 0x10175" (identifier "param_3") (= "=") (number_literal "0x10175")) (; ";"))) (} "}")))) (expression_statement "*(int *)(param_1 + 0x398) = param_3;" (assignment_expression "*(int *)(param_1 + 0x398) = param_3" (pointer_expression "*(int *)(param_1 + 0x398)" (* "*") (cast_expression "(int *)(param_1 + 0x398)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x398)" (( "(") (binary_expression "param_1 + 0x398" (identifier "param_1") (+ "+") (number_literal "0x398")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;" (assignment_expression "*(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1" (pointer_expression "*(ushort *)(param_1 + 0x3e2)" (* "*") (cast_expression "(ushort *)(param_1 + 0x3e2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3e2)" (( "(") (binary_expression "param_1 + 0x3e2" (identifier "param_1") (+ "+") (number_literal "0x3e2")) () ")")))) (= "=") (binary_expression "*(ushort *)(param_1 + 0x3e2) | 1" (pointer_expression "*(ushort *)(param_1 + 0x3e2)" (* "*") (cast_expression "(ushort *)(param_1 + 0x3e2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3e2)" (( "(") (binary_expression "param_1 + 0x3e2" (identifier "param_1") (+ "+") (number_literal "0x3e2")) () ")")))) (| "|") (number_literal "1"))) (; ";")) (expression_statement "*(int *)(param_1 + 0x238) = param_2;" (assignment_expression "*(int *)(param_1 + 0x238) = param_2" (pointer_expression "*(int *)(param_1 + 0x238)" (* "*") (cast_expression "(int *)(param_1 + 0x238)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x238)" (( "(") (binary_expression "param_1 + 0x238" (identifier "param_1") (+ "+") (number_literal "0x238")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (goto_statement label: (statement_identifier))) (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 (identifier) (binary_expression left: (identifier) right: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (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 (identifier) (binary_expression left: (identifier) right: (number_literal))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (return_statement))))

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

{
  int iVar1;
  
  iVar1 = FUN_00026a64(param_1,0);
  if (iVar1 != 0) {
    if ((param_2 == -1) || (param_2 == -100000)) {
      *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;
      param_2 = 220000;
    }
    else {
      if (param_2 == -2) goto LAB_00027e00;
      if (param_2 == -50000) {
        param_2 = 0x250ac;
      }
    }
    while ((param_3 != -1 && (param_3 != -100000))) {
      if (param_3 == -2) goto LAB_00027e50;
      if (param_3 == -50000) {
        param_3 = 0x10175;
        goto LAB_00027e1c;
      }
      if (0 < param_3) goto LAB_00027e1c;
      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3400);
LAB_00027e00:
      param_2 = 0x250ac;
    }
    *(uint *)(param_1 + 0x128) = *(uint *)(param_1 + 0x128) | 0x1000;
    param_3 = 0xb18f;
LAB_00027e1c:
    while (param_2 < 1) {
      (*(code *)PTR_png_error_00056410)(param_1,PTR_LAB_0005601c + 0x3424);
LAB_00027e50:
      param_3 = 0x10175;
    }
    *(int *)(param_1 + 0x398) = param_3;
    *(ushort *)(param_1 + 0x3e2) = *(ushort *)(param_1 + 0x3e2) | 1;
    *(int *)(param_1 + 0x238) = param_2;
  }
  return;
}

