//
// sub_996694 from 0x996694 to 0x9966ba (38 bytes)
//
// 0 xrefs:
//
// 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:40 +0000
//
_DWORD *__fastcall sub_996694(unsigned int a1)
{
int v1; // r4
int v2; // r1
unsigned int v3; // r3
_DWORD *v4; // r0
v1 = 0;
if ( a1 >= 0x14 )
{
v2 = 4;
do
{
++v1;
v3 = 2 * v2 + 16;
v2 *= 2;
}
while ( v3 <= a1 );
}
v4 = sub_993E20(v1);
*v4 = v1;
return v4 + 1;
}