{"type": "func", "start": 4298983376, "end": 4298983512, "name": "GameStatsManager::toggleEnableItem", "pseudocode": "// \n// GameStatsManager::toggleEnableItem from 0x1003d47d0 to 0x1003d4858 (136 bytes)\n// \n// 2 xrefs:\n// > GameSettingsLayer::valueDidChange @ 0x10016699c\n// > sub_1003A2C94 @ 0x1003a2d10\n// \n// This function is hookable on this platform (idp: arm, 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:04:12 +0000\n// \n\nvoid __fastcall GameStatsManager::toggleEnableItem(__int64 a1, __int64 a2, __int64 a3, int a4)\n{\n  __int64 v6; // x19\n  void *v7; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v9; // [xsp+1Fh] [xbp-11h]\n\n  sub_1003C9AA8(a3, a2, __p);\n  v6 = *(_QWORD *)(a1 + 792);\n  if ( a4 )\n  {\n    v7 = sub_1003065B0(\"%i\", 1);\n    cocos2d::CCDictionary::setObject(v6, v7, __p);\n  }\n  else\n  {\n    cocos2d::CCDictionary::removeObjectForKey(v6, (char *)__p);\n  }\n  if ( v9 < 0 )\n    operator delete(__p[0]);\n}", "assembly": "; \n; GameStatsManager::toggleEnableItem from 0x1003d47d0 to 0x1003d4858 (136 bytes)\n; \n; 2 xrefs:\n; > GameSettingsLayer::valueDidChange @ 0x10016699c\n; > sub_1003A2C94 @ 0x1003a2d10\n; \n; This function is hookable on this platform (idp: arm, 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:04:12 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x1003d47d0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1003d47d4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1003d47d8\nADD             X29, SP, #0x30                                         ; +0xc, 0x1003d47dc\nMOV             X20, X3                                                ; +0x10, 0x1003d47e0\nMOV             X9, X1                                                 ; +0x14, 0x1003d47e4\nMOV             X19, X0                                                ; +0x18, 0x1003d47e8\nADD             X8, SP, #0x30+__p                                      ; +0x1c, 0x1003d47ec\nMOV             X1, X2                                                 ; +0x20, 0x1003d47f0\nMOV             X2, X9                                                 ; +0x24, 0x1003d47f4\nBL              sub_1003C9AA8                                          ; +0x28, 0x1003d47f8\nLDR             X19, [X19,#0x318]                                      ; +0x2c, 0x1003d47fc\nCBZ             W20, loc_1003D482C                                     ; +0x30, 0x1003d4800\nMOV             W8, #1                                                 ; +0x34, 0x1003d4804\nSTR             X8, [SP,#0x30+var_30]                                  ; +0x38, 0x1003d4808\nADRL            X0, aI; \"%i\"                                           ; +0x3c, 0x1003d480c\nBL              sub_1003065B0                                          ; +0x44, 0x1003d4814\nMOV             X1, X0                                                 ; +0x48, 0x1003d4818\nADD             X2, SP, #0x30+__p                                      ; +0x4c, 0x1003d481c\nMOV             X0, X19                                                ; +0x50, 0x1003d4820\nBL              cocos2d__CCDictionary__setObject                       ; +0x54, 0x1003d4824\nB               loc_1003D4838                                          ; +0x58, 0x1003d4828\nADD             X1, SP, #0x30+__p; __s                                 ; +0x5c, 0x1003d482c\nMOV             X0, X19; int                                           ; +0x60, 0x1003d4830\nBL              cocos2d__CCDictionary__removeObjectForKey              ; +0x64, 0x1003d4834\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x68, 0x1003d4838\nTBZ             W8, #0x1F, loc_1003D4848                               ; +0x6c, 0x1003d483c\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x70, 0x1003d4840\nBL              __ZdlPv; operator delete(void *)                       ; +0x74, 0x1003d4844\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x78, 0x1003d4848\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x7c, 0x1003d484c\nADD             SP, SP, #0x40 ; '@'                                    ; +0x80, 0x1003d4850\nRET                                                                    ; +0x84, 0x1003d4854", "xrefs": ["GameSettingsLayer::valueDidChange @ 0x10016699c", "sub_1003A2C94 @ 0x1003a2d10"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}