//
// sub_10037FC80 from 0x10037fc80 to 0x10037fcd8 (88 bytes)
//
// 3 xrefs:
// > GameLevelOptionsLayer::didToggle @ 0x10037fc60
// > GameLevelOptionsLayer::FLAlert_Clicked @ 0x10037fd00
// > sub_10037FD08 @ 0x10037fd30
//
// 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:03:29 +0000
//
__int64 *__fastcall sub_10037FC80(__int64 a1)
{
__int64 v1; // x8
char v2; // w19
__int64 *result; // x0
int v4; // [xsp+Ch] [xbp-14h] BYREF
v1 = *(_QWORD *)(a1 + 1128);
v2 = *(_BYTE *)(v1 + 769) ^ 1;
*(_BYTE *)(v1 + 769) = v2;
v4 = 1;
result = sub_100019268((_QWORD *)(a1 + 1080), &v4);
if ( result )
{
result = (__int64 *)result[3];
if ( result )
return (__int64 *)CCMenuItemToggler::toggle((__int64)result, v2 & 1);
}
return result;
}