//
// sub_100562C38 from 0x100562c38 to 0x100562c64 (44 bytes)
//
// 2 xrefs:
// > sub_100633CAC @ 0x100633fbc
// > sub_1006349B4 @ 0x100634a28
//
// 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:08:08 +0000
//
__int64 __fastcall sub_100562C38(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;
}