//
// GameManager::getGameVariable from 0x416614 to 0x4166b6 (162 bytes)
//
// 357 xrefs:
// > FLAlertLayer::init @ 0x3cb8ea
// > FLAlertLayer::init @ 0x3cb9fa
// > FMODAudioEngine::setupAudioEngine @ 0x3e7d2e
// > FMODAudioEngine::setupAudioEngine @ 0x3e7d7a
// > MenuLayer::onGameCenter @ 0x3f9bac
// > MenuLayer::init @ 0x3fa97a
// > MenuLayer::init @ 0x3facac
// > LoadingLayer::loadAssets @ 0x3fbf4c
// > LoadingLayer::loadAssets @ 0x3fbf98
// > UILayer::ccTouchBegan @ 0x3fd204
// > UILayer::ccTouchBegan @ 0x3fd246
// > UILayer::refreshDpad @ 0x3fd83c
// > UILayer::init @ 0x3fda08
// > UILayer::handleAction @ 0x3fea38
// > PlayLayer::showTwoPlayerGuide @ 0x3ff046
// > PlayLayer::toggleMusicInPractice @ 0x3ff4a6
// > PlayLayer::toggleHideAttempts @ 0x3ff726
// > PlayLayer::toggleHideAttempts @ 0x3ff736
// > PlayLayer::updateGameSettings @ 0x3ff866
// > PlayLayer::updateGameSettings @ 0x3ff87c
// > PlayLayer::updateGameSettings @ 0x3ff88e
// > PlayLayer::updateGameSettings @ 0x3ff8a0
// > PlayLayer::updateGameSettings @ 0x3ff8b2
// > PlayLayer::updateGameSettings @ 0x3ff8c4
// > PlayLayer::updateGameSettings @ 0x3ff8ea
// > PlayLayer::updateDebugDrawSettings @ 0x3ff980
// > PlayLayer::updateDebugDrawSettings @ 0x3ff992
// > PlayLayer::updateDebugDrawSettings @ 0x3ff9a4
// > PlayLayer::updateDebugDrawSettings @ 0x3ff9b6
// > PlayLayer::updateDebugDrawSettings @ 0x3ff9c8
// > PlayLayer::updateDebugDrawSettings @ 0x3ff9da
// > PlayLayer::isJumpHeldForPlayer @ 0x401e48
// > PlayLayer::savePersistentCheckpoint @ 0x40213e
// > PlayLayer::resetLevelFromStart @ 0x4021ce
// > PlayLayer::updateAttempts @ 0x4023f2
// > PlayLayer::updateAttempts @ 0x402402
// > PlayLayer::resumeAndRestart @ 0x402724
// > PlayLayer::resumeAndRestart @ 0x40273a
// > PlayLayer::destroyPlayer @ 0x405918
// > PlayLayer::destroyPlayer @ 0x40593e
// > PlayLayer::destroyPlayer @ 0x405d42
// > PlayLayer::destroyPlayer @ 0x405e7c
// > PlayLayer::destroyPlayer @ 0x405eaa
// > PlayLayer::resume @ 0x4063f6
// > PlayLayer::resume @ 0x40640c
// > PlayLayer::toggleProgressbar @ 0x40665c
// > PlayLayer::toggleProgressbar @ 0x406670
// > PlayLayer::writePersistentSave @ 0x4077a2
// > PlayLayer::setupHasCompleted @ 0x40a6e0
// > PlayLayer::init @ 0x40adee
// > PlayLayer::init @ 0x40ae04
// > PlayLayer::init @ 0x40b178
// > PlayLayer::init @ 0x40b228
// > PlayLayer::toggleInfoLabel @ 0x40cc5c
// > PlayLayer::processCheckpoints @ 0x411f64
// > GameManager::modUIRank @ 0x4166c8
// > GameManager::safeModeEnabled @ 0x4166ec
// > GameManager::safeModeEnabled @ 0x4166fc
// > GameManager::offlineModeEnabled @ 0x416710
// > GameManager::commentsRestricted @ 0x41672c
// > GameManager::accountPostsRestricted @ 0x41674c
// > GameManager::messagesRestricted @ 0x41676c
// > GameManager::friendRequestsRestricted @ 0x41678c
// > GameManager::privacyPushWanted @ 0x4167ac
// > GameManager::onlyCuratedLevels @ 0x4167cc
// > GameManager::parentalOptionsActive @ 0x4167e8
// > GameManager::parentalOptionsActive @ 0x4167f4
// > GameManager::parentalOptionsActive @ 0x416800
// > GameManager::parentalOptionsActive @ 0x416810
// > GameManager::playMenuMusic @ 0x416840
// > GameManager::fadeInMenuMusic @ 0x4168f2
// > GameManager::loadVideoSettings @ 0x416b1a
// > GameManager::loadVideoSettings @ 0x416b2a
// > GameManager::loadVideoSettings @ 0x416b3a
// > GameManager::updateCustomFPS @ 0x416b60
// > GameManager::toggleGameVariable @ 0x416e36
// > GameManager::dataLoaded @ 0x41c554
// > GameManager::dataLoaded @ 0x41c564
// > GameManager::dataLoaded @ 0x41c576
// > GameManager::saveDPadLayout @ 0x41e55e
// > PlayerObject::streakDisabledForCurrentMode @ 0x438e8a
// > PlayerObject::tryPlaceCheckpoint @ 0x4396a6
// > PlayerObject::tryPlaceCheckpoint @ 0x4396d2
// > PlayerObject::init @ 0x447240
// > PlayerObject::init @ 0x447250
// > PlayerObject::init @ 0x447260
// > PlayerObject::init @ 0x447e08
// > PlayerObject::init @ 0x447e18
// > PlayerObject::init @ 0x447e28
// > LevelEditorLayer::updateOptions @ 0x45fb24
// > LevelEditorLayer::updateOptions @ 0x45fb4e
// > LevelEditorLayer::updateOptions @ 0x45fb60
// > LevelEditorLayer::updateOptions @ 0x45fb72
// > LevelEditorLayer::updateOptions @ 0x45fb84
// > LevelEditorLayer::updateOptions @ 0x45fb96
// > LevelEditorLayer::updateOptions @ 0x45fba8
// > LevelEditorLayer::updateOptions @ 0x45fbba
// > LevelEditorLayer::updateOptions @ 0x45fbcc
// > LevelEditorLayer::updateOptions @ 0x45fbde
// > LevelEditorLayer::updateOptions @ 0x45fbf0
// > LevelEditorLayer::updateOptions @ 0x45fc02
// > LevelEditorLayer::updateOptions @ 0x45fc14
// > LevelEditorLayer::updateOptions @ 0x45fc26
// > LevelEditorLayer::updateOptions @ 0x45fc38
// > LevelEditorLayer::updateOptions @ 0x45fc4a
// > LevelEditorLayer::updateOptions @ 0x45fc64
// > LevelEditorLayer::updateOptions @ 0x45fc76
// > LevelEditorLayer::updateOptions @ 0x45fc98
// > LevelEditorLayer::updateOptions @ 0x45fcc4
// > LevelEditorLayer::pasteAttributeState @ 0x4625a0
// > LevelEditorLayer::updatePreviewAnim @ 0x4625c8
// > LevelEditorLayer::updatePreviewParticles @ 0x462724
// > LevelEditorLayer::updatePreviewParticles @ 0x46273e
// > LevelEditorLayer::updateEditorMode @ 0x4627a4
// > LevelEditorLayer::updateVisibility @ 0x462d10
// > LevelEditorLayer::updateVisibility @ 0x462d1e
// > DrawGridLayer::draw @ 0x4646b2
// > DrawGridLayer::draw @ 0x4646c0
// > LevelEditorLayer::onPlaytest @ 0x468428
// > LevelEditorLayer::onPlaytest @ 0x46854c
// > LevelEditorLayer::updateCustomSFXMappings @ 0x46fe56
// > LevelEditorLayer::checkAutoSave @ 0x472fc8
// > LevelEditorLayer::checkAutoSave @ 0x473018
// > LevelEditorLayer::init @ 0x475b78
// > LevelEditorLayer::init @ 0x475b8c
// > LevelEditorLayer::init @ 0x475ba0
// > LevelEditorLayer::init @ 0x475bbc
// > LevelEditorLayer::init @ 0x476200
// > LevelEditorLayer::init @ 0x476628
// > LevelEditorLayer::updateDebugDraw @ 0x47f8f6
// > LevelEditorLayer::updateDebugDraw @ 0x47f9aa
// > LevelEditorLayer::updateDebugDraw @ 0x47f9b8
// > LevelEditorLayer::updateDebugDraw @ 0x47f9da
// > LevelEditorLayer::updateDebugDraw @ 0x480200
// > LevelEditorLayer::updateDebugDraw @ 0x480294
// > EditorUI::toggleSnap @ 0x480fb2
// > EditorUI::updateStickyControls @ 0x4810d4
// > EditorUI::updateStickyControls @ 0x4810e4
// > EditorUI::onLockLayer @ 0x484464
// > EditorUI::updateZoom @ 0x484c6a
// > EditorUI::toggleSpecialEditButtons @ 0x485f78
// > EditorUI::onStickyToggle @ 0x48658c
// > EditorUI::toggleEnableRotate @ 0x4865b2
// > EditorUI::updateObjectInfoLabel @ 0x48904c
// > EditorUI::toggleObjectInfoLabel @ 0x489a5c
// > EditorUI::showUI @ 0x489a98
// > EditorUI::onPlaytest @ 0x489ed4
// > EditorUI::init @ 0x48a270
// > EditorUI::init @ 0x48a2c2
// > EditorUI::init @ 0x48b0f4
// > EditorUI::init @ 0x48b104
// > EditorUI::init @ 0x48bf12
// > EditorUI::init @ 0x48bf26
// > PauseLayer::tryQuit @ 0x48fbfe
// > PauseLayer::setupProgressBars @ 0x490ae8
// > PauseLayer::customSetup @ 0x491056
// > LevelInfoLayer::downloadLevel @ 0x499fe0
// > LevelInfoLayer::onPlay @ 0x49b558
// > LevelInfoLayer::onPlay @ 0x49b590
// > LevelInfoLayer::onPlay @ 0x49b6b8
// > LevelInfoLayer::setupProgressBars @ 0x49d24c
// > LevelInfoLayer::init @ 0x49ea60
// > EditLevelLayer::onShare @ 0x49ff4c
// > ShareLevelSettingsLayer::onUnlisted @ 0x4a34fe
// > ShareLevelLayer::init @ 0x4a4578
// > LevelBrowserLayer::loadPage @ 0x4a660e
// > GameLevelManager::limitSavedLevels @ 0x4adf10
// > GameLevelManager::limitSavedLevels @ 0x4adf28
// > GameLevelManager::limitSavedLevels @ 0x4adf60
// > GJGameLevel::syncUneditedControls @ 0x4b3618
// > GameLevelManager::ProcessHttpRequest @ 0x4b505c
// > GameLevelManager::getLevelComments @ 0x4b7a24
// > GameLevelManager::getLevelComments @ 0x4b7a3c
// > GameLevelManager::syncFollowListIfNeeded @ 0x4b962a
// > GameLevelManager::getOnlineLevels @ 0x4c0ec0
// > GJGameLevel::encodeWithCoder @ 0x4d7f44
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x4d9dc2
// > CustomSongWidget::onDownload @ 0x4e5b76
// > EffectGameObject::playTriggerEffect @ 0x4e8102
// > EffectGameObject::playTriggerEffect @ 0x4e8120
// > CheckpointGameObject::resetObject @ 0x4e95e6
// > EditorPauseLayer::toggleEditorGround @ 0x508ffc
// > EditorPauseLayer::toggleEditorBackground @ 0x50902c
// > EditorPauseLayer::toggleGridOnTop @ 0x509074
// > GJGarageLayer::setupPage @ 0x50f504
// > GJDropDownLayer::showLayer @ 0x52bbc8
// > GJDropDownLayer::hideLayer @ 0x52bc8e
// > MoreVideoOptionsLayer::updateFPSButtons @ 0x52d59e
// > OptionsLayer::onParental @ 0x52d8aa
// > MoreOptionsLayer::onParental @ 0x52d8de
// > MoreOptionsLayer::addToggle @ 0x52e028
// > VideoOptionsLayer::onApply @ 0x52e404
// > VideoOptionsLayer::onApply @ 0x52e428
// > VideoOptionsLayer::onApply @ 0x52e43c
// > VideoOptionsLayer::onApply @ 0x52e4dc
// > MoreVideoOptionsLayer::addToggle @ 0x52e920
// > MoreVideoOptionsLayer::init @ 0x52ed9c
// > ParentalOptionsLayer::addToggle @ 0x52f55c
// > GraphicsReloadLayer::performReload @ 0x52fc6a
// > GraphicsReloadLayer::performReload @ 0x52fc82
// > GraphicsReloadLayer::performReload @ 0x52fc96
// > GraphicsReloadLayer::performReload @ 0x52fcf6
// > OptionsLayer::customSetup @ 0x530ad4
// > VideoOptionsLayer::init @ 0x530ce2
// > VideoOptionsLayer::init @ 0x530d66
// > VideoOptionsLayer::init @ 0x530d7a
// > VideoOptionsLayer::init @ 0x530d8a
// > VideoOptionsLayer::init @ 0x530f80
// > VideoOptionsLayer::init @ 0x531006
// > VideoOptionsLayer::init @ 0x531110
// > MoreOptionsLayer::onToggle @ 0x531888
// > MoreOptionsLayer::onToggle @ 0x531896
// > MoreOptionsLayer::onToggle @ 0x5318f4
// > MoreOptionsLayer::onToggle @ 0x53194c
// > MoreOptionsLayer::onToggle @ 0x5319ac
// > MoreVideoOptionsLayer::onToggle @ 0x531b26
// > MoreVideoOptionsLayer::onToggle @ 0x531b84
// > MoreVideoOptionsLayer::onToggle @ 0x531bdc
// > MoreVideoOptionsLayer::onToggle @ 0x531c34
// > MoreVideoOptionsLayer::onToggle @ 0x531c94
// > MoreVideoOptionsLayer::onToggle @ 0x531d1a
// > ParentalOptionsLayer::addMasterToggle @ 0x531dea
// > ParentalOptionsLayer::init @ 0x5324d0
// > MoreOptionsLayer::init @ 0x532ba6
// > EndLevelLayer::showLayer @ 0x534b4c
// > EndLevelLayer::getEndText @ 0x534c6e
// > EndLevelLayer::onReplay @ 0x535238
// > EndLevelLayer::onRestartCheckpoint @ 0x53542c
// > EndLevelLayer::customSetup @ 0x535e46
// > InfoLayer::updateCommentModeButtons @ 0x53ce54
// > InfoLayer::canToggleModRoom @ 0x53ced8
// > InfoLayer::updateUserScoreFinished @ 0x53cf58
// > InfoLayer::onComment @ 0x53d4f0
// > InfoLayer::setupCommentsBrowser @ 0x53dffc
// > InfoLayer::setupCommentsBrowser @ 0x53e062
// > InfoLayer::onLevelInfo @ 0x53e482
// > InfoLayer::loadPage @ 0x53e86e
// > InfoLayer::init @ 0x53ed6e
// > InfoLayer::init @ 0x53fd94
// > InfoLayer::init @ 0x540020
// > InfoLayer::init @ 0x540060
// > InfoLayer::reloadWindow @ 0x5405d2
// > RetryLevelLayer::onReplay @ 0x546f4c
// > SFXSearchResult::updateObjects @ 0x571674
// > MusicDownloadManager::pathForSFXFolder @ 0x571a06
// > MusicDownloadManager::pathForSongFolder @ 0x572506
// > MusicDownloadManager::onDownloadSongCompleted @ 0x5728da
// > SongSelectNode::onOpenCustomSong @ 0x57cd68
// > CustomSongLayer::onSearch @ 0x57ce5e
// > GJBaseGameLayer::increaseBatchNodeCapacity @ 0x58c860
// > GJBaseGameLayer::addDeathMarkerLayer @ 0x592e4a
// > GJBaseGameLayer::buttonIsRelevant @ 0x595322
// > GJBaseGameLayer::handleButton @ 0x5a4c60
// > GJBaseGameLayer::createPlayer @ 0x5a547c
// > GJBaseGameLayer::init @ 0x5b4fe0
// > GJBaseGameLayer::init @ 0x5b4ff8
// > GJBaseGameLayer::init @ 0x5b500c
// > GJBaseGameLayer::init @ 0x5b501e
// > GJBaseGameLayer::init @ 0x5b5032
// > GJBaseGameLayer::init @ 0x5b54c2
// > GJBaseGameLayer::loadStartPosObject @ 0x5bcbbc
// > GameOptionsLayer::didToggle @ 0x5d3a02
// > UIOptionsLayer::getValue @ 0x5d3cf0
// > GJOptionsLayer::addGVToggle @ 0x5e18ba
// > GameOptionsLayer::setupOptions @ 0x5e20de
// > GameOptionsLayer::setupOptions @ 0x5e20fa
// > GameOptionsLayer::setupOptions @ 0x5e212c
// > GameOptionsLayer::setupOptions @ 0x5e2148
// > GameOptionsLayer::setupOptions @ 0x5e2164
// > GameOptionsLayer::setupOptions @ 0x5e2180
// > GameOptionsLayer::setupOptions @ 0x5e219c
// > GameOptionsLayer::setupOptions @ 0x5e21ba
// > GameOptionsLayer::setupOptions @ 0x5e21da
// > GameOptionsLayer::setupOptions @ 0x5e2374
// > ProfilePage::loadPageFromUserInfo @ 0x5f8db4
// > ProfilePage::loadPageFromUserInfo @ 0x5fa248
// > CreateParticlePopup::onTogglePerfLog @ 0x663d7c
// > CreateParticlePopup::init @ 0x66774a
// > CreateParticlePopup::init @ 0x668292
// > SetupSmartBlockLayer::determineStartValues @ 0x67283a
// > SetupSmartBlockLayer::determineStartValues @ 0x67284a
// > ShaderLayer::setupShader @ 0x6850e6
// > PlayerObject::playDeathEffect @ 0x6a3318
// > CustomSFXWidget::onDownload @ 0x6a62d4
// > CustomSFXWidget::downloadSFXFinished @ 0x6a655e
// > sub_6C6B24 @ 0x6c6b62
// > AutoSaveSettingsLayer::getValue @ 0x6e69c8
// > GJTransformControl::ccTouchMoved @ 0x6ed44e
// > GJTransformControl::init @ 0x6efa50
// > GJTransformControl::init @ 0x6efa60
// > GJTransformControl::init @ 0x6efa70
// > GJTransformControl::init @ 0x6efa80
// > GJTransformControl::init @ 0x6efc10
// > EditorUI::ccTouchBegan @ 0x6f0210
// > EditorUI::ccTouchBegan @ 0x6f03ac
// > EditorUI::ccTouchBegan @ 0x6f03fe
// > EditorUI::ccTouchMoved @ 0x6f0780
// > EditorUI::ccTouchEnded @ 0x6f0a90
// > EditorUI::ccTouchEnded @ 0x6f0b60
// > EditorUI::playerTouchBegan @ 0x6f1156
// > EditorUI::handleEditorAction @ 0x6f1db2
// > EditorUI::handleEditorAction @ 0x6f1e4a
// > EditorUI::handleEditorAction @ 0x6f1e84
// > EditorUI::handleEditorAction @ 0x6f1ea8
// > EditorUI::handleEditorAction @ 0x6f2214
// > EditorUI::handleEditorAction @ 0x6f23b0
// > EditorUI::canSelectObject @ 0x6f42e8
// > EditorUI::selectObjects @ 0x6f45ea
// > EditorUI::findObject @ 0x6f4c02
// > EditorUI::getViewButtonState @ 0x6f6b9c
// > EditorUI::createDpadMoveMenu @ 0x6f6f2a
// > EditorUI::createMoveMenu @ 0x6f745a
// > EditorUI::recreateButtonTabs @ 0x6f7f6c
// > EditorUI::recreateButtonTabs @ 0x6f7f86
// > EditorUI::toggleViewOption @ 0x70c3e8
// > GameSettingsLayer::onClose @ 0x7104de
// > GameSettingsLayer::onClose @ 0x7104f2
// > GameSettingsLayer::didChangeGV @ 0x7107a6
// > GameSettingsLayer::didChangeGV @ 0x7107b4
// > GameSettingsLayer::didChangeGV @ 0x7107da
// > GameSettingsLayer::addSpecialContent @ 0x71154c
// > GameSettingsLayer::addSpecialContent @ 0x71155c
// > GameSettingsLayer::getValue @ 0x711c1e
// > sub_72C870 @ 0x72c87c
// > PlayLayer::dtRebuildLiveMarkers @ 0x72ce18
// > PlayLayer::dtRebuildLiveMarkers @ 0x72ce28
// > PlayLayer::dtRebuildLiveMarkers @ 0x72ce36
// > PlayLayer::dtRebuildLiveMarkers @ 0x72ced2
// > PlayLayer::dtLiveMarkersChanged @ 0x72cf48
// > PlayLayer::tryShowDeathMarkers @ 0x72cfee
// > PlayLayer::tryShowDeathMarkers @ 0x72cffc
// > PlayLayer::tryShowDeathMarkers @ 0x72d00a
// > PlayLayer::tryShowDeathMarkers @ 0x72d454
// > PlayLayer::tryShowDeathMarkers @ 0x72d51a
// > PlayLayer::tryShowDeathMarkers @ 0x72d58a
// > PlayLayer::tryShowDeathMarkers @ 0x72d5d6
// > PlayLayer::tryShowDeathMarkers @ 0x72d5e4
// > SFXFolderPickerPopup::init @ 0x730aaa
// > NotificationFilterPopup::onSocialAlerts @ 0x7431fa
// > NotificationFilterPopup::init @ 0x744508
// > ThreadOpenHelper::showRulesOnce @ 0x74b760
// > ClearPlatformerSavesOptionsPopup::init @ 0x761c8a
// > DeathHistogram::setData @ 0x767bfc
// > DeathMarkerLayer::init @ 0x76ce74
// > DeathMarkerLayer::init @ 0x76d29c
// > DeathMarkerSettingsPopup::init @ 0x76ea60
// > DeathTrackerOptionsPopup::init @ 0x7701ac
// > FindObjectPopup::runFind @ 0x77b496
// > EditorSFXManager::serializeAll @ 0x77ee50
// > EditorSoundConfigUploadPopup::onToggleUnlisted @ 0x788de6
// > LevelControlConfig::seedBase @ 0x79866c
// > TimeSpeedControl::timeSliderChanged @ 0x7a2236
// > TimeSpeedControl::onAudioTimeSpeedToggle @ 0x7a22d8
// > TimeSpeedControl::init @ 0x7a251c
// > TouchControlEditLayer::getValue @ 0x7a2a32
// > TouchControlEditLayer::updateJumpGuide @ 0x7a2f62
// > TouchControlEditLayer::onReset @ 0x7a476c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:47:41 +0000
//
int __fastcall GameManager::getGameVariable(GameManager *this, char *a2)
{
int v4; // r8
size_t v5; // r0
cocos2d::CCString *v6; // r0
int v7; // r7
int v9[2]; // [sp+4h] [bp-1Ch] BYREF
char *v10; // [sp+Ch] [bp-14h]
int v11[3]; // [sp+10h] [bp-10h] BYREF
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
std::string::__init(v9, "gv_", 3u);
std::string::append(v9, a2);
v4 = *((_DWORD *)this + 80);
if ( (v9[0] & 1) == 0 )
a2 = (char *)v9 + 1;
v11[0] = 0;
if ( (v9[0] & 1) != 0 )
a2 = v10;
v11[1] = 0;
v11[2] = 0;
v5 = strlen(a2);
std::string::__init(v11, a2, v5);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v4, v11);
v7 = cocos2d::CCString::boolValue(v6);
std::string::~string((int)v11);
std::string::~string((int)v9);
return v7;
}