//
// sub_B1230 from 0xb1230 to 0xb1254 (36 bytes)
//
// 2 xrefs:
// > sub_B10D8 @ 0xb115c
// > sub_B13B4 @ 0xb14fc
//
// 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 12:14:37 +0000
//
__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;
}