//
// sub_1006D0CA0 from 0x1006d0ca0 to 0x1006d0d88 (232 bytes)
//
// 8 xrefs:
// > sub_1006D0D88 @ 0x1006d0da8
// > sub_1006D14BC @ 0x1006d14e8
// > sub_1006D2E94 @ 0x1006d3014
// > sub_1006D48B4 @ 0x1006d48e0
// > sub_1006D7464 @ 0x1006d7568
// > sub_1006D7C20 @ 0x1006d7c44
// > sub_1006DB0EC @ 0x1006db2ec
// > sub_1007193A0 @ 0x1007193d4
//
// 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:12:26 +0000
//
__int64 __fastcall sub_1006D0CA0(unsigned __int64 a1)
{
if ( HIDWORD(a1) )
{
if ( HIWORD(a1) )
{
if ( HIBYTE(a1) )
return (unsigned int)byte_1007A3C48[HIBYTE(a1)] + 56;
else
return (unsigned int)byte_1007A3C48[HIWORD(a1)] + 48;
}
else if ( (a1 & 0xFF0000000000LL) != 0 )
{
return (unsigned int)byte_1007A3C48[a1 >> 40] + 40;
}
else
{
return (unsigned int)byte_1007A3C48[(__int64)a1 >> 32] + 32;
}
}
else if ( (a1 & 0xFFFF0000) != 0 )
{
if ( (a1 & 0xFF000000) != 0 )
return (unsigned int)byte_1007A3C48[(int)(a1 >> 24)] + 24;
else
return (unsigned int)byte_1007A3C48[(int)(a1 >> 16)] + 16;
}
else if ( (a1 & 0xFF00) != 0 )
{
return (unsigned int)byte_1007A3C48[(int)(a1 >> 8)] + 8;
}
else
{
return byte_1007A3C48[(int)a1];
}
}