//
// sub_B1230 from 0xb1230 to 0xb1254 (36 bytes)
//
// 2 xrefs:
// > sub_B10D8 @ 0xb115c
// > sub_B13B4 @ 0xb14fc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_B1230(__int64 a1, unsigned int a2, int a3)
{
__int64 result; // x0
for ( result = 0; a3; a2 >>= 1 )
{
--a3;
result = a2 & 1 | (2 * (_DWORD)result);
}
return result;
}