{"type": "func", "start": 7121144, "end": 7121280, "name": "CreatorLayer::dialogClosed", "pseudocode": "// \n// CreatorLayer::dialogClosed from 0x6ca8f8 to 0x6ca980 (136 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CreatorLayer::dialogClosed @ 0x6ca984\n// > <???> @ 0xa3c98\n// > <???> @ 0x1159498\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 CreatorLayer::dialogClosed(CreatorLayer *a1, DialogLayer *a2)\n{\n  int v3; // w0\n  GameManager *v4; // x0\n  cocos2d::CCSprite *m_secretDoorSprite; // x19\n  void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x20\n  cocos2d::CCSpriteFrameCache *v7; // x0\n  cocos2d::CCSpriteFrame *v8; // x0\n\n  v3 = a2->getTag(a2);\n  if ( v3 )\n  {\n    if ( v3 == 1 )\n      CreatorLayer::onAdventureMap(a1, nullptr);\n  }\n  else\n  {\n    v4 = GameManager::sharedState();\n    GameManager::setUGV(v4, \"5\", 1);\n    m_secretDoorSprite = a1->m_secretDoorSprite;\n    setDisplayFrame = m_secretDoorSprite->setDisplayFrame;\n    v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, \"secretDoorBtn_open_001.png\");\n    setDisplayFrame(m_secretDoorSprite, v8);\n  }\n}", "assembly": "; \n; CreatorLayer::dialogClosed from 0x6ca8f8 to 0x6ca980 (136 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CreatorLayer::dialogClosed @ 0x6ca984\n; > <???> @ 0xa3c98\n; > <???> @ 0x1159498\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\nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0x6ca8f8\nMOV             X29, SP                                                ; +0x4, 0x6ca8fc\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0x6ca900\nMOV             X19, X0                                                ; +0xc, 0x6ca904\nMOV             X0, X1                                                 ; +0x10, 0x6ca908\nLDR             X1, [X1]                                               ; +0x14, 0x6ca90c\nLDR             X1, [X1,#0x40]                                         ; +0x18, 0x6ca910\nBLR             X1                                                     ; +0x1c, 0x6ca914\nCBZ             W0, loc_6CA938                                         ; +0x20, 0x6ca918\nCMP             W0, #1                                                 ; +0x24, 0x6ca91c\nB.NE            loc_6CA974                                             ; +0x28, 0x6ca920\nMOV             X0, X19; this                                          ; +0x2c, 0x6ca924\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x30, 0x6ca928\nLDP             X19, X20, [SP,#var_s10]                                ; +0x34, 0x6ca92c\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x38, 0x6ca930\nB               _ZN12CreatorLayer14onAdventureMapEPN7cocos2d8CCObjectE; CreatorLayer::onAdventureMap(cocos2d::CCObject *) ; +0x3c, 0x6ca934\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x40, 0x6ca938\nADRP            X1, #(aReachPathOfLav_3+0x18)@PAGE; \"5\"                ; +0x44, 0x6ca93c\nMOV             W2, #1; bool                                           ; +0x48, 0x6ca940\nADD             X1, X1, #(aReachPathOfLav_3+0x18)@PAGEOFF; char *      ; +0x4c, 0x6ca944\nBL              _ZN11GameManager6setUGVEPKcb; GameManager::setUGV(char const*,bool) ; +0x50, 0x6ca948\nLDR             X19, [X19,#0x1A8]                                      ; +0x54, 0x6ca94c\nLDR             X0, [X19]; this                                        ; +0x58, 0x6ca950\nLDR             X20, [X0,#0x478]                                       ; +0x5c, 0x6ca954\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x60, 0x6ca958\nADRL            X1, aSecretdoorbtnO; \"secretDoorBtn_open_001.png\"      ; +0x64, 0x6ca95c\nBL              _ZN7cocos2d18CCSpriteFrameCache17spriteFrameByNameEPKc; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const*) ; +0x6c, 0x6ca964\nMOV             X1, X0                                                 ; +0x70, 0x6ca968\nMOV             X0, X19                                                ; +0x74, 0x6ca96c\nBLR             X20                                                    ; +0x78, 0x6ca970\nLDP             X19, X20, [SP,#var_s10]                                ; +0x7c, 0x6ca974\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x80, 0x6ca978\nRET                                                                    ; +0x84, 0x6ca97c", "xrefs": ["`non-virtual thunk to'CreatorLayer::dialogClosed @ 0x6ca984", "<???> @ 0xa3c98", "<???> @ 0x1159498"], "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"}