//
// GameManager::getGameVariable from 0x100312200 to 0x1003122a4 (164 bytes)
//
// 258 xrefs:
// > LevelInfoLayer::init @ 0x100024bd8
// > LevelInfoLayer::onPlay @ 0x1000265c4
// > LevelInfoLayer::onPlay @ 0x100026620
// > LevelInfoLayer::onPlay @ 0x100026634
// > LevelInfoLayer::downloadLevel @ 0x100026ce0
// > LevelInfoLayer::setupProgressBars @ 0x100027fb4
// > UILayer::init @ 0x1000491a8
// > UILayer::refreshDpad @ 0x100049884
// > UILayer::handleKeypress @ 0x100049e2c
// > UILayer::handleKeypress @ 0x100049ebc
// > UILayer::ccTouchBegan @ 0x10004a18c
// > UILayer::ccTouchBegan @ 0x10004a218
// > PlayerObject::playDeathEffect @ 0x10005c47c
// > SetupSmartBlockLayer::determineStartValues @ 0x10006fc20
// > SetupSmartBlockLayer::determineStartValues @ 0x10006fc34
// > GameLevelManager::ProcessHttpRequest @ 0x100087f34
// > GameLevelManager::limitSavedLevels @ 0x100099e6c
// > GameLevelManager::limitSavedLevels @ 0x100099e8c
// > GameLevelManager::limitSavedLevels @ 0x100099ee0
// > GameLevelManager::getOnlineLevels @ 0x10009d5e0
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x1000a0138
// > GameLevelManager::getLevelComments @ 0x1000a5eec
// > GameLevelManager::getLevelComments @ 0x1000a5f0c
// > CreatorLayer::init @ 0x1000b562c
// > EditLevelLayer::onShare @ 0x1000ea670
// > OptionsLayer::customSetup @ 0x1000ed000
// > MoreOptionsLayer::init @ 0x1000ed734
// > MoreOptionsLayer::addToggle @ 0x1000ee8dc
// > MoreOptionsLayer::onToggle @ 0x1000ef4bc
// > MoreOptionsLayer::onToggle @ 0x1000ef4cc
// > MoreOptionsLayer::onToggle @ 0x1000ef544
// > MoreOptionsLayer::onToggle @ 0x1000ef5b8
// > MoreOptionsLayer::onToggle @ 0x1000ef63c
// > VideoOptionsLayer::init @ 0x1000efcd8
// > VideoOptionsLayer::init @ 0x1000efd78
// > VideoOptionsLayer::init @ 0x1000efd90
// > VideoOptionsLayer::init @ 0x1000efda4
// > VideoOptionsLayer::init @ 0x1000f0024
// > VideoOptionsLayer::init @ 0x1000f00b8
// > VideoOptionsLayer::init @ 0x1000f0168
// > VideoOptionsLayer::onApply @ 0x1000f0d70
// > VideoOptionsLayer::onApply @ 0x1000f0d90
// > VideoOptionsLayer::onApply @ 0x1000f0dac
// > VideoOptionsLayer::onApply @ 0x1000f0e7c
// > MoreVideoOptionsLayer::init @ 0x1000f1440
// > MoreVideoOptionsLayer::addToggle @ 0x1000f1898
// > MoreVideoOptionsLayer::onToggle @ 0x1000f2150
// > MoreVideoOptionsLayer::onToggle @ 0x1000f21c8
// > MoreVideoOptionsLayer::onToggle @ 0x1000f223c
// > MoreVideoOptionsLayer::onToggle @ 0x1000f22b8
// > MoreVideoOptionsLayer::onToggle @ 0x1000f2330
// > MoreVideoOptionsLayer::onToggle @ 0x1000f240c
// > MoreVideoOptionsLayer::updateFPSButtons @ 0x1000f27e4
// > ParentalOptionsLayer::addToggle @ 0x1000f2d60
// > CustomSongWidget::onDownload @ 0x1000fa920
// > PlayLayer::init @ 0x100115864
// > PlayLayer::init @ 0x100115884
// > PlayLayer::init @ 0x1001158f4
// > PlayLayer::init @ 0x100115908
// > PlayLayer::init @ 0x10011591c
// > PlayLayer::init @ 0x100115930
// > PlayLayer::init @ 0x100115c8c
// > PlayLayer::init @ 0x100115d70
// > PlayLayer::updateDebugDrawSettings @ 0x1001160a4
// > PlayLayer::updateDebugDrawSettings @ 0x1001160b8
// > PlayLayer::updateDebugDrawSettings @ 0x1001160cc
// > PlayLayer::setupHasCompleted @ 0x1001170e8
// > PlayLayer::showTwoPlayerGuide @ 0x10011830c
// > PlayLayer::toggleProgressbar @ 0x10011e598
// > PlayLayer::toggleProgressbar @ 0x10011e5bc
// > PlayLayer::toggleMusicInPractice @ 0x10011e6fc
// > PlayLayer::toggleInfoLabel @ 0x10011e76c
// > PlayLayer::toggleHideAttempts @ 0x10011e8f0
// > PlayLayer::toggleHideAttempts @ 0x10011e904
// > PlayLayer::destroyPlayer @ 0x10011ea60
// > PlayLayer::destroyPlayer @ 0x10011ed98
// > PlayLayer::destroyPlayer @ 0x10011edc0
// > PlayLayer::processCheckpoints @ 0x10011f404
// > PlayLayer::resetLevelFromStart @ 0x100121b0c
// > PlayLayer::updateAttempts @ 0x100122684
// > PlayLayer::updateAttempts @ 0x100122698
// > PlayLayer::resumeAndRestart @ 0x1001229e4
// > PlayLayer::resumeAndRestart @ 0x100122a14
// > PlayLayer::resume @ 0x100122aec
// > PlayLayer::resume @ 0x100122b0c
// > FMODAudioEngine::setupAudioEngine @ 0x100138424
// > FMODAudioEngine::setupAudioEngine @ 0x100138480
// > PauseLayer::tryQuit @ 0x1001433f0
// > CustomSongLayer::onSearch @ 0x100144774
// > SongSelectNode::onOpenCustomSong @ 0x1001478b8
// > MusicDownloadManager::onDownloadSongCompleted @ 0x10015693c
// > MusicDownloadManager::pathForSongFolder @ 0x100156c38
// > MusicDownloadManager::pathForSFXFolder @ 0x100156f14
// > SFXSearchResult::updateObjects @ 0x10015d334
// > SFXBrowser::init @ 0x1001688d0
// > SearchSFXPopup::init @ 0x10016a9e4
// > ProfilePage::loadPageFromUserInfo @ 0x10019982c
// > ProfilePage::loadPageFromUserInfo @ 0x100199d54
// > ProfilePage::getUserInfoFinished @ 0x10019c3a4
// > RetryLevelLayer::onReplay @ 0x1001b3a04
// > LoadingLayer::loadAssets @ 0x1001d69ec
// > LoadingLayer::loadAssets @ 0x1001d6a7c
// > GJBaseGameLayer::init @ 0x1001daac4
// > GJBaseGameLayer::init @ 0x1001daadc
// > GJBaseGameLayer::init @ 0x1001daaf0
// > GJBaseGameLayer::init @ 0x1001dab04
// > GJBaseGameLayer::init @ 0x1001dab18
// > GJBaseGameLayer::init @ 0x1001db028
// > GJBaseGameLayer::createPlayer @ 0x1001dda28
// > GJBaseGameLayer::increaseBatchNodeCapacity @ 0x1001dea3c
// > GJBaseGameLayer::handleButton @ 0x1001fac14
// > GJBaseGameLayer::buttonIsRelevant @ 0x1001faf10
// > GJBaseGameLayer::loadStartPosObject @ 0x1001fcaf0
// > PlayerObject::init @ 0x10021795c
// > PlayerObject::init @ 0x100217970
// > PlayerObject::init @ 0x100217984
// > PlayerObject::init @ 0x100218664
// > PlayerObject::init @ 0x100218678
// > PlayerObject::init @ 0x10021868c
// > PlayerObject::tryPlaceCheckpoint @ 0x10021d8e0
// > MenuLayer::init @ 0x1002671f4
// > MenuLayer::init @ 0x100267574
// > MenuLayer::onGameCenter @ 0x100267d84
// > AppDelegate::resumeSound @ 0x100269660
// > ShaderLayer::setupShader @ 0x10026dfa0
// > ShareLevelLayer::init @ 0x100275968
// > ShareLevelSettingsLayer::onUnlisted @ 0x100277844
// > FLAlertLayer::init @ 0x1002abfec
// > FLAlertLayer::init_1 @ 0x1002ac928
// > CreateParticlePopup::init @ 0x1002ca9e0
// > CreateParticlePopup::init @ 0x1002cb694
// > CreateParticlePopup::onTogglePerfLog @ 0x1002ce23c
// > GJOptionsLayer::addGVToggle @ 0x1002d3504
// > GameOptionsLayer::setupOptions @ 0x1002e1698
// > GameOptionsLayer::setupOptions @ 0x1002e16cc
// > GameOptionsLayer::setupOptions @ 0x1002e1718
// > GameOptionsLayer::setupOptions @ 0x1002e1744
// > GameOptionsLayer::setupOptions @ 0x1002e1770
// > GameOptionsLayer::setupOptions @ 0x1002e179c
// > GameOptionsLayer::setupOptions @ 0x1002e17c8
// > GameOptionsLayer::setupOptions @ 0x1002e17f4
// > GameOptionsLayer::setupOptions @ 0x1002e1824
// > GameOptionsLayer::setupOptions @ 0x1002e1a18
// > GameOptionsLayer::didToggle @ 0x1002e2228
// > UIOptionsLayer::getValue @ 0x1002e43f8
// > CustomSFXWidget::onDownload @ 0x1002f0970
// > CustomSFXWidget::downloadSFXFinished @ 0x1002f16d0
// > EndLevelLayer::customSetup @ 0x1002f5b48
// > EndLevelLayer::getEndText @ 0x1002f716c
// > EndLevelLayer::onReplay @ 0x1002f7248
// > EndLevelLayer::onRestartCheckpoint @ 0x1002f74d0
// > EndLevelLayer::showLayer @ 0x1002f7740
// > GJGarageLayer::setupPage @ 0x100305024
// > GameManager::playMenuMusic @ 0x1003120b4
// > GameManager::fadeInMenuMusic @ 0x1003122fc
// > GameManager::toggleGameVariable @ 0x100318ed4
// > GameManager::saveDPadLayout @ 0x10031a808
// > GameManager::loadVideoSettings @ 0x10031b3d4
// > GameManager::loadVideoSettings @ 0x10031b3e8
// > GameManager::loadVideoSettings @ 0x10031b3fc
// > GameManager::dataLoaded @ 0x10031ba9c
// > GameManager::updateCustomFPS @ 0x10031dda0
// > InfoLayer::init @ 0x10034fa1c
// > InfoLayer::init @ 0x10034fa48
// > InfoLayer::init @ 0x1003504f4
// > InfoLayer::init @ 0x100350d98
// > InfoLayer::init @ 0x100350ff4
// > InfoLayer::init @ 0x100351054
// > InfoLayer::onComment @ 0x100351754
// > InfoLayer::updateCommentModeButtons @ 0x100351e98
// > InfoLayer::loadPage @ 0x100351f6c
// > InfoLayer::setupCommentsBrowser @ 0x1003522bc
// > InfoLayer::setupCommentsBrowser @ 0x1003522e8
// > InfoLayer::onLevelInfo @ 0x1003524dc
// > InfoLayer::updateUserScoreFinished @ 0x10035304c
// > InfoLayer::reloadWindow @ 0x100353274
// > LevelEditorLayer::init @ 0x100356c1c
// > LevelEditorLayer::init @ 0x100356c30
// > LevelEditorLayer::init @ 0x100356c44
// > LevelEditorLayer::init @ 0x100356c64
// > LevelEditorLayer::init @ 0x100357338
// > LevelEditorLayer::init @ 0x100357760
// > LevelEditorLayer::updateOptions @ 0x1003578b4
// > LevelEditorLayer::updateOptions @ 0x1003578dc
// > LevelEditorLayer::updateOptions @ 0x1003578f0
// > LevelEditorLayer::updateOptions @ 0x100357904
// > LevelEditorLayer::updateOptions @ 0x100357918
// > LevelEditorLayer::updateOptions @ 0x10035792c
// > LevelEditorLayer::updateOptions @ 0x100357940
// > LevelEditorLayer::updateOptions @ 0x100357954
// > LevelEditorLayer::updateOptions @ 0x100357968
// > LevelEditorLayer::updateOptions @ 0x10035797c
// > LevelEditorLayer::updateOptions @ 0x100357990
// > LevelEditorLayer::updateOptions @ 0x1003579a4
// > LevelEditorLayer::updateOptions @ 0x1003579b8
// > LevelEditorLayer::updateOptions @ 0x1003579d0
// > LevelEditorLayer::updateOptions @ 0x1003579f8
// > LevelEditorLayer::updateOptions @ 0x100357a30
// > LevelEditorLayer::updateEditorMode @ 0x100358f38
// > LevelEditorLayer::updateVisibility @ 0x10035e91c
// > LevelEditorLayer::updatePreviewParticles @ 0x1003605fc
// > LevelEditorLayer::updatePreviewParticles @ 0x100360620
// > LevelEditorLayer::onPlaytest @ 0x100362e40
// > LevelEditorLayer::onPlaytest @ 0x100362fd0
// > LevelEditorLayer::pasteAttributeState @ 0x100363c84
// > LevelEditorLayer::updatePreviewAnim @ 0x100364098
// > LevelEditorLayer::updateDebugDraw @ 0x100367d40
// > LevelEditorLayer::updateDebugDraw @ 0x100367e14
// > LevelEditorLayer::updateDebugDraw @ 0x100368ee4
// > LevelEditorLayer::updateDebugDraw @ 0x100369108
// > DrawGridLayer::draw @ 0x100369990
// > EffectGameObject::playTriggerEffect @ 0x1003850c4
// > EffectGameObject::playTriggerEffect @ 0x1003850e4
// > CheckpointGameObject::resetObject @ 0x100390760
// > EditorPauseLayer::customSetup @ 0x10039d1a0
// > EditorPauseLayer::customSetup @ 0x10039d260
// > EditorPauseLayer::customSetup @ 0x10039d308
// > EditorPauseLayer::customSetup @ 0x10039d3b0
// > EditorPauseLayer::customSetup @ 0x10039d458
// > EditorPauseLayer::customSetup @ 0x10039d500
// > EditorPauseLayer::customSetup @ 0x10039d5a8
// > EditorPauseLayer::customSetup @ 0x10039d650
// > EditorPauseLayer::customSetup @ 0x10039d6f8
// > EditorPauseLayer::customSetup @ 0x10039d7a0
// > EditorPauseLayer::customSetup @ 0x10039d848
// > EditorPauseLayer::toggleEditorGround @ 0x10039e198
// > GJDropDownLayer::showLayer @ 0x1003b2744
// > GJDropDownLayer::hideLayer @ 0x1003b285c
// > EditorUI::init @ 0x1003c4f5c
// > EditorUI::init @ 0x1003c5e98
// > EditorUI::init @ 0x1003c5eac
// > EditorUI::init @ 0x1003c6d78
// > EditorUI::init @ 0x1003c6d90
// > EditorUI::toggleSnap @ 0x1003c7384
// > EditorUI::toggleEnableRotate @ 0x1003c73f8
// > EditorUI::onPlaytest @ 0x1003c7948
// > EditorUI::onStickyToggle @ 0x1003c7b38
// > EditorUI::onLockLayer @ 0x1003e594c
// > EditorUI::toggleObjectInfoLabel @ 0x1003e608c
// > EditorUI::updateStickyControls @ 0x1003e60e4
// > EditorUI::updateStickyControls @ 0x1003e60f8
// > EditorUI::toggleSpecialEditButtons @ 0x1003e65fc
// > EditorUI::updateObjectInfoLabel @ 0x1003e7884
// > EditorUI::canSelectObject @ 0x1003ed52c
// > EditorUI::selectObjects @ 0x1003ed620
// > EditorUI::showUI @ 0x1003ee4c8
// > EditorUI::ccTouchBegan @ 0x1003f8a88
// > EditorUI::ccTouchMoved @ 0x1003f8e6c
// > EditorUI::ccTouchEnded @ 0x1003f919c
// > EditorUI::ccTouchEnded @ 0x1003f9248
// > EditorUI::keyDown @ 0x1003f9d28
// > EditorUI::keyDown @ 0x1003f9ee8
// > EditorUI::keyDown @ 0x1003fa24c
// > EditorUI::keyDown @ 0x1003fa394
// > EditorUI::keyDown @ 0x1003fa3bc
// > EditorUI::keyDown @ 0x1003fa3e0
// > GJTransformControl::init @ 0x1003fbad8
// > LevelBrowserLayer::loadPage @ 0x1004172ec
//
// 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
//
bool __fastcall GameManager::getGameVariable(GameManager *a1, const char *a2)
{
cocos2d::CCDictionary *m_valueKeeper; // x19
std::string *v5; // x1
cocos2d::CCString *v6; // x0
bool v7; // w19
void *__p[2]; // [xsp+0h] [xbp-50h] BYREF
char v10; // [xsp+17h] [xbp-39h]
std::string v11; // [xsp+18h] [xbp-38h] BYREF
sub_100009900(&v11, "gv_");
std::string::append(&v11, a2);
m_valueKeeper = a1->m_valueKeeper;
if ( (v11.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v5 = &v11;
else
v5 = (std::string *)v11.__r_.__value_.__r.__words[0];
sub_100009900(__p, (char *)v5);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(m_valueKeeper, __p);
v7 = cocos2d::CCString::boolValue(v6);
if ( v10 < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v11.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v11.__r_.__value_.__l.__data_);
return v7;
}