//
// GameManager::getGameVariable from 0x1003771a0 to 0x10037729d (253 bytes)
//
// 291 xrefs:
// > -[AppController applicationDidFinishLaunching:] @ 0x1000077b8
// > EditorUI::init @ 0x10000914c
// > EditorUI::init @ 0x10000a434
// > EditorUI::init @ 0x10000a44e
// > EditorUI::init @ 0x10000b4a2
// > EditorUI::init @ 0x10000b4be
// > EditorUI::init @ 0x10000b59e
// > EditorUI::init @ 0x10000b615
// > EditorUI::toggleSnap @ 0x10000bf00
// > EditorUI::toggleEnableRotate @ 0x10000bf7f
// > EditorUI::onPlaytest @ 0x10000c654
// > EditorUI::onStickyToggle @ 0x10000c99c
// > EditorUI::onLockLayer @ 0x10002c648
// > EditorUI::toggleObjectInfoLabel @ 0x10002cfa9
// > EditorUI::updateStickyControls @ 0x10002d008
// > EditorUI::updateStickyControls @ 0x10002d022
// > EditorUI::toggleSpecialEditButtons @ 0x10002d8c7
// > EditorUI::onDelete @ 0x10002dd0a
// > EditorUI::updateObjectInfoLabel @ 0x10002f436
// > EditorUI::canSelectObject @ 0x10003c0a9
// > EditorUI::selectObjects @ 0x10003c198
// > EditorUI::showUI @ 0x10003d760
// > EditorUI::playerTouchBegan @ 0x10004edd4
// > EditorUI::ccTouchBegan @ 0x10004f3a7
// > EditorUI::ccTouchMoved @ 0x10004f7c7
// > EditorUI::ccTouchEnded @ 0x10004fb22
// > EditorUI::ccTouchEnded @ 0x10004fc39
// > EditorUI::keyDown @ 0x100050937
// > EditorUI::keyDown @ 0x100050bb2
// > EditorUI::keyDown @ 0x100050be2
// > EditorUI::keyDown @ 0x100050c39
// > EditorUI::keyDown @ 0x100050c79
// > EditorUI::keyDown @ 0x100050cbf
// > GJTransformControl::init @ 0x100053384
// > PlayLayer::init @ 0x1000ac20f
// > PlayLayer::init @ 0x1000ac233
// > PlayLayer::init @ 0x1000ac29c
// > PlayLayer::init @ 0x1000ac2b7
// > PlayLayer::init @ 0x1000ac2d2
// > PlayLayer::init @ 0x1000ac2ed
// > PlayLayer::init @ 0x1000ac7c5
// > PlayLayer::init @ 0x1000ac8c2
// > PlayLayer::updateDebugDrawSettings @ 0x1000acd39
// > PlayLayer::updateDebugDrawSettings @ 0x1000acd53
// > PlayLayer::updateDebugDrawSettings @ 0x1000acd6d
// > PlayLayer::setupHasCompleted @ 0x1000ae649
// > PlayLayer::showTwoPlayerGuide @ 0x1000b17e5
// > PlayLayer::toggleProgressbar @ 0x1000b99b1
// > PlayLayer::toggleProgressbar @ 0x1000b99dd
// > PlayLayer::toggleMusicInPractice @ 0x1000b9b35
// > PlayLayer::toggleInfoLabel @ 0x1000b9bb8
// > PlayLayer::toggleHideAttempts @ 0x1000b9d91
// > PlayLayer::toggleHideAttempts @ 0x1000b9da9
// > PlayLayer::destroyPlayer @ 0x1000b9f9d
// > PlayLayer::destroyPlayer @ 0x1000ba4aa
// > PlayLayer::destroyPlayer @ 0x1000ba4dd
// > PlayLayer::processCheckpoints @ 0x1000bac39
// > PlayLayer::fullReset @ 0x1000be043
// > PlayLayer::togglePracticeMode @ 0x1000be217
// > PlayLayer::resetLevelFromStart @ 0x1000be2df
// > PlayLayer::updateAttempts @ 0x1000bf09e
// > PlayLayer::updateAttempts @ 0x1000bf0b6
// > PlayLayer::resumeAndRestart @ 0x1000bf4da
// > PlayLayer::resumeAndRestart @ 0x1000bf509
// > PlayLayer::resumeAndRestart @ 0x1000bf53a
// > PlayLayer::resume @ 0x1000bf64f
// > PlayLayer::resume @ 0x1000bf673
// > LevelEditorLayer::init @ 0x1000daf3b
// > LevelEditorLayer::init @ 0x1000daf56
// > LevelEditorLayer::init @ 0x1000daf71
// > LevelEditorLayer::init @ 0x1000daf98
// > LevelEditorLayer::init @ 0x1000dbb6e
// > LevelEditorLayer::init @ 0x1000dc16e
// > LevelEditorLayer::updateOptions @ 0x1000dc329
// > LevelEditorLayer::updateOptions @ 0x1000dc362
// > LevelEditorLayer::updateOptions @ 0x1000dc37c
// > LevelEditorLayer::updateOptions @ 0x1000dc396
// > LevelEditorLayer::updateOptions @ 0x1000dc3b0
// > LevelEditorLayer::updateOptions @ 0x1000dc3ca
// > LevelEditorLayer::updateOptions @ 0x1000dc3e4
// > LevelEditorLayer::updateOptions @ 0x1000dc3fe
// > LevelEditorLayer::updateOptions @ 0x1000dc418
// > LevelEditorLayer::updateOptions @ 0x1000dc432
// > LevelEditorLayer::updateOptions @ 0x1000dc44c
// > LevelEditorLayer::updateOptions @ 0x1000dc466
// > LevelEditorLayer::updateOptions @ 0x1000dc480
// > LevelEditorLayer::updateOptions @ 0x1000dc4a1
// > LevelEditorLayer::updateOptions @ 0x1000dc4d8
// > LevelEditorLayer::updateOptions @ 0x1000dc518
// > LevelEditorLayer::updateEditorMode @ 0x1000de8be
// > LevelEditorLayer::updateVisibility @ 0x1000eadd1
// > LevelEditorLayer::updatePreviewParticles @ 0x1000ee7bd
// > LevelEditorLayer::updatePreviewParticles @ 0x1000ee7e2
// > LevelEditorLayer::onPlaytest @ 0x1000f27d3
// > LevelEditorLayer::onPlaytest @ 0x1000f2967
// > LevelEditorLayer::pasteAttributeState @ 0x1000f3c68
// > LevelEditorLayer::updatePreviewAnim @ 0x1000f429c
// > LevelEditorLayer::updateDebugDraw @ 0x1000fe58b
// > LevelEditorLayer::updateDebugDraw @ 0x1000fe6a0
// > LevelEditorLayer::updateDebugDraw @ 0x1001001d6
// > LevelEditorLayer::updateDebugDraw @ 0x10010054d
// > DrawGridLayer::draw @ 0x1001011bb
// > GJBaseGameLayer::init @ 0x10010fd3d
// > GJBaseGameLayer::init @ 0x10010fd59
// > GJBaseGameLayer::init @ 0x10010fd73
// > GJBaseGameLayer::init @ 0x10010fd8d
// > GJBaseGameLayer::init @ 0x10010fda7
// > GJBaseGameLayer::init @ 0x100110659
// > GJBaseGameLayer::createPlayer @ 0x1001141b4
// > GJBaseGameLayer::increaseBatchNodeCapacity @ 0x10011542d
// > GJBaseGameLayer::handleButton @ 0x10014abea
// > GJBaseGameLayer::buttonIsRelevant @ 0x10014aeca
// > GJBaseGameLayer::loadStartPosObject @ 0x10014e49d
// > EffectGameObject::playTriggerEffect @ 0x1001b9127
// > EffectGameObject::playTriggerEffect @ 0x1001b914f
// > CheckpointGameObject::resetObject @ 0x1001d69d6
// > EditLevelLayer::onShare @ 0x1001fc1ad
// > PlayerObject::playDeathEffect @ 0x1002133f2
// > CustomSongLayer::onSearch @ 0x100215a8d
// > SongSelectNode::onOpenCustomSong @ 0x100219578
// > ShareLevelLayer::init @ 0x100280c73
// > ShareLevelSettingsLayer::onUnlisted @ 0x1002830cd
// > EditorPauseLayer::customSetup @ 0x100292b12
// > EditorPauseLayer::customSetup @ 0x100292c19
// > EditorPauseLayer::customSetup @ 0x100292d00
// > EditorPauseLayer::customSetup @ 0x100292de2
// > EditorPauseLayer::customSetup @ 0x100292ed1
// > EditorPauseLayer::customSetup @ 0x100292fce
// > EditorPauseLayer::customSetup @ 0x1002930b2
// > EditorPauseLayer::customSetup @ 0x10029319d
// > EditorPauseLayer::customSetup @ 0x10029328c
// > EditorPauseLayer::customSetup @ 0x100293382
// > EditorPauseLayer::customSetup @ 0x100293469
// > EditorPauseLayer::toggleEditorGround @ 0x1002940e3
// > EditorPauseLayer::toggleEditorBackground @ 0x100294793
// > EditorPauseLayer::toggleGridOnTop @ 0x1002947dc
// > CreatorLayer::init @ 0x100297c29
// > GJOptionsLayer::addGVToggle @ 0x10029c5b2
// > GameOptionsLayer::setupOptions @ 0x1002b1158
// > GameOptionsLayer::setupOptions @ 0x1002b118d
// > GameOptionsLayer::setupOptions @ 0x1002b11de
// > GameOptionsLayer::setupOptions @ 0x1002b120c
// > GameOptionsLayer::setupOptions @ 0x1002b123a
// > GameOptionsLayer::setupOptions @ 0x1002b1268
// > GameOptionsLayer::setupOptions @ 0x1002b1296
// > GameOptionsLayer::setupOptions @ 0x1002b12c4
// > GameOptionsLayer::setupOptions @ 0x1002b12f6
// > GameOptionsLayer::setupOptions @ 0x1002b1549
// > GameOptionsLayer::didToggle @ 0x1002b1eff
// > UIOptionsLayer::getValue @ 0x1002b4be4
// > LevelInfoLayer::init @ 0x1002bdded
// > LevelInfoLayer::onPlay @ 0x1002bf91c
// > LevelInfoLayer::onPlay @ 0x1002bf98d
// > LevelInfoLayer::onPlay @ 0x1002bf9a9
// > LevelInfoLayer::downloadLevel @ 0x1002c002c
// > LevelInfoLayer::setupProgressBars @ 0x1002c14fd
// > GJGarageLayer::setupPage @ 0x10036d289
// > GameManager::playMenuMusic @ 0x100377021
// > GameManager::playMenuMusic @ 0x100377077
// > GameManager::fadeInMenuMusic @ 0x100377311
// > GameManager::fadeInMenuMusic @ 0x100377367
// > GameManager::toggleGameVariable @ 0x100383ec8
// > GameManager::saveDPadLayout @ 0x100386fdb
// > GameManager::loadVideoSettings @ 0x100389076
// > GameManager::loadVideoSettings @ 0x1003890c2
// > GameManager::loadVideoSettings @ 0x10038910e
// > GameManager::dataLoaded @ 0x10038990f
// > GameManager::updateCustomFPS @ 0x10038c9f1
// > GameManager::updateCustomFPS @ 0x10038ca63
// > MenuLayer::init @ 0x100390f28
// > MenuLayer::init @ 0x1003912bd
// > MenuLayer::onGameCenter @ 0x100391c98
// > MenuLayer::FLAlert_Clicked @ 0x10039224a
// > LoadingLayer::loadAssets @ 0x1003a314d
// > LoadingLayer::loadAssets @ 0x1003a31c9
// > ShaderLayer::setupShader @ 0x1003cab33
// > PauseLayer::tryQuit @ 0x1003d73db
// > FMODAudioEngine::setupAudioEngine @ 0x1003dd2fd
// > FMODAudioEngine::setupAudioEngine @ 0x1003dd367
// > PlayerObject::init @ 0x1003fa94d
// > PlayerObject::init @ 0x1003fa967
// > PlayerObject::init @ 0x1003fa981
// > PlayerObject::init @ 0x1003fbb61
// > PlayerObject::init @ 0x1003fbb7b
// > PlayerObject::init @ 0x1003fbb95
// > PlayerObject::tryPlaceCheckpoint @ 0x100402dd9
// > SFXBrowser::init @ 0x10043e699
// > SearchSFXPopup::init @ 0x10044103e
// > CreateParticlePopup::init @ 0x10046efb5
// > CreateParticlePopup::init @ 0x100470292
// > CreateParticlePopup::onTogglePerfLog @ 0x10047391c
// > LevelBrowserLayer::loadPage @ 0x10048e9a4
// > FLAlertLayer::init @ 0x10049b4a7
// > FLAlertLayer::init_1 @ 0x10049bed7
// > EndLevelLayer::customSetup @ 0x1004c030a
// > EndLevelLayer::getEndText @ 0x1004c1dc5
// > EndLevelLayer::onReplay @ 0x1004c1e8f
// > EndLevelLayer::onRestartCheckpoint @ 0x1004c2111
// > EndLevelLayer::showLayer @ 0x1004c239f
// > UILayer::init @ 0x1004c7c44
// > UILayer::init @ 0x1004c7e69
// > UILayer::init @ 0x1004c7ea5
// > UILayer::init @ 0x1004c805e
// > UILayer::init @ 0x1004c807f
// > UILayer::init @ 0x1004c80a5
// > UILayer::toggleCheckpointsMenu @ 0x1004c853b
// > UILayer::togglePlatformerMode @ 0x1004c8714
// > UILayer::updateDualMode @ 0x1004c87e2
// > UILayer::handleKeypress @ 0x1004c91cd
// > UILayer::handleKeypress @ 0x1004c928a
// > UILayer::toggleMenuVisibility @ 0x1004c9839
// > UILayer::ccTouchBegan @ 0x1004c9acf
// > UILayer::ccTouchBegan @ 0x1004c9b16
// > SetupSmartBlockLayer::determineStartValues @ 0x1004e6b8e
// > SetupSmartBlockLayer::determineStartValues @ 0x1004e6ba8
// > RetryLevelLayer::onReplay @ 0x1004f9078
// > RetryLevelLayer::keyDown @ 0x1004f9718
// > GameLevelManager::ProcessHttpRequest @ 0x10051af4d
// > GameLevelManager::limitSavedLevels @ 0x1005397a3
// > GameLevelManager::limitSavedLevels @ 0x1005397c6
// > GameLevelManager::limitSavedLevels @ 0x100539824
// > GameLevelManager::getOnlineLevels @ 0x10053fcfd
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x100544d86
// > GameLevelManager::getLevelComments @ 0x10054f935
// > GameLevelManager::getLevelComments @ 0x10054f958
// > MusicDownloadManager::onDownloadSongCompleted @ 0x10058f69c
// > MusicDownloadManager::pathForSongFolder @ 0x10058fd95
// > MusicDownloadManager::pathForSFXFolder @ 0x1005904a5
// > SFXSearchResult::updateObjects @ 0x10059aec4
// > CustomSFXWidget::onDownload @ 0x1005e39af
// > CustomSFXWidget::downloadSFXFinished @ 0x1005e4bbc
// > sub_1005E4BE0 @ 0x1005e4c0c
// > GJDropDownLayer::showLayer @ 0x1005e8634
// > GJDropDownLayer::hideLayer @ 0x1005e8745
// > CustomSongWidget::onDownload @ 0x10061bab8
// > AppDelegate::resumeSound @ 0x10065c62f
// > OptionsLayer::customSetup @ 0x10079aaab
// > MoreOptionsLayer::init @ 0x10079b831
// > MoreOptionsLayer::addToggle @ 0x10079cbca
// > MoreOptionsLayer::onToggle @ 0x10079e01c
// > MoreOptionsLayer::onToggle @ 0x10079e032
// > MoreOptionsLayer::onToggle @ 0x10079e13a
// > MoreOptionsLayer::onToggle @ 0x10079e240
// > MoreOptionsLayer::onToggle @ 0x10079e34e
// > VideoOptionsLayer::init @ 0x10079f061
// > VideoOptionsLayer::init @ 0x10079f120
// > VideoOptionsLayer::init @ 0x10079f13c
// > VideoOptionsLayer::init @ 0x10079f156
// > VideoOptionsLayer::init @ 0x10079f3e7
// > VideoOptionsLayer::init @ 0x10079f4a6
// > VideoOptionsLayer::init @ 0x10079f574
// > VideoOptionsLayer::onApply @ 0x1007a03be
// > VideoOptionsLayer::onApply @ 0x1007a03e5
// > VideoOptionsLayer::onApply @ 0x1007a0405
// > VideoOptionsLayer::onApply @ 0x1007a0509
// > MoreVideoOptionsLayer::init @ 0x1007a102e
// > MoreVideoOptionsLayer::addToggle @ 0x1007a14ea
// > MoreVideoOptionsLayer::onToggle @ 0x1007a2336
// > MoreVideoOptionsLayer::onToggle @ 0x1007a243e
// > MoreVideoOptionsLayer::onToggle @ 0x1007a2544
// > MoreVideoOptionsLayer::onToggle @ 0x1007a264a
// > MoreVideoOptionsLayer::onToggle @ 0x1007a2758
// > MoreVideoOptionsLayer::onToggle @ 0x1007a2822
// > MoreVideoOptionsLayer::updateFPSButtons @ 0x1007a2f0c
// > ParentalOptionsLayer::addToggle @ 0x1007a39ea
// > GraphicsReloadLayer::performReload @ 0x1007a5137
// > GraphicsReloadLayer::performReload @ 0x1007a51d6
// > GraphicsReloadLayer::performReload @ 0x1007a5255
// > GraphicsReloadLayer::performReload @ 0x1007a5275
// > InfoLayer::init @ 0x1007ae420
// > InfoLayer::init @ 0x1007ae451
// > InfoLayer::init @ 0x1007af05a
// > InfoLayer::init @ 0x1007afc20
// > InfoLayer::init @ 0x1007afc4c
// > InfoLayer::init @ 0x1007aff46
// > InfoLayer::init @ 0x1007affaa
// > InfoLayer::onComment @ 0x1007b0797
// > InfoLayer::toggleCommentMode @ 0x1007b1074
// > InfoLayer::updateCommentModeButtons @ 0x1007b11ec
// > InfoLayer::loadPage @ 0x1007b12cb
// > InfoLayer::setupCommentsBrowser @ 0x1007b1737
// > InfoLayer::setupCommentsBrowser @ 0x1007b1778
// > InfoLayer::onLevelInfo @ 0x1007b19b9
// > InfoLayer::updateUserScoreFinished @ 0x1007b2d03
// > sub_1007B2D40 @ 0x1007b2dca
// > InfoLayer::commentUploadFinished @ 0x1007b2e80
// > InfoLayer::reloadWindow @ 0x1007b315c
// > ProfilePage::loadPageFromUserInfo @ 0x1007bbdae
// > ProfilePage::loadPageFromUserInfo @ 0x1007bc24d
// > ProfilePage::getUserInfoFinished @ 0x1007bfeed
// > sub_1007C0200 @ 0x1007c0232
//
// 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)
{
double v2; // xmm0_8
const char *data; // r14
cocos2d::CCDictionary *m_valueKeeper; // rbx
size_t v5; // rax
size_t v6; // r15
char *v7; // r12
size_t v8; // r13
cocos2d::CCString *v9; // rax
bool v10; // bl
std::string v12; // [rsp+8h] [rbp-58h] BYREF
_QWORD __dst[2]; // [rsp+20h] [rbp-40h] BYREF
void *__p; // [rsp+30h] [rbp-30h]
v12.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)6;
*(_DWORD *)((char *)&v12.__r_.__value_.__l.0 + 1) = 6256231;
std::string::append(&v12, a2);
if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )
data = v12.__r_.__value_.__l.__data_;
else
data = v12.__r_.__value_.__s.__data_;
m_valueKeeper = a1->m_valueKeeper;
v5 = strlen(data);
if ( v5 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100006BF0(v2);
v6 = v5;
if ( v5 >= 0x17 )
{
v8 = 26;
if ( (v5 | 7) != 0x17 )
v8 = (v5 | 7) + 1;
v7 = (char *)operator new(v8);
__p = v7;
__dst[0] = v8 | 1;
__dst[1] = v6;
goto LABEL_11;
}
LOBYTE(__dst[0]) = 2 * v5;
v7 = (char *)__dst + 1;
if ( v5 )
LABEL_11:
memmove(v7, data, v6);
v7[v6] = 0;
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1((__int64)m_valueKeeper, (__int64)__dst);
v10 = cocos2d::CCString::boolValue(v9);
if ( (__dst[0] & 1) != 0 )
operator delete(__p);
if ( (*(_BYTE *)&v12.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v12.__r_.__value_.__l.__data_);
return v10;
}