//
// sub_100524C80 from 0x100524c80 to 0x100524ca8 (40 bytes)
//
// 2 xrefs:
// > sub_100524C24 @ 0x100524c40
// > sub_100524CA8 @ 0x100524cbc
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:07:14 +0000
//
__int64 __fastcall sub_100524C80(__int64 result, __int64 a2)
{
unsigned __int8 v2; // w8
v2 = atomic_load((unsigned __int8 *)&byte_1009F85B0);
if ( (v2 & 1) == 0 )
return sub_100755C30(result, a2);
return result;
}