//
// sub_10043CAD0 from 0x10043cad0 to 0x10043cafc (44 bytes)
//
// 2 xrefs:
// > sub_10050DB44 @ 0x10050de54
// > sub_10050E84C @ 0x10050e8c0
//
// 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_10043CAD0(unsigned int a1, int a2)
{
unsigned int v2; // w9
v2 = (a1 >> 2) & 0xC | a1 & 3;
if ( a2 != 4 )
v2 = a1;
if ( a2 == 5 )
return (a1 >> 1) & 0x18 | a1 & 7;
else
return v2;
}