//
// GameManager::getGameVariable from 0x140183110 to 0x14018328c (380 bytes)
//
// 273 xrefs:
// > FLAlertLayer::init_1 @ 0x140051b38
// > FLAlertLayer::init @ 0x140051cd0
// > FMODAudioEngine::setupAudioEngine @ 0x140054182
// > FMODAudioEngine::setupAudioEngine @ 0x140054219
// > AppDelegate::setupGLView @ 0x140082756
// > AppDelegate::setupGLView @ 0x140082818
// > AppDelegate::setupGLView @ 0x14008282a
// > AppDelegate::applicationDidFinishLaunching @ 0x140082bf0
// > AppDelegate::applicationDidFinishLaunching @ 0x140082c4f
// > AppDelegate::applicationDidFinishLaunching @ 0x140082ca8
// > AppDelegate::resumeSound @ 0x140083322
// > CreatorLayer::init @ 0x14009ca6b
// > CustomSFXWidget::onDownload @ 0x1400c1a9b
// > CustomSFXWidget::downloadSFXFinished @ 0x1400c265d
// > CustomSongLayer::onSearch @ 0x1400c3a0e
// > SongSelectNode::onOpenCustomSong @ 0x1400c7b6b
// > CustomSongWidget::onDownload @ 0x1400cac38
// > EditLevelLayer::onShare @ 0x1400d8830
// > EditorPauseLayer::customSetup @ 0x1400dbab7
// > EditorPauseLayer::customSetup @ 0x1400dbbfb
// > EditorPauseLayer::customSetup @ 0x1400dbd1d
// > EditorPauseLayer::customSetup @ 0x1400dbe4c
// > EditorPauseLayer::customSetup @ 0x1400dbf76
// > EditorPauseLayer::customSetup @ 0x1400dc0a5
// > EditorPauseLayer::customSetup @ 0x1400dc1de
// > EditorPauseLayer::customSetup @ 0x1400dc318
// > EditorPauseLayer::customSetup @ 0x1400dc439
// > EditorPauseLayer::customSetup @ 0x1400dc560
// > EditorPauseLayer::customSetup @ 0x1400dc689
// > EditorPauseLayer::togglePreviewAnim @ 0x1400dd1e4
// > EditorPauseLayer::toggleEditorGround @ 0x1400dd3da
// > EditorUI::init @ 0x1400df4ac
// > EditorUI::init @ 0x1400e080c
// > EditorUI::init @ 0x1400e085a
// > EditorUI::init @ 0x1400e175f
// > EditorUI::init @ 0x1400e17af
// > EditorUI::toggleObjectInfoLabel @ 0x1400e2e1f
// > EditorUI::updateObjectInfoLabel @ 0x1400e2ef0
// > EditorUI::toggleSnap @ 0x14011014f
// > EditorUI::toggleEnableRotate @ 0x14011022f
// > EditorUI::canSelectObject @ 0x14011035f
// > EditorUI::selectObjects @ 0x1401108a7
// > EditorUI::showUI @ 0x140111957
// > EditorUI::onPlaytest @ 0x140112456
// > EditorUI::onStickyToggle @ 0x1401129ea
// > EditorUI::onPasteState @ 0x1401144de
// > EditorUI::toggleSpecialEditButtons @ 0x14011aca4
// > EditorUI::onLockLayer @ 0x14011f66b
// > EditorUI::ccTouchBegan @ 0x140123dff
// > EditorUI::ccTouchMoved @ 0x1401240ac
// > EditorUI::ccTouchEnded @ 0x1401246ff
// > EditorUI::ccTouchEnded @ 0x1401248a3
// > EditorUI::keyDown @ 0x140126028
// > EditorUI::keyDown @ 0x140126170
// > EditorUI::keyDown @ 0x1401261fa
// > EditorUI::keyDown @ 0x140126255
// > EditorUI::keyDown @ 0x1401262cb
// > EditorUI::keyDown @ 0x1401262f8
// > GJTransformControl::init @ 0x14012b322
// > EndLevelLayer::customSetup @ 0x1401331a9
// > EndLevelLayer::showLayer @ 0x140134d01
// > EndLevelLayer::onReplay @ 0x140134ee3
// > EndLevelLayer::onRestartCheckpoint @ 0x140135523
// > EndLevelLayer::getEndText @ 0x140136e0b
// > GameLevelManager::ProcessHttpRequest @ 0x140142dd7
// > GameLevelManager::limitSavedLevels @ 0x14014a20d
// > GameLevelManager::limitSavedLevels @ 0x14014a263
// > GameLevelManager::limitSavedLevels @ 0x14014a2f9
// > GameLevelManager::getOnlineLevels @ 0x14014ddb0
// > GameLevelManager::processOnDownloadLevelCompleted @ 0x140152b5d
// > GameLevelManager::getLevelComments @ 0x14015bff8
// > GameLevelManager::getLevelComments @ 0x14015c04e
// > GameManager::playMenuMusic @ 0x14017b89e
// > GameManager::fadeInMenuMusic @ 0x14017bafb
// > GameManager::toggleGameVariable @ 0x1401832e0
// > GameManager::saveDPadLayout @ 0x140185eea
// > GameManager::dataLoaded @ 0x1401871f8
// > GameManager::reloadAllStep3 @ 0x14018a6b6
// > GameManager::updateCustomFPS @ 0x14018ac8b
// > GJBaseGameLayer::init @ 0x1402070b5
// > GJBaseGameLayer::init @ 0x140207107
// > GJBaseGameLayer::init @ 0x140207157
// > GJBaseGameLayer::init @ 0x1402071a7
// > GJBaseGameLayer::init @ 0x1402071f7
// > GJBaseGameLayer::init @ 0x140207a5f
// > GJBaseGameLayer::createPlayer @ 0x14020b572
// > GJBaseGameLayer::increaseBatchNodeCapacity @ 0x14020cc79
// > GJBaseGameLayer::buttonIsRelevant @ 0x140231f0f
// > GJBaseGameLayer::handleButton @ 0x140233968
// > GJBaseGameLayer::loadStartPosObject @ 0x1402357b4
// > GJDropDownLayer::showLayer @ 0x1402573cb
// > GJDropDownLayer::hideLayer @ 0x14025752c
// > GJGarageLayer::setupPage @ 0x140276688
// > GJOptionsLayer::addGVToggle @ 0x14028fe11
// > GameOptionsLayer::setupOptions @ 0x14029eff4
// > GameOptionsLayer::setupOptions @ 0x14029f05f
// > GameOptionsLayer::setupOptions @ 0x14029f11f
// > GameOptionsLayer::setupOptions @ 0x14029f183
// > GameOptionsLayer::setupOptions @ 0x14029f1e7
// > GameOptionsLayer::setupOptions @ 0x14029f24b
// > GameOptionsLayer::setupOptions @ 0x14029f2af
// > GameOptionsLayer::setupOptions @ 0x14029f313
// > GameOptionsLayer::setupOptions @ 0x14029f37e
// > GameOptionsLayer::setupOptions @ 0x14029f756
// > GameOptionsLayer::didToggle @ 0x1402a077c
// > UIOptionsLayer::getValue @ 0x1402a3c20
// > InfoLayer::init @ 0x1402babab
// > InfoLayer::init @ 0x1402bac45
// > InfoLayer::init @ 0x1402bb8ec
// > InfoLayer::init @ 0x1402bc301
// > InfoLayer::init @ 0x1402bc58a
// > InfoLayer::init @ 0x1402bc71c
// > InfoLayer::onComment @ 0x1402bd769
// > InfoLayer::onLevelInfo @ 0x1402bdd41
// > InfoLayer::loadPage @ 0x1402be3d3
// > InfoLayer::setupCommentsBrowser @ 0x1402be9e4
// > InfoLayer::setupCommentsBrowser @ 0x1402bea5d
// > InfoLayer::updateUserScoreFinished @ 0x1402beee9
// > InfoLayer::reloadWindow @ 0x1402bf38e
// > InfoLayer::updateCommentModeButtons @ 0x1402bf5f9
// > LevelBrowserLayer::loadPage @ 0x1402cb10a
// > LevelEditorLayer::init @ 0x1402d1f3f
// > LevelEditorLayer::init @ 0x1402d1f8c
// > LevelEditorLayer::init @ 0x1402d1fd9
// > LevelEditorLayer::init @ 0x1402d202f
// > LevelEditorLayer::init @ 0x1402d280e
// > LevelEditorLayer::init @ 0x1402d2eec
// > LevelEditorLayer::updateOptions @ 0x1402d2faf
// > LevelEditorLayer::updateOptions @ 0x1402d3022
// > LevelEditorLayer::updateOptions @ 0x1402d306f
// > LevelEditorLayer::updateOptions @ 0x1402d30bc
// > LevelEditorLayer::updateOptions @ 0x1402d3109
// > LevelEditorLayer::updateOptions @ 0x1402d3156
// > LevelEditorLayer::updateOptions @ 0x1402d31a3
// > LevelEditorLayer::updateOptions @ 0x1402d31f0
// > LevelEditorLayer::updateOptions @ 0x1402d323d
// > LevelEditorLayer::updateOptions @ 0x1402d328a
// > LevelEditorLayer::updateOptions @ 0x1402d32d7
// > LevelEditorLayer::updateOptions @ 0x1402d3324
// > LevelEditorLayer::updateOptions @ 0x1402d3371
// > LevelEditorLayer::updateOptions @ 0x1402d33c5
// > LevelEditorLayer::updateOptions @ 0x1402d342e
// > LevelEditorLayer::updateOptions @ 0x1402d347b
// > LevelEditorLayer::updateOptions @ 0x1402d3552
// > LevelEditorLayer::updateOptions @ 0x1402d35c5
// > LevelEditorLayer::updateVisibility @ 0x1402d90dd
// > LevelEditorLayer::updateEditorMode @ 0x1402db801
// > LevelEditorLayer::onPlaytest @ 0x1402e03ab
// > LevelEditorLayer::onPlaytest @ 0x1402e05a0
// > LevelEditorLayer::updatePreviewParticles @ 0x1402e157f
// > LevelEditorLayer::updatePreviewParticles @ 0x1402e15d5
// > LevelEditorLayer::updateDebugDraw @ 0x1402e6d33
// > LevelEditorLayer::updateDebugDraw @ 0x1402e6e29
// > LevelEditorLayer::updateDebugDraw @ 0x1402e84db
// > LevelEditorLayer::updateDebugDraw @ 0x1402e8780
// > DrawGridLayer::draw @ 0x1402e92ef
// > LevelInfoLayer::init @ 0x1402f7fea
// > LevelInfoLayer::downloadLevel @ 0x1402fa06c
// > LevelInfoLayer::setupProgressBars @ 0x1402fab88
// > LevelInfoLayer::onPlay @ 0x1402fc4d6
// > LevelInfoLayer::onPlay @ 0x1402fc6d5
// > LevelInfoLayer::onPlay @ 0x1402fc88c
// > LoadingLayer::loadAssets @ 0x14032f4d0
// > LoadingLayer::loadAssets @ 0x14032f57e
// > MenuLayer::init @ 0x1403349f6
// > MenuLayer::init @ 0x140334da0
// > MusicDownloadManager::onDownloadSongCompleted @ 0x14033ee73
// > MusicDownloadManager::pathForSongFolder @ 0x14033f436
// > MusicDownloadManager::pathForSFXFolder @ 0x14033f766
// > SFXSearchResult::updateObjects @ 0x140347fed
// > OptionsLayer::customSetup @ 0x1403727c9
// > MoreOptionsLayer::init @ 0x1403737ee
// > MoreOptionsLayer::addToggle @ 0x140374c53
// > MoreOptionsLayer::onToggle @ 0x140375da2
// > MoreOptionsLayer::onToggle @ 0x140375def
// > MoreOptionsLayer::onToggle @ 0x140375f39
// > MoreOptionsLayer::onToggle @ 0x140376094
// > MoreOptionsLayer::onToggle @ 0x140376247
// > VideoOptionsLayer::init @ 0x140376bf5
// > VideoOptionsLayer::init @ 0x140376d35
// > VideoOptionsLayer::init @ 0x140376d83
// > VideoOptionsLayer::init @ 0x140376dcf
// > VideoOptionsLayer::init @ 0x1403771a1
// > VideoOptionsLayer::init @ 0x1403772ab
// > VideoOptionsLayer::init @ 0x1403773b5
// > VideoOptionsLayer::onApply @ 0x14037854b
// > VideoOptionsLayer::onApply @ 0x1403785a8
// > VideoOptionsLayer::onApply @ 0x1403785fa
// > MoreVideoOptionsLayer::init @ 0x140378cc6
// > MoreVideoOptionsLayer::addToggle @ 0x1403797f3
// > MoreVideoOptionsLayer::onToggle @ 0x14037a77a
// > MoreVideoOptionsLayer::onToggle @ 0x14037a8c6
// > MoreVideoOptionsLayer::onToggle @ 0x14037aa2e
// > MoreVideoOptionsLayer::onToggle @ 0x14037ab97
// > MoreVideoOptionsLayer::onToggle @ 0x14037ad49
// > MoreVideoOptionsLayer::onToggle @ 0x14037aeba
// > MoreVideoOptionsLayer::updateFPSButtons @ 0x14037afa4
// > ParentalOptionsLayer::addToggle @ 0x14037bab3
// > GraphicsReloadLayer::performReload @ 0x14037c2cd
// > GraphicsReloadLayer::performReload @ 0x14037c32b
// > GraphicsReloadLayer::performReload @ 0x14037c37e
// > GraphicsReloadLayer::performReload @ 0x14037c6e8
// > PauseLayer::tryQuit @ 0x14037ea15
// > PlayerObject::playDeathEffect @ 0x140383d24
// > PlayerObject::init @ 0x1403869f9
// > PlayerObject::init @ 0x140386a46
// > PlayerObject::init @ 0x140386a93
// > PlayerObject::init @ 0x140387d61
// > PlayerObject::init @ 0x140387dae
// > PlayerObject::init @ 0x140387dfb
// > PlayerObject::tryPlaceCheckpoint @ 0x1403a3355
// > PlayLayer::init @ 0x1403a5bd7
// > PlayLayer::init @ 0x1403a5c35
// > PlayLayer::init @ 0x1403a5ccc
// > PlayLayer::init @ 0x1403a5d1f
// > PlayLayer::init @ 0x1403a5d6c
// > PlayLayer::init @ 0x1403a5db9
// > PlayLayer::init @ 0x1403a6363
// > PlayLayer::init @ 0x1403a6491
// > PlayLayer::setupHasCompleted @ 0x1403a7461
// > PlayLayer::updateDebugDrawSettings @ 0x1403a784b
// > PlayLayer::updateDebugDrawSettings @ 0x1403a7898
// > PlayLayer::updateDebugDrawSettings @ 0x1403a78e5
// > PlayLayer::showTwoPlayerGuide @ 0x1403acc3d
// > PlayLayer::toggleProgressbar @ 0x1403b27d2
// > PlayLayer::toggleProgressbar @ 0x1403b27e7
// > PlayLayer::toggleMusicInPractice @ 0x1403b29ec
// > PlayLayer::toggleInfoLabel @ 0x1403b359b
// > PlayLayer::toggleHideAttempts @ 0x1403b382d
// > PlayLayer::toggleHideAttempts @ 0x1403b3878
// > PlayLayer::destroyPlayer @ 0x1403b3bb8
// > PlayLayer::destroyPlayer @ 0x1403b4125
// > PlayLayer::destroyPlayer @ 0x1403b4264
// > PlayLayer::processCheckpoints @ 0x1403b4987
// > PlayLayer::resetLevelFromStart @ 0x1403b8d64
// > PlayLayer::updateAttempts @ 0x1403b9d5a
// > PlayLayer::updateAttempts @ 0x1403b9da5
// > PlayLayer::resumeAndRestart @ 0x1403ba591
// > PlayLayer::resumeAndRestart @ 0x1403ba5ef
// > PlayLayer::resume @ 0x1403ba7e1
// > PlayLayer::resume @ 0x1403ba83f
// > ProfilePage::loadPageFromUserInfo @ 0x1403c28a0
// > ProfilePage::loadPageFromUserInfo @ 0x1403c2f64
// > ProfilePage::getUserInfoFinished @ 0x1403c5f4b
// > RetryLevelLayer::onReplay @ 0x1403cbdbb
// > SetGroupIDLayer::onPaste @ 0x1403fb7be
// > CreateParticlePopup::init @ 0x14042c97f
// > CreateParticlePopup::init @ 0x14042dd38
// > CreateParticlePopup::onTogglePerfLog @ 0x14043289a
// > SetupSmartBlockLayer::init @ 0x140456b41
// > SetupSmartBlockLayer::init @ 0x140456b8d
// > SFXBrowser::init @ 0x14047e73d
// > SearchSFXPopup::init @ 0x140480f1f
// > ShaderLayer::setupShader @ 0x140482292
// > ShareLevelLayer::init @ 0x14048fa18
// > ShareLevelSettingsLayer::onUnlisted @ 0x140491b6c
// > EffectGameObject::playTriggerEffect @ 0x1404a5a47
// > EffectGameObject::playTriggerEffect @ 0x1404a5aa5
// > CheckpointGameObject::resetObject @ 0x1404bb019
// > UILayer::init @ 0x1404ccb94
// > UILayer::init @ 0x1404cce2d
// > UILayer::init @ 0x1404cceab
// > UILayer::init @ 0x1404cd100
// > UILayer::init @ 0x1404cd14f
// > UILayer::init @ 0x1404cd1b4
// > UILayer::togglePlatformerMode @ 0x1404cd669
// > UILayer::handleKeypress @ 0x1404cd8d3
// > UILayer::handleKeypress @ 0x1404cda7c
// > UILayer::toggleCheckpointsMenu @ 0x1404cdf22
// > UILayer::toggleMenuVisibility @ 0x1404ce1a7
// > UILayer::ccTouchBegan @ 0x1404ce30a
// > UILayer::ccTouchBegan @ 0x1404ce354
// > ??> @ 0x1406cb580
//
// 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
//
// Hidden C++ exception states: #wind=2
bool GameManager::getGameVariable(GameManager *a1, const char *a2)
{
size_t v3; // rbx
size_t v4; // r8
void **v5; // rdx
cocos2d::CCString *v6; // rax
bool v7; // bl
void *v8; // rcx
void *v9; // rcx
void *Src[2]; // [rsp+20h] [rbp-58h] BYREF
__int64 v12; // [rsp+30h] [rbp-48h]
unsigned __int64 v13; // [rsp+38h] [rbp-40h]
void *Block[2]; // [rsp+40h] [rbp-38h] BYREF
__m128i si128; // [rsp+50h] [rbp-28h]
*(_OWORD *)Src = 0;
v12 = 3;
v13 = 15;
LOWORD(Src[0]) = *(_WORD *)"gv_";
WORD1(Src[0]) = (unsigned __int8)aGv[2];
v3 = -1;
v4 = -1;
do
++v4;
while ( a2[v4] );
sub_140041270(Src, (void *)a2, v4);
v5 = Src;
if ( v13 > 0xF )
v5 = (void **)Src[0];
*(_OWORD *)Block = 0;
si128 = 0;
do
++v3;
while ( *((_BYTE *)v5 + v3) );
sub_14003A930(Block, v5, v3);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1->m_valueKeeper, Block);
v7 = cocos2d::CCString::boolValue(v6);
if ( si128.m128i_i64[1] > 0xFuLL )
{
v8 = Block[0];
if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )
{
v8 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v8);
}
si128 = _mm_load_si128((const __m128i *)&xmmword_140623F30);
LOBYTE(Block[0]) = 0;
if ( v13 > 0xF )
{
v9 = Src[0];
if ( v13 + 1 >= 0x1000 )
{
v9 = *((void **)Src[0] - 1);
if ( (unsigned __int64)((char *)Src[0] - (char *)v9 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v9);
}
return v7;
}