//
// png_set_alpha_mode from 0x868ccc to 0x868d50 (132 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:02:49 +0000
//
int __fastcall png_set_alpha_mode(int a1, int a2, double a3)
{
double v3; // d7
_BOOL4 v6; // r3
double v7; // d7
v3 = a3;
v6 = a3 > 0.0;
if ( v3 >= 128.0 )
v6 = 0;
if ( v6 )
v3 = v3 * 100000.0;
v7 = floor(v3 + 0.5);
if ( v7 > 2147483650.0 || v7 < -2147483650.0 )
png_fixed_error(a1, (int)"gamma value");
return png_set_alpha_mode_fixed(a1, a2, (Elf32_Sym *)(int)v7);
}