//
// GameManager::setUGV from 0x416bb8 to 0x416c62 (170 bytes)
//
// 40 xrefs:
// > PlayLayer::destroyPlayer @ 0x405f48
// > GameManager::firstLoad @ 0x41826e
// > GameManager::applicationWillEnterForeground @ 0x41971c
// > GameManager::applicationWillEnterForeground @ 0x419740
// > GameManager::applicationWillEnterForeground @ 0x419764
// > GameManager::applicationWillEnterForeground @ 0x419788
// > GameManager::applicationWillEnterForeground @ 0x41979c
// > GameManager::applicationWillEnterForeground @ 0x4197b0
// > GameManager::applicationWillEnterForeground @ 0x4197c4
// > GameManager::dataLoaded @ 0x41d014
// > GameManager::dataLoaded @ 0x41d020
// > CreatorLayer::dialogClosed @ 0x493a1e
// > LevelSelectLayer::init @ 0x51262e
// > LevelPage::onTheTower @ 0x5138ca
// > LevelPage::dialogClosed @ 0x5139d8
// > LevelPage::onSecretDoor @ 0x513a80
// > TOSPopup::onClose @ 0x5d395a
// > SecretLayer::getThreadMessage @ 0x5fd948
// > GJShopLayer::showReactMessage @ 0x612748
// > SecretLayer2::dialogClosed @ 0x61a37a
// > SecretLayer2::showSecretLevel @ 0x61a7d4
// > SecretLayer3::dialogClosed @ 0x61b196
// > SecretLayer3::onClick @ 0x61c0a8
// > SecretLayer3::onClick @ 0x61c21a
// > SecretLayer3::onClick @ 0x61c38e
// > SecretLayer3::onClick @ 0x61c5c2
// > SecretLayer3::onClick @ 0x61c5d8
// > SecretLayer2::getThreadMessage @ 0x61e1bc
// > SecretLayer4::showFirstDialog @ 0x62197a
// > WorldSelectLayer::showCompleteDialog @ 0x62d506
// > LevelAreaLayer::showDialog @ 0x6a3c52
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x6a3e3c
// > SecretRewardsLayer::dialogClosed @ 0x6caad8
// > SecretRewardsLayer::dialogClosed @ 0x6caaf8
// > SecretRewardsLayer::dialogClosed @ 0x6cab18
// > SecretRewardsLayer::showDialog01 @ 0x6cb5ec
// > SecretRewardsLayer::showDialog03 @ 0x6cc130
// > SecretRewardsLayer::showDialogMechanic @ 0x6cca9e
// > SecretRewardsLayer::showDialogDiamond @ 0x6cd318
// > SecretLayer5::showFirstDialog @ 0x6e4968
//
// 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::setUGV(GameManager *this, char *a2, const char *a3)
{
int v6; // r9
cocos2d::CCObject *v7; // r8
size_t v8; // r0
int v10[2]; // [sp+4h] [bp-20h] BYREF
char *v11; // [sp+Ch] [bp-18h]
int v12[3]; // [sp+10h] [bp-14h] BYREF
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, "ugv_", 4u);
std::string::append(v10, a2);
v6 = *((_DWORD *)this + 83);
v7 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", a3);
if ( (v10[0] & 1) == 0 )
this = (GameManager *)((char *)v10 + 1);
v12[0] = 0;
if ( (v10[0] & 1) != 0 )
this = (GameManager *)v11;
v12[1] = 0;
v12[2] = 0;
v8 = strlen((const char *)this);
std::string::__init(v12, this, v8);
cocos2d::CCDictionary::setObject(v6, v7);
std::string::~string((int)v12);
return std::string::~string((int)v10);
}