//
// png_reciprocal2 from 0x860434 to 0x8604ac (120 bytes)
//
// 5 xrefs:
// > png_build_gamma_table @ 0x86071a
// > png_build_gamma_table @ 0x8609bc
// > png_init_read_transformations @ 0x869d84
// > png_init_read_transformations @ 0x869ec4
// > png_init_read_transformations @ 0x869f86
//
// 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:42 +0000
//
int __fastcall png_reciprocal2(int a1, int a2)
{
double v2; // r0
_BOOL4 v3; // r3
v2 = floor(1.0e15 / (double)a1 / (double)a2 + 0.5);
v3 = v2 <= 2147483650.0;
if ( v2 < -2147483650.0 )
v3 = 0;
if ( v3 )
return (int)v2;
else
return 0;
}