{"type": "func", "start": 4298215400, "end": 4298215564, "name": "GameManager::getUGV", "pseudocode": "// \n// GameManager::getUGV from 0x100318fe8 to 0x10031908c (164 bytes)\n// \n// 65 xrefs:\n// > SecretLayer5::init @ 0x100074b50\n// > CreatorLayer::init @ 0x1000b5a88\n// > CreatorLayer::onTreasureRoom @ 0x1000b66fc\n// > PlayLayer::destroyPlayer @ 0x10011edf8\n// > GJShopLayer::init @ 0x10014b308\n// > GJShopLayer::showReactMessage @ 0x10014c98c\n// > GJShopLayer::ccTouchBegan @ 0x10014d854\n// > GauntletSelectLayer::setupGauntlets @ 0x1001bf31c\n// > MenuLayer::init @ 0x1002676c0\n// > SecretRewardsLayer::init @ 0x1002e8068\n// > SecretRewardsLayer::init @ 0x1002e8084\n// > SecretRewardsLayer::onShop @ 0x1002ea050\n// > SecretRewardsLayer::onShop @ 0x1002ea084\n// > SecretRewardsLayer::onShop @ 0x1002ea0b4\n// > SecretRewardsLayer::onShop @ 0x1002ea0d8\n// > SecretRewardsLayer::showDialog01 @ 0x1002eb730\n// > SecretRewardsLayer::showDialog03 @ 0x1002ec840\n// > SecretRewardsLayer::showDialogMechanic @ 0x1002ed52c\n// > SecretRewardsLayer::showDialogDiamond @ 0x1002ee17c\n// > SecretLayer2::init @ 0x100309a04\n// > SecretLayer2::init @ 0x100309f74\n// > SecretLayer2::init @ 0x10030a334\n// > SecretLayer2::init @ 0x10030a3b0\n// > SecretLayer2::onSubmit @ 0x10030ab58\n// > SecretLayer2::onSubmit @ 0x10030b314\n// > SecretLayer2::onDoor @ 0x10030b940\n// > SecretLayer3::init @ 0x10030e56c\n// > SecretLayer3::init @ 0x10030e608\n// > SecretLayer3::init @ 0x10030e61c\n// > SecretLayer3::init @ 0x10030e748\n// > SecretLayer3::init @ 0x10030e7ec\n// > SecretLayer3::init @ 0x10030e890\n// > SecretLayer3::init @ 0x10030e934\n// > SecretLayer3::init @ 0x10030edbc\n// > SecretLayer3::onClick @ 0x10030f3e0\n// > SecretLayer3::onClick @ 0x10030f3f4\n// > SecretLayer3::onClick @ 0x10030f408\n// > SecretLayer3::onBack @ 0x10030fd90\n// > SecretLayer3::showUnlockDialog @ 0x100310670\n// > SecretLayer3::showUnlockDialog @ 0x100310684\n// > SecretLayer3::showUnlockDialog @ 0x100310698\n// > GameManager::firstLoad @ 0x10031c734\n// > LevelAreaLayer::init @ 0x10034460c\n// > LevelAreaInnerLayer::init @ 0x100346124\n// > SecretLayer4::init @ 0x1003540b4\n// > SecretLayer::init @ 0x1003bd59c\n// > LevelPage::onTheTower @ 0x1004049c8\n// > LevelPage::addSecretDoor @ 0x100404dac\n// > LevelPage::addSecretDoor @ 0x100404dc0\n// > LevelPage::addSecretDoor @ 0x100404e00\n// > LevelPage::onSecretDoor @ 0x100405358\n// > LevelPage::onSecretDoor @ 0x10040536c\n// > FollowRewardPage::init @ 0x100424bf0\n// > FollowRewardPage::init @ 0x100424cc8\n// > FollowRewardPage::init @ 0x100424d90\n// > FollowRewardPage::init @ 0x100424e5c\n// > FollowRewardPage::init @ 0x100424f28\n// > FollowRewardPage::init @ 0x100424ff4\n// > FollowRewardPage::onSpecialItem @ 0x100425590\n// > FollowRewardPage::onSpecialItem @ 0x100425600\n// > FollowRewardPage::onSpecialItem @ 0x100425658\n// > FollowRewardPage::onSpecialItem @ 0x1004256b0\n// > FollowRewardPage::onSpecialItem @ 0x100425708\n// > FollowRewardPage::onSpecialItem @ 0x100425760\n// > FollowRewardPage::updateRate @ 0x100425d10\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\nbool __fastcall GameManager::getUGV(GameManager *a1, const char *a2)\n{\n  cocos2d::CCDictionary *m_unlockValueKeeper; // x19\n  std::string *v5; // x1\n  cocos2d::CCString *v6; // x0\n  bool v7; // w19\n  void *__p[2]; // [xsp+0h] [xbp-50h] BYREF\n  char v10; // [xsp+17h] [xbp-39h]\n  std::string v11; // [xsp+18h] [xbp-38h] BYREF\n\n  sub_100009900(&v11, \"ugv_\");\n  std::string::append(&v11, a2);\n  m_unlockValueKeeper = a1->m_unlockValueKeeper;\n  if ( (v11.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )\n    v5 = &v11;\n  else\n    v5 = (std::string *)v11.__r_.__value_.__r.__words[0];\n  sub_100009900(__p, (char *)v5);\n  v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey_1(m_unlockValueKeeper, __p);\n  v7 = cocos2d::CCString::boolValue(v6);\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  return v7;\n}", "assembly": "; \n; GameManager::getUGV from 0x100318fe8 to 0x10031908c (164 bytes)\n; \n; 65 xrefs:\n; > SecretLayer5::init @ 0x100074b50\n; > CreatorLayer::init @ 0x1000b5a88\n; > CreatorLayer::onTreasureRoom @ 0x1000b66fc\n; > PlayLayer::destroyPlayer @ 0x10011edf8\n; > GJShopLayer::init @ 0x10014b308\n; > GJShopLayer::showReactMessage @ 0x10014c98c\n; > GJShopLayer::ccTouchBegan @ 0x10014d854\n; > GauntletSelectLayer::setupGauntlets @ 0x1001bf31c\n; > MenuLayer::init @ 0x1002676c0\n; > SecretRewardsLayer::init @ 0x1002e8068\n; > SecretRewardsLayer::init @ 0x1002e8084\n; > SecretRewardsLayer::onShop @ 0x1002ea050\n; > SecretRewardsLayer::onShop @ 0x1002ea084\n; > SecretRewardsLayer::onShop @ 0x1002ea0b4\n; > SecretRewardsLayer::onShop @ 0x1002ea0d8\n; > SecretRewardsLayer::showDialog01 @ 0x1002eb730\n; > SecretRewardsLayer::showDialog03 @ 0x1002ec840\n; > SecretRewardsLayer::showDialogMechanic @ 0x1002ed52c\n; > SecretRewardsLayer::showDialogDiamond @ 0x1002ee17c\n; > SecretLayer2::init @ 0x100309a04\n; > SecretLayer2::init @ 0x100309f74\n; > SecretLayer2::init @ 0x10030a334\n; > SecretLayer2::init @ 0x10030a3b0\n; > SecretLayer2::onSubmit @ 0x10030ab58\n; > SecretLayer2::onSubmit @ 0x10030b314\n; > SecretLayer2::onDoor @ 0x10030b940\n; > SecretLayer3::init @ 0x10030e56c\n; > SecretLayer3::init @ 0x10030e608\n; > SecretLayer3::init @ 0x10030e61c\n; > SecretLayer3::init @ 0x10030e748\n; > SecretLayer3::init @ 0x10030e7ec\n; > SecretLayer3::init @ 0x10030e890\n; > SecretLayer3::init @ 0x10030e934\n; > SecretLayer3::init @ 0x10030edbc\n; > SecretLayer3::onClick @ 0x10030f3e0\n; > SecretLayer3::onClick @ 0x10030f3f4\n; > SecretLayer3::onClick @ 0x10030f408\n; > SecretLayer3::onBack @ 0x10030fd90\n; > SecretLayer3::showUnlockDialog @ 0x100310670\n; > SecretLayer3::showUnlockDialog @ 0x100310684\n; > SecretLayer3::showUnlockDialog @ 0x100310698\n; > GameManager::firstLoad @ 0x10031c734\n; > LevelAreaLayer::init @ 0x10034460c\n; > LevelAreaInnerLayer::init @ 0x100346124\n; > SecretLayer4::init @ 0x1003540b4\n; > SecretLayer::init @ 0x1003bd59c\n; > LevelPage::onTheTower @ 0x1004049c8\n; > LevelPage::addSecretDoor @ 0x100404dac\n; > LevelPage::addSecretDoor @ 0x100404dc0\n; > LevelPage::addSecretDoor @ 0x100404e00\n; > LevelPage::onSecretDoor @ 0x100405358\n; > LevelPage::onSecretDoor @ 0x10040536c\n; > FollowRewardPage::init @ 0x100424bf0\n; > FollowRewardPage::init @ 0x100424cc8\n; > FollowRewardPage::init @ 0x100424d90\n; > FollowRewardPage::init @ 0x100424e5c\n; > FollowRewardPage::init @ 0x100424f28\n; > FollowRewardPage::init @ 0x100424ff4\n; > FollowRewardPage::onSpecialItem @ 0x100425590\n; > FollowRewardPage::onSpecialItem @ 0x100425600\n; > FollowRewardPage::onSpecialItem @ 0x100425658\n; > FollowRewardPage::onSpecialItem @ 0x1004256b0\n; > FollowRewardPage::onSpecialItem @ 0x100425708\n; > FollowRewardPage::onSpecialItem @ 0x100425760\n; > FollowRewardPage::updateRate @ 0x100425d10\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, #0x60                                          ; +0x0, 0x100318fe8\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x4, 0x100318fec\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x8, 0x100318ff0\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0xc, 0x100318ff4\nADD             X29, SP, #0x50                                         ; +0x10, 0x100318ff8\nMOV             X20, X1                                                ; +0x14, 0x100318ffc\nMOV             X19, X0                                                ; +0x18, 0x100319000\nADRL            X1, aUgv; \"ugv_\"                                       ; +0x1c, 0x100319004\nADD             X21, SP, #0x50+var_38                                  ; +0x24, 0x10031900c\nADD             X0, SP, #0x50+var_38; int                              ; +0x28, 0x100319010\nBL              sub_100009900                                          ; +0x2c, 0x100319014\nADD             X0, SP, #0x50+var_38; this                             ; +0x30, 0x100319018\nMOV             X1, X20; __s                                           ; +0x34, 0x10031901c\nBL              __ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6appendEPKc; std::string::append(char const*) ; +0x38, 0x100319020\nLDR             X19, [X19,#0x198]                                      ; +0x3c, 0x100319024\nLDRSB           W8, [SP,#0x50+var_38.__r_.__value_+0x17]               ; +0x40, 0x100319028\nLDR             X9, [SP,#0x50+var_38]                                  ; +0x44, 0x10031902c\nCMP             W8, #0                                                 ; +0x48, 0x100319030\nCSEL            X1, X9, X21, LT; __s                                   ; +0x4c, 0x100319034\nMOV             X0, SP; int                                            ; +0x50, 0x100319038\nBL              sub_100009900                                          ; +0x54, 0x10031903c\nMOV             X1, SP                                                 ; +0x58, 0x100319040\nMOV             X0, X19                                                ; +0x5c, 0x100319044\nBL              cocos2d__CCDictionary__valueForKey_1                   ; +0x60, 0x100319048\nBL              cocos2d__CCString__boolValue                           ; +0x64, 0x10031904c\nMOV             X19, X0                                                ; +0x68, 0x100319050\nLDRSB           W8, [SP,#0x50+var_39]                                  ; +0x6c, 0x100319054\nTBZ             W8, #0x1F, loc_100319064                               ; +0x70, 0x100319058\nLDR             X0, [SP,#0x50+__p]; __p                                ; +0x74, 0x10031905c\nBL              __ZdlPv; operator delete(void *)                       ; +0x78, 0x100319060\nLDRSB           W8, [SP,#0x50+var_38.__r_.__value_+0x17]               ; +0x7c, 0x100319064\nTBZ             W8, #0x1F, loc_100319074                               ; +0x80, 0x100319068\nLDR             X0, [SP,#0x50+var_38]; __p                             ; +0x84, 0x10031906c\nBL              __ZdlPv; operator delete(void *)                       ; +0x88, 0x100319070\nMOV             X0, X19                                                ; +0x8c, 0x100319074\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x90, 0x100319078\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x94, 0x10031907c\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x98, 0x100319080\nADD             SP, SP, #0x60 ; '`'                                    ; +0x9c, 0x100319084\nRET                                                                    ; +0xa0, 0x100319088", "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"], "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"}