//
// __popcountdi2 from 0xe87834 to 0xe87868 (52 bytes)
//
// 2 xrefs:
// > sub_CCB5F8 @ 0xccb67c
// > ??> @ 0x73710
//
// 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 __int64 __fastcall _popcountdi2(unsigned __int64 a1)
{
unsigned __int64 v1; // x0
v1 = (((a1 - ((a1 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)
+ ((a1 - ((a1 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL);
return (0x101010101010101LL * ((v1 + (v1 >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56;
}