{"type": "func", "start": 5370055792, "end": 5370055859, "name": "LevelCell::onToggle", "pseudocode": "// \n// LevelCell::onToggle from 0x140148c70 to 0x140148cb3 (67 bytes)\n// \n// 2 xrefs:\n// > LevelCell::loadFromLevel @ 0x140148b6e\n// > <???> @ 0x140917600\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:27:12 +0000\n// \n\nvoid __fastcall LevelCell::onToggle(__int64 a1)\n{\n  __int64 v1; // rdx\n  cocos2d::CCNotificationCenter *v2; // rax\n\n  v1 = *(_QWORD *)(a1 + 568);\n  if ( v1 )\n  {\n    *(_BYTE *)(v1 + 843) = *(_BYTE *)(v1 + 843) == 0;\n    v2 = (cocos2d::CCNotificationCenter *)cocos2d::CCNotificationCenter::sharedNotificationCenter(a1);\n    cocos2d::CCNotificationCenter::postNotification(v2, \"LevelSelectionChangedNotification\", nullptr);\n  }\n}", "assembly": "; \n; LevelCell::onToggle from 0x140148c70 to 0x140148cb3 (67 bytes)\n; \n; 2 xrefs:\n; > LevelCell::loadFromLevel @ 0x140148b6e\n; > <???> @ 0x140917600\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:27:12 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x140148c70\nmov     rdx, [rcx+238h]                                                ; +0x4, 0x140148c74\ntest    rdx, rdx                                                       ; +0xb, 0x140148c7b\njz      short loc_140148CAE                                            ; +0xe, 0x140148c7e\ncmp     byte ptr [rdx+34Bh], 0                                         ; +0x10, 0x140148c80\nsetz    al                                                             ; +0x17, 0x140148c87\nmov     [rdx+34Bh], al                                                 ; +0x1a, 0x140148c8a\ncall    cs:?sharedNotificationCenter@CCNotificationCenter@cocos2d@@SAPEAV12@XZ; cocos2d::CCNotificationCenter::sharedNotificationCenter(void) ; +0x20, 0x140148c90\nxor     r8d, r8d                                                       ; +0x26, 0x140148c96\nlea     rdx, aLevelselection; \"LevelSelectionChangedNotification\"      ; +0x29, 0x140148c99\nmov     rcx, rax                                                       ; +0x30, 0x140148ca0\nadd     rsp, 28h                                                       ; +0x33, 0x140148ca3\njmp     cs:?postNotification@CCNotificationCenter@cocos2d@@QEAAXPEBDPEAVCCObject@2@@Z; cocos2d::CCNotificationCenter::postNotification(char const *,cocos2d::CCObject *) ; +0x37, 0x140148ca7\nadd     rsp, 28h                                                       ; +0x3e, 0x140148cae\nretn                                                                   ; +0x42, 0x140148cb2", "xrefs": ["LevelCell::loadFromLevel @ 0x140148b6e", "<???> @ 0x140917600"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}