//
// sub_995788 from 0x995788 to 0x9957dc (84 bytes)
//
// 3 xrefs:
// > sub_993ED0 @ 0x99487e
// > sub_993ED0 @ 0x9948ee
// > sub_993ED0 @ 0x994a46
//
// 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:06:39 +0000
//
int sub_995788()
{
int v0; // s1
int v1; // r0
int result; // r0
unsigned int v3; // r1
v1 = v0 & 0x7FF00000;
if ( (v0 & 0x7FF00000u) > 0x3400000 )
return v1 - 54525952;
v3 = 54525952 - v1;
result = (unsigned int)(54525952 - v1) >> 20;
if ( v3 >> 22 <= 4 )
return 0x80000u >> result;
if ( result - 20 <= 30 )
return 1 << (51 - result);
return result;
}