//
// GameManager::getIntGameVariable from 0x322f74 to 0x322fd4 (96 bytes)
//
// 44 xrefs:
// > GameManager::firstLoad @ 0x3241a4
// > GameManager::dataLoaded @ 0x32909c
// > GameManager::dataLoaded @ 0x3290b6
// > EditorUI::onGroupIDFilter @ 0x37b98e
// > EditorUI::onColorFilter @ 0x37ba38
// > EditorUI::recreateButtonTabs @ 0x37c87a
// > EditorUI::recreateButtonTabs @ 0x37c888
// > EditorUI::setupDeleteMenu @ 0x37cec6
// > EditorUI::setupDeleteMenu @ 0x37cf62
// > EditorUI::shouldDeleteObject @ 0x37d14c
// > EditorUI::shouldDeleteObject @ 0x37d192
// > EditorUI::updateDeleteButtons @ 0x37d296
// > EditorUI::updateDeleteButtons @ 0x37d320
// > EditorUI::canSelectObject @ 0x37d81e
// > EditorUI::canSelectObject @ 0x37d830
// > EditorUI::canSelectObject @ 0x37d840
// > EditorUI::canSelectObject @ 0x37d862
// > EditorUI::createMoveMenu @ 0x37f052
// > EditorUI::createMoveMenu @ 0x37f060
// > EditorUI::reloadCustomItems @ 0x38827c
// > EditorUI::reloadCustomItems @ 0x38828a
// > EditorUI::setupCreateMenu @ 0x3883e8
// > EditorUI::setupCreateMenu @ 0x3883f8
// > EditorUI::selectObjects @ 0x3a3050
// > EditorUI::selectObjects @ 0x3a3062
// > EditorUI::selectObjects @ 0x3a3088
// > EditorUI::selectObjects @ 0x3a3098
// > CreatorLayer::onMyLevels @ 0x3aa7ea
// > CreatorLayer::onMyLevels @ 0x3aa800
// > CreatorLayer::onMyLevels @ 0x3aa818
// > CreatorLayer::onMyLevels @ 0x3aa82a
// > CreatorLayer::onSavedLevels @ 0x3aa87c
// > CreatorLayer::onSavedLevels @ 0x3aa892
// > CreatorLayer::onSavedLevels @ 0x3aa8aa
// > CreatorLayer::onSavedLevels @ 0x3aa8bc
// > LevelInfoLayer::onLevelLeaderboard @ 0x3b1578
// > LevelInfoLayer::onLevelLeaderboard @ 0x3b1586
// > EditLevelLayer::onLevelLeaderboard @ 0x3b5f12
// > EndLevelLayer::onLevelLeaderboard @ 0x4278fa
// > EndLevelLayer::onLevelLeaderboard @ 0x427908
// > EditorOptionsLayer::onClose @ 0x4a7ca2
// > EditorOptionsLayer::onClose @ 0x4a7cb0
// > EditorOptionsLayer::setupOptions @ 0x4b4858
// > EditorOptionsLayer::setupOptions @ 0x4b4868
//
// 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 GameManager::getIntGameVariable(GameManager *a1, const char *a2)
{
cocos2d::CCString *v3; // r0
char *CString; // r0
cocos2d::CCDictionary *m_valueKeeper; // r6
cocos2d::CCString *v6; // r0
int v7; // r6
std::string v9; // [sp+8h] [bp-8h] BYREF
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"%s%s",
"gv_",
a2,
_stack_chk_guard,
a1,
a2);
CString = (char *)cocos2d::CCString::getCString(v3);
m_valueKeeper = a1->m_valueKeeper;
sub_776584((int)&v9, CString);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(m_valueKeeper, &v9);
v7 = cocos2d::CCString::intValue(v6);
sub_774008(&v9);
return v7;
}