//
// OptionsCell::onToggleOption from 0x1400b5510 to 0x1400b5571 (97 bytes)
//
// 2 xrefs:
// > OptionsCell::loadFromObject @ 0x1400b5465
// > ??> @ 0x1406c7bb4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void OptionsCell::onToggleOption(OptionsCell *a1, cocos2d::CCObject *a2)
{
OptionsObject *m_optionsObject; // rdx
OptionsObjectDelegate *m_delegate; // rcx
TableViewCellDelegate *m_cellDelegate; // rcx
m_optionsObject = a1->m_optionsObject;
if ( m_optionsObject )
{
m_delegate = m_optionsObject->m_delegate;
m_optionsObject->m_enabled = !m_optionsObject->m_enabled;
if ( m_delegate )
((void (__fastcall *)(OptionsObjectDelegate *))m_delegate->stateChanged)(m_delegate);
m_cellDelegate = a1->m_tableView->m_cellDelegate;
if ( m_cellDelegate )
((void (__fastcall *)(TableViewCellDelegate *, OptionsCell *, __int64))m_cellDelegate->cellPerformedAction)(
m_cellDelegate,
a1,
26);
}
}