//
// __popcountsi2 from 0x8e1568 to 0x8e15a8 (64 bytes)
//
// 2 xrefs:
// > sub_7424F0 @ 0x742588
// > ??> @ 0x592dc
//
// 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
//
unsigned int __fastcall _popcountsi2(unsigned int a1)
{
return (16843009
* (((((a1 - ((a1 >> 1) & 0x55555555)) >> 2) & 0x33333333)
+ ((a1 - ((a1 >> 1) & 0x55555555)) & 0x33333333)
+ (((((a1 - ((a1 >> 1) & 0x55555555)) >> 2) & 0x33333333) + ((a1 - ((a1 >> 1) & 0x55555555)) & 0x33333333)) >> 4))
& 0xF0F0F0F)) >> 24;
}