//
// GJThreadCell::onToggleSelect from 0x14015abc0 to 0x14015ac25 (101 bytes)
//
// 2 xrefs:
// > GJThreadCell::loadFromThread @ 0x14015a708
// > ??> @ 0x140917aec
//
// 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:22 +0000
//
void __fastcall GJThreadCell::onToggleSelect(__int64 a1)
{
__int64 v1; // rdx
cocos2d::CCNotificationCenter *v2; // rax
v1 = *(_QWORD *)(a1 + 560);
if ( v1 )
{
*(_BYTE *)(v1 + 360) = *(_BYTE *)(v1 + 360) == 0;
if ( *(_QWORD *)(a1 + 568) )
CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 568), *(unsigned __int8 *)(*(_QWORD *)(a1 + 560) + 360LL));
v2 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(a1);
cocos2d::CCNotificationCenter::postNotification(v2, "ThreadSelectionChangedNotification", nullptr);
}
}