{"type": "func", "start": 4295456912, "end": 4295457022, "name": "GameStatsManager::isItemEnabled", "pseudocode": "// \n// GameStatsManager::isItemEnabled from 0x100077890 to 0x1000778fe (110 bytes)\n// \n// 8 xrefs:\n// > PlayLayer::toggleMusicInPractice @ 0x1000b9b1b\n// > GameOptionsLayer::setupOptions @ 0x1002b135f\n// > GameOptionsLayer::onPracticeMusicSync @ 0x1002b1837\n// > GJGarageLayer::setupSpecialPage @ 0x10036d7f8\n// > GJGarageLayer::onToggleItem @ 0x10036e76f\n// > PlayerObject::init @ 0x1003fa99e\n// > PlayerObject::init @ 0x1003fa9bb\n// > PlayerObject::init @ 0x1003fa9d8\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  double v3; // xmm0_8\n  cocos2d::CCString *v5; // rax\n  bool v6; // bl\n  size_t v8[7]; // [rsp+8h] [rbp-38h] BYREF\n\n  if ( !GameStatsManager::isItemUnlocked(a1, a2, a3) )\n    return 0;\n  GameStatsManager::getItemKey(v8, v3, *(__int64 *)&a2, a3, a2);\n  v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(a1->m_enabledItems, v8);\n  v6 = cocos2d::CCString::boolValue(v5);\n  if ( (v8[0] & 1) != 0 )\n    operator delete((void *)v8[2]);\n  return v6;\n}", "assembly": "; \n; GameStatsManager::isItemEnabled from 0x100077890 to 0x1000778fe (110 bytes)\n; \n; 8 xrefs:\n; > PlayLayer::toggleMusicInPractice @ 0x1000b9b1b\n; > GameOptionsLayer::setupOptions @ 0x1002b135f\n; > GameOptionsLayer::onPracticeMusicSync @ 0x1002b1837\n; > GJGarageLayer::setupSpecialPage @ 0x10036d7f8\n; > GJGarageLayer::onToggleItem @ 0x10036e76f\n; > PlayerObject::init @ 0x1003fa99e\n; > PlayerObject::init @ 0x1003fa9bb\n; > PlayerObject::init @ 0x1003fa9d8\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\npush    rbp                                                            ; +0x0, 0x100077890\nmov     rbp, rsp                                                       ; +0x1, 0x100077891\npush    r15                                                            ; +0x4, 0x100077894\npush    r14                                                            ; +0x6, 0x100077896\npush    r12                                                            ; +0x8, 0x100077898\npush    rbx                                                            ; +0xa, 0x10007789a\nsub     rsp, 20h                                                       ; +0xb, 0x10007789b\nmov     r15d, edx                                                      ; +0xf, 0x10007789f\nmov     r14d, esi                                                      ; +0x12, 0x1000778a2\nmov     rbx, rdi                                                       ; +0x15, 0x1000778a5\ncall    GameStatsManager__isItemUnlocked                               ; +0x18, 0x1000778a8\ntest    al, al                                                         ; +0x1d, 0x1000778ad\njz      short loc_1000778ED                                            ; +0x1f, 0x1000778af\nlea     r12, [rbp+var_38]                                              ; +0x21, 0x1000778b1\nmov     rdi, r12                                                       ; +0x25, 0x1000778b5\nmov     edx, r15d                                                      ; +0x28, 0x1000778b8\nmov     ecx, r14d                                                      ; +0x2b, 0x1000778bb\ncall    GameStatsManager__getItemKey                                   ; +0x2e, 0x1000778be\nmov     rdi, [rbx+310h]                                                ; +0x33, 0x1000778c3\nmov     rsi, r12                                                       ; +0x3a, 0x1000778ca\ncall    cocos2d__CCDictionary__valueForKey_1                           ; +0x3d, 0x1000778cd\nmov     rdi, rax                                                       ; +0x42, 0x1000778d2\ncall    cocos2d__CCString__boolValue                                   ; +0x45, 0x1000778d5\nmov     ebx, eax                                                       ; +0x4a, 0x1000778da\ntest    [rbp+var_38], 1                                                ; +0x4c, 0x1000778dc\njz      short loc_1000778EF                                            ; +0x50, 0x1000778e0\nmov     rdi, [rbp+__p]; __p                                            ; +0x52, 0x1000778e2\ncall    __ZdlPv; operator delete(void *)                               ; +0x56, 0x1000778e6\njmp     short loc_1000778EF                                            ; +0x5b, 0x1000778eb\nxor     ebx, ebx                                                       ; +0x5d, 0x1000778ed\nmov     eax, ebx                                                       ; +0x5f, 0x1000778ef\nadd     rsp, 20h                                                       ; +0x61, 0x1000778f1\npop     rbx                                                            ; +0x65, 0x1000778f5\npop     r12                                                            ; +0x66, 0x1000778f6\npop     r14                                                            ; +0x68, 0x1000778f8\npop     r15                                                            ; +0x6a, 0x1000778fa\npop     rbp                                                            ; +0x6c, 0x1000778fc\nretn                                                                   ; +0x6d, 0x1000778fd", "xrefs": ["PlayLayer::toggleMusicInPractice @ 0x1000b9b1b", "GameOptionsLayer::setupOptions @ 0x1002b135f", "GameOptionsLayer::onPracticeMusicSync @ 0x1002b1837", "GJGarageLayer::setupSpecialPage @ 0x10036d7f8", "GJGarageLayer::onToggleItem @ 0x10036e76f", "PlayerObject::init @ 0x1003fa99e", "PlayerObject::init @ 0x1003fa9bb", "PlayerObject::init @ 0x1003fa9d8"], "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"}