
png_uint_32
png_colormap_compose
          (png_image_read_control *display,png_uint_32 foreground,int foreground_encoding,
          png_uint_32 alpha,png_uint_32 background,int encoding)

{
  uint uVar1;
  uint uVar2;
  
  uVar1 = decode_gamma(display,foreground,foreground_encoding);
  uVar2 = decode_gamma(display,background,encoding);
  uVar1 = (0xff - alpha) * uVar2 + uVar1 * alpha;
  if (encoding == 2) {
    uVar1 = (uVar1 * 0x101 >> 0x10) + uVar1 * 0x101 + 0x8000 >> 0x10;
  }
  else {
    uVar1 = (((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +
            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)) * 0x10000 >> 0x18;
  }
  return uVar1;
}



uint FUN_0001fd9c(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,
                 undefined4 param_5,int param_6)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  
  iVar1 = FUN_0001fca0();
  iVar2 = FUN_0001fca0(param_1,param_5,param_6);
  uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;
  if (param_6 == 2) {
    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;
  }
  else {
    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +
            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;
  }
  return uVar3;
}


lui gp,0x4
addiu gp,gp,-0x1dac
addu gp,gp,t9
addiu sp,sp,-0x30
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
or s4,a0,zero
or s3,a3,zero
lw s2,0x44(sp)
lw s1,-0x7f9c(gp)
addiu s1,s1,-0x360
or t9,s1,zero
bal 0x0001fca0
_nop
lw gp,0x10(sp)
or s0,v0,zero
or a2,s2,zero
lw a1,0x40(sp)
or a0,s4,zero
or t9,s1,zero
bal 0x0001fca0
_nop
lw gp,0x10(sp)
li v1,0xff
subu v1,v1,s3
mult v1,v0
madd s0,s3
li v1,0x2
beq s2,v1,0x0001fe7c
_mflo s0
srl v1,s0,0xf
andi v0,s0,0x7fff
lw a0,-0x7e84(gp)
addu a0,a0,v1
lbu a0,0x0(a0)
mul v0,v0,a0
srl v0,v0,0xc
sll v1,v1,0x1
lw a0,-0x7e80(gp)
addu v1,a0,v1
lhu v1,0x0(v1)
addu v0,v0,v1
ext v0,v0,0x8,0x8
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
sll v1,s0,0x8
addu v1,v1,s0
srl v0,v1,0x10
ori a0,zero,0x8000
addu v1,v1,a0
addu v0,v0,v1
b 0x0001fe5c
_srl v0,v0,0x10
(translation_unit "uint FUN_0001fd9c(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                 undefined4 param_5,int param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_0001fca0();\n  iVar2 = FUN_0001fca0(param_1,param_5,param_6);\n  uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;\n  if (param_6 == 2) {\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }\n  return uVar3;\n}\n\n" (function_definition "uint FUN_0001fd9c(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                 undefined4 param_5,int param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_0001fca0();\n  iVar2 = FUN_0001fca0(param_1,param_5,param_6);\n  uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;\n  if (param_6 == 2) {\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0001fd9c(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                 undefined4 param_5,int param_6)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                 undefined4 param_5,int param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_0001fca0();\n  iVar2 = FUN_0001fca0(param_1,param_5,param_6);\n  uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;\n  if (param_6 == 2) {\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_0001fca0();" (assignment_expression "iVar1 = FUN_0001fca0()" identifier = (call_expression "FUN_0001fca0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = FUN_0001fca0(param_1,param_5,param_6);" (assignment_expression "iVar2 = FUN_0001fca0(param_1,param_5,param_6)" identifier = (call_expression "FUN_0001fca0(param_1,param_5,param_6)" identifier (argument_list "(param_1,param_5,param_6)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;" (assignment_expression "uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4" identifier = (binary_expression "(0xff - param_4) * iVar2 + iVar1 * param_4" (binary_expression "(0xff - param_4) * iVar2" (parenthesized_expression "(0xff - param_4)" ( (binary_expression "0xff - param_4" number_literal - identifier) )) * identifier) + (binary_expression "iVar1 * param_4" identifier * identifier))) ;) (if_statement "if (param_6 == 2) {\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }" if (parenthesized_expression "(param_6 == 2)" ( (binary_expression "param_6 == 2" identifier == number_literal) )) (compound_statement "{\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }" { (expression_statement "uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;" (assignment_expression "uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10" identifier = (binary_expression "(uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10" (binary_expression "(uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000" (binary_expression "(uVar3 * 0x101 >> 0x10) + uVar3 * 0x101" (parenthesized_expression "(uVar3 * 0x101 >> 0x10)" ( (binary_expression "uVar3 * 0x101 >> 0x10" (binary_expression "uVar3 * 0x101" identifier * number_literal) >> number_literal) )) + (binary_expression "uVar3 * 0x101" identifier * number_literal)) + number_literal) >> number_literal)) ;) }) (else_clause "else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }" else (compound_statement "{\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }" { (expression_statement "uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;" (assignment_expression "uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18" identifier = (binary_expression "(((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18" (binary_expression "(((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000" (parenthesized_expression "(((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2))" ( (binary_expression "((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)" (parenthesized_expression "((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc)" ( (binary_expression "(uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc" (binary_expression "(uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf]" (parenthesized_expression "(uVar3 & 0x7fff)" ( (binary_expression "uVar3 & 0x7fff" identifier & number_literal) )) * (cast_expression "(uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)PTR_DAT_0005616c[uVar3 >> 0xf]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "PTR_DAT_0005616c[uVar3 >> 0xf]" identifier [ (binary_expression "uVar3 >> 0xf" identifier >> number_literal) ])))) >> number_literal) )) + (binary_expression "(uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)" ( (binary_expression "PTR_DAT_00056170 + (uVar3 >> 0xf) * 2" identifier + (binary_expression "(uVar3 >> 0xf) * 2" (parenthesized_expression "(uVar3 >> 0xf)" ( (binary_expression "uVar3 >> 0xf" identifier >> number_literal) )) * number_literal)) ))))) )) * number_literal) >> number_literal)) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "png_uint_32\npng_colormap_compose\n          (png_image_read_control *display,png_uint_32 foreground,int foreground_encoding,\n          png_uint_32 alpha,png_uint_32 background,int encoding)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = decode_gamma(display,foreground,foreground_encoding);\n  uVar2 = decode_gamma(display,background,encoding);\n  uVar1 = (0xff - alpha) * uVar2 + uVar1 * alpha;\n  if (encoding == 2) {\n    uVar1 = (uVar1 * 0x101 >> 0x10) + uVar1 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar1 = (((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }\n  return uVar1;\n}\n\n" (function_definition "png_uint_32\npng_colormap_compose\n          (png_image_read_control *display,png_uint_32 foreground,int foreground_encoding,\n          png_uint_32 alpha,png_uint_32 background,int encoding)\n\n{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = decode_gamma(display,foreground,foreground_encoding);\n  uVar2 = decode_gamma(display,background,encoding);\n  uVar1 = (0xff - alpha) * uVar2 + uVar1 * alpha;\n  if (encoding == 2) {\n    uVar1 = (uVar1 * 0x101 >> 0x10) + uVar1 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar1 = (((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "png_colormap_compose\n          (png_image_read_control *display,png_uint_32 foreground,int foreground_encoding,\n          png_uint_32 alpha,png_uint_32 background,int encoding)" identifier (parameter_list "(png_image_read_control *display,png_uint_32 foreground,int foreground_encoding,\n          png_uint_32 alpha,png_uint_32 background,int encoding)" ( (parameter_declaration "png_image_read_control *display" type_identifier (pointer_declarator "*display" * identifier)) , (parameter_declaration "png_uint_32 foreground" type_identifier identifier) , (parameter_declaration "int foreground_encoding" primitive_type identifier) , (parameter_declaration "png_uint_32 alpha" type_identifier identifier) , (parameter_declaration "png_uint_32 background" type_identifier identifier) , (parameter_declaration "int encoding" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  \n  uVar1 = decode_gamma(display,foreground,foreground_encoding);\n  uVar2 = decode_gamma(display,background,encoding);\n  uVar1 = (0xff - alpha) * uVar2 + uVar1 * alpha;\n  if (encoding == 2) {\n    uVar1 = (uVar1 * 0x101 >> 0x10) + uVar1 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar1 = (((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }\n  return uVar1;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = decode_gamma(display,foreground,foreground_encoding);" (assignment_expression "uVar1 = decode_gamma(display,foreground,foreground_encoding)" identifier = (call_expression "decode_gamma(display,foreground,foreground_encoding)" identifier (argument_list "(display,foreground,foreground_encoding)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar2 = decode_gamma(display,background,encoding);" (assignment_expression "uVar2 = decode_gamma(display,background,encoding)" identifier = (call_expression "decode_gamma(display,background,encoding)" identifier (argument_list "(display,background,encoding)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar1 = (0xff - alpha) * uVar2 + uVar1 * alpha;" (assignment_expression "uVar1 = (0xff - alpha) * uVar2 + uVar1 * alpha" identifier = (binary_expression "(0xff - alpha) * uVar2 + uVar1 * alpha" (binary_expression "(0xff - alpha) * uVar2" (parenthesized_expression "(0xff - alpha)" ( (binary_expression "0xff - alpha" number_literal - identifier) )) * identifier) + (binary_expression "uVar1 * alpha" identifier * identifier))) ;) (if_statement "if (encoding == 2) {\n    uVar1 = (uVar1 * 0x101 >> 0x10) + uVar1 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar1 = (((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }" if (parenthesized_expression "(encoding == 2)" ( (binary_expression "encoding == 2" identifier == number_literal) )) (compound_statement "{\n    uVar1 = (uVar1 * 0x101 >> 0x10) + uVar1 * 0x101 + 0x8000 >> 0x10;\n  }" { (expression_statement "uVar1 = (uVar1 * 0x101 >> 0x10) + uVar1 * 0x101 + 0x8000 >> 0x10;" (assignment_expression "uVar1 = (uVar1 * 0x101 >> 0x10) + uVar1 * 0x101 + 0x8000 >> 0x10" identifier = (binary_expression "(uVar1 * 0x101 >> 0x10) + uVar1 * 0x101 + 0x8000 >> 0x10" (binary_expression "(uVar1 * 0x101 >> 0x10) + uVar1 * 0x101 + 0x8000" (binary_expression "(uVar1 * 0x101 >> 0x10) + uVar1 * 0x101" (parenthesized_expression "(uVar1 * 0x101 >> 0x10)" ( (binary_expression "uVar1 * 0x101 >> 0x10" (binary_expression "uVar1 * 0x101" identifier * number_literal) >> number_literal) )) + (binary_expression "uVar1 * 0x101" identifier * number_literal)) + number_literal) >> number_literal)) ;) }) (else_clause "else {\n    uVar1 = (((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }" else (compound_statement "{\n    uVar1 = (((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }" { (expression_statement "uVar1 = (((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)) * 0x10000 >> 0x18;" (assignment_expression "uVar1 = (((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)) * 0x10000 >> 0x18" identifier = (binary_expression "(((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)) * 0x10000 >> 0x18" (binary_expression "(((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)) * 0x10000" (parenthesized_expression "(((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2))" ( (binary_expression "((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)" (parenthesized_expression "((uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc)" ( (binary_expression "(uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf] >> 0xc" (binary_expression "(uVar1 & 0x7fff) * (uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf]" (parenthesized_expression "(uVar1 & 0x7fff)" ( (binary_expression "uVar1 & 0x7fff" identifier & number_literal) )) * (cast_expression "(uint)(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "PTR_png_sRGB_delta_0005616c[uVar1 >> 0xf]" identifier [ (binary_expression "uVar1 >> 0xf" identifier >> number_literal) ])))) >> number_literal) )) + (binary_expression "(uint)*(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2)" ( (binary_expression "PTR_png_sRGB_base_00056170 + (uVar1 >> 0xf) * 2" identifier + (binary_expression "(uVar1 >> 0xf) * 2" (parenthesized_expression "(uVar1 >> 0xf)" ( (binary_expression "uVar1 >> 0xf" identifier >> number_literal) )) * number_literal)) ))))) )) * number_literal) >> number_literal)) ;) }))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "uint FUN_0001fd9c(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                 undefined4 param_5,int param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_0001fca0();\n  iVar2 = FUN_0001fca0(param_1,param_5,param_6);\n  uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;\n  if (param_6 == 2) {\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }\n  return uVar3;\n}\n\n" (function_definition "uint FUN_0001fd9c(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                 undefined4 param_5,int param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_0001fca0();\n  iVar2 = FUN_0001fca0(param_1,param_5,param_6);\n  uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;\n  if (param_6 == 2) {\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }\n  return uVar3;\n}" type_identifier (function_declarator "FUN_0001fd9c(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                 undefined4 param_5,int param_6)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                 undefined4 param_5,int param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_0001fca0();\n  iVar2 = FUN_0001fca0(param_1,param_5,param_6);\n  uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;\n  if (param_6 == 2) {\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (expression_statement "iVar1 = FUN_0001fca0();" (assignment_expression "iVar1 = FUN_0001fca0()" identifier = (call_expression "FUN_0001fca0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar2 = FUN_0001fca0(param_1,param_5,param_6);" (assignment_expression "iVar2 = FUN_0001fca0(param_1,param_5,param_6)" identifier = (call_expression "FUN_0001fca0(param_1,param_5,param_6)" identifier (argument_list "(param_1,param_5,param_6)" ( identifier , identifier , identifier )))) ;) (expression_statement "uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;" (assignment_expression "uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4" identifier = (binary_expression "(0xff - param_4) * iVar2 + iVar1 * param_4" (binary_expression "(0xff - param_4) * iVar2" (parenthesized_expression "(0xff - param_4)" ( (binary_expression "0xff - param_4" number_literal - identifier) )) * identifier) + (binary_expression "iVar1 * param_4" identifier * identifier))) ;) (if_statement "if (param_6 == 2) {\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }" if (parenthesized_expression "(param_6 == 2)" ( (binary_expression "param_6 == 2" identifier == number_literal) )) (compound_statement "{\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }" { (expression_statement "uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;" (assignment_expression "uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10" identifier = (binary_expression "(uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10" (binary_expression "(uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000" (binary_expression "(uVar3 * 0x101 >> 0x10) + uVar3 * 0x101" (parenthesized_expression "(uVar3 * 0x101 >> 0x10)" ( (binary_expression "uVar3 * 0x101 >> 0x10" (binary_expression "uVar3 * 0x101" identifier * number_literal) >> number_literal) )) + (binary_expression "uVar3 * 0x101" identifier * number_literal)) + number_literal) >> number_literal)) ;) }) (else_clause "else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }" else (compound_statement "{\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }" { (expression_statement "uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;" (assignment_expression "uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18" identifier = (binary_expression "(((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18" (binary_expression "(((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000" (parenthesized_expression "(((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2))" ( (binary_expression "((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)" (parenthesized_expression "((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc)" ( (binary_expression "(uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc" (binary_expression "(uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf]" (parenthesized_expression "(uVar3 & 0x7fff)" ( (binary_expression "uVar3 & 0x7fff" identifier & number_literal) )) * (cast_expression "(uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)PTR_DAT_0005616c[uVar3 >> 0xf]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "PTR_DAT_0005616c[uVar3 >> 0xf]" identifier [ (binary_expression "uVar3 >> 0xf" identifier >> number_literal) ])))) >> number_literal) )) + (binary_expression "(uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)" ( (binary_expression "PTR_DAT_00056170 + (uVar3 >> 0xf) * 2" identifier + (binary_expression "(uVar3 >> 0xf) * 2" (parenthesized_expression "(uVar3 >> 0xf)" ( (binary_expression "uVar3 >> 0xf" identifier >> number_literal) )) * number_literal)) ))))) )) * number_literal) >> number_literal)) ;) }))) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression LIT - IDENT) )) * IDENT) + (binary_expression IDENT * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT * LIT) >> LIT) )) + (binary_expression IDENT * LIT)) + LIT) >> LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression IDENT >> LIT) ])))) >> LIT) )) + (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) * LIT)) ))))) )) * LIT) >> LIT)) ;) }))) (return_statement return IDENT ;) })))
(function_definition "uint FUN_0001fd9c(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                 undefined4 param_5,int param_6)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_0001fca0();\n  iVar2 = FUN_0001fca0(param_1,param_5,param_6);\n  uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;\n  if (param_6 == 2) {\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }\n  return uVar3;\n}" (type_identifier "uint") (function_declarator "FUN_0001fd9c(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                 undefined4 param_5,int param_6)" (identifier "FUN_0001fd9c") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,\n                 undefined4 param_5,int param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  \n  iVar1 = FUN_0001fca0();\n  iVar2 = FUN_0001fca0(param_1,param_5,param_6);\n  uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;\n  if (param_6 == 2) {\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (expression_statement "iVar1 = FUN_0001fca0();" (assignment_expression "iVar1 = FUN_0001fca0()" (identifier "iVar1") (= "=") (call_expression "FUN_0001fca0()" (identifier "FUN_0001fca0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar2 = FUN_0001fca0(param_1,param_5,param_6);" (assignment_expression "iVar2 = FUN_0001fca0(param_1,param_5,param_6)" (identifier "iVar2") (= "=") (call_expression "FUN_0001fca0(param_1,param_5,param_6)" (identifier "FUN_0001fca0") (argument_list "(param_1,param_5,param_6)" (( "(") (identifier "param_1") (, ",") (identifier "param_5") (, ",") (identifier "param_6") () ")")))) (; ";")) (expression_statement "uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;" (assignment_expression "uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4" (identifier "uVar3") (= "=") (binary_expression "(0xff - param_4) * iVar2 + iVar1 * param_4" (binary_expression "(0xff - param_4) * iVar2" (parenthesized_expression "(0xff - param_4)" (( "(") (binary_expression "0xff - param_4" (number_literal "0xff") (- "-") (identifier "param_4")) () ")")) (* "*") (identifier "iVar2")) (+ "+") (binary_expression "iVar1 * param_4" (identifier "iVar1") (* "*") (identifier "param_4")))) (; ";")) (if_statement "if (param_6 == 2) {\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }\n  else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }" (if "if") (parenthesized_expression "(param_6 == 2)" (( "(") (binary_expression "param_6 == 2" (identifier "param_6") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;\n  }" ({ "{") (expression_statement "uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;" (assignment_expression "uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10" (identifier "uVar3") (= "=") (binary_expression "(uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10" (binary_expression "(uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000" (binary_expression "(uVar3 * 0x101 >> 0x10) + uVar3 * 0x101" (parenthesized_expression "(uVar3 * 0x101 >> 0x10)" (( "(") (binary_expression "uVar3 * 0x101 >> 0x10" (binary_expression "uVar3 * 0x101" (identifier "uVar3") (* "*") (number_literal "0x101")) (>> ">>") (number_literal "0x10")) () ")")) (+ "+") (binary_expression "uVar3 * 0x101" (identifier "uVar3") (* "*") (number_literal "0x101"))) (+ "+") (number_literal "0x8000")) (>> ">>") (number_literal "0x10"))) (; ";")) (} "}")) (else_clause "else {\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }" (else "else") (compound_statement "{\n    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;\n  }" ({ "{") (expression_statement "uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;" (assignment_expression "uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18" (identifier "uVar3") (= "=") (binary_expression "(((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18" (binary_expression "(((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000" (parenthesized_expression "(((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2))" (( "(") (binary_expression "((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +\n            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)" (parenthesized_expression "((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc)" (( "(") (binary_expression "(uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc" (binary_expression "(uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf]" (parenthesized_expression "(uVar3 & 0x7fff)" (( "(") (binary_expression "uVar3 & 0x7fff" (identifier "uVar3") (& "&") (number_literal "0x7fff")) () ")")) (* "*") (cast_expression "(uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)PTR_DAT_0005616c[uVar3 >> 0xf]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "PTR_DAT_0005616c[uVar3 >> 0xf]" (identifier "PTR_DAT_0005616c") ([ "[") (binary_expression "uVar3 >> 0xf" (identifier "uVar3") (>> ">>") (number_literal "0xf")) (] "]"))))) (>> ">>") (number_literal "0xc")) () ")")) (+ "+") (binary_expression "(uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)" (( "(") (binary_expression "PTR_DAT_00056170 + (uVar3 >> 0xf) * 2" (identifier "PTR_DAT_00056170") (+ "+") (binary_expression "(uVar3 >> 0xf) * 2" (parenthesized_expression "(uVar3 >> 0xf)" (( "(") (binary_expression "uVar3 >> 0xf" (identifier "uVar3") (>> ">>") (number_literal "0xf")) () ")")) (* "*") (number_literal "2"))) () ")"))))) () ")")) (* "*") (number_literal "0x10000")) (>> ">>") (number_literal "0x18"))) (; ";")) (} "}")))) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier))))) (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: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) right: (binary_expression left: (parenthesized_expression (identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))))) right: (number_literal)) right: (number_literal))))))) (return_statement (identifier)))))

uint MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,int param_4,
                 undefined4 param_5,int param_6)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  
  iVar1 = FUN_0001fca0();
  iVar2 = FUN_0001fca0(param_1,param_5,param_6);
  uVar3 = (0xff - param_4) * iVar2 + iVar1 * param_4;
  if (param_6 == 2) {
    uVar3 = (uVar3 * 0x101 >> 0x10) + uVar3 * 0x101 + 0x8000 >> 0x10;
  }
  else {
    uVar3 = (((uVar3 & 0x7fff) * (uint)(byte)PTR_DAT_0005616c[uVar3 >> 0xf] >> 0xc) +
            (uint)*(ushort *)(PTR_DAT_00056170 + (uVar3 >> 0xf) * 2)) * 0x10000 >> 0x18;
  }
  return uVar3;
}

