//
// __popcountsi2 from 0xaf6568 to 0xaf65a8 (64 bytes)
//
// 2 xrefs:
// > sub_9520B0 @ 0x952148
// > ??> @ 0x6c3dc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:11:03 +0000
//
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;
}