{"type": "func", "start": 4295219424, "end": 4295219534, "name": "GameStatsManager::isItemEnabled", "pseudocode": "// \n// GameStatsManager::isItemEnabled from 0x10003d8e0 to 0x10003d94e (110 bytes)\n// \n// 10 xrefs:\n// > PlayLayer::toggleMusicInPractice @ 0x10008743b\n// > GameOptionsLayer::setupOptions @ 0x10029e5df\n// > GameOptionsLayer::onPracticeMusicSync @ 0x10029ea97\n// > GJGarageLayer::setupSpecialPage @ 0x100356c18\n// > GJGarageLayer::onToggleItem @ 0x100357b8f\n// > PlayerObject::init @ 0x1003e7b7e\n// > PlayerObject::init @ 0x1003e7b9b\n// > PlayerObject::init @ 0x1003e7bb8\n// > GameSettingsLayer::getValue @ 0x100602754\n// > GameSettingsLayer::valueDidChange @ 0x10060294c\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\n__int64 __fastcall GameStatsManager::isItemEnabled(__int64 a1, __int64 a2, unsigned int a3)\n{\n  __int64 v4; // rax\n  unsigned int v5; // ebx\n  size_t v7[7]; // [rsp+8h] [rbp-38h] BYREF\n\n  if ( (unsigned __int8)GameStatsManager::isItemUnlocked(a1, a2, a3) )\n  {\n    GameStatsManager::getItemKey(v7, a2, a3, a2);\n    v4 = cocos2d::CCDictionary::valueForKey(*(_QWORD *)(a1 + 792), v7);\n    v5 = cocos2d::CCString::boolValue(v4);\n    if ( (v7[0] & 1) != 0 )\n      operator delete((void *)v7[2]);\n  }\n  else\n  {\n    return 0;\n  }\n  return v5;\n}", "assembly": "; \n; GameStatsManager::isItemEnabled from 0x10003d8e0 to 0x10003d94e (110 bytes)\n; \n; 10 xrefs:\n; > PlayLayer::toggleMusicInPractice @ 0x10008743b\n; > GameOptionsLayer::setupOptions @ 0x10029e5df\n; > GameOptionsLayer::onPracticeMusicSync @ 0x10029ea97\n; > GJGarageLayer::setupSpecialPage @ 0x100356c18\n; > GJGarageLayer::onToggleItem @ 0x100357b8f\n; > PlayerObject::init @ 0x1003e7b7e\n; > PlayerObject::init @ 0x1003e7b9b\n; > PlayerObject::init @ 0x1003e7bb8\n; > GameSettingsLayer::getValue @ 0x100602754\n; > GameSettingsLayer::valueDidChange @ 0x10060294c\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, 0x10003d8e0\nmov     rbp, rsp                                                       ; +0x1, 0x10003d8e1\npush    r15                                                            ; +0x4, 0x10003d8e4\npush    r14                                                            ; +0x6, 0x10003d8e6\npush    r12                                                            ; +0x8, 0x10003d8e8\npush    rbx                                                            ; +0xa, 0x10003d8ea\nsub     rsp, 20h                                                       ; +0xb, 0x10003d8eb\nmov     r15d, edx                                                      ; +0xf, 0x10003d8ef\nmov     r14d, esi                                                      ; +0x12, 0x10003d8f2\nmov     rbx, rdi                                                       ; +0x15, 0x10003d8f5\ncall    GameStatsManager__isItemUnlocked                               ; +0x18, 0x10003d8f8\ntest    al, al                                                         ; +0x1d, 0x10003d8fd\njz      short loc_10003D93D                                            ; +0x1f, 0x10003d8ff\nlea     r12, [rbp+var_38]                                              ; +0x21, 0x10003d901\nmov     rdi, r12                                                       ; +0x25, 0x10003d905\nmov     edx, r15d                                                      ; +0x28, 0x10003d908\nmov     ecx, r14d                                                      ; +0x2b, 0x10003d90b\ncall    GameStatsManager__getItemKey                                   ; +0x2e, 0x10003d90e\nmov     rdi, [rbx+318h]                                                ; +0x33, 0x10003d913\nmov     rsi, r12                                                       ; +0x3a, 0x10003d91a\ncall    cocos2d__CCDictionary__valueForKey                             ; +0x3d, 0x10003d91d\nmov     rdi, rax                                                       ; +0x42, 0x10003d922\ncall    cocos2d__CCString__boolValue                                   ; +0x45, 0x10003d925\nmov     ebx, eax                                                       ; +0x4a, 0x10003d92a\ntest    [rbp+var_38], 1                                                ; +0x4c, 0x10003d92c\njz      short loc_10003D93F                                            ; +0x50, 0x10003d930\nmov     rdi, [rbp+__p]; __p                                            ; +0x52, 0x10003d932\ncall    __ZdlPv; operator delete(void *)                               ; +0x56, 0x10003d936\njmp     short loc_10003D93F                                            ; +0x5b, 0x10003d93b\nxor     ebx, ebx                                                       ; +0x5d, 0x10003d93d\nmov     eax, ebx                                                       ; +0x5f, 0x10003d93f\nadd     rsp, 20h                                                       ; +0x61, 0x10003d941\npop     rbx                                                            ; +0x65, 0x10003d945\npop     r12                                                            ; +0x66, 0x10003d946\npop     r14                                                            ; +0x68, 0x10003d948\npop     r15                                                            ; +0x6a, 0x10003d94a\npop     rbp                                                            ; +0x6c, 0x10003d94c\nretn                                                                   ; +0x6d, 0x10003d94d", "xrefs": ["PlayLayer::toggleMusicInPractice @ 0x10008743b", "GameOptionsLayer::setupOptions @ 0x10029e5df", "GameOptionsLayer::onPracticeMusicSync @ 0x10029ea97", "GJGarageLayer::setupSpecialPage @ 0x100356c18", "GJGarageLayer::onToggleItem @ 0x100357b8f", "PlayerObject::init @ 0x1003e7b7e", "PlayerObject::init @ 0x1003e7b9b", "PlayerObject::init @ 0x1003e7bb8", "GameSettingsLayer::getValue @ 0x100602754", "GameSettingsLayer::valueDidChange @ 0x10060294c"], "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"}