//
// GJThreadCell::onToggleSelect from 0x734ef0 to 0x734f44 (84 bytes)
//
// 3 xrefs:
// > ??> @ 0x959f8
// > GJThreadCell::loadFromThread @ 0x73eb04
// > ??> @ 0x15440c0
//
// This function is hookable on this platform (idp: arm, 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:52:38 +0000
//
__int64 __fastcall GJThreadCell::onToggleSelect(__int64 this, cocos2d::CCObject *a2)
{
__int64 v2; // x2
__int64 v3; // x1
CCMenuItemToggler *v4; // x0
cocos2d::CCNotificationCenter *v5; // x0
v2 = *(_QWORD *)(this + 552);
if ( v2 )
{
v3 = this;
*(_BYTE *)(v2 + 304) ^= 1u;
v4 = *(CCMenuItemToggler **)(this + 560);
if ( v4 )
v4 = (CCMenuItemToggler *)CCMenuItemToggler::toggle(v4, *(_BYTE *)(*(_QWORD *)(v3 + 552) + 304LL));
v5 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(v4);
return cocos2d::CCNotificationCenter::postNotification(v5, "ThreadSelectionChangedNotification", nullptr);
}
return this;
}