{"type": "func", "start": 4295219568, "end": 4295219680, "name": "GameStatsManager::toggleEnableItem", "pseudocode": "// \n// GameStatsManager::toggleEnableItem from 0x10003d970 to 0x10003d9e0 (112 bytes)\n// \n// 3 xrefs:\n// > GameOptionsLayer::onPracticeMusicSync @ 0x10029eab9\n// > GJGarageLayer::onToggleItem @ 0x100357bb0\n// > GameSettingsLayer::valueDidChange @ 0x1006029b2\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 12:19:34 +0000\n// \n\nvoid __fastcall GameStatsManager::toggleEnableItem(__int64 a1, __int64 a2, unsigned int a3, int a4)\n{\n  __int64 v5; // rbx\n  __int64 v6; // rax\n  char v7; // [rsp+0h] [rbp-30h]\n  size_t v8[5]; // [rsp+8h] [rbp-28h] BYREF\n\n  GameStatsManager::getItemKey(v8, a2, a3, a2);\n  v5 = *(_QWORD *)(a1 + 792);\n  if ( a4 )\n  {\n    v6 = sub_10088E820(\"%i\", v7);\n    cocos2d::CCDictionary::setObject(v5, v6, v8);\n  }\n  else\n  {\n    cocos2d::CCDictionary::removeObjectForKey(v5, v8);\n  }\n  if ( (v8[0] & 1) != 0 )\n    operator delete((void *)v8[2]);\n}", "assembly": "; \n; GameStatsManager::toggleEnableItem from 0x10003d970 to 0x10003d9e0 (112 bytes)\n; \n; 3 xrefs:\n; > GameOptionsLayer::onPracticeMusicSync @ 0x10029eab9\n; > GJGarageLayer::onToggleItem @ 0x100357bb0\n; > GameSettingsLayer::valueDidChange @ 0x1006029b2\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 12:19:34 +0000\n; \npush    rbp                                                            ; +0x0, 0x10003d970\nmov     rbp, rsp                                                       ; +0x1, 0x10003d971\npush    r14                                                            ; +0x4, 0x10003d974\npush    rbx                                                            ; +0x6, 0x10003d976\nsub     rsp, 20h                                                       ; +0x7, 0x10003d977\nmov     r14d, ecx                                                      ; +0xb, 0x10003d97b\nmov     ecx, esi                                                       ; +0xe, 0x10003d97e\nmov     rbx, rdi                                                       ; +0x10, 0x10003d980\nlea     rdi, [rbp+var_28]                                              ; +0x13, 0x10003d983\ncall    GameStatsManager__getItemKey                                   ; +0x17, 0x10003d987\nmov     rbx, [rbx+318h]                                                ; +0x1c, 0x10003d98c\ntest    r14d, r14d                                                     ; +0x23, 0x10003d993\njz      short loc_10003D9BC                                            ; +0x26, 0x10003d996\nlea     rdi, aI_14; \"%i\"                                               ; +0x28, 0x10003d998\nmov     esi, 1                                                         ; +0x2f, 0x10003d99f\nxor     eax, eax                                                       ; +0x34, 0x10003d9a4\ncall    sub_10088E820                                                  ; +0x36, 0x10003d9a6\nlea     rdx, [rbp+var_28]                                              ; +0x3b, 0x10003d9ab\nmov     rdi, rbx                                                       ; +0x3f, 0x10003d9af\nmov     rsi, rax                                                       ; +0x42, 0x10003d9b2\ncall    cocos2d__CCDictionary__setObject                               ; +0x45, 0x10003d9b5\njmp     short loc_10003D9C8                                            ; +0x4a, 0x10003d9ba\nlea     rsi, [rbp+var_28]                                              ; +0x4c, 0x10003d9bc\nmov     rdi, rbx                                                       ; +0x50, 0x10003d9c0\ncall    cocos2d__CCDictionary__removeObjectForKey                      ; +0x53, 0x10003d9c3\ntest    [rbp+var_28], 1                                                ; +0x58, 0x10003d9c8\njz      short loc_10003D9D7                                            ; +0x5c, 0x10003d9cc\nmov     rdi, [rbp+__p]; __p                                            ; +0x5e, 0x10003d9ce\ncall    __ZdlPv; operator delete(void *)                               ; +0x62, 0x10003d9d2\nadd     rsp, 20h                                                       ; +0x67, 0x10003d9d7\npop     rbx                                                            ; +0x6b, 0x10003d9db\npop     r14                                                            ; +0x6c, 0x10003d9dc\npop     rbp                                                            ; +0x6e, 0x10003d9de\nretn                                                                   ; +0x6f, 0x10003d9df", "xrefs": ["GameOptionsLayer::onPracticeMusicSync @ 0x10029eab9", "GJGarageLayer::onToggleItem @ 0x100357bb0", "GameSettingsLayer::valueDidChange @ 0x1006029b2"], "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"}