//
// sub_D20950 from 0xd20950 to 0xd20974 (36 bytes)
//
// 2 xrefs:
// > ??> @ 0x121ee10
// > ??> @ 0x121ef90
//
// 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_D20950(__int64 a1, unsigned __int8 a2)
{
__int64 v2; // x2
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 48);
result = a2;
if ( (*(_BYTE *)(v2 + a2) & 2) != 0 )
return (unsigned __int8)(a2 - 32);
return result;
}