//
// sub_AF74FC from 0xaf74fc to 0xaf7550 (84 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:11:03 +0000
//
int __fastcall sub_AF74FC(int a1, int a2)
{
char v2; // r5
_DWORD *v3; // r7
int v4; // r9
int v5; // r6
v2 = 8 * (a1 & 3);
v3 = (_DWORD *)(a1 & 0xFFFFFFFC);
v4 = (0xFFFF << v2) & (a2 << v2);
do
v5 = *v3;
while ( MEMORY[0xFFFF0FC0](*v3, ~(0xFFFF << v2) & *v3 | v4, v3) );
return (__int16)((v5 & (unsigned int)(0xFFFF << v2)) >> v2);
}