//
// sub_100550884 from 0x100550884 to 0x1005508d4 (80 bytes)
//
// 0 xrefs:
//
// 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:07:53 +0000
//
__int64 __fastcall sub_100550884(int a1)
{
__int64 v1; // x8
bool v2; // cf
bool v4; // cc
if ( !a1 )
return 0;
if ( a1 <= 0 )
{
while ( 1 )
{
v4 = a1 < -1;
if ( a1 == -1 )
return 2;
a1 = ~a1;
if ( v4 )
goto LABEL_3;
}
}
else
{
LABEL_3:
LODWORD(v1) = 1;
do
{
v1 = (unsigned int)(v1 + 1);
v2 = (unsigned int)a1 >= 2;
a1 = (unsigned int)a1 >> 1;
}
while ( v2 );
return v1;
}
}