//
// sub_A83B0 from 0xa83b0 to 0xa83f6 (70 bytes)
//
// 1 xrefs:
// > sub_A8550 @ 0xa8742
//
// 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:41:36 +0000
//
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;
}