//
// sub_A83B0 from 0xa83b0 to 0xa83f6 (70 bytes)
//
// 1 xrefs:
// > sub_A8550 @ 0xa8742
//
// 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_A83B0(int a1, int a2)
{
int v3; // r0
unsigned int *v4; // r5
unsigned int v5; // r0
unsigned int v6; // r0
v3 = *(_DWORD *)(a2 + 84);
__dmb(0xBu);
v4 = (unsigned int *)(a2 + 84);
if ( (v3 & 0x80000) == 0 )
sub_A83F8(a1);
v5 = *v4;
__dmb(0xBu);
if ( (v5 & 0x40000) == 0 )
{
__dmb(0xBu);
do
v6 = __ldrex(v4);
while ( __strex(v6 | 0x40000, v4) );
__dmb(0xBu);
++*(_DWORD *)(a1 + 44);
}
return 0;
}