//
// OptionsObject::toggleState from 0x10029da80 to 0x10029da9f (31 bytes)
//
// 1 xrefs:
// > OptionsCell::onToggleOption @ 0x10023d555
//
// 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 12:27:53 +0000
//
__int64 __fastcall OptionsObject::toggleState(__int64 a1)
{
__int64 (__fastcall ***v2)(_QWORD, __int64); // rdi
__int64 result; // rax
*(_BYTE *)(a1 + 60) ^= 1u;
v2 = *(__int64 (__fastcall ****)(_QWORD, __int64))(a1 + 88);
if ( v2 )
return (**v2)(v2, a1);
return result;
}