//
// GameManager::getUGV from 0x100318fe8 to 0x10031908c (164 bytes)
//
// 65 xrefs:
// > SecretLayer5::init @ 0x100074b50
// > CreatorLayer::init @ 0x1000b5a88
// > CreatorLayer::onTreasureRoom @ 0x1000b66fc
// > PlayLayer::destroyPlayer @ 0x10011edf8
// > GJShopLayer::init @ 0x10014b308
// > GJShopLayer::showReactMessage @ 0x10014c98c
// > GJShopLayer::ccTouchBegan @ 0x10014d854
// > GauntletSelectLayer::setupGauntlets @ 0x1001bf31c
// > MenuLayer::init @ 0x1002676c0
// > SecretRewardsLayer::init @ 0x1002e8068
// > SecretRewardsLayer::init @ 0x1002e8084
// > SecretRewardsLayer::onShop @ 0x1002ea050
// > SecretRewardsLayer::onShop @ 0x1002ea084
// > SecretRewardsLayer::onShop @ 0x1002ea0b4
// > SecretRewardsLayer::onShop @ 0x1002ea0d8
// > SecretRewardsLayer::showDialog01 @ 0x1002eb730
// > SecretRewardsLayer::showDialog03 @ 0x1002ec840
// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed52c
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee17c
// > SecretLayer2::init @ 0x100309a04
// > SecretLayer2::init @ 0x100309f74
// > SecretLayer2::init @ 0x10030a334
// > SecretLayer2::init @ 0x10030a3b0
// > SecretLayer2::onSubmit @ 0x10030ab58
// > SecretLayer2::onSubmit @ 0x10030b314
// > SecretLayer2::onDoor @ 0x10030b940
// > SecretLayer3::init @ 0x10030e56c
// > SecretLayer3::init @ 0x10030e608
// > SecretLayer3::init @ 0x10030e61c
// > SecretLayer3::init @ 0x10030e748
// > SecretLayer3::init @ 0x10030e7ec
// > SecretLayer3::init @ 0x10030e890
// > SecretLayer3::init @ 0x10030e934
// > SecretLayer3::init @ 0x10030edbc
// > SecretLayer3::onClick @ 0x10030f3e0
// > SecretLayer3::onClick @ 0x10030f3f4
// > SecretLayer3::onClick @ 0x10030f408
// > SecretLayer3::onBack @ 0x10030fd90
// > SecretLayer3::showUnlockDialog @ 0x100310670
// > SecretLayer3::showUnlockDialog @ 0x100310684
// > SecretLayer3::showUnlockDialog @ 0x100310698
// > GameManager::firstLoad @ 0x10031c734
// > LevelAreaLayer::init @ 0x10034460c
// > LevelAreaInnerLayer::init @ 0x100346124
// > SecretLayer4::init @ 0x1003540b4
// > SecretLayer::init @ 0x1003bd59c
// > LevelPage::onTheTower @ 0x1004049c8
// > LevelPage::addSecretDoor @ 0x100404dac
// > LevelPage::addSecretDoor @ 0x100404dc0
// > LevelPage::addSecretDoor @ 0x100404e00
// > LevelPage::onSecretDoor @ 0x100405358
// > LevelPage::onSecretDoor @ 0x10040536c
// > FollowRewardPage::init @ 0x100424bf0
// > FollowRewardPage::init @ 0x100424cc8
// > FollowRewardPage::init @ 0x100424d90
// > FollowRewardPage::init @ 0x100424e5c
// > FollowRewardPage::init @ 0x100424f28
// > FollowRewardPage::init @ 0x100424ff4
// > FollowRewardPage::onSpecialItem @ 0x100425590
// > FollowRewardPage::onSpecialItem @ 0x100425600
// > FollowRewardPage::onSpecialItem @ 0x100425658
// > FollowRewardPage::onSpecialItem @ 0x1004256b0
// > FollowRewardPage::onSpecialItem @ 0x100425708
// > FollowRewardPage::onSpecialItem @ 0x100425760
// > FollowRewardPage::updateRate @ 0x100425d10
//
// 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::getUGV(GameManager *a1, const char *a2)
{
cocos2d::CCDictionary *m_unlockValueKeeper; // x19
std::string *v5; // x1
cocos2d::CCString *v6; // x0
bool v7; // w19
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);
m_unlockValueKeeper = a1->m_unlockValueKeeper;
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::CCString *)cocos2d::CCDictionary::valueForKey_1(m_unlockValueKeeper, __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;
}