{"type": "func", "start": 4298215164, "end": 4298215344, "name": "GameManager::setUGV", "pseudocode": "// \n// GameManager::setUGV from 0x100318efc to 0x100318fb0 (180 bytes)\n// \n// 34 xrefs:\n// > SecretLayer5::showFirstDialog @ 0x100075304\n// > CreatorLayer::dialogClosed @ 0x1000b6b74\n// > PlayLayer::destroyPlayer @ 0x10011ef08\n// > GJShopLayer::showReactMessage @ 0x10014d2ac\n// > TOSPopup::onClose @ 0x1002e0cb8\n// > SecretRewardsLayer::showDialog01 @ 0x1002ec2c4\n// > SecretRewardsLayer::showDialog03 @ 0x1002ecfa4\n// > SecretRewardsLayer::showDialogMechanic @ 0x1002edc8c\n// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee66c\n// > SecretRewardsLayer::dialogClosed @ 0x1002eea14\n// > SecretLayer2::showSecretLevel @ 0x10030c3e4\n// > SecretLayer2::dialogClosed @ 0x10030c4f0\n// > SecretLayer2::getThreadMessage @ 0x10030d6f8\n// > SecretLayer3::onClick @ 0x10030f134\n// > SecretLayer3::onClick @ 0x10030f1b4\n// > SecretLayer3::onClick @ 0x10030f7d4\n// > SecretLayer3::dialogClosed @ 0x1003117a0\n// > GameManager::dataLoaded @ 0x10031c3e0\n// > GameManager::dataLoaded @ 0x10031c3f4\n// > GameManager::firstLoad @ 0x10031caa4\n// > GameManager::applicationWillEnterForeground @ 0x10031d408\n// > GameManager::applicationWillEnterForeground @ 0x10031d440\n// > GameManager::applicationWillEnterForeground @ 0x10031d478\n// > GameManager::applicationWillEnterForeground @ 0x10031d4b0\n// > GameManager::applicationWillEnterForeground @ 0x10031d4d0\n// > GameManager::applicationWillEnterForeground @ 0x10031d4f0\n// > LevelAreaLayer::showDialog @ 0x10034529c\n// > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1003468e8\n// > SecretLayer4::showFirstDialog @ 0x1003548fc\n// > SecretLayer::getThreadMessage @ 0x1003bfc54\n// > LevelSelectLayer::init @ 0x1004019ac\n// > LevelPage::onTheTower @ 0x100404c24\n// > LevelPage::onSecretDoor @ 0x1004053c8\n// > LevelPage::dialogClosed @ 0x100405920\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GameManager::setUGV(GameManager *a1, const char *a2, bool a3)\n{\n  _BOOL4 v3; // w20\n  cocos2d::CCDictionary *m_unlockValueKeeper; // x19\n  cocos2d::CCObject *v7; // x20\n  std::string *v8; // x1\n  void *__p[2]; // [xsp+10h] [xbp-50h] BYREF\n  char v10; // [xsp+27h] [xbp-39h]\n  std::string v11; // [xsp+28h] [xbp-38h] BYREF\n\n  v3 = a3;\n  sub_100009900(&v11, \"ugv_\");\n  std::string::append(&v11, a2);\n  m_unlockValueKeeper = a1->m_unlockValueKeeper;\n  v7 = sub_100268F4C(\"%i\", v3);\n  if ( (v11.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )\n    v8 = &v11;\n  else\n    v8 = (std::string *)v11.__r_.__value_.__r.__words[0];\n  sub_100009900(__p, (char *)v8);\n  cocos2d::CCDictionary::setObject_1(m_unlockValueKeeper, v7, __p);\n  if ( v10 < 0 )\n    operator delete(__p[0]);\n  if ( SHIBYTE(v11.__r_.__value_.__r.__words[2]) < 0 )\n    operator delete(v11.__r_.__value_.__l.__data_);\n}", "assembly": "; \n; GameManager::setUGV from 0x100318efc to 0x100318fb0 (180 bytes)\n; \n; 34 xrefs:\n; > SecretLayer5::showFirstDialog @ 0x100075304\n; > CreatorLayer::dialogClosed @ 0x1000b6b74\n; > PlayLayer::destroyPlayer @ 0x10011ef08\n; > GJShopLayer::showReactMessage @ 0x10014d2ac\n; > TOSPopup::onClose @ 0x1002e0cb8\n; > SecretRewardsLayer::showDialog01 @ 0x1002ec2c4\n; > SecretRewardsLayer::showDialog03 @ 0x1002ecfa4\n; > SecretRewardsLayer::showDialogMechanic @ 0x1002edc8c\n; > SecretRewardsLayer::showDialogDiamond @ 0x1002ee66c\n; > SecretRewardsLayer::dialogClosed @ 0x1002eea14\n; > SecretLayer2::showSecretLevel @ 0x10030c3e4\n; > SecretLayer2::dialogClosed @ 0x10030c4f0\n; > SecretLayer2::getThreadMessage @ 0x10030d6f8\n; > SecretLayer3::onClick @ 0x10030f134\n; > SecretLayer3::onClick @ 0x10030f1b4\n; > SecretLayer3::onClick @ 0x10030f7d4\n; > SecretLayer3::dialogClosed @ 0x1003117a0\n; > GameManager::dataLoaded @ 0x10031c3e0\n; > GameManager::dataLoaded @ 0x10031c3f4\n; > GameManager::firstLoad @ 0x10031caa4\n; > GameManager::applicationWillEnterForeground @ 0x10031d408\n; > GameManager::applicationWillEnterForeground @ 0x10031d440\n; > GameManager::applicationWillEnterForeground @ 0x10031d478\n; > GameManager::applicationWillEnterForeground @ 0x10031d4b0\n; > GameManager::applicationWillEnterForeground @ 0x10031d4d0\n; > GameManager::applicationWillEnterForeground @ 0x10031d4f0\n; > LevelAreaLayer::showDialog @ 0x10034529c\n; > LevelAreaInnerLayer::showFloor1CompleteDialog @ 0x1003468e8\n; > SecretLayer4::showFirstDialog @ 0x1003548fc\n; > SecretLayer::getThreadMessage @ 0x1003bfc54\n; > LevelSelectLayer::init @ 0x1004019ac\n; > LevelPage::onTheTower @ 0x100404c24\n; > LevelPage::onSecretDoor @ 0x1004053c8\n; > LevelPage::dialogClosed @ 0x100405920\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x70                                          ; +0x0, 0x100318efc\nSTP             X22, X21, [SP,#0x60+var_20]                            ; +0x4, 0x100318f00\nSTP             X20, X19, [SP,#0x60+var_10]                            ; +0x8, 0x100318f04\nSTP             X29, X30, [SP,#0x60+var_s0]                            ; +0xc, 0x100318f08\nADD             X29, SP, #0x60                                         ; +0x10, 0x100318f0c\nMOV             X20, X2                                                ; +0x14, 0x100318f10\nMOV             X21, X1                                                ; +0x18, 0x100318f14\nMOV             X19, X0                                                ; +0x1c, 0x100318f18\nADRL            X1, aUgv; \"ugv_\"                                       ; +0x20, 0x100318f1c\nADD             X0, SP, #0x60+var_38; int                              ; +0x28, 0x100318f24\nBL              sub_100009900                                          ; +0x2c, 0x100318f28\nADD             X0, SP, #0x60+var_38; this                             ; +0x30, 0x100318f2c\nMOV             X1, X21; __s                                           ; +0x34, 0x100318f30\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x38, 0x100318f34\nLDR             X19, [X19,#0x198]                                      ; +0x3c, 0x100318f38\nSTR             X20, [SP,#0x60+var_60]                                 ; +0x40, 0x100318f3c\nADRL            X0, aI; \"%i\"                                           ; +0x44, 0x100318f40\nBL              sub_100268F4C                                          ; +0x4c, 0x100318f48\nMOV             X20, X0                                                ; +0x50, 0x100318f4c\nLDRSB           W8, [SP,#0x60+var_38.__r_.__value_+0x17]               ; +0x54, 0x100318f50\nLDR             X9, [SP,#0x60+var_38]                                  ; +0x58, 0x100318f54\nCMP             W8, #0                                                 ; +0x5c, 0x100318f58\nADD             X8, SP, #0x60+var_38                                   ; +0x60, 0x100318f5c\nCSEL            X1, X9, X8, LT; __s                                    ; +0x64, 0x100318f60\nADD             X0, SP, #0x60+__p; int                                 ; +0x68, 0x100318f64\nBL              sub_100009900                                          ; +0x6c, 0x100318f68\nADD             X2, SP, #0x60+__p                                      ; +0x70, 0x100318f6c\nMOV             X0, X19                                                ; +0x74, 0x100318f70\nMOV             X1, X20                                                ; +0x78, 0x100318f74\nBL              cocos2d__CCDictionary__setObject_1                     ; +0x7c, 0x100318f78\nLDRSB           W8, [SP,#0x60+var_39]                                  ; +0x80, 0x100318f7c\nTBZ             W8, #0x1F, loc_100318F8C                               ; +0x84, 0x100318f80\nLDR             X0, [SP,#0x60+__p]; __p                                ; +0x88, 0x100318f84\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x100318f88\nLDRSB           W8, [SP,#0x60+var_38.__r_.__value_+0x17]               ; +0x90, 0x100318f8c\nTBZ             W8, #0x1F, loc_100318F9C                               ; +0x94, 0x100318f90\nLDR             X0, [SP,#0x60+var_38]; __p                             ; +0x98, 0x100318f94\nBL              __ZdlPv; operator delete(void *)                       ; +0x9c, 0x100318f98\nLDP             X29, X30, [SP,#0x60+var_s0]                            ; +0xa0, 0x100318f9c\nLDP             X20, X19, [SP,#0x60+var_10]                            ; +0xa4, 0x100318fa0\nLDP             X22, X21, [SP,#0x60+var_20]                            ; +0xa8, 0x100318fa4\nADD             SP, SP, #0x70 ; 'p'                                    ; +0xac, 0x100318fa8\nRET                                                                    ; +0xb0, 0x100318fac", "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"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}