//
// GameManager::getUGV from 0x416c70 to 0x416d12 (162 bytes)
//
// 68 xrefs:
// > MenuLayer::init @ 0x3fad50
// > PlayLayer::destroyPlayer @ 0x405eda
// > GameManager::firstLoad @ 0x417f04
// > CreatorLayer::onTreasureRoom @ 0x493f98
// > CreatorLayer::init @ 0x494ab8
// > LevelPage::addSecretDoor @ 0x5134ac
// > LevelPage::addSecretDoor @ 0x5134bc
// > LevelPage::addSecretDoor @ 0x5134ea
// > LevelPage::onTheTower @ 0x5136e8
// > LevelPage::onSecretDoor @ 0x513a62
// > LevelPage::onSecretDoor @ 0x513b4c
// > SecretLayer::init @ 0x5fed7a
// > GauntletSelectLayer::setupGauntlets @ 0x60cba6
// > GJShopLayer::showReactMessage @ 0x611ed2
// > GJShopLayer::ccTouchBegan @ 0x612966
// > GJShopLayer::init @ 0x6133b4
// > SecretLayer3::onBack @ 0x61ae56
// > SecretLayer3::onClick @ 0x61c87c
// > SecretLayer3::onClick @ 0x61c88a
// > SecretLayer3::onClick @ 0x61c898
// > SecretLayer3::showUnlockDialog @ 0x61c96a
// > SecretLayer3::showUnlockDialog @ 0x61c978
// > SecretLayer3::showUnlockDialog @ 0x61c988
// > SecretLayer2::onDoor @ 0x61e4f4
// > SecretLayer2::onSubmit @ 0x61e9aa
// > SecretLayer2::onSubmit @ 0x61ef10
// > SecretLayer2::init @ 0x61f49c
// > SecretLayer2::init @ 0x61f944
// > SecretLayer2::init @ 0x61fbd0
// > SecretLayer2::init @ 0x61fbe0
// > SecretLayer3::init @ 0x62032e
// > SecretLayer3::init @ 0x620392
// > SecretLayer3::init @ 0x6203a4
// > SecretLayer3::init @ 0x620464
// > SecretLayer3::init @ 0x6204dc
// > SecretLayer3::init @ 0x6205b6
// > SecretLayer3::init @ 0x620630
// > SecretLayer3::init @ 0x6209d0
// > SecretLayer4::init @ 0x622d42
// > WorldSelectLayer::init @ 0x62e608
// > FollowRewardPage::updateRate @ 0x62ff8e
// > FollowRewardPage::onSpecialItem @ 0x6302fa
// > FollowRewardPage::onSpecialItem @ 0x63032e
// > FollowRewardPage::onSpecialItem @ 0x630362
// > FollowRewardPage::onSpecialItem @ 0x630396
// > FollowRewardPage::onSpecialItem @ 0x6303ca
// > FollowRewardPage::onSpecialItem @ 0x6303fe
// > FollowRewardPage::onSpecialItem @ 0x630432
// > FollowRewardPage::init @ 0x630a70
// > FollowRewardPage::init @ 0x630af0
// > FollowRewardPage::init @ 0x630b72
// > FollowRewardPage::init @ 0x630bf2
// > FollowRewardPage::init @ 0x630c72
// > FollowRewardPage::init @ 0x630cf2
// > FollowRewardPage::init @ 0x630dfc
// > LevelAreaLayer::init @ 0x6a5224
// > LevelAreaInnerLayer::init @ 0x6a5b16
// > SecretRewardsLayer::showDialog01 @ 0x6cad24
// > SecretRewardsLayer::showDialog03 @ 0x6cbb6a
// > SecretRewardsLayer::showDialogMechanic @ 0x6cc646
// > SecretRewardsLayer::showDialogDiamond @ 0x6cd080
// > SecretRewardsLayer::onShop @ 0x6cd6a0
// > SecretRewardsLayer::onShop @ 0x6cd6b8
// > SecretRewardsLayer::onShop @ 0x6cd6d0
// > SecretRewardsLayer::onShop @ 0x6cd6e8
// > SecretRewardsLayer::init @ 0x6cdfd6
// > SecretRewardsLayer::init @ 0x6cdfec
// > SecretLayer5::init @ 0x6e64fa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:47:41 +0000
//
int __fastcall GameManager::getUGV(GameManager *this, char *a2)
{
int v4; // r8
size_t v5; // r0
cocos2d::CCString *v6; // r0
int v7; // r7
int v9[2]; // [sp+4h] [bp-1Ch] BYREF
char *v10; // [sp+Ch] [bp-14h]
int v11[3]; // [sp+10h] [bp-10h] BYREF
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
std::string::__init(v9, "ugv_", 4u);
std::string::append(v9, a2);
v4 = *((_DWORD *)this + 83);
if ( (v9[0] & 1) == 0 )
a2 = (char *)v9 + 1;
v11[0] = 0;
if ( (v9[0] & 1) != 0 )
a2 = v10;
v11[1] = 0;
v11[2] = 0;
v5 = strlen(a2);
std::string::__init(v11, a2, v5);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(v4, v11);
v7 = cocos2d::CCString::boolValue(v6);
std::string::~string((int)v11);
std::string::~string((int)v9);
return v7;
}