//
// GameManager::getIntGameVariable from 0x1003b5f28 to 0x1003b5f94 (108 bytes)
//
// 77 xrefs:
// > sub_10002BA78 @ 0x10002baa0
// > sub_10002BA78 @ 0x10002bab4
// > sub_1000BE964 @ 0x1000be97c
// > CreatorLayer::onSavedLevels @ 0x1000db71c
// > CreatorLayer::onSavedLevels @ 0x1000db734
// > CreatorLayer::onSavedLevels @ 0x1000db74c
// > CreatorLayer::onSavedLevels @ 0x1000db764
// > CreatorLayer::onMyLevels @ 0x1000dbebc
// > CreatorLayer::onMyLevels @ 0x1000dbed4
// > CreatorLayer::onMyLevels @ 0x1000dbeec
// > CreatorLayer::onMyLevels @ 0x1000dbf04
// > sub_1001113F0 @ 0x10011140c
// > sub_100117FD0 @ 0x100117ff8
// > sub_1001181C4 @ 0x1001181dc
// > sub_10011881C @ 0x100118914
// > sub_10011881C @ 0x100118930
// > sub_10011881C @ 0x10011894c
// > sub_10011881C @ 0x100118968
// > sub_10011881C @ 0x100118984
// > sub_100118CCC @ 0x100118cf0
// > ParentalPrivacyPopup::updateSettingsFinished @ 0x100118ed8
// > ParentalPrivacyPopup::updateSettingsFinished @ 0x100118ef4
// > ParentalPrivacyPopup::updateSettingsFinished @ 0x100118f10
// > ParentalPrivacyPopup::updateSettingsFinished @ 0x100118f2c
// > ParentalPrivacyPopup::updateSettingsFinished @ 0x100118f48
// > PlayLayer::resetLevel @ 0x10014bcd4
// > EditorUI::handleEditorAction @ 0x1001629dc
// > GameSettingsLayer::addSpecialContent @ 0x100165838
// > GameSettingsLayer::addSpecialContent @ 0x10016584c
// > GameSettingsLayer::onClose @ 0x1001671dc
// > GameSettingsLayer::onClose @ 0x1001671f0
// > AutoSaveSettingsLayer::getValue @ 0x100168238
// > AutoSaveSettingsLayer::getValue @ 0x100168270
// > sub_1001684D0 @ 0x1001684e4
// > EditorUI::setupCreateMenu @ 0x100168724
// > EditorUI::setupCreateMenu @ 0x100168738
// > EditorUI::createMoveMenu @ 0x100186000
// > EditorUI::createMoveMenu @ 0x100186014
// > EditorUI::setupDeleteMenu @ 0x100187520
// > EditorUI::setupDeleteMenu @ 0x100187604
// > EditorUI::updateDeleteButtons @ 0x1001877f8
// > EditorUI::updateDeleteButtons @ 0x100187894
// > EditorUI::reloadCustomItems @ 0x100187f58
// > EditorUI::reloadCustomItems @ 0x100187f6c
// > EditorUI::recreateButtonTabs @ 0x1001880d0
// > EditorUI::recreateButtonTabs @ 0x1001880e4
// > EditorUI::canSelectObject @ 0x1001a5bd0
// > EditorUI::canSelectObject @ 0x1001a5be8
// > EditorUI::canSelectObject @ 0x1001a5c04
// > EditorUI::canSelectObject @ 0x1001a5c28
// > EditorUI::selectObjects @ 0x1001a5d50
// > EditorUI::selectObjects @ 0x1001a5d68
// > EditorUI::selectObjects @ 0x1001a5dd8
// > EditorUI::selectObjects @ 0x1001a5e50
// > sub_1001A6778 @ 0x1001a6794
// > sub_1001A6778 @ 0x1001a67b0
// > sub_1001A6778 @ 0x1001a67c8
// > sub_100393EDC @ 0x100393f08
// > sub_100393EDC @ 0x100393f1c
// > GameManager::dataLoaded @ 0x1003b9c10
// > GameManager::dataLoaded @ 0x1003b9c3c
// > GameManager::firstLoad @ 0x1003b9f1c
// > LevelEditorLayer::checkAutoSave @ 0x1003ffc74
// > LevelEditorLayer::checkAutoSave @ 0x1003ffcd4
// > EditorUI::init @ 0x10046e554
// > EditorUI::init @ 0x10046e5a4
// > sub_1004763E0 @ 0x10047641c
// > sub_1004763E0 @ 0x100476468
// > sub_100476A28 @ 0x100476a48
// > EditorUI::onColorFilter @ 0x100476b4c
// > sub_1004AF9C8 @ 0x1004af9dc
// > DeathMarkerSettingsPopup::init @ 0x1004b6ea4
// > DeathMarkerSettingsPopup::init @ 0x1004b7150
// > FindObjectPopup::onBuildWindowContent @ 0x1004dd6c0
// > PlayLayer::tryShowDeathMarkers @ 0x10051df3c
// > sub_10053BF58 @ 0x10053c0c8
// > sub_10053C6C0 @ 0x10053c6e4
//
// 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:56 +0000
//
__int64 __fastcall GameManager::getIntGameVariable(__int64 a1, const std::string::value_type *a2)
{
__int64 v4; // x0
__int64 v5; // x19
std::string v7; // [xsp+8h] [xbp-28h] BYREF
sub_100009900(&v7, "gv_");
std::string::append(&v7, a2);
v4 = cocos2d::CCDictionary::valueForKey(*(_QWORD *)(a1 + 424), &v7);
v5 = cocos2d::CCString::intValue(v4);
if ( SHIBYTE(v7.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v7.__r_.__value_.__l.__data_);
return v5;
}