//
// sub_96EABC from 0x96eabc to 0x96eaf2 (54 bytes)
//
// 1 xrefs:
// > sub_96EA08 @ 0x96ea2c
//
// 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:05:50 +0000
//
int __fastcall sub_96EABC(int result, unsigned int a2)
{
__int64 v2; // kr00_8
unsigned int v3; // r2
int v4; // r1
v2 = *(_QWORD *)result;
v3 = (HIDWORD(v2) - (int)v2) >> 2;
if ( v3 < a2 )
return sub_976410();
if ( v3 > a2 )
{
v4 = v2 + 4 * a2;
if ( HIDWORD(v2) != v4 )
*(_DWORD *)(result + 4) = (~(HIDWORD(v2) - 4 - v4) & 0xFFFFFFFC) + HIDWORD(v2);
}
return result;
}