//
// png_reciprocal from 0xe3e6f0 to 0xe3e730 (64 bytes)
//
// 23 xrefs:
// > png_colorspace_set_endpoints @ 0xe3eca0
// > png_colorspace_set_endpoints @ 0xe3ecac
// > png_colorspace_set_endpoints @ 0xe3ecb8
// > png_colorspace_set_chromaticities @ 0xe3f494
// > png_colorspace_set_chromaticities @ 0xe3f4a0
// > png_colorspace_set_chromaticities @ 0xe3f4ac
// > png_build_gamma_table @ 0xe40ac8
// > png_build_gamma_table @ 0xe41334
// > png_build_gamma_table @ 0xe41b70
// > png_build_gamma_table @ 0xe42304
// > sub_E46918 @ 0xe46e38
// > sub_E46ED8 @ 0xe46ff8
// > sub_E46ED8 @ 0xe47078
// > sub_E47254 @ 0xe47794
// > sub_E47DAC @ 0xe48cf0
// > png_set_alpha_mode_fixed @ 0xe4dbec
// > png_set_alpha_mode_fixed @ 0xe4dc8c
// > png_init_read_transformations @ 0xe4edec
// > png_init_read_transformations @ 0xe4f1e4
// > png_init_read_transformations @ 0xe4f2bc
// > png_init_read_transformations @ 0xe4f404
// > png_init_read_transformations @ 0xe4f4ec
// > ??> @ 0xd8c28
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:01 +0000
//
__int64 __fastcall png_reciprocal(int a1)
{
double v1; // d0
v1 = floor(1.0e10 / (double)a1 + 0.5);
if ( v1 > 2147483650.0 || v1 < -2147483650.0 )
return 0;
else
return (unsigned int)(int)v1;
}