//
// 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 (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:13:53 +0000
//
__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));
}