{"type": "func", "start": 5371762704, "end": 5371762851, "name": "GameStatsManager::toggleEnableItem", "pseudocode": "// \n// GameStatsManager::toggleEnableItem from 0x1402e9810 to 0x1402e98a3 (147 bytes)\n// \n// 3 xrefs:\n// > GameSettingsLayer::valueDidChange @ 0x1402c73c7\n// > GJGarageLayer::onToggleItem @ 0x1403803bc\n// > <???> @ 0x14091e098\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:29:51 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nvoid __fastcall GameStatsManager::toggleEnableItem(__int64 a1, unsigned int a2, unsigned int a3, char a4)\n{\n  __int64 v6; // rbx\n  struct cocos2d::CCString *v7; // rax\n  _QWORD v8[4]; // [rsp+20h] [rbp-38h] BYREF\n\n  GameStatsManager::getItemKey(a1, v8, a3, a2);\n  if ( a4 )\n  {\n    v6 = *(_QWORD *)(a1 + 896);\n    v7 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, 1);\n    cocos2d::CCDictionary::setObject(v6, v7, v8);\n  }\n  else\n  {\n    cocos2d::CCDictionary::removeObjectForKey(*(_QWORD *)(a1 + 896), v8);\n  }\n  sub_14003D310((__int64)v8);\n}", "assembly": "; \n; GameStatsManager::toggleEnableItem from 0x1402e9810 to 0x1402e98a3 (147 bytes)\n; \n; 3 xrefs:\n; > GameSettingsLayer::valueDidChange @ 0x1402c73c7\n; > GJGarageLayer::onToggleItem @ 0x1403803bc\n; > <???> @ 0x14091e098\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:29:51 +0000\n; \nmov     [rsp+arg_18], rbx                                              ; +0x0, 0x1402e9810\npush    rdi                                                            ; +0x5, 0x1402e9815\nsub     rsp, 50h                                                       ; +0x6, 0x1402e9816\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1402e981a\nxor     rax, rsp                                                       ; +0x11, 0x1402e9821\nmov     [rsp+58h+var_18], rax                                          ; +0x14, 0x1402e9824\nmovzx   ebx, r9b                                                       ; +0x19, 0x1402e9829\nmov     rdi, rcx                                                       ; +0x1d, 0x1402e982d\nmov     r9d, edx                                                       ; +0x20, 0x1402e9830\nlea     rdx, [rsp+58h+var_38]                                          ; +0x23, 0x1402e9833\ncall    GameStatsManager__getItemKey                                   ; +0x28, 0x1402e9838\nnop                                                                    ; +0x2d, 0x1402e983d\ntest    bl, bl                                                         ; +0x2e, 0x1402e983e\njz      short loc_1402E986E                                            ; +0x30, 0x1402e9840\nmov     rbx, [rdi+380h]                                                ; +0x32, 0x1402e9842\nmov     edx, 1                                                         ; +0x39, 0x1402e9849\nlea     rcx, word_1406ED6F8                                            ; +0x3e, 0x1402e984e\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x45, 0x1402e9855\nmov     rdx, rax                                                       ; +0x4b, 0x1402e985b\nlea     r8, [rsp+58h+var_38]                                           ; +0x4e, 0x1402e985e\nmov     rcx, rbx                                                       ; +0x53, 0x1402e9863\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x56, 0x1402e9866\njmp     short loc_1402E9881                                            ; +0x5c, 0x1402e986c\nlea     rdx, [rsp+58h+var_38]                                          ; +0x5e, 0x1402e986e\nmov     rcx, [rdi+380h]                                                ; +0x63, 0x1402e9873\ncall    cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x6a, 0x1402e987a\nnop                                                                    ; +0x70, 0x1402e9880\nlea     rcx, [rsp+58h+var_38]                                          ; +0x71, 0x1402e9881\ncall    sub_14003D310                                                  ; +0x76, 0x1402e9886\nmov     rcx, [rsp+58h+var_18]                                          ; +0x7b, 0x1402e988b\nxor     rcx, rsp; StackCookie                                          ; +0x80, 0x1402e9890\ncall    __security_check_cookie                                        ; +0x83, 0x1402e9893\nmov     rbx, [rsp+58h+arg_18]                                          ; +0x88, 0x1402e9898\nadd     rsp, 50h                                                       ; +0x8d, 0x1402e989d\npop     rdi                                                            ; +0x91, 0x1402e98a1\nretn                                                                   ; +0x92, 0x1402e98a2", "xrefs": ["GameSettingsLayer::valueDidChange @ 0x1402c73c7", "GJGarageLayer::onToggleItem @ 0x1403803bc", "<???> @ 0x14091e098"], "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"}