//
// OPENSSL_atomic_add from 0x9d1d80 to 0x9d1dd0 (80 bytes)
//
// 1 xrefs:
// > ??> @ 0x77b9c
//
// 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 12:07:12 +0000
//
unsigned int __fastcall OPENSSL_atomic_add(_DWORD *a1, int a2)
{
unsigned int result; // r0
while ( 1 )
{
result = __swp(0xFFFFFFFF, (unsigned int *)&dword_D25BFC);
if ( !result )
break;
sched_yield();
}
*a1 += a2;
dword_D25BFC = 0;
return result;
}