//
// GameLevelOptionsLayer::toggleLDM from 0x5d56c0 to 0x5d56e6 (38 bytes)
//
// 2 xrefs:
// > GameLevelOptionsLayer::FLAlert_Clicked @ 0x5d56fa
// > GameLevelOptionsLayer::didToggle @ 0x5d86ec
//
// 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 11:54:08 +0000
//
CCMenuItemToggler *__fastcall GameLevelOptionsLayer::toggleLDM(GameLevelOptionsLayer *this)
{
int v1; // r3
int v2; // r4
CCMenuItemToggler *result; // r0
v1 = *((_DWORD *)this + 196);
v2 = *(unsigned __int8 *)(v1 + 593) ^ 1;
*(_BYTE *)(v1 + 593) = v2;
result = (CCMenuItemToggler *)GJOptionsLayer::getToggleButton(this, 1u);
if ( result )
return (CCMenuItemToggler *)CCMenuItemToggler::toggle(result, v2);
return result;
}