//
// GameManager::setUGV from 0x71e750 to 0x71e8a4 (340 bytes)
//
// 43 xrefs:
// > PlayLayer::destroyPlayer @ 0x6ff404
// > GameManager::firstLoad @ 0x71fcec
// > GameManager::applicationWillEnterForeground @ 0x7226dc
// > GameManager::applicationWillEnterForeground @ 0x7226f4
// > GameManager::applicationWillEnterForeground @ 0x722728
// > GameManager::applicationWillEnterForeground @ 0x72275c
// > GameManager::applicationWillEnterForeground @ 0x722778
// > GameManager::applicationWillEnterForeground @ 0x722794
// > GameManager::applicationWillEnterForeground @ 0x7227ac
// > GameManager::dataLoaded @ 0x72809c
// > GameManager::dataLoaded @ 0x7280b0
// > CreatorLayer::dialogClosed @ 0x7db9fc
// > LevelSelectLayer::init @ 0x8c5998
// > LevelPage::onTheTower @ 0x8c6824
// > LevelPage::dialogClosed @ 0x8c6a38
// > LevelPage::onSecretDoor @ 0x8c6b38
// > TOSPopup::onClose @ 0xa1e1d8
// > SecretLayer::getThreadMessage @ 0xa5ff44
// > GJShopLayer::showReactMessage @ 0xa7e860
// > SecretLayer2::dialogClosed @ 0xa8a388
// > SecretLayer2::showSecretLevel @ 0xa8a9cc
// > SecretLayer3::dialogClosed @ 0xa8b618
// > SecretLayer3::dialogClosed @ 0xa8b654
// > SecretLayer3::onClick @ 0xa8cbb8
// > SecretLayer3::onClick @ 0xa8cd68
// > SecretLayer3::onClick @ 0xa8d448
// > SecretLayer3::onClick @ 0xa8d46c
// > SecretLayer3::onClick @ 0xa8d490
// > SecretLayer2::getThreadMessage @ 0xa90108
// > SecretLayer4::showFirstDialog @ 0xa94f30
// > WorldSelectLayer::showCompleteDialog @ 0xaa6db8
// > LevelAreaLayer::showDialog @ 0xb5a5c4
// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0xb5a7ec
// > SecretRewardsLayer::dialogClosed @ 0xb9a968
// > SecretRewardsLayer::dialogClosed @ 0xb9a994
// > SecretRewardsLayer::dialogClosed @ 0xb9a9c0
// > SecretRewardsLayer::dialogClosed @ 0xb9a9ec
// > SecretRewardsLayer::showDialog01 @ 0xb9b280
// > SecretRewardsLayer::showDialog03 @ 0xb9c300
// > SecretRewardsLayer::showDialogMechanic @ 0xb9d0e8
// > SecretRewardsLayer::showDialogDiamond @ 0xb9dc68
// > SecretLayer5::showFirstDialog @ 0xbc6024
// > ??> @ 0x40fd8
//
// 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 12:52:22 +0000
//
__int64 __fastcall GameManager::setUGV(GameManager *this, char *a2, unsigned __int8 a3)
{
unsigned int v5; // w23
size_t v6; // x0
__int64 v7; // x22
cocos2d::CCObject *v8; // x21
const char *v9; // x1
size_t v10; // x0
char *v12; // [xsp+48h] [xbp+48h]
__int64 v13[2]; // [xsp+58h] [xbp+58h] BYREF
void *v14; // [xsp+68h] [xbp+68h]
__int64 v15[2]; // [xsp+70h] [xbp+70h] BYREF
void *v16; // [xsp+80h] [xbp+80h]
v5 = a3;
v13[0] = 0;
v13[1] = 0;
v14 = nullptr;
std::string::__init(v13, "ugv_", 4u);
v6 = strlen(a2);
std::string::append((__int64)v13, a2, v6);
v7 = *((_QWORD *)this + 56);
v8 = (cocos2d::CCObject *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v5);
v9 = (char *)v13 + 1;
if ( (v13[0] & 1) != 0 )
v9 = (const char *)v14;
v12 = (char *)v9;
v15[0] = 0;
v15[1] = 0;
v16 = nullptr;
v10 = strlen(v9);
std::string::__init(v15, v12, v10);
cocos2d::CCDictionary::setObject(v7, v8);
if ( (v15[0] & 1) != 0 )
operator delete(v16);
if ( (v13[0] & 1) != 0 )
operator delete(v14);
return _stack_chk_guard;
}