//
// sub_1005FF120 from 0x1005ff120 to 0x1005ff140 (32 bytes)
//
// 1 xrefs:
// > sub_1005FF120 @ 0x1005ff134
//
// 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 11:09:56 +0000
//
__int64 __fastcall sub_1005FF120(int a1, unsigned int a2, unsigned int a3)
{
int v3; // w8
unsigned int v4; // w9
do
{
v3 = a1 - 1;
if ( !a1 )
break;
v4 = a2 >> a1--;
}
while ( v4 <= a3 );
return (unsigned int)(v3 + 1);
}