//
// LevelSettingsLayer::onOptionToggle from 0x14045a7e0 to 0x14045a814 (52 bytes)
//
// 2 xrefs:
// > LevelSettingsLayer::init @ 0x1404595c7
// > ??> @ 0x140927c38
//
// This function is hookable on this platform (idp: pc, 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:32:31 +0000
//
char __fastcall LevelSettingsLayer::onOptionToggle(__int64 a1, __int64 a2)
{
int v3; // eax
__int64 v4; // rcx
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
if ( v3 == 1 )
{
v4 = *(_QWORD *)(a1 + 816);
LOBYTE(v3) = *(_BYTE *)(v4 + 448) == 0;
*(_BYTE *)(v4 + 448) = v3;
}
return v3;
}