//
// OptionsCell::onToggleOption from 0x140151520 to 0x140151583 (99 bytes)
//
// 2 xrefs:
// > OptionsCell::loadFromObject @ 0x14015146d
// > ??> @ 0x140917840
//
// 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:27:17 +0000
//
__int64 __fastcall OptionsCell::onToggleOption(__int64 a1)
{
__int64 v1; // rdx
void (__fastcall ***v3)(_QWORD); // rcx
__int64 result; // rax
__int64 (__fastcall ***v5)(_QWORD, __int64, __int64, __int64, _QWORD); // rcx
v1 = *(_QWORD *)(a1 + 560);
if ( v1 )
{
v3 = *(void (__fastcall ****)(_QWORD))(v1 + 96);
*(_BYTE *)(v1 + 60) = *(_BYTE *)(v1 + 60) == 0;
if ( v3 )
(**v3)(v3);
result = *(_QWORD *)(a1 + 416);
v5 = *(__int64 (__fastcall ****)(_QWORD, __int64, __int64, __int64, _QWORD))(result + 624);
if ( v5 )
return (**v5)(v5, a1, 24, 1, 0);
}
return result;
}