//
// 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 (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 11:41:56 +0000
//
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);
}