//
// GJRequestCell::onToggle from 0x1401592a0 to 0x1401592de (62 bytes)
//
// 2 xrefs:
// > GJRequestCell::loadFromScore @ 0x140158ff2
// > ??> @ 0x140917a14
//
// 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:21 +0000
//
void __fastcall GJRequestCell::onToggle(__int64 a1)
{
__int64 v1; // rdx
cocos2d::CCNotificationCenter *v2; // rax
v1 = *(_QWORD *)(a1 + 560);
if ( v1 )
*(_BYTE *)(v1 + 797) = *(_BYTE *)(v1 + 797) == 0;
v2 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(a1);
cocos2d::CCNotificationCenter::postNotification(v2, "RequestSelectionChangedNotification", nullptr);
}