//
// sub_4B910 from 0x4b910 to 0x4b96e (94 bytes)
//
// 2 xrefs:
// > sub_57338 @ 0x57438
// > sub_79B94 @ 0x79c8e
//
// 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:41 +0000
//
int __fastcall sub_4B910(_DWORD *a1)
{
int v2; // r0
unsigned int *v3; // r0
unsigned int v4; // r1
int v5; // r0
unsigned int *v6; // r0
unsigned int v7; // r1
int result; // r0
sub_4A9A4(a1, 83);
v2 = a1[16];
if ( !v2 )
goto LABEL_8;
v3 = (unsigned int *)(v2 + 92);
__dmb(0xBu);
do
v4 = __ldrex(v3);
while ( __strex(v4 & 0xFFFFFFDF, v3) );
__dmb(0xBu);
v5 = a1[16];
__dmb(0xBu);
v6 = (unsigned int *)(v5 + 92);
do
v7 = __ldrex(v6);
while ( __strex(v7 & 0xFFFFFFBF, v6) );
__dmb(0xBu);
result = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)a1[16] + 8))(a1[16]);
if ( !result )
{
a1[16] = 0;
LABEL_8:
a1[14] = 0;
a1[15] = 0;
return 0;
}
return result;
}