//
// GJThreadCell::onToggleSelect from 0x100240f90 to 0x100240fe3 (83 bytes)
//
// 1 xrefs:
// > GJThreadCell::loadFromThread @ 0x1002338e3
//
// 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:18 +0000
//
void __fastcall GJThreadCell::onToggleSelect(__int64 a1)
{
__int64 v1; // rcx
char v2; // al
__int64 v3; // rdi
__int64 v4; // rax
v1 = *(_QWORD *)(a1 + 552);
if ( v1 )
{
v2 = *(_BYTE *)(v1 + 304);
*(_BYTE *)(v1 + 304) = v2 ^ 1;
v3 = *(_QWORD *)(a1 + 560);
if ( v3 )
CCMenuItemToggler::toggle(v3, v2 == 0);
v4 = cocos2d::CCNotificationCenter::sharedNotificationCenter(v3);
cocos2d::CCNotificationCenter::postNotification(v4, "ThreadSelectionChangedNotification", 0);
}
}