//
// GameManager::getGameVariable from 0x1003aef14 to 0x1003aefb8 (164 bytes)
//
// 330 xrefs:
// > LevelInfoLayer::init @ 0x100028198
// > LevelInfoLayer::onPlay @ 0x100029db4
// > LevelInfoLayer::onPlay @ 0x100029e10
// > LevelInfoLayer::onPlay @ 0x10002a034
// > LevelInfoLayer::downloadLevel @ 0x10002a708
// > LevelInfoLayer::setupProgressBars @ 0x10002b660
// > UILayer::init @ 0x1000507a8
// > UILayer::refreshDpad @ 0x100051068
// > UILayer::handleAction @ 0x100051a64
// > UILayer::ccTouchBegan @ 0x1000528b8
// > UILayer::ccTouchBegan @ 0x100052944
// > PlayerObject::playDeathEffect @ 0x100064bfc
// > SetupSmartBlockLayer::determineStartValues @ 0x10007839c
// > SetupSmartBlockLayer::determineStartValues @ 0x1000783b0
// > GameLevelManager::ProcessHttpRequest @ 0x100091338
// > GameLevelManager::limitSavedLevels @ 0x1000ae4fc
// > GameLevelManager::limitSavedLevels @ 0x1000ae51c
// > GameLevelManager::limitSavedLevels @ 0x1000ae570
// > sub_1000B3A30 @ 0x1000b3a6c
// > GameLevelManager::getOnlineLevels @ 0x1000b5cd8
// > sub_1000B9B2C @ 0x1000b9fb8
// > sub_1000BFDEC @ 0x1000bff74
// > sub_1000BFDEC @ 0x1000bff94
// > sub_1000C7EEC @ 0x1000c7f1c
// > GJGameLevel::encodeWithCoder @ 0x1000d3814
// > EditLevelLayer::onShare @ 0x100110714
// > OptionsLayer::customSetup @ 0x100113390
// > sub_100113524 @ 0x100113538
// > VideoOptionsLayer::init @ 0x100113c10
// > VideoOptionsLayer::init @ 0x100113cb0
// > VideoOptionsLayer::init @ 0x100113cc8
// > VideoOptionsLayer::init @ 0x100113cdc
// > VideoOptionsLayer::init @ 0x100113f5c
// > VideoOptionsLayer::init @ 0x100113ff0
// > VideoOptionsLayer::init @ 0x1001140a0
// > VideoOptionsLayer::onApply @ 0x100114ca8
// > VideoOptionsLayer::onApply @ 0x100114cc8
// > VideoOptionsLayer::onApply @ 0x100114ce4
// > VideoOptionsLayer::onApply @ 0x100114db4
// > MoreVideoOptionsLayer::init @ 0x1001152fc
// > MoreVideoOptionsLayer::addToggle @ 0x100115754
// > MoreVideoOptionsLayer::onToggle @ 0x10011600c
// > MoreVideoOptionsLayer::onToggle @ 0x100116084
// > MoreVideoOptionsLayer::onToggle @ 0x1001160f8
// > MoreVideoOptionsLayer::onToggle @ 0x100116174
// > MoreVideoOptionsLayer::onToggle @ 0x1001161ec
// > MoreVideoOptionsLayer::onToggle @ 0x1001162c8
// > sub_100116680 @ 0x1001166a0
// > ParentalOptionsLayer::init @ 0x100116b6c
// > ParentalOptionsLayer::addMasterToggle @ 0x100116db0
// > ParentalOptionsLayer::addToggle @ 0x10011735c
// > CustomSongWidget::onDownload @ 0x10011f5cc
// > PlayLayer::init @ 0x10013e390
// > PlayLayer::init @ 0x10013e3b0
// > PlayLayer::init @ 0x10013e768
// > PlayLayer::init @ 0x10013e84c
// > PlayLayer::updateGameSettings @ 0x10013eaf8
// > PlayLayer::updateGameSettings @ 0x10013eb0c
// > PlayLayer::updateGameSettings @ 0x10013eb20
// > PlayLayer::updateGameSettings @ 0x10013eb34
// > PlayLayer::updateGameSettings @ 0x10013eb48
// > PlayLayer::updateGameSettings @ 0x10013eb5c
// > PlayLayer::updateGameSettings @ 0x10013eb90
// > PlayLayer::updateDebugDrawSettings @ 0x10013ec60
// > PlayLayer::updateDebugDrawSettings @ 0x10013ec74
// > PlayLayer::updateDebugDrawSettings @ 0x10013ec88
// > PlayLayer::updateDebugDrawSettings @ 0x10013ec9c
// > PlayLayer::updateDebugDrawSettings @ 0x10013ecb0
// > PlayLayer::updateDebugDrawSettings @ 0x10013ecc4
// > PlayLayer::setupHasCompleted @ 0x10013fda8
// > sub_100140EE8 @ 0x100141018
// > PlayLayer::toggleProgressbar @ 0x100147610
// > PlayLayer::toggleProgressbar @ 0x100147634
// > PlayLayer::toggleMusicInPractice @ 0x100147774
// > PlayLayer::toggleInfoLabel @ 0x1001477e4
// > PlayLayer::toggleHideAttempts @ 0x100147968
// > PlayLayer::toggleHideAttempts @ 0x10014797c
// > PlayLayer::destroyPlayer @ 0x100147b10
// > PlayLayer::destroyPlayer @ 0x100147b38
// > PlayLayer::destroyPlayer @ 0x100148000
// > PlayLayer::destroyPlayer @ 0x100148028
// > PlayLayer::destroyPlayer @ 0x100148058
// > PlayLayer::processCheckpoints @ 0x100148704
// > sub_100148954 @ 0x1001489a4
// > sub_10014A688 @ 0x10014a6e0
// > PlayLayer::writePersistentSave @ 0x10014a9a4
// > PlayLayer::resetLevelFromStart @ 0x10014b064
// > PlayLayer::updateAttempts @ 0x10014c1e0
// > PlayLayer::updateAttempts @ 0x10014c1f4
// > PlayLayer::resumeAndRestart @ 0x10014c5dc
// > PlayLayer::resumeAndRestart @ 0x10014c60c
// > PlayLayer::resume @ 0x10014c6fc
// > PlayLayer::resume @ 0x10014c71c
// > GJTransformControl::init @ 0x100159a58
// > GJTransformControl::init @ 0x100159a6c
// > GJTransformControl::init @ 0x100159a80
// > GJTransformControl::init @ 0x100159a94
// > GJTransformControl::init @ 0x100159ce4
// > GJTransformControl::ccTouchMoved @ 0x10015bb14
// > EditorUI::ccTouchBegan @ 0x1001612d4
// > EditorUI::ccTouchBegan @ 0x1001613e0
// > EditorUI::ccTouchBegan @ 0x100161490
// > EditorUI::ccTouchMoved @ 0x1001618e8
// > EditorUI::ccTouchEnded @ 0x100161c50
// > EditorUI::ccTouchEnded @ 0x100161d3c
// > EditorUI::handleEditorAction @ 0x1001629f8
// > EditorUI::handleEditorAction @ 0x100162bc0
// > EditorUI::handleEditorAction @ 0x100163224
// > EditorUI::handleEditorAction @ 0x10016324c
// > EditorUI::handleEditorAction @ 0x100163338
// > EditorUI::handleEditorAction @ 0x10016346c
// > GameSettingsLayer::addSpecialContent @ 0x100165860
// > GameSettingsLayer::addSpecialContent @ 0x100165874
// > GameSettingsLayer::getValue @ 0x100166810
// > sub_100166CC4 @ 0x100166f5c
// > sub_100166CC4 @ 0x100166f6c
// > sub_100166CC4 @ 0x100166f90
// > GameSettingsLayer::onClose @ 0x100167204
// > GameSettingsLayer::onClose @ 0x100167220
// > AutoSaveSettingsLayer::getValue @ 0x10016820c
// > EditorUI::createMoveMenu @ 0x100185384
// > sub_100186174 @ 0x100186324
// > EditorUI::recreateButtonTabs @ 0x100188134
// > EditorUI::recreateButtonTabs @ 0x100188150
// > sub_100189294 @ 0x10018935c
// > EditorUI::toggleViewOption @ 0x100189528
// > EditorUI::canSelectObject @ 0x1001a5bbc
// > EditorUI::selectObjects @ 0x1001a5d3c
// > EditorUI::findObject @ 0x1001a6858
// > FMODAudioEngine::setupAudioEngine @ 0x1001b4f4c
// > FMODAudioEngine::setupAudioEngine @ 0x1001b4fa8
// > PauseLayer::customSetup @ 0x1001be850
// > PauseLayer::setupProgressBars @ 0x1001bf65c
// > sub_1001BF94C @ 0x1001bf9c8
// > CustomSongLayer::onSearch @ 0x1001c32dc
// > sub_1001C61A0 @ 0x1001c61bc
// > MusicDownloadManager::onDownloadSongCompleted @ 0x1001d53c4
// > MusicDownloadManager::pathForSongFolder @ 0x1001d56c0
// > MusicDownloadManager::pathForSFXFolder @ 0x1001d599c
// > SFXSearchResult::updateObjects @ 0x1001e5620
// > SFXBrowser::init @ 0x1001f16dc
// > ProfilePage::loadPageFromUserInfo @ 0x10022b42c
// > ProfilePage::loadPageFromUserInfo @ 0x10022d0f8
// > sub_10024878C @ 0x1002487a8
// > LoadingLayer::loadAssets @ 0x10026ef44
// > LoadingLayer::loadAssets @ 0x10026efd4
// > GJBaseGameLayer::init @ 0x100274f70
// > GJBaseGameLayer::init @ 0x100274f88
// > GJBaseGameLayer::init @ 0x100274f9c
// > GJBaseGameLayer::init @ 0x100274fb0
// > GJBaseGameLayer::init @ 0x100274fc4
// > GJBaseGameLayer::init @ 0x1002754dc
// > GJBaseGameLayer::createPlayer @ 0x100277edc
// > GJBaseGameLayer::increaseBatchNodeCapacity @ 0x100278f54
// > GJBaseGameLayer::addDeathMarkerLayer @ 0x10028f260
// > GJBaseGameLayer::handleButton @ 0x100296e68
// > GJBaseGameLayer::buttonIsRelevant @ 0x100297104
// > GJBaseGameLayer::loadStartPosObject @ 0x100298b30
// > PlayerObject::init @ 0x1002b441c
// > PlayerObject::init @ 0x1002b4430
// > PlayerObject::init @ 0x1002b4444
// > PlayerObject::init @ 0x1002b5124
// > PlayerObject::init @ 0x1002b5138
// > PlayerObject::init @ 0x1002b514c
// > PlayerObject::tryPlaceCheckpoint @ 0x1002ba3c0
// > PlayerObject::tryPlaceCheckpoint @ 0x1002ba3f0
// > PlayerObject::activateStreak @ 0x1002ba904
// > sub_1002C9F00 @ 0x1002c9f30
// > MenuLayer::init @ 0x100304610
// > MenuLayer::init @ 0x100304a4c
// > sub_1003053C8 @ 0x1003053e4
// > sub_10030BA7C @ 0x10030bdb8
// > ShareLevelLayer::init @ 0x100313718
// > sub_1003157D8 @ 0x100315808
// > FLAlertLayer::init @ 0x10034ac2c
// > FLAlertLayer::init_1 @ 0x10034b5c0
// > sub_100369218 @ 0x100369794
// > sub_100369218 @ 0x10036a448
// > sub_10036D220 @ 0x10036d24c
// > GJOptionsLayer::addGVToggle @ 0x100371d74
// > sub_10038C32C @ 0x10038c364
// > CustomSFXWidget::downloadSFXFinished @ 0x10038d984
// > EndLevelLayer::customSetup @ 0x1003922d4
// > sub_100393A24 @ 0x100393a3c
// > EndLevelLayer::onReplay @ 0x100393b18
// > EndLevelLayer::onRestartCheckpoint @ 0x100393da0
// > EndLevelLayer::showLayer @ 0x100394064
// > GJGarageLayer::setupPage @ 0x1003a1d34
// > GameManager::playMenuMusic @ 0x1003aedc8
// > GameManager::fadeInMenuMusic @ 0x1003af010
// > GameManager::modUIRank @ 0x1003b5c58
// > GameManager::toggleGameVariable @ 0x1003b5c98
// > GameManager::safeModeEnabled @ 0x1003b5fc8
// > GameManager::safeModeEnabled @ 0x1003b5ff4
// > GameManager::offlineModeEnabled @ 0x1003b6000
// > sub_1003B6004 @ 0x1003b6040
// > GameManager::accountPostsRestricted @ 0x1003b6080
// > sub_1003B6084 @ 0x1003b60c0
// > sub_1003B60C4 @ 0x1003b6100
// > sub_1003B6104 @ 0x1003b6140
// > GameManager::onlyCuratedLevels @ 0x1003b6180
// > sub_1003B6184 @ 0x1003b61a8
// > sub_1003B6184 @ 0x1003b61bc
// > sub_1003B6184 @ 0x1003b61d0
// > sub_1003B6184 @ 0x1003b61fc
// > sub_1003B7690 @ 0x1003b78b0
// > GameManager::loadVideoSettings @ 0x1003b8668
// > GameManager::loadVideoSettings @ 0x1003b867c
// > GameManager::loadVideoSettings @ 0x1003b8690
// > GameManager::dataLoaded @ 0x1003b8ea0
// > GameManager::dataLoaded @ 0x1003b8eb4
// > GameManager::dataLoaded @ 0x1003b8ec8
// > GameManager::updateCustomFPS @ 0x1003bba50
// > InfoLayer::init @ 0x1003edf48
// > InfoLayer::init @ 0x1003ef410
// > InfoLayer::init @ 0x1003ef4fc
// > InfoLayer::init @ 0x1003ef554
// > sub_1003EFD70 @ 0x1003efda8
// > InfoLayer::canToggleModRoom @ 0x1003f01b0
// > sub_1003F04AC @ 0x1003f04cc
// > InfoLayer::loadPage @ 0x1003f05f4
// > InfoLayer::setupCommentsBrowser @ 0x1003f09c8
// > InfoLayer::setupCommentsBrowser @ 0x1003f0a54
// > InfoLayer::onLevelInfo @ 0x1003f0c90
// > InfoLayer::updateUserScoreFinished @ 0x1003f1bc0
// > sub_1003F1D70 @ 0x1003f1e14
// > LevelEditorLayer::init @ 0x1003f6740
// > LevelEditorLayer::init @ 0x1003f6754
// > LevelEditorLayer::init @ 0x1003f6768
// > LevelEditorLayer::init @ 0x1003f6788
// > LevelEditorLayer::init @ 0x1003f6e74
// > LevelEditorLayer::init @ 0x1003f7314
// > LevelEditorLayer::updateOptions @ 0x1003f749c
// > LevelEditorLayer::updateOptions @ 0x1003f74c4
// > LevelEditorLayer::updateOptions @ 0x1003f74d8
// > LevelEditorLayer::updateOptions @ 0x1003f74ec
// > LevelEditorLayer::updateOptions @ 0x1003f7500
// > LevelEditorLayer::updateOptions @ 0x1003f7514
// > LevelEditorLayer::updateOptions @ 0x1003f7528
// > LevelEditorLayer::updateOptions @ 0x1003f753c
// > LevelEditorLayer::updateOptions @ 0x1003f7550
// > LevelEditorLayer::updateOptions @ 0x1003f7564
// > LevelEditorLayer::updateOptions @ 0x1003f7578
// > LevelEditorLayer::updateOptions @ 0x1003f758c
// > LevelEditorLayer::updateOptions @ 0x1003f75a0
// > LevelEditorLayer::updateOptions @ 0x1003f75b4
// > LevelEditorLayer::updateOptions @ 0x1003f75c8
// > LevelEditorLayer::updateOptions @ 0x1003f75dc
// > LevelEditorLayer::updateOptions @ 0x1003f75f4
// > LevelEditorLayer::updateOptions @ 0x1003f7608
// > LevelEditorLayer::updateOptions @ 0x1003f7630
// > LevelEditorLayer::updateOptions @ 0x1003f7668
// > LevelEditorLayer::updateEditorMode @ 0x1003f8bd4
// > sub_1003FE824 @ 0x1003fe8ac
// > LevelEditorLayer::checkAutoSave @ 0x1003ffc60
// > LevelEditorLayer::checkAutoSave @ 0x1003ffcc0
// > LevelEditorLayer::updateVisibility @ 0x1003ffec4
// > LevelEditorLayer::updateVisibility @ 0x1003ffed8
// > sub_100401FCC @ 0x100401fec
// > sub_100401FCC @ 0x100402010
// > LevelEditorLayer::onPlaytest @ 0x1004049e0
// > LevelEditorLayer::onPlaytest @ 0x100404b70
// > sub_100405D0C @ 0x100405d58
// > sub_10040614C @ 0x10040616c
// > LevelEditorLayer::updateDebugDraw @ 0x100409d40
// > LevelEditorLayer::updateDebugDraw @ 0x100409e10
// > LevelEditorLayer::updateDebugDraw @ 0x100409e24
// > LevelEditorLayer::updateDebugDraw @ 0x10040a1ac
// > LevelEditorLayer::updateDebugDraw @ 0x10040b008
// > LevelEditorLayer::updateDebugDraw @ 0x10040b22c
// > DrawGridLayer::draw @ 0x10040c74c
// > DrawGridLayer::draw @ 0x10040c760
// > EffectGameObject::playTriggerEffect @ 0x10042b404
// > EffectGameObject::playTriggerEffect @ 0x10042b424
// > CheckpointGameObject::resetObject @ 0x1004370ec
// > GJDropDownLayer::showLayer @ 0x100459778
// > GJDropDownLayer::hideLayer @ 0x100459890
// > EditorUI::init @ 0x10046e540
// > EditorUI::init @ 0x10046e590
// > EditorUI::init @ 0x10046f7a8
// > EditorUI::init @ 0x10046f7bc
// > EditorUI::init @ 0x100470904
// > EditorUI::init @ 0x10047091c
// > EditorUI::toggleSnap @ 0x100470e4c
// > EditorUI::toggleEnableRotate @ 0x100470ed0
// > EditorUI::onPlaytest @ 0x1004714d0
// > EditorUI::onStickyToggle @ 0x100471688
// > EditorUI::onLockLayer @ 0x100472d40
// > EditorUI::toggleObjectInfoLabel @ 0x10047347c
// > EditorUI::updateStickyControls @ 0x10047355c
// > EditorUI::updateStickyControls @ 0x100473570
// > EditorUI::showUI @ 0x10047373c
// > EditorUI::toggleSpecialEditButtons @ 0x100473ecc
// > EditorUI::updateObjectInfoLabel @ 0x10047564c
// > EditorUI::updateZoom @ 0x100477fe8
// > LevelBrowserLayer::loadPage @ 0x100498728
// > ClearPlatformerSavesOptionsPopup::init @ 0x1004aab94
// > sub_1004ACAD0 @ 0x1004acdf4
// > sub_1004AFBBC @ 0x1004b032c
// > sub_1004AFBBC @ 0x1004b08b8
// > DeathMarkerSettingsPopup::init @ 0x1004b7468
// > sub_1004B9328 @ 0x1004b94f4
// > sub_1004C97AC @ 0x1004c9880
// > sub_1004D63C8 @ 0x1004d63f8
// > FindObjectPopup::runFind @ 0x1004ddb58
// > sub_1004F16D4 @ 0x1004f1710
// > sub_1004F7C70 @ 0x1004f7c8c
// > sub_10051DBBC @ 0x10051dbe0
// > sub_10051DC48 @ 0x10051dcac
// > sub_10051DC48 @ 0x10051dcd0
// > sub_10051DC48 @ 0x10051dce4
// > sub_10051DC48 @ 0x10051ddd8
// > PlayLayer::tryShowDeathMarkers @ 0x10051df68
// > PlayLayer::tryShowDeathMarkers @ 0x10051df88
// > PlayLayer::tryShowDeathMarkers @ 0x10051df9c
// > PlayLayer::tryShowDeathMarkers @ 0x10051e360
// > PlayLayer::tryShowDeathMarkers @ 0x10051e438
// > PlayLayer::tryShowDeathMarkers @ 0x10051e498
// > PlayLayer::tryShowDeathMarkers @ 0x10051e52c
// > PlayLayer::tryShowDeathMarkers @ 0x10051e540
// > sub_10051E6A8 @ 0x10051e6c4
// > sub_100527F18 @ 0x1005288b0
// > TimeSpeedControl::init @ 0x10052b998
// > TimeSpeedControl::timeSliderChanged @ 0x10052bae0
// > TimeSpeedControl::onAudioTimeSpeedToggle @ 0x10052bba8
// > sub_10052C944 @ 0x10052c9b8
// > sub_10052CE34 @ 0x10052cf88
// > TouchControlEditLayer::getValue @ 0x10052ddb4
// > sub_10053BF58 @ 0x10053c4c8
// > sub_10053C680 @ 0x10053c6a4
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:03:53 +0000
//
bool __fastcall GameManager::getGameVariable(__int64 a1, const std::string::value_type *a2)
{
__int64 v4; // x19
std::string *v5; // x1
__int64 v6; // x0
_BOOL8 v7; // x19
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);
v4 = *(_QWORD *)(a1 + 424);
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::CCDictionary::valueForKey(v4, __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;
}