{"type": "func", "start": 3845872, "end": 3845952, "name": "CreatorLayer::dialogClosed", "pseudocode": "// \n// CreatorLayer::dialogClosed from 0x3aaef0 to 0x3aaf40 (80 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CreatorLayer::dialogClosed @ 0x3aaf4c\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; // r0\n  GameManager *v4; // r0\n  cocos2d::CCSprite *m_secretDoorSprite; // r4\n  void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // r5\n  cocos2d::CCSpriteFrameCache *v7; // r0\n  cocos2d::CCSpriteFrame *v8; // r0\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, (const char *)&aO1i2r3e45s7t89[8], 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 0x3aaef0 to 0x3aaf40 (80 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CreatorLayer::dialogClosed @ 0x3aaf4c\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\nLDR             R3, [R1]                                               ; +0x0, 0x3aaef0\nPUSH            {R4-R6,LR}                                             ; +0x2, 0x3aaef2\nMOV             R4, R0                                                 ; +0x4, 0x3aaef4\nLDR             R3, [R3,#0x20]                                         ; +0x6, 0x3aaef6\nMOV             R0, R1                                                 ; +0x8, 0x3aaef8\nBLX             R3                                                     ; +0xa, 0x3aaefa\nCBZ             R0, loc_3AAF04                                         ; +0xc, 0x3aaefc\nCMP             R0, #1                                                 ; +0xe, 0x3aaefe\nBEQ             loc_3AAF34                                             ; +0x10, 0x3aaf00\nPOP             {R4-R6,PC}                                             ; +0x12, 0x3aaf02\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x14, 0x3aaf04\nLDR             R1, =(aO1i2r3e45s7t89+0x10 - 0x3AAF10); \"5s7t89g\"      ; +0x18, 0x3aaf08\nMOVS            R2, #1; bool                                           ; +0x1a, 0x3aaf0a\nADD             R1, PC; \"5s7t89g\" ; char *                             ; +0x1c, 0x3aaf0c\nBL              _ZN11GameManager6setUGVEPKcb; GameManager::setUGV(char const*,bool) ; +0x1e, 0x3aaf0e\nLDR.W           R4, [R4,#0x144]                                        ; +0x22, 0x3aaf12\nLDR             R3, [R4]                                               ; +0x26, 0x3aaf16\nLDR.W           R5, [R3,#0x23C]                                        ; +0x28, 0x3aaf18\nBL              _ZN7cocos2d18CCSpriteFrameCache22sharedSpriteFrameCacheEv; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x2c, 0x3aaf1c\nLDR             R1, =(aSecretdoorbtnO - 0x3AAF26); \"secretDoorBtn_open_001.png\" ; +0x30, 0x3aaf20\nADD             R1, PC; \"secretDoorBtn_open_001.png\"                   ; +0x32, 0x3aaf22\nBL              _ZN7cocos2d18CCSpriteFrameCache17spriteFrameByNameEPKc; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const*) ; +0x34, 0x3aaf24\nMOV             R3, R5                                                 ; +0x38, 0x3aaf28\nMOV             R1, R0                                                 ; +0x3a, 0x3aaf2a\nMOV             R0, R4                                                 ; +0x3c, 0x3aaf2c\nPOP.W           {R4-R6,LR}                                             ; +0x3e, 0x3aaf2e\nBX              R3                                                     ; +0x42, 0x3aaf32\nMOV             R0, R4; this                                           ; +0x44, 0x3aaf34\nMOVS            R1, #0; cocos2d::CCObject *                            ; +0x46, 0x3aaf36\nPOP.W           {R4-R6,LR}                                             ; +0x48, 0x3aaf38\nB.W             _ZN12CreatorLayer14onAdventureMapEPN7cocos2d8CCObjectE; CreatorLayer::onAdventureMap(cocos2d::CCObject *) ; +0x4c, 0x3aaf3c", "xrefs": ["`non-virtual thunk to'CreatorLayer::dialogClosed @ 0x3aaf4c"], "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"}