//
// png_reciprocal2 from 0xbca398 to 0xbca3e0 (72 bytes)
//
// 6 xrefs:
// > png_build_gamma_table @ 0xbca6dc
// > png_build_gamma_table @ 0xbca9d4
// > png_init_read_transformations @ 0xbd910c
// > png_init_read_transformations @ 0xbd9254
// > png_init_read_transformations @ 0xbd933c
// > ??> @ 0x43380
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall png_reciprocal2(int a1, int a2)
{
double v2; // d0
v2 = floor(1.0e15 / (double)a1 / (double)a2 + 0.5);
if ( v2 > 2147483650.0 || v2 < -2147483650.0 )
return 0;
else
return (unsigned int)(int)v2;
}