//
// sub_60980 from 0x60980 to 0x609a0 (32 bytes)
//
// 4 xrefs:
// > sub_608E4 @ 0x60938
// > sub_60A2C @ 0x60a9c
// > sub_60A2C @ 0x60afc
// > sub_60F60 @ 0x60fb0
//
// 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
//
__int64 __fastcall sub_60980(unsigned int a1)
{
unsigned int v1; // w8
unsigned int v2; // w8
v1 = (a1 >> 1) | (a1 >> 2) | (((a1 >> 1) | (a1 >> 2)) >> 2);
v2 = v1 | (v1 >> 4) | ((v1 | (v1 >> 4)) >> 8);
return a1 & ~(v2 | HIWORD(v2));
}