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