//
// GameLevelOptionsLayer::toggleLDM from 0xa2154c to 0xa21590 (68 bytes)
//
// 3 xrefs:
// > GameLevelOptionsLayer::FLAlert_Clicked @ 0xa215c8
// > GameLevelOptionsLayer::didToggle @ 0xa2623c
// > ??> @ 0x49c18
//
// 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 12:59:40 +0000
//
CCMenuItemToggler *__fastcall GameLevelOptionsLayer::toggleLDM(GameLevelOptionsLayer *this)
{
__int64 v1; // x2
unsigned __int8 v2; // w19
CCMenuItemToggler *result; // x0
v1 = *((_QWORD *)this + 141);
v2 = *(_BYTE *)(v1 + 769) ^ 1;
*(_BYTE *)(v1 + 769) = v2;
result = (CCMenuItemToggler *)GJOptionsLayer::getToggleButton(this, 1);
if ( result )
return (CCMenuItemToggler *)CCMenuItemToggler::toggle(result, v2);
return result;
}