//
// sub_47CB2 from 0x47cb2 to 0x47cdc (42 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall sub_47CB2(_DWORD *a1, int a2)
{
int v2; // r2
unsigned int v4; // r3
v2 = a1[10];
if ( (a2 ^ ((unsigned __int8)(v2 & 2) >> 1)) != 1 )
return 0;
v4 = v2 & 0xFFFFFFFD;
if ( a2 )
v4 = v2 | 2;
a1[10] = v4;
return (*(int (__fastcall **)(_DWORD *, _DWORD, int))(*a1 + 16))(a1, a1[6], 1);
}