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

void png_set_filler(png_structrp png_ptr,png_uint_32 filler,int filler_loc)

{
  uint uVar1;
  
  if (png_ptr != (png_structrp)0x0) {
    if ((png_ptr->mode & 0x8000) == 0) {
      if (png_ptr->color_type == '\0') {
        if (png_ptr->bit_depth < 8) {
          png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");
          return;
        }
        png_ptr->usr_channels = '\x02';
      }
      else {
        if (png_ptr->color_type != '\x02') {
          png_app_error(png_ptr,"png_set_filler: inappropriate color type");
          return;
        }
        png_ptr->usr_channels = '\x04';
      }
    }
    else {
      png_ptr->filler = (png_uint_16)filler;
    }
    png_ptr->transformations = png_ptr->transformations | 0x8000;
    uVar1 = png_ptr->flags | 0x80;
    if (filler_loc != 1) {
      uVar1 = png_ptr->flags & 0xffffff7f;
    }
    png_ptr->flags = uVar1;
  }
  return;
}



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

void png_set_filler(int param_1,undefined2 param_2,int param_3)

{
  uint uVar1;
  
  if (param_1 != 0) {
    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {
      if (*(char *)(param_1 + 0x1ab) == '\0') {
        if (*(byte *)(param_1 + 0x1ac) < 8) {
          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");
          return;
        }
        *(undefined1 *)(param_1 + 0x1b0) = 2;
      }
      else {
        if (*(char *)(param_1 + 0x1ab) != '\x02') {
          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");
          return;
        }
        *(undefined1 *)(param_1 + 0x1b0) = 4;
      }
    }
    else {
      *(undefined2 *)(param_1 + 0x1b6) = param_2;
    }
    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;
    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;
    if (param_3 != 1) {
      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;
    }
    *(uint *)(param_1 + 0xd4) = uVar1;
  }
  return;
}


PUSH EBX
CALL 0x00014970
ADD EBX,0x1e66a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x00035781
TEST byte ptr [EAX + 0xd1],0x80
JNZ 0x00035750
MOVZX EDX,byte ptr [EAX + 0x1ab]
TEST DL,DL
JZ 0x00035790
CMP DL,0x2
JNZ 0x000357a8
MOV byte ptr [EAX + 0x1b0],0x4
JMP 0x0003575b
MOV EDX,dword ptr [ESP + 0x14]
MOV word ptr [EAX + 0x1b6],DX
OR dword ptr [EAX + 0xd8],0x8000
MOV EDX,dword ptr [EAX + 0xd4]
MOV ECX,EDX
OR DL,0x80
AND CL,0x7f
CMP dword ptr [ESP + 0x18],0x1
CMOVNZ EDX,ECX
MOV dword ptr [EAX + 0xd4],EDX
ADD ESP,0x8
POP EBX
RET
CMP byte ptr [EAX + 0x1ac],0x7
JBE 0x000357c0
MOV byte ptr [EAX + 0x1b0],0x2
JMP 0x0003575b
SUB ESP,0x8
LEA EDX,[EBX + 0xfffefb94]
PUSH EDX
PUSH EAX
CALL 0x0001aeb0
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
SUB ESP,0x8
LEA EDX,[EBX + 0xfffefb5c]
PUSH EDX
PUSH EAX
CALL 0x0001aeb0
ADD ESP,0x10
JMP 0x00035781
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid png_set_filler(int param_1,undefined2 param_2,int param_3)\n\n{\n  uint uVar1;\n  \n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }\n  return;\n}\n\n" comment (function_definition "void png_set_filler(int param_1,undefined2 param_2,int param_3)\n\n{\n  uint uVar1;\n  \n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_filler(int param_1,undefined2 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined2 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined2 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }" { (if_statement "if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0xd1) & 0x80) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0xd1) & 0x80) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd1) & 0x80)" ( (binary_expression "*(byte *)(param_1 + 0xd1) & 0x80" (pointer_expression "*(byte *)(param_1 + 0xd1)" * (cast_expression "(byte *)(param_1 + 0xd1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd1)" ( (binary_expression "param_1 + 0xd1" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }" { (if_statement "if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x1ab) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x1ab) == '\0'" (pointer_expression "*(char *)(param_1 + 0x1ab)" * (cast_expression "(char *)(param_1 + 0x1ab)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1ab)" ( (binary_expression "param_1 + 0x1ab" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }" { (if_statement "if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }" if (parenthesized_expression "(*(byte *)(param_1 + 0x1ac) < 8)" ( (binary_expression "*(byte *)(param_1 + 0x1ac) < 8" (pointer_expression "*(byte *)(param_1 + 0x1ac)" * (cast_expression "(byte *)(param_1 + 0x1ac)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1ac)" ( (binary_expression "param_1 + 0x1ac" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }" { (expression_statement "FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");" (call_expression "FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output")" identifier (argument_list "(param_1,"png_set_filler is invalid for low bit depth gray output")" ( identifier , (string_literal ""png_set_filler is invalid for low bit depth gray output"" " string_content ") ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined1 *)(param_1 + 0x1b0) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 0x1b0) = 2" (pointer_expression "*(undefined1 *)(param_1 + 0x1b0)" * (cast_expression "(undefined1 *)(param_1 + 0x1b0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b0)" ( (binary_expression "param_1 + 0x1b0" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }" else (compound_statement "{\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }" { (if_statement "if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }" if (parenthesized_expression "(*(char *)(param_1 + 0x1ab) != '\x02')" ( (binary_expression "*(char *)(param_1 + 0x1ab) != '\x02'" (pointer_expression "*(char *)(param_1 + 0x1ab)" * (cast_expression "(char *)(param_1 + 0x1ab)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1ab)" ( (binary_expression "param_1 + 0x1ab" identifier + number_literal) )))) != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }" { (expression_statement "FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");" (call_expression "FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type")" identifier (argument_list "(param_1,"png_set_filler: inappropriate color type")" ( identifier , (string_literal ""png_set_filler: inappropriate color type"" " string_content ") ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined1 *)(param_1 + 0x1b0) = 4;" (assignment_expression "*(undefined1 *)(param_1 + 0x1b0) = 4" (pointer_expression "*(undefined1 *)(param_1 + 0x1b0)" * (cast_expression "(undefined1 *)(param_1 + 0x1b0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b0)" ( (binary_expression "param_1 + 0x1b0" identifier + number_literal) )))) = number_literal) ;) }))) }) (else_clause "else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }" else (compound_statement "{\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }" { (expression_statement "*(undefined2 *)(param_1 + 0x1b6) = param_2;" (assignment_expression "*(undefined2 *)(param_1 + 0x1b6) = param_2" (pointer_expression "*(undefined2 *)(param_1 + 0x1b6)" * (cast_expression "(undefined2 *)(param_1 + 0x1b6)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b6)" ( (binary_expression "param_1 + 0x1b6" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;" (assignment_expression "*(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000" (pointer_expression "*(uint *)(param_1 + 0xd8)" * (cast_expression "(uint *)(param_1 + 0xd8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd8)" ( (binary_expression "param_1 + 0xd8" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0xd8) | 0x8000" (pointer_expression "*(uint *)(param_1 + 0xd8)" * (cast_expression "(uint *)(param_1 + 0xd8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd8)" ( (binary_expression "param_1 + 0xd8" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xd4) | 0x80" identifier = (binary_expression "*(uint *)(param_1 + 0xd4) | 0x80" (pointer_expression "*(uint *)(param_1 + 0xd4)" * (cast_expression "(uint *)(param_1 + 0xd4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) | number_literal)) ;) (if_statement "if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }" if (parenthesized_expression "(param_3 != 1)" ( (binary_expression "param_3 != 1" identifier != number_literal) )) (compound_statement "{\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }" { (expression_statement "uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f" identifier = (binary_expression "*(uint *)(param_1 + 0xd4) & 0xffffff7f" (pointer_expression "*(uint *)(param_1 + 0xd4)" * (cast_expression "(uint *)(param_1 + 0xd4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) & number_literal)) ;) })) (expression_statement "*(uint *)(param_1 + 0xd4) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0xd4) = uVar1" (pointer_expression "*(uint *)(param_1 + 0xd4)" * (cast_expression "(uint *)(param_1 + 0xd4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid png_set_filler(png_structrp png_ptr,png_uint_32 filler,int filler_loc)\n\n{\n  uint uVar1;\n  \n  if (png_ptr != (png_structrp)0x0) {\n    if ((png_ptr->mode & 0x8000) == 0) {\n      if (png_ptr->color_type == '\0') {\n        if (png_ptr->bit_depth < 8) {\n          png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        png_ptr->usr_channels = '\x02';\n      }\n      else {\n        if (png_ptr->color_type != '\x02') {\n          png_app_error(png_ptr,"png_set_filler: inappropriate color type");\n          return;\n        }\n        png_ptr->usr_channels = '\x04';\n      }\n    }\n    else {\n      png_ptr->filler = (png_uint_16)filler;\n    }\n    png_ptr->transformations = png_ptr->transformations | 0x8000;\n    uVar1 = png_ptr->flags | 0x80;\n    if (filler_loc != 1) {\n      uVar1 = png_ptr->flags & 0xffffff7f;\n    }\n    png_ptr->flags = uVar1;\n  }\n  return;\n}\n\n" comment comment (function_definition "void png_set_filler(png_structrp png_ptr,png_uint_32 filler,int filler_loc)\n\n{\n  uint uVar1;\n  \n  if (png_ptr != (png_structrp)0x0) {\n    if ((png_ptr->mode & 0x8000) == 0) {\n      if (png_ptr->color_type == '\0') {\n        if (png_ptr->bit_depth < 8) {\n          png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        png_ptr->usr_channels = '\x02';\n      }\n      else {\n        if (png_ptr->color_type != '\x02') {\n          png_app_error(png_ptr,"png_set_filler: inappropriate color type");\n          return;\n        }\n        png_ptr->usr_channels = '\x04';\n      }\n    }\n    else {\n      png_ptr->filler = (png_uint_16)filler;\n    }\n    png_ptr->transformations = png_ptr->transformations | 0x8000;\n    uVar1 = png_ptr->flags | 0x80;\n    if (filler_loc != 1) {\n      uVar1 = png_ptr->flags & 0xffffff7f;\n    }\n    png_ptr->flags = uVar1;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_filler(png_structrp png_ptr,png_uint_32 filler,int filler_loc)" identifier (parameter_list "(png_structrp png_ptr,png_uint_32 filler,int filler_loc)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_uint_32 filler" type_identifier identifier) , (parameter_declaration "int filler_loc" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  if (png_ptr != (png_structrp)0x0) {\n    if ((png_ptr->mode & 0x8000) == 0) {\n      if (png_ptr->color_type == '\0') {\n        if (png_ptr->bit_depth < 8) {\n          png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        png_ptr->usr_channels = '\x02';\n      }\n      else {\n        if (png_ptr->color_type != '\x02') {\n          png_app_error(png_ptr,"png_set_filler: inappropriate color type");\n          return;\n        }\n        png_ptr->usr_channels = '\x04';\n      }\n    }\n    else {\n      png_ptr->filler = (png_uint_16)filler;\n    }\n    png_ptr->transformations = png_ptr->transformations | 0x8000;\n    uVar1 = png_ptr->flags | 0x80;\n    if (filler_loc != 1) {\n      uVar1 = png_ptr->flags & 0xffffff7f;\n    }\n    png_ptr->flags = uVar1;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if (png_ptr != (png_structrp)0x0) {\n    if ((png_ptr->mode & 0x8000) == 0) {\n      if (png_ptr->color_type == '\0') {\n        if (png_ptr->bit_depth < 8) {\n          png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        png_ptr->usr_channels = '\x02';\n      }\n      else {\n        if (png_ptr->color_type != '\x02') {\n          png_app_error(png_ptr,"png_set_filler: inappropriate color type");\n          return;\n        }\n        png_ptr->usr_channels = '\x04';\n      }\n    }\n    else {\n      png_ptr->filler = (png_uint_16)filler;\n    }\n    png_ptr->transformations = png_ptr->transformations | 0x8000;\n    uVar1 = png_ptr->flags | 0x80;\n    if (filler_loc != 1) {\n      uVar1 = png_ptr->flags & 0xffffff7f;\n    }\n    png_ptr->flags = uVar1;\n  }" if (parenthesized_expression "(png_ptr != (png_structrp)0x0)" ( (binary_expression "png_ptr != (png_structrp)0x0" identifier != (cast_expression "(png_structrp)0x0" ( (type_descriptor "png_structrp" type_identifier) ) number_literal)) )) (compound_statement "{\n    if ((png_ptr->mode & 0x8000) == 0) {\n      if (png_ptr->color_type == '\0') {\n        if (png_ptr->bit_depth < 8) {\n          png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        png_ptr->usr_channels = '\x02';\n      }\n      else {\n        if (png_ptr->color_type != '\x02') {\n          png_app_error(png_ptr,"png_set_filler: inappropriate color type");\n          return;\n        }\n        png_ptr->usr_channels = '\x04';\n      }\n    }\n    else {\n      png_ptr->filler = (png_uint_16)filler;\n    }\n    png_ptr->transformations = png_ptr->transformations | 0x8000;\n    uVar1 = png_ptr->flags | 0x80;\n    if (filler_loc != 1) {\n      uVar1 = png_ptr->flags & 0xffffff7f;\n    }\n    png_ptr->flags = uVar1;\n  }" { (if_statement "if ((png_ptr->mode & 0x8000) == 0) {\n      if (png_ptr->color_type == '\0') {\n        if (png_ptr->bit_depth < 8) {\n          png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        png_ptr->usr_channels = '\x02';\n      }\n      else {\n        if (png_ptr->color_type != '\x02') {\n          png_app_error(png_ptr,"png_set_filler: inappropriate color type");\n          return;\n        }\n        png_ptr->usr_channels = '\x04';\n      }\n    }\n    else {\n      png_ptr->filler = (png_uint_16)filler;\n    }" if (parenthesized_expression "((png_ptr->mode & 0x8000) == 0)" ( (binary_expression "(png_ptr->mode & 0x8000) == 0" (parenthesized_expression "(png_ptr->mode & 0x8000)" ( (binary_expression "png_ptr->mode & 0x8000" (field_expression "png_ptr->mode" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (png_ptr->color_type == '\0') {\n        if (png_ptr->bit_depth < 8) {\n          png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        png_ptr->usr_channels = '\x02';\n      }\n      else {\n        if (png_ptr->color_type != '\x02') {\n          png_app_error(png_ptr,"png_set_filler: inappropriate color type");\n          return;\n        }\n        png_ptr->usr_channels = '\x04';\n      }\n    }" { (if_statement "if (png_ptr->color_type == '\0') {\n        if (png_ptr->bit_depth < 8) {\n          png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        png_ptr->usr_channels = '\x02';\n      }\n      else {\n        if (png_ptr->color_type != '\x02') {\n          png_app_error(png_ptr,"png_set_filler: inappropriate color type");\n          return;\n        }\n        png_ptr->usr_channels = '\x04';\n      }" if (parenthesized_expression "(png_ptr->color_type == '\0')" ( (binary_expression "png_ptr->color_type == '\0'" (field_expression "png_ptr->color_type" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (png_ptr->bit_depth < 8) {\n          png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        png_ptr->usr_channels = '\x02';\n      }" { (if_statement "if (png_ptr->bit_depth < 8) {\n          png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }" if (parenthesized_expression "(png_ptr->bit_depth < 8)" ( (binary_expression "png_ptr->bit_depth < 8" (field_expression "png_ptr->bit_depth" identifier -> field_identifier) < number_literal) )) (compound_statement "{\n          png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }" { (expression_statement "png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output");" (call_expression "png_app_error(png_ptr,"png_set_filler is invalid for low bit depth gray output")" identifier (argument_list "(png_ptr,"png_set_filler is invalid for low bit depth gray output")" ( identifier , (string_literal ""png_set_filler is invalid for low bit depth gray output"" " string_content ") ))) ;) (return_statement "return;" return ;) })) (expression_statement "png_ptr->usr_channels = '\x02';" (assignment_expression "png_ptr->usr_channels = '\x02'" (field_expression "png_ptr->usr_channels" identifier -> field_identifier) = (char_literal "'\x02'" ' escape_sequence ')) ;) }) (else_clause "else {\n        if (png_ptr->color_type != '\x02') {\n          png_app_error(png_ptr,"png_set_filler: inappropriate color type");\n          return;\n        }\n        png_ptr->usr_channels = '\x04';\n      }" else (compound_statement "{\n        if (png_ptr->color_type != '\x02') {\n          png_app_error(png_ptr,"png_set_filler: inappropriate color type");\n          return;\n        }\n        png_ptr->usr_channels = '\x04';\n      }" { (if_statement "if (png_ptr->color_type != '\x02') {\n          png_app_error(png_ptr,"png_set_filler: inappropriate color type");\n          return;\n        }" if (parenthesized_expression "(png_ptr->color_type != '\x02')" ( (binary_expression "png_ptr->color_type != '\x02'" (field_expression "png_ptr->color_type" identifier -> field_identifier) != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n          png_app_error(png_ptr,"png_set_filler: inappropriate color type");\n          return;\n        }" { (expression_statement "png_app_error(png_ptr,"png_set_filler: inappropriate color type");" (call_expression "png_app_error(png_ptr,"png_set_filler: inappropriate color type")" identifier (argument_list "(png_ptr,"png_set_filler: inappropriate color type")" ( identifier , (string_literal ""png_set_filler: inappropriate color type"" " string_content ") ))) ;) (return_statement "return;" return ;) })) (expression_statement "png_ptr->usr_channels = '\x04';" (assignment_expression "png_ptr->usr_channels = '\x04'" (field_expression "png_ptr->usr_channels" identifier -> field_identifier) = (char_literal "'\x04'" ' escape_sequence ')) ;) }))) }) (else_clause "else {\n      png_ptr->filler = (png_uint_16)filler;\n    }" else (compound_statement "{\n      png_ptr->filler = (png_uint_16)filler;\n    }" { (expression_statement "png_ptr->filler = (png_uint_16)filler;" (assignment_expression "png_ptr->filler = (png_uint_16)filler" (field_expression "png_ptr->filler" identifier -> field_identifier) = (cast_expression "(png_uint_16)filler" ( (type_descriptor "png_uint_16" type_identifier) ) identifier)) ;) }))) (expression_statement "png_ptr->transformations = png_ptr->transformations | 0x8000;" (assignment_expression "png_ptr->transformations = png_ptr->transformations | 0x8000" (field_expression "png_ptr->transformations" identifier -> field_identifier) = (binary_expression "png_ptr->transformations | 0x8000" (field_expression "png_ptr->transformations" identifier -> field_identifier) | number_literal)) ;) (expression_statement "uVar1 = png_ptr->flags | 0x80;" (assignment_expression "uVar1 = png_ptr->flags | 0x80" identifier = (binary_expression "png_ptr->flags | 0x80" (field_expression "png_ptr->flags" identifier -> field_identifier) | number_literal)) ;) (if_statement "if (filler_loc != 1) {\n      uVar1 = png_ptr->flags & 0xffffff7f;\n    }" if (parenthesized_expression "(filler_loc != 1)" ( (binary_expression "filler_loc != 1" identifier != number_literal) )) (compound_statement "{\n      uVar1 = png_ptr->flags & 0xffffff7f;\n    }" { (expression_statement "uVar1 = png_ptr->flags & 0xffffff7f;" (assignment_expression "uVar1 = png_ptr->flags & 0xffffff7f" identifier = (binary_expression "png_ptr->flags & 0xffffff7f" (field_expression "png_ptr->flags" identifier -> field_identifier) & number_literal)) ;) })) (expression_statement "png_ptr->flags = uVar1;" (assignment_expression "png_ptr->flags = uVar1" (field_expression "png_ptr->flags" identifier -> field_identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_filler(int param_1,undefined2 param_2,int param_3)\n\n{\n  uint uVar1;\n  \n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }\n  return;\n}\n\n" (function_definition "void png_set_filler(int param_1,undefined2 param_2,int param_3)\n\n{\n  uint uVar1;\n  \n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_filler(int param_1,undefined2 param_2,int param_3)" identifier (parameter_list "(int param_1,undefined2 param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined2 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (if_statement "if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }" { (if_statement "if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0xd1) & 0x80) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0xd1) & 0x80) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd1) & 0x80)" ( (binary_expression "*(byte *)(param_1 + 0xd1) & 0x80" (pointer_expression "*(byte *)(param_1 + 0xd1)" * (cast_expression "(byte *)(param_1 + 0xd1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd1)" ( (binary_expression "param_1 + 0xd1" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }" { (if_statement "if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x1ab) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x1ab) == '\0'" (pointer_expression "*(char *)(param_1 + 0x1ab)" * (cast_expression "(char *)(param_1 + 0x1ab)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1ab)" ( (binary_expression "param_1 + 0x1ab" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }" { (if_statement "if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }" if (parenthesized_expression "(*(byte *)(param_1 + 0x1ac) < 8)" ( (binary_expression "*(byte *)(param_1 + 0x1ac) < 8" (pointer_expression "*(byte *)(param_1 + 0x1ac)" * (cast_expression "(byte *)(param_1 + 0x1ac)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1ac)" ( (binary_expression "param_1 + 0x1ac" identifier + number_literal) )))) < number_literal) )) (compound_statement "{\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }" { (expression_statement "FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");" (call_expression "FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output")" identifier (argument_list "(param_1,"png_set_filler is invalid for low bit depth gray output")" ( identifier , (string_literal ""png_set_filler is invalid for low bit depth gray output"" " string_content ") ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined1 *)(param_1 + 0x1b0) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 0x1b0) = 2" (pointer_expression "*(undefined1 *)(param_1 + 0x1b0)" * (cast_expression "(undefined1 *)(param_1 + 0x1b0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b0)" ( (binary_expression "param_1 + 0x1b0" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }" else (compound_statement "{\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }" { (if_statement "if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }" if (parenthesized_expression "(*(char *)(param_1 + 0x1ab) != '\x02')" ( (binary_expression "*(char *)(param_1 + 0x1ab) != '\x02'" (pointer_expression "*(char *)(param_1 + 0x1ab)" * (cast_expression "(char *)(param_1 + 0x1ab)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1ab)" ( (binary_expression "param_1 + 0x1ab" identifier + number_literal) )))) != (char_literal "'\x02'" ' escape_sequence ')) )) (compound_statement "{\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }" { (expression_statement "FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");" (call_expression "FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type")" identifier (argument_list "(param_1,"png_set_filler: inappropriate color type")" ( identifier , (string_literal ""png_set_filler: inappropriate color type"" " string_content ") ))) ;) (return_statement "return;" return ;) })) (expression_statement "*(undefined1 *)(param_1 + 0x1b0) = 4;" (assignment_expression "*(undefined1 *)(param_1 + 0x1b0) = 4" (pointer_expression "*(undefined1 *)(param_1 + 0x1b0)" * (cast_expression "(undefined1 *)(param_1 + 0x1b0)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b0)" ( (binary_expression "param_1 + 0x1b0" identifier + number_literal) )))) = number_literal) ;) }))) }) (else_clause "else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }" else (compound_statement "{\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }" { (expression_statement "*(undefined2 *)(param_1 + 0x1b6) = param_2;" (assignment_expression "*(undefined2 *)(param_1 + 0x1b6) = param_2" (pointer_expression "*(undefined2 *)(param_1 + 0x1b6)" * (cast_expression "(undefined2 *)(param_1 + 0x1b6)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1b6)" ( (binary_expression "param_1 + 0x1b6" identifier + number_literal) )))) = identifier) ;) }))) (expression_statement "*(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;" (assignment_expression "*(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000" (pointer_expression "*(uint *)(param_1 + 0xd8)" * (cast_expression "(uint *)(param_1 + 0xd8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd8)" ( (binary_expression "param_1 + 0xd8" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0xd8) | 0x8000" (pointer_expression "*(uint *)(param_1 + 0xd8)" * (cast_expression "(uint *)(param_1 + 0xd8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd8)" ( (binary_expression "param_1 + 0xd8" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xd4) | 0x80" identifier = (binary_expression "*(uint *)(param_1 + 0xd4) | 0x80" (pointer_expression "*(uint *)(param_1 + 0xd4)" * (cast_expression "(uint *)(param_1 + 0xd4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) | number_literal)) ;) (if_statement "if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }" if (parenthesized_expression "(param_3 != 1)" ( (binary_expression "param_3 != 1" identifier != number_literal) )) (compound_statement "{\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }" { (expression_statement "uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f" identifier = (binary_expression "*(uint *)(param_1 + 0xd4) & 0xffffff7f" (pointer_expression "*(uint *)(param_1 + 0xd4)" * (cast_expression "(uint *)(param_1 + 0xd4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" identifier + number_literal) )))) & number_literal)) ;) })) (expression_statement "*(uint *)(param_1 + 0xd4) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0xd4) = uVar1" (pointer_expression "*(uint *)(param_1 + 0xd4)" * (cast_expression "(uint *)(param_1 + 0xd4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd4)" ( (binary_expression "param_1 + 0xd4" 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 ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (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 { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))) }) (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) )))) = 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 IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (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) ;) })) (return_statement return ;) })))
(function_definition "void png_set_filler(int param_1,undefined2 param_2,int param_3)\n\n{\n  uint uVar1;\n  \n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "png_set_filler(int param_1,undefined2 param_2,int param_3)" (identifier "png_set_filler") (parameter_list "(int param_1,undefined2 param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined2 param_2" (type_identifier "undefined2") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (if_statement "if (param_1 != 0) {\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }\n    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;\n    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;\n    if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }\n    *(uint *)(param_1 + 0xd4) = uVar1;\n  }" ({ "{") (if_statement "if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }\n    else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0xd1) & 0x80) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0xd1) & 0x80) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd1) & 0x80)" (( "(") (binary_expression "*(byte *)(param_1 + 0xd1) & 0x80" (pointer_expression "*(byte *)(param_1 + 0xd1)" (* "*") (cast_expression "(byte *)(param_1 + 0xd1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd1)" (( "(") (binary_expression "param_1 + 0xd1" (identifier "param_1") (+ "+") (number_literal "0xd1")) () ")")))) (& "&") (number_literal "0x80")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }\n    }" ({ "{") (if_statement "if (*(char *)(param_1 + 0x1ab) == '\0') {\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }\n      else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x1ab) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x1ab) == '\0'" (pointer_expression "*(char *)(param_1 + 0x1ab)" (* "*") (cast_expression "(char *)(param_1 + 0x1ab)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1ab)" (( "(") (binary_expression "param_1 + 0x1ab" (identifier "param_1") (+ "+") (number_literal "0x1ab")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 2;\n      }" ({ "{") (if_statement "if (*(byte *)(param_1 + 0x1ac) < 8) {\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }" (if "if") (parenthesized_expression "(*(byte *)(param_1 + 0x1ac) < 8)" (( "(") (binary_expression "*(byte *)(param_1 + 0x1ac) < 8" (pointer_expression "*(byte *)(param_1 + 0x1ac)" (* "*") (cast_expression "(byte *)(param_1 + 0x1ac)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1ac)" (( "(") (binary_expression "param_1 + 0x1ac" (identifier "param_1") (+ "+") (number_literal "0x1ac")) () ")")))) (< "<") (number_literal "8")) () ")")) (compound_statement "{\n          FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");\n          return;\n        }" ({ "{") (expression_statement "FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output");" (call_expression "FUN_0001aeb0(param_1,"png_set_filler is invalid for low bit depth gray output")" (identifier "FUN_0001aeb0") (argument_list "(param_1,"png_set_filler is invalid for low bit depth gray output")" (( "(") (identifier "param_1") (, ",") (string_literal ""png_set_filler is invalid for low bit depth gray output"" (" """) (string_content "png_set_filler is invalid for low bit depth gray output") (" """)) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(param_1 + 0x1b0) = 2;" (assignment_expression "*(undefined1 *)(param_1 + 0x1b0) = 2" (pointer_expression "*(undefined1 *)(param_1 + 0x1b0)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x1b0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1b0)" (( "(") (binary_expression "param_1 + 0x1b0" (identifier "param_1") (+ "+") (number_literal "0x1b0")) () ")")))) (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }" (else "else") (compound_statement "{\n        if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }\n        *(undefined1 *)(param_1 + 0x1b0) = 4;\n      }" ({ "{") (if_statement "if (*(char *)(param_1 + 0x1ab) != '\x02') {\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x1ab) != '\x02')" (( "(") (binary_expression "*(char *)(param_1 + 0x1ab) != '\x02'" (pointer_expression "*(char *)(param_1 + 0x1ab)" (* "*") (cast_expression "(char *)(param_1 + 0x1ab)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1ab)" (( "(") (binary_expression "param_1 + 0x1ab" (identifier "param_1") (+ "+") (number_literal "0x1ab")) () ")")))) (!= "!=") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) () ")")) (compound_statement "{\n          FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");\n          return;\n        }" ({ "{") (expression_statement "FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type");" (call_expression "FUN_0001aeb0(param_1,"png_set_filler: inappropriate color type")" (identifier "FUN_0001aeb0") (argument_list "(param_1,"png_set_filler: inappropriate color type")" (( "(") (identifier "param_1") (, ",") (string_literal ""png_set_filler: inappropriate color type"" (" """) (string_content "png_set_filler: inappropriate color type") (" """)) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(param_1 + 0x1b0) = 4;" (assignment_expression "*(undefined1 *)(param_1 + 0x1b0) = 4" (pointer_expression "*(undefined1 *)(param_1 + 0x1b0)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x1b0)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1b0)" (( "(") (binary_expression "param_1 + 0x1b0" (identifier "param_1") (+ "+") (number_literal "0x1b0")) () ")")))) (= "=") (number_literal "4")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }" (else "else") (compound_statement "{\n      *(undefined2 *)(param_1 + 0x1b6) = param_2;\n    }" ({ "{") (expression_statement "*(undefined2 *)(param_1 + 0x1b6) = param_2;" (assignment_expression "*(undefined2 *)(param_1 + 0x1b6) = param_2" (pointer_expression "*(undefined2 *)(param_1 + 0x1b6)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x1b6)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1b6)" (( "(") (binary_expression "param_1 + 0x1b6" (identifier "param_1") (+ "+") (number_literal "0x1b6")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}")))) (expression_statement "*(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;" (assignment_expression "*(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000" (pointer_expression "*(uint *)(param_1 + 0xd8)" (* "*") (cast_expression "(uint *)(param_1 + 0xd8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd8)" (( "(") (binary_expression "param_1 + 0xd8" (identifier "param_1") (+ "+") (number_literal "0xd8")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0xd8) | 0x8000" (pointer_expression "*(uint *)(param_1 + 0xd8)" (* "*") (cast_expression "(uint *)(param_1 + 0xd8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd8)" (( "(") (binary_expression "param_1 + 0xd8" (identifier "param_1") (+ "+") (number_literal "0xd8")) () ")")))) (| "|") (number_literal "0x8000"))) (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xd4) | 0x80" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(param_1 + 0xd4) | 0x80" (pointer_expression "*(uint *)(param_1 + 0xd4)" (* "*") (cast_expression "(uint *)(param_1 + 0xd4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd4)" (( "(") (binary_expression "param_1 + 0xd4" (identifier "param_1") (+ "+") (number_literal "0xd4")) () ")")))) (| "|") (number_literal "0x80"))) (; ";")) (if_statement "if (param_3 != 1) {\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }" (if "if") (parenthesized_expression "(param_3 != 1)" (( "(") (binary_expression "param_3 != 1" (identifier "param_3") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;\n    }" ({ "{") (expression_statement "uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(param_1 + 0xd4) & 0xffffff7f" (pointer_expression "*(uint *)(param_1 + 0xd4)" (* "*") (cast_expression "(uint *)(param_1 + 0xd4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd4)" (( "(") (binary_expression "param_1 + 0xd4" (identifier "param_1") (+ "+") (number_literal "0xd4")) () ")")))) (& "&") (number_literal "0xffffff7f"))) (; ";")) (} "}"))) (expression_statement "*(uint *)(param_1 + 0xd4) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0xd4) = uVar1" (pointer_expression "*(uint *)(param_1 + 0xd4)" (* "*") (cast_expression "(uint *)(param_1 + 0xd4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd4)" (( "(") (binary_expression "param_1 + 0xd4" (identifier "param_1") (+ "+") (number_literal "0xd4")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 var_1,type_2 filler,int var_3)

{
  type_3 uVar1;
  
  if (var_1 != (type_1)0x0) {
    if ((var_1->mode & 0x8000) == 0) {
      if (var_1->color_type == '\0') {
        if (var_1->bit_depth < 8) {
          var_2(var_1,"png_set_filler is invalid for low bit depth gray output");
          return;
        }
        var_1->usr_channels = '\x02';
      }
      else {
        if (var_1->color_type != '\x02') {
          var_2(var_1,"png_set_filler: inappropriate color type");
          return;
        }
        var_1->usr_channels = '\x04';
      }
    }
    else {
      var_1->filler = (type_4)filler;
    }
    var_1->transformations = var_1->transformations | 0x8000;
    uVar1 = var_1->flags | 0x80;
    if (var_3 != 1) {
      uVar1 = var_1->flags & 0xffffff7f;
    }
    var_1->flags = uVar1;
  }
  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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (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 (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))) (return_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)))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content))))) (return_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))))))) 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: (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: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))) (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))))

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

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

{
  uint uVar1;
  
  if (param_1 != 0) {
    if ((*(byte *)(param_1 + 0xd1) & 0x80) == 0) {
      if (*(char *)(param_1 + 0x1ab) == '\0') {
        if (*(byte *)(param_1 + 0x1ac) < 8) {
          FUN_0001aeb0(param_1,"MASKED is invalid for low bit depth gray output");
          return;
        }
        *(undefined1 *)(param_1 + 0x1b0) = 2;
      }
      else {
        if (*(char *)(param_1 + 0x1ab) != '\x02') {
          FUN_0001aeb0(param_1,"MASKED: inappropriate color type");
          return;
        }
        *(undefined1 *)(param_1 + 0x1b0) = 4;
      }
    }
    else {
      *(undefined2 *)(param_1 + 0x1b6) = param_2;
    }
    *(uint *)(param_1 + 0xd8) = *(uint *)(param_1 + 0xd8) | 0x8000;
    uVar1 = *(uint *)(param_1 + 0xd4) | 0x80;
    if (param_3 != 1) {
      uVar1 = *(uint *)(param_1 + 0xd4) & 0xffffff7f;
    }
    *(uint *)(param_1 + 0xd4) = uVar1;
  }
  return;
}

