//
// sub_CD7E4 from 0xcd7e4 to 0xcd81e (58 bytes)
//
// 3 xrefs:
// > sub_CD4F4 @ 0xcd576
// > sub_CD4F4 @ 0xcd6f2
// > sub_CD4F4 @ 0xcd766
//
// 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 sub_CD7E4(unsigned int a1)
{
unsigned int v1; // r0
unsigned int v2; // r0
unsigned int v3; // r0
v1 = bswap32(a1);
v2 = ((v1 >> 4) & 0xF0F0F0F) + ((16 * v1) & 0xF0F0F0F0);
v3 = ((v2 >> 2) & 0x33333333) + ((4 * v2) & 0xCCCCCCCC);
return ((v3 >> 1) & 0x55555555) + ((2 * v3) & 0xAAAAAAAA);
}