//
// OptionsObject::toggleState from 0x5d5194 to 0x5d51ae (26 bytes)
//
// 1 xrefs:
// > OptionsCell::onToggleOption @ 0x4244ec
//
// 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
//
int (__fastcall ***__fastcall OptionsObject::toggleState(OptionsObject *this))(_DWORD, OptionsObject *)
{
int (__fastcall ***result)(_DWORD, OptionsObject *); // r0
*((_BYTE *)this + 56) ^= 1u;
result = *((int (__fastcall ****)(_DWORD, OptionsObject *))this + 18);
if ( result )
return (int (__fastcall ***)(_DWORD, OptionsObject *))(**result)(result, this);
return result;
}