//
// sub_47CB2 from 0x47cb2 to 0x47cdc (42 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 11:40:39 +0000
//
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);
}