{"type": "func", "start": 4298334748, "end": 4298334872, "name": "GameStatsManager::isItemEnabled", "pseudocode": "// \n// GameStatsManager::isItemEnabled from 0x10033621c to 0x100336298 (124 bytes)\n// \n// 8 xrefs:\n// > PlayLayer::toggleMusicInPractice @ 0x10011e6e0\n// > PlayerObject::init @ 0x100217998\n// > PlayerObject::init @ 0x1002179ac\n// > PlayerObject::init @ 0x1002179c0\n// > GameOptionsLayer::setupOptions @ 0x1002e187c\n// > GameOptionsLayer::onPracticeMusicSync @ 0x1002e1ce4\n// > GJGarageLayer::setupSpecialPage @ 0x1003054dc\n// > GJGarageLayer::onToggleItem @ 0x100305fe8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// local variable allocation has failed, the output may be wrong!\nbool __fastcall GameStatsManager::isItemEnabled(GameStatsManager *a1, UnlockType a2, int a3)\n{\n  __int64 v3; // x21\n  __int64 v4; // x20\n  cocos2d::CCString *v6; // x0\n  bool v7; // w19\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v10; // [xsp+1Fh] [xbp-21h]\n\n  v3 = *(_QWORD *)&a3;\n  v4 = *(_QWORD *)&a2;\n  if ( !GameStatsManager::isItemUnlocked(a1, a2, a3) )\n    return 0;\n  GameStatsManager::getItemKey(v3, v4, __p);\n  v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1->m_enabledItems, __p);\n  v7 = cocos2d::CCString::boolValue(v6);\n  if ( v10 < 0 )\n    operator delete(__p[0]);\n  return v7;\n}", "assembly": "; \n; GameStatsManager::isItemEnabled from 0x10033621c to 0x100336298 (124 bytes)\n; \n; 8 xrefs:\n; > PlayLayer::toggleMusicInPractice @ 0x10011e6e0\n; > PlayerObject::init @ 0x100217998\n; > PlayerObject::init @ 0x1002179ac\n; > PlayerObject::init @ 0x1002179c0\n; > GameOptionsLayer::setupOptions @ 0x1002e187c\n; > GameOptionsLayer::onPracticeMusicSync @ 0x1002e1ce4\n; > GJGarageLayer::setupSpecialPage @ 0x1003054dc\n; > GJGarageLayer::onToggleItem @ 0x100305fe8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x50                                          ; +0x0, 0x10033621c\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x100336220\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x100336224\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x100336228\nADD             X29, SP, #0x40                                         ; +0x10, 0x10033622c\nMOV             X21, X2                                                ; +0x14, 0x100336230\nMOV             X20, X1                                                ; +0x18, 0x100336234\nMOV             X19, X0                                                ; +0x1c, 0x100336238\nBL              GameStatsManager__isItemUnlocked                       ; +0x20, 0x10033623c\nCBZ             W0, loc_10033627C                                      ; +0x24, 0x100336240\nADD             X8, SP, #0x40+__p                                      ; +0x28, 0x100336244\nMOV             X1, X21                                                ; +0x2c, 0x100336248\nMOV             X2, X20                                                ; +0x30, 0x10033624c\nBL              GameStatsManager__getItemKey                           ; +0x34, 0x100336250\nLDR             X0, [X19,#0x310]                                       ; +0x38, 0x100336254\nADD             X1, SP, #0x40+__p                                      ; +0x3c, 0x100336258\nBL              cocos2d__CCDictionary__valueForKey_1                   ; +0x40, 0x10033625c\nBL              cocos2d__CCString__boolValue                           ; +0x44, 0x100336260\nMOV             X19, X0                                                ; +0x48, 0x100336264\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x4c, 0x100336268\nTBZ             W8, #0x1F, loc_100336280                               ; +0x50, 0x10033626c\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x54, 0x100336270\nBL              __ZdlPv; operator delete(void *)                       ; +0x58, 0x100336274\nB               loc_100336280                                          ; +0x5c, 0x100336278\nMOV             W19, #0                                                ; +0x60, 0x10033627c\nMOV             X0, X19                                                ; +0x64, 0x100336280\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x68, 0x100336284\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x6c, 0x100336288\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x70, 0x10033628c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x74, 0x100336290\nRET                                                                    ; +0x78, 0x100336294", "xrefs": ["PlayLayer::toggleMusicInPractice @ 0x10011e6e0", "PlayerObject::init @ 0x100217998", "PlayerObject::init @ 0x1002179ac", "PlayerObject::init @ 0x1002179c0", "GameOptionsLayer::setupOptions @ 0x1002e187c", "GameOptionsLayer::onPracticeMusicSync @ 0x1002e1ce4", "GJGarageLayer::setupSpecialPage @ 0x1003054dc", "GJGarageLayer::onToggleItem @ 0x100305fe8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}