//
// GameManager::getIntGameVariable from 0x100319174 to 0x1003191ec (120 bytes)
//
// 44 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
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall GameManager::getIntGameVariable(GameManager *a1, const char *a2)
{
cocos2d::CCString *v3; // x0
char *CString; // x0
cocos2d::CCDictionary *m_valueKeeper; // x19
cocos2d::CCString *v6; // x0
int v7; // w19
void *__p[2]; // [xsp+18h] [xbp-28h] BYREF
char v10; // [xsp+2Fh] [xbp-11h]
v3 = (cocos2d::CCString *)sub_100268F4C("%s%s", "gv_", a2);
CString = (char *)cocos2d::CCString::getCString(v3);
m_valueKeeper = a1->m_valueKeeper;
sub_100009900(__p, CString);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(m_valueKeeper, __p);
v7 = cocos2d::CCString::intValue(v6);
if ( v10 < 0 )
operator delete(__p[0]);
return v7;
}