//
// sub_AF733C from 0xaf733c to 0xaf73a4 (104 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_AF733C(int a1, unsigned __int16 a2, int a3)
{
_DWORD *v3; // r7
int v4; // r11
char v5; // r4
int v7; // r5
int v8; // r9
int result; // r0
v3 = (_DWORD *)(a1 & 0xFFFFFFFC);
v4 = a2;
v5 = 8 * (a1 & 3);
v7 = 0xFFFF << v5;
v8 = (0xFFFF << v5) & (a3 << v5);
do
{
if ( (*v3 & (unsigned int)v7) >> v5 != v4 )
{
LOWORD(result) = (*v3 & (unsigned int)v7) >> v5;
return (__int16)result;
}
}
while ( MEMORY[0xFFFF0FC0](*v3, ~v7 & *v3 | v8, v3) );
LOWORD(result) = a2;
return (__int16)result;
}