//
// sub_100406464 from 0x100406464 to 0x1004064d0 (108 bytes)
//
// 2 xrefs:
// > sub_100407958 @ 0x1004080a4
// > sub_10040908C @ 0x10040924c
//
// 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 11:04:41 +0000
//
__int64 __fastcall sub_100406464(int a1)
{
unsigned int v1; // w10
int v2; // w8
int v3; // w9
int v4; // w10
v1 = a1 % 20;
if ( (unsigned int)(a1 % 20) > 0x13 )
{
v2 = 255;
v3 = 255;
v4 = 255;
}
else
{
v2 = byte_10076E660[v1];
v3 = byte_10076E674[v1];
v4 = byte_10076E688[v1];
}
return (v3 << 8) | (v4 << 16) | (unsigned int)v2;
}