{"type": "func", "start": 4298215796, "end": 4298215916, "name": "GameManager::getIntGameVariable", "pseudocode": "// \n// GameManager::getIntGameVariable from 0x100319174 to 0x1003191ec (120 bytes)\n// \n// 44 xrefs:\n// > LevelInfoLayer::onLevelLeaderboard @ 0x100028420\n// > LevelInfoLayer::onLevelLeaderboard @ 0x100028434\n// > CreatorLayer::onSavedLevels @ 0x1000b5cac\n// > CreatorLayer::onSavedLevels @ 0x1000b5cc4\n// > CreatorLayer::onSavedLevels @ 0x1000b5cdc\n// > CreatorLayer::onSavedLevels @ 0x1000b5cf4\n// > CreatorLayer::onMyLevels @ 0x1000b638c\n// > CreatorLayer::onMyLevels @ 0x1000b63a4\n// > CreatorLayer::onMyLevels @ 0x1000b63bc\n// > CreatorLayer::onMyLevels @ 0x1000b63d4\n// > EditLevelLayer::onLevelLeaderboard @ 0x1000eb3e8\n// > EditorOptionsLayer::setupOptions @ 0x1002d43bc\n// > EditorOptionsLayer::setupOptions @ 0x1002d43d0\n// > EditorOptionsLayer::onClose @ 0x1002d4a8c\n// > EditorOptionsLayer::onClose @ 0x1002d4aa0\n// > EndLevelLayer::onLevelLeaderboard @ 0x1002f7618\n// > EndLevelLayer::onLevelLeaderboard @ 0x1002f762c\n// > GameManager::dataLoaded @ 0x10031c504\n// > GameManager::dataLoaded @ 0x10031c530\n// > GameManager::firstLoad @ 0x10031c68c\n// > EditorUI::setupDeleteMenu @ 0x1003c82e0\n// > EditorUI::setupDeleteMenu @ 0x1003c83c4\n// > EditorUI::setupCreateMenu @ 0x1003c8630\n// > EditorUI::setupCreateMenu @ 0x1003c8644\n// > EditorUI::reloadCustomItems @ 0x1003e8ad0\n// > EditorUI::reloadCustomItems @ 0x1003e8ae4\n// > EditorUI::recreateButtonTabs @ 0x1003e90d4\n// > EditorUI::recreateButtonTabs @ 0x1003e90e8\n// > EditorUI::onGroupIDFilter @ 0x1003e92f4\n// > EditorUI::onColorFilter @ 0x1003e93f8\n// > EditorUI::updateDeleteButtons @ 0x1003e9500\n// > EditorUI::updateDeleteButtons @ 0x1003e959c\n// > EditorUI::shouldDeleteObject @ 0x1003e9a60\n// > EditorUI::shouldDeleteObject @ 0x1003e9aac\n// > EditorUI::canSelectObject @ 0x1003ed540\n// > EditorUI::canSelectObject @ 0x1003ed558\n// > EditorUI::canSelectObject @ 0x1003ed574\n// > EditorUI::canSelectObject @ 0x1003ed598\n// > EditorUI::selectObjects @ 0x1003ed634\n// > EditorUI::selectObjects @ 0x1003ed64c\n// > EditorUI::selectObjects @ 0x1003ed6bc\n// > EditorUI::selectObjects @ 0x1003ed734\n// > EditorUI::createMoveMenu @ 0x1003f4960\n// > EditorUI::createMoveMenu @ 0x1003f4974\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\nint __fastcall GameManager::getIntGameVariable(GameManager *a1, const char *a2)\n{\n  cocos2d::CCString *v3; // x0\n  char *CString; // x0\n  cocos2d::CCDictionary *m_valueKeeper; // x19\n  cocos2d::CCString *v6; // x0\n  int v7; // w19\n  void *__p[2]; // [xsp+18h] [xbp-28h] BYREF\n  char v10; // [xsp+2Fh] [xbp-11h]\n\n  v3 = (cocos2d::CCString *)sub_100268F4C(\"%s%s\", \"gv_\", a2);\n  CString = (char *)cocos2d::CCString::getCString(v3);\n  m_valueKeeper = a1->m_valueKeeper;\n  sub_100009900(__p, CString);\n  v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(m_valueKeeper, __p);\n  v7 = cocos2d::CCString::intValue(v6);\n  if ( v10 < 0 )\n    operator delete(__p[0]);\n  return v7;\n}", "assembly": "; \n; GameManager::getIntGameVariable from 0x100319174 to 0x1003191ec (120 bytes)\n; \n; 44 xrefs:\n; > LevelInfoLayer::onLevelLeaderboard @ 0x100028420\n; > LevelInfoLayer::onLevelLeaderboard @ 0x100028434\n; > CreatorLayer::onSavedLevels @ 0x1000b5cac\n; > CreatorLayer::onSavedLevels @ 0x1000b5cc4\n; > CreatorLayer::onSavedLevels @ 0x1000b5cdc\n; > CreatorLayer::onSavedLevels @ 0x1000b5cf4\n; > CreatorLayer::onMyLevels @ 0x1000b638c\n; > CreatorLayer::onMyLevels @ 0x1000b63a4\n; > CreatorLayer::onMyLevels @ 0x1000b63bc\n; > CreatorLayer::onMyLevels @ 0x1000b63d4\n; > EditLevelLayer::onLevelLeaderboard @ 0x1000eb3e8\n; > EditorOptionsLayer::setupOptions @ 0x1002d43bc\n; > EditorOptionsLayer::setupOptions @ 0x1002d43d0\n; > EditorOptionsLayer::onClose @ 0x1002d4a8c\n; > EditorOptionsLayer::onClose @ 0x1002d4aa0\n; > EndLevelLayer::onLevelLeaderboard @ 0x1002f7618\n; > EndLevelLayer::onLevelLeaderboard @ 0x1002f762c\n; > GameManager::dataLoaded @ 0x10031c504\n; > GameManager::dataLoaded @ 0x10031c530\n; > GameManager::firstLoad @ 0x10031c68c\n; > EditorUI::setupDeleteMenu @ 0x1003c82e0\n; > EditorUI::setupDeleteMenu @ 0x1003c83c4\n; > EditorUI::setupCreateMenu @ 0x1003c8630\n; > EditorUI::setupCreateMenu @ 0x1003c8644\n; > EditorUI::reloadCustomItems @ 0x1003e8ad0\n; > EditorUI::reloadCustomItems @ 0x1003e8ae4\n; > EditorUI::recreateButtonTabs @ 0x1003e90d4\n; > EditorUI::recreateButtonTabs @ 0x1003e90e8\n; > EditorUI::onGroupIDFilter @ 0x1003e92f4\n; > EditorUI::onColorFilter @ 0x1003e93f8\n; > EditorUI::updateDeleteButtons @ 0x1003e9500\n; > EditorUI::updateDeleteButtons @ 0x1003e959c\n; > EditorUI::shouldDeleteObject @ 0x1003e9a60\n; > EditorUI::shouldDeleteObject @ 0x1003e9aac\n; > EditorUI::canSelectObject @ 0x1003ed540\n; > EditorUI::canSelectObject @ 0x1003ed558\n; > EditorUI::canSelectObject @ 0x1003ed574\n; > EditorUI::canSelectObject @ 0x1003ed598\n; > EditorUI::selectObjects @ 0x1003ed634\n; > EditorUI::selectObjects @ 0x1003ed64c\n; > EditorUI::selectObjects @ 0x1003ed6bc\n; > EditorUI::selectObjects @ 0x1003ed734\n; > EditorUI::createMoveMenu @ 0x1003f4960\n; > EditorUI::createMoveMenu @ 0x1003f4974\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, 0x100319174\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x4, 0x100319178\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x8, 0x10031917c\nADD             X29, SP, #0x40                                         ; +0xc, 0x100319180\nMOV             X19, X0                                                ; +0x10, 0x100319184\nADRL            X8, aGv; \"gv_\"                                         ; +0x14, 0x100319188\nSTP             X8, X1, [SP,#0x40+var_40]                              ; +0x1c, 0x100319190\nADRL            X0, aSS_1; \"%s%s\"                                      ; +0x20, 0x100319194\nBL              sub_100268F4C                                          ; +0x28, 0x10031919c\nBL              cocos2d__CCString__getCString                          ; +0x2c, 0x1003191a0\nMOV             X1, X0; __s                                            ; +0x30, 0x1003191a4\nLDR             X19, [X19,#0x190]                                      ; +0x34, 0x1003191a8\nADD             X0, SP, #0x40+__p; int                                 ; +0x38, 0x1003191ac\nBL              sub_100009900                                          ; +0x3c, 0x1003191b0\nADD             X1, SP, #0x40+__p                                      ; +0x40, 0x1003191b4\nMOV             X0, X19                                                ; +0x44, 0x1003191b8\nBL              cocos2d__CCDictionary__valueForKey_1                   ; +0x48, 0x1003191bc\nBL              cocos2d__CCString__intValue                            ; +0x4c, 0x1003191c0\nMOV             X19, X0                                                ; +0x50, 0x1003191c4\nLDRSB           W8, [SP,#0x40+var_11]                                  ; +0x54, 0x1003191c8\nTBZ             W8, #0x1F, loc_1003191D8                               ; +0x58, 0x1003191cc\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x5c, 0x1003191d0\nBL              __ZdlPv; operator delete(void *)                       ; +0x60, 0x1003191d4\nMOV             X0, X19                                                ; +0x64, 0x1003191d8\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x68, 0x1003191dc\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x6c, 0x1003191e0\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x70, 0x1003191e4\nRET                                                                    ; +0x74, 0x1003191e8", "xrefs": ["LevelInfoLayer::onLevelLeaderboard @ 0x100028420", "LevelInfoLayer::onLevelLeaderboard @ 0x100028434", "CreatorLayer::onSavedLevels @ 0x1000b5cac", "CreatorLayer::onSavedLevels @ 0x1000b5cc4", "CreatorLayer::onSavedLevels @ 0x1000b5cdc", "CreatorLayer::onSavedLevels @ 0x1000b5cf4", "CreatorLayer::onMyLevels @ 0x1000b638c", "CreatorLayer::onMyLevels @ 0x1000b63a4", "CreatorLayer::onMyLevels @ 0x1000b63bc", "CreatorLayer::onMyLevels @ 0x1000b63d4", "EditLevelLayer::onLevelLeaderboard @ 0x1000eb3e8", "EditorOptionsLayer::setupOptions @ 0x1002d43bc", "EditorOptionsLayer::setupOptions @ 0x1002d43d0", "EditorOptionsLayer::onClose @ 0x1002d4a8c", "EditorOptionsLayer::onClose @ 0x1002d4aa0", "EndLevelLayer::onLevelLeaderboard @ 0x1002f7618", "EndLevelLayer::onLevelLeaderboard @ 0x1002f762c", "GameManager::dataLoaded @ 0x10031c504", "GameManager::dataLoaded @ 0x10031c530", "GameManager::firstLoad @ 0x10031c68c", "EditorUI::setupDeleteMenu @ 0x1003c82e0", "EditorUI::setupDeleteMenu @ 0x1003c83c4", "EditorUI::setupCreateMenu @ 0x1003c8630", "EditorUI::setupCreateMenu @ 0x1003c8644", "EditorUI::reloadCustomItems @ 0x1003e8ad0", "EditorUI::reloadCustomItems @ 0x1003e8ae4", "EditorUI::recreateButtonTabs @ 0x1003e90d4", "EditorUI::recreateButtonTabs @ 0x1003e90e8", "EditorUI::onGroupIDFilter @ 0x1003e92f4", "EditorUI::onColorFilter @ 0x1003e93f8", "EditorUI::updateDeleteButtons @ 0x1003e9500", "EditorUI::updateDeleteButtons @ 0x1003e959c", "EditorUI::shouldDeleteObject @ 0x1003e9a60", "EditorUI::shouldDeleteObject @ 0x1003e9aac", "EditorUI::canSelectObject @ 0x1003ed540", "EditorUI::canSelectObject @ 0x1003ed558", "EditorUI::canSelectObject @ 0x1003ed574", "EditorUI::canSelectObject @ 0x1003ed598", "EditorUI::selectObjects @ 0x1003ed634", "EditorUI::selectObjects @ 0x1003ed64c", "EditorUI::selectObjects @ 0x1003ed6bc", "EditorUI::selectObjects @ 0x1003ed734", "EditorUI::createMoveMenu @ 0x1003f4960", "EditorUI::createMoveMenu @ 0x1003f4974"], "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"}