//
// GameManager::getUGV from 0x1003b5dac to 0x1003b5e50 (164 bytes)
//
// 67 xrefs:
// > SecretLayer5::init @ 0x10007d304
// > CreatorLayer::init @ 0x1000db4d8
// > CreatorLayer::onTreasureRoom @ 0x1000dc1e4
// > PlayLayer::destroyPlayer @ 0x100148094
// > GJShopLayer::init @ 0x1001c9c00
// > sub_1001CB24C @ 0x1001cb28c
// > GJShopLayer::ccTouchBegan @ 0x1001cc154
// > GauntletSelectLayer::setupGauntlets @ 0x100254e38
// > MenuLayer::init @ 0x100304b9c
// > SecretRewardsLayer::init @ 0x1003831f0
// > SecretRewardsLayer::init @ 0x10038320c
// > SecretRewardsLayer::onShop @ 0x1003851d8
// > SecretRewardsLayer::onShop @ 0x10038520c
// > SecretRewardsLayer::onShop @ 0x10038523c
// > SecretRewardsLayer::onShop @ 0x100385260
// > sub_100386874 @ 0x1003868b8
// > sub_100387984 @ 0x1003879c8
// > sub_10038866C @ 0x1003886b4
// > sub_1003892C0 @ 0x100389304
// > SecretLayer2::init @ 0x1003a6720
// > SecretLayer2::init @ 0x1003a6c90
// > SecretLayer2::init @ 0x1003a7050
// > SecretLayer2::init @ 0x1003a70cc
// > SecretLayer2::onSubmit @ 0x1003a7874
// > SecretLayer2::onSubmit @ 0x1003a8030
// > SecretLayer2::onDoor @ 0x1003a865c
// > SecretLayer3::init @ 0x1003ab284
// > SecretLayer3::init @ 0x1003ab320
// > SecretLayer3::init @ 0x1003ab334
// > SecretLayer3::init @ 0x1003ab460
// > SecretLayer3::init @ 0x1003ab504
// > SecretLayer3::init @ 0x1003ab5a8
// > SecretLayer3::init @ 0x1003ab64c
// > SecretLayer3::init @ 0x1003abad4
// > SecretLayer3::onClick @ 0x1003ac0f8
// > SecretLayer3::onClick @ 0x1003ac10c
// > SecretLayer3::onClick @ 0x1003ac120
// > sub_1003ACA78 @ 0x1003acaa8
// > sub_1003AD35C @ 0x1003ad388
// > sub_1003AD35C @ 0x1003ad39c
// > sub_1003AD35C @ 0x1003ad3b0
// > GameManager::firstLoad @ 0x1003b9fc4
// > LevelAreaLayer::init @ 0x1003e2d88
// > LevelAreaInnerLayer::init @ 0x1003e48a0
// > SecretLayer4::init @ 0x1003f39a4
// > SecretLayer::init @ 0x1004642cc
// > LevelPage::onTheTower @ 0x100485430
// > LevelPage::addSecretDoor @ 0x100485814
// > LevelPage::addSecretDoor @ 0x100485828
// > LevelPage::addSecretDoor @ 0x100485868
// > sub_100485D8C @ 0x100485dc0
// > sub_100485D8C @ 0x100485dd4
// > FollowRewardPage::init @ 0x1004a70d4
// > FollowRewardPage::init @ 0x1004a71b0
// > FollowRewardPage::init @ 0x1004a7280
// > FollowRewardPage::init @ 0x1004a734c
// > FollowRewardPage::init @ 0x1004a7418
// > FollowRewardPage::init @ 0x1004a74e4
// > FollowRewardPage::init @ 0x1004a75b0
// > sub_1004A7AD4 @ 0x1004a7b78
// > sub_1004A7AD4 @ 0x1004a7be8
// > sub_1004A7AD4 @ 0x1004a7c50
// > sub_1004A7AD4 @ 0x1004a7ca8
// > sub_1004A7AD4 @ 0x1004a7d00
// > sub_1004A7AD4 @ 0x1004a7d58
// > sub_1004A7AD4 @ 0x1004a7db0
// > FollowRewardPage::updateRate @ 0x1004a83bc
//
// 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
//
bool __fastcall GameManager::getUGV(__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, "ugv_");
std::string::append(&v11, a2);
v4 = *(_QWORD *)(a1 + 448);
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;
}