//
// LevelCell::onToggle from 0x140148c70 to 0x140148cb3 (67 bytes)
//
// 2 xrefs:
// > LevelCell::loadFromLevel @ 0x140148b6e
// > ??> @ 0x140917600
//
// 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:12 +0000
//
void __fastcall LevelCell::onToggle(__int64 a1)
{
__int64 v1; // rdx
cocos2d::CCNotificationCenter *v2; // rax
v1 = *(_QWORD *)(a1 + 568);
if ( v1 )
{
*(_BYTE *)(v1 + 843) = *(_BYTE *)(v1 + 843) == 0;
v2 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(a1);
cocos2d::CCNotificationCenter::postNotification(v2, "LevelSelectionChangedNotification", nullptr);
}
}