{"type": "func", "start": 4298215620, "end": 4298215768, "name": "GameManager::setIntGameVariable", "pseudocode": "// \n// GameManager::setIntGameVariable from 0x1003190c4 to 0x100319158 (148 bytes)\n// \n// 18 xrefs:\n// > LevelLeaderboard::onChangeMode @ 0x100250330\n// > LevelLeaderboard::onChangeType @ 0x100250558\n// > EditorOptionsLayer::onClose @ 0x1002d4acc\n// > EditorOptionsLayer::onClose @ 0x1002d4ae0\n// > GameManager::dataLoaded @ 0x10031c520\n// > GameManager::dataLoaded @ 0x10031c54c\n// > GameManager::firstLoad @ 0x10031c8f0\n// > GameManager::firstLoad @ 0x10031c9d4\n// > GameManager::firstLoad @ 0x10031c9e8\n// > EditorUI::setupCreateMenu @ 0x1003c8668\n// > EditorUI::setupCreateMenu @ 0x1003c8688\n// > EditorUI::onUpdateDeleteFilter @ 0x1003e91ec\n// > EditorUI::onUpdateDeleteFilter @ 0x1003e921c\n// > EditorUI::onResetSpecialFilter @ 0x1003e9454\n// > EditorUI::onResetSpecialFilter @ 0x1003e947c\n// > EditorUI::setIDPopupClosed @ 0x1003e9ecc\n// > EditorUI::setIDPopupClosed @ 0x1003e9f2c\n// > LevelBrowserLayer::setIDPopupClosed @ 0x100418f00\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\nvoid __fastcall GameManager::setIntGameVariable(GameManager *a1, const char *a2, int a3)\n{\n  cocos2d::CCString *v5; // x0\n  char *CString; // x21\n  cocos2d::CCDictionary *m_valueKeeper; // x20\n  cocos2d::CCObject *v8; // x19\n  void *__p[2]; // [xsp+18h] [xbp-38h] BYREF\n  char v10; // [xsp+2Fh] [xbp-21h]\n\n  v5 = (cocos2d::CCString *)sub_100268F4C(\"%s%s\", \"gv_\", a2);\n  CString = (char *)cocos2d::CCString::getCString(v5);\n  m_valueKeeper = a1->m_valueKeeper;\n  v8 = sub_100268F4C(\"%i\", a3);\n  sub_100009900(__p, CString);\n  cocos2d::CCDictionary::setObject_1(m_valueKeeper, v8, __p);\n  if ( v10 < 0 )\n    operator delete(__p[0]);\n}", "assembly": "; \n; GameManager::setIntGameVariable from 0x1003190c4 to 0x100319158 (148 bytes)\n; \n; 18 xrefs:\n; > LevelLeaderboard::onChangeMode @ 0x100250330\n; > LevelLeaderboard::onChangeType @ 0x100250558\n; > EditorOptionsLayer::onClose @ 0x1002d4acc\n; > EditorOptionsLayer::onClose @ 0x1002d4ae0\n; > GameManager::dataLoaded @ 0x10031c520\n; > GameManager::dataLoaded @ 0x10031c54c\n; > GameManager::firstLoad @ 0x10031c8f0\n; > GameManager::firstLoad @ 0x10031c9d4\n; > GameManager::firstLoad @ 0x10031c9e8\n; > EditorUI::setupCreateMenu @ 0x1003c8668\n; > EditorUI::setupCreateMenu @ 0x1003c8688\n; > EditorUI::onUpdateDeleteFilter @ 0x1003e91ec\n; > EditorUI::onUpdateDeleteFilter @ 0x1003e921c\n; > EditorUI::onResetSpecialFilter @ 0x1003e9454\n; > EditorUI::onResetSpecialFilter @ 0x1003e947c\n; > EditorUI::setIDPopupClosed @ 0x1003e9ecc\n; > EditorUI::setIDPopupClosed @ 0x1003e9f2c\n; > LevelBrowserLayer::setIDPopupClosed @ 0x100418f00\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, #0x60                                          ; +0x0, 0x1003190c4\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x4, 0x1003190c8\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x8, 0x1003190cc\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0xc, 0x1003190d0\nADD             X29, SP, #0x50                                         ; +0x10, 0x1003190d4\nMOV             X19, X2                                                ; +0x14, 0x1003190d8\nMOV             X20, X0                                                ; +0x18, 0x1003190dc\nADRL            X8, aGv; \"gv_\"                                         ; +0x1c, 0x1003190e0\nSTP             X8, X1, [SP,#0x50+var_50]                              ; +0x24, 0x1003190e8\nADRL            X0, aSS_1; \"%s%s\"                                      ; +0x28, 0x1003190ec\nBL              sub_100268F4C                                          ; +0x30, 0x1003190f4\nBL              cocos2d__CCString__getCString                          ; +0x34, 0x1003190f8\nMOV             X21, X0                                                ; +0x38, 0x1003190fc\nLDR             X20, [X20,#0x190]                                      ; +0x3c, 0x100319100\nSTR             X19, [SP,#0x50+var_50]                                 ; +0x40, 0x100319104\nADRL            X0, aI; \"%i\"                                           ; +0x44, 0x100319108\nBL              sub_100268F4C                                          ; +0x4c, 0x100319110\nMOV             X19, X0                                                ; +0x50, 0x100319114\nADD             X0, SP, #0x50+__p; int                                 ; +0x54, 0x100319118\nMOV             X1, X21; __s                                           ; +0x58, 0x10031911c\nBL              sub_100009900                                          ; +0x5c, 0x100319120\nADD             X2, SP, #0x50+__p                                      ; +0x60, 0x100319124\nMOV             X0, X20                                                ; +0x64, 0x100319128\nMOV             X1, X19                                                ; +0x68, 0x10031912c\nBL              cocos2d__CCDictionary__setObject_1                     ; +0x6c, 0x100319130\nLDRSB           W8, [SP,#0x50+var_21]                                  ; +0x70, 0x100319134\nTBZ             W8, #0x1F, loc_100319144                               ; +0x74, 0x100319138\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x78, 0x10031913c\nBL              __ZdlPv; operator delete(void *)                       ; +0x7c, 0x100319140\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x80, 0x100319144\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x84, 0x100319148\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x88, 0x10031914c\nADD             SP, SP, #0x60 ; '`'                                    ; +0x8c, 0x100319150\nRET                                                                    ; +0x90, 0x100319154", "xrefs": ["LevelLeaderboard::onChangeMode @ 0x100250330", "LevelLeaderboard::onChangeType @ 0x100250558", "EditorOptionsLayer::onClose @ 0x1002d4acc", "EditorOptionsLayer::onClose @ 0x1002d4ae0", "GameManager::dataLoaded @ 0x10031c520", "GameManager::dataLoaded @ 0x10031c54c", "GameManager::firstLoad @ 0x10031c8f0", "GameManager::firstLoad @ 0x10031c9d4", "GameManager::firstLoad @ 0x10031c9e8", "EditorUI::setupCreateMenu @ 0x1003c8668", "EditorUI::setupCreateMenu @ 0x1003c8688", "EditorUI::onUpdateDeleteFilter @ 0x1003e91ec", "EditorUI::onUpdateDeleteFilter @ 0x1003e921c", "EditorUI::onResetSpecialFilter @ 0x1003e9454", "EditorUI::onResetSpecialFilter @ 0x1003e947c", "EditorUI::setIDPopupClosed @ 0x1003e9ecc", "EditorUI::setIDPopupClosed @ 0x1003e9f2c", "LevelBrowserLayer::setIDPopupClosed @ 0x100418f00"], "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"}