//
// GameManager::setUGV from 0x100318efc to 0x100318fb0 (180 bytes)
//
// 34 xrefs:
// > SecretLayer5::showFirstDialog @ 0x100075304
// > CreatorLayer::dialogClosed @ 0x1000b6b74
// > PlayLayer::destroyPlayer @ 0x10011ef08
// > GJShopLayer::showReactMessage @ 0x10014d2ac
// > TOSPopup::onClose @ 0x1002e0cb8
// > SecretRewardsLayer::showDialog01 @ 0x1002ec2c4
// > SecretRewardsLayer::showDialog03 @ 0x1002ecfa4
// > SecretRewardsLayer::showDialogMechanic @ 0x1002edc8c
// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee66c
// > SecretRewardsLayer::dialogClosed @ 0x1002eea14
// > SecretLayer2::showSecretLevel @ 0x10030c3e4
// > SecretLayer2::dialogClosed @ 0x10030c4f0
// > SecretLayer2::getThreadMessage @ 0x10030d6f8
// > SecretLayer3::onClick @ 0x10030f134
// > SecretLayer3::onClick @ 0x10030f1b4
// > SecretLayer3::onClick @ 0x10030f7d4
// > SecretLayer3::dialogClosed @ 0x1003117a0
// > GameManager::dataLoaded @ 0x10031c3e0
// > GameManager::dataLoaded @ 0x10031c3f4
// > GameManager::firstLoad @ 0x10031caa4
// > GameManager::applicationWillEnterForeground @ 0x10031d408
// > GameManager::applicationWillEnterForeground @ 0x10031d440
// > GameManager::applicationWillEnterForeground @ 0x10031d478
// > GameManager::applicationWillEnterForeground @ 0x10031d4b0
// > GameManager::applicationWillEnterForeground @ 0x10031d4d0
// > GameManager::applicationWillEnterForeground @ 0x10031d4f0
// > LevelAreaLayer::showDialog @ 0x10034529c
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1003468e8
// > SecretLayer4::showFirstDialog @ 0x1003548fc
// > SecretLayer::getThreadMessage @ 0x1003bfc54
// > LevelSelectLayer::init @ 0x1004019ac
// > LevelPage::onTheTower @ 0x100404c24
// > LevelPage::onSecretDoor @ 0x1004053c8
// > LevelPage::dialogClosed @ 0x100405920
//
// 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
//
void __fastcall GameManager::setUGV(GameManager *a1, const char *a2, bool a3)
{
_BOOL4 v3; // w20
cocos2d::CCDictionary *m_unlockValueKeeper; // x19
cocos2d::CCObject *v7; // x20
std::string *v8; // x1
void *__p[2]; // [xsp+10h] [xbp-50h] BYREF
char v10; // [xsp+27h] [xbp-39h]
std::string v11; // [xsp+28h] [xbp-38h] BYREF
v3 = a3;
sub_100009900(&v11, "ugv_");
std::string::append(&v11, a2);
m_unlockValueKeeper = a1->m_unlockValueKeeper;
v7 = sub_100268F4C("%i", v3);
if ( (v11.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v8 = &v11;
else
v8 = (std::string *)v11.__r_.__value_.__r.__words[0];
sub_100009900(__p, (char *)v8);
cocos2d::CCDictionary::setObject_1(m_unlockValueKeeper, v7, __p);
if ( v10 < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v11.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v11.__r_.__value_.__l.__data_);
}